Technical Support Forum Index
Technical Support Forum
Access ChemAxon scientists and developers here. For confidential or other support please email.
The time now is Sat Jul 04, 2009 11:33 pm
 <b>Register</b> (required to post and download)Register (required to post and download)
 Username:    Password:   Remember login       
 FAQFAQ   SearchSearch   DigestsDigests 
JC_INSERT issue
To watch this topic for replies  Register (enables digests) or give email address:
Reply to topic    Home -> Forums -> Support -> Storage & search: JChem Base /Cartridge -> JC_INSERT issue

Display posts from previous:        View previous topic :: View next topic    
Author Message
DanielSButler
Joined: 22 Oct 2004
Posts: 355


View user's profile



Back to top
Post subject: JC_INSERT issue
Link to postPosted: Wed May 11, 2005 3:28 pm  Reply with quote

> Any ideas about why the error message below is thrown on running
> JC_INSERT would be very helpful!
>
> ORA-29532: Java call terminated by uncaught Java exception:
> java.io.FileNotFoundException:
> http://hporacle9i.chem.ox.ac.uk:6969/jchemstreams/misc
> ORA-06512: at "JCHEM3.JCHEM_CORE_PKG", line 5
> ORA-06512: at "JCHEM3.JC_INSERT", line 5
pkovacs
Joined: 23 Jul 2004
Posts: 1038
ChemAxon personnel

View user's profile

Visit poster's website

Back to top
Post subject:
Link to postPosted: Wed May 11, 2005 4:58 pm  Reply with quote

This may be a transient error due to a transient problem in the 'jchemstreams' context. Tomcat is still listening at hporacle9i.chem.ox.ac.uk:6969. If it were not, a more specific error message would be generated.

Please, do the following:

(1) Check the URL http://hporacle9i.chem.ox.ac.uk:6969/jchemstreams with your browser. The entry page to the JChem Cartridge administration GUI should be displayed. If it is not, then nothing is supposed to work in JChem Cartridge (not only jc_insert).

(2) Check the URL http://hporacle9i.chem.ox.ac.uk:6969/jchemstreams/misc with your browser. If it is a blank page, jc_insert should work again. If a 404 error ("The requested resource (/jchemstreams/misc) is not available.") is displayed, then try to restart the 'jchemstreams' context (or the entire Tomcat instance).

Let me know what you found.
DanielSButler
Joined: 22 Oct 2004
Posts: 355


View user's profile



Back to top
Post subject:
Link to postPosted: Thu May 12, 2005 2:24 pm  Reply with quote

Both conditions (1) and (2) are satisfied.
Unfortunately the problem does still exist.

The call below does not work, where as previously many similar calls have worked fine - the error message is the same.

MarvinSketch will accept the smiles below and convert to graph with no issues - so presumably no problem with the smiles string.

begin
jc_insert ('C1(OC(=O)C=CN-1C-c2(cc(C#N)c(O)c(Cl)c2))C(-c3(cnccc3))=O','smile','JCHEMPROPERTIES','false','false');
end;
/
DanielSButler
Joined: 22 Oct 2004
Posts: 355


View user's profile



Back to top
Post subject:
Link to postPosted: Thu May 12, 2005 2:28 pm  Reply with quote

simpler calls cause the same issue.

begin
jc_insert ('CCCl','smile','JChemproperties','false','false');
end;
/

Please be aware this is version 2.3.4 and so this may already be a known issue?
DanielSButler
Joined: 22 Oct 2004
Posts: 355


View user's profile



Back to top
Post subject:
Link to postPosted: Thu May 12, 2005 2:42 pm  Reply with quote

further to this, running the following for a known table

select *
from definitely_exists
where jc_equals ('Cc1[nH]c2c(Br)cc(F)cc2c1CCNC(=S)NCCc3ccccc3',cd_smiles) = 1;

yields the error message

ORA-29532: Java call terminated by uncaught Java exception:
oracle.jdbc.driver.OracleSQLException: ORA-00903: invalid table name
ORA-06512: at "JCHEM3.JCHEM_CORE_PKG", line 5
ORA-06512: at "JCHEM3.EQUALS_FUNC", line 32
pkovacs
Joined: 23 Jul 2004
Posts: 1038
ChemAxon personnel

View user's profile

Visit poster's website

Back to top
Post subject:
Link to postPosted: Thu May 12, 2005 2:44 pm  Reply with quote

I can insert the same molecules in my JChem environment version 2.3.4 without problem.

Please, could you upload the <tomcat-home>/logs/catalina.out file (or relevant portions of it).

Do I understand correctly that you first get the error message as you insert those particular molecules and then you can successfully insert other molecules in the same database session?
pkovacs
Joined: 23 Jul 2004
Posts: 1038
ChemAxon personnel

View user's profile

Visit poster's website

Back to top
Post subject:
Link to postPosted: Thu May 12, 2005 2:52 pm  Reply with quote

Quote:
ORA-29532: Java call terminated by uncaught Java exception:
oracle.jdbc.driver.OracleSQLException: ORA-00903: invalid table name
ORA-06512: at "JCHEM3.JCHEM_CORE_PKG", line 5
ORA-06512: at "JCHEM3.EQUALS_FUNC", line 32
More information about this problem is output into the database session's trace file in the <ORACLE_HOME>/admin/<DBNAME>/udump directory. Please, could you post this trace file or relevant portions of it?
DanielSButler
Joined: 22 Oct 2004
Posts: 355


View user's profile



Back to top
Post subject:
Link to postPosted: Thu May 12, 2005 3:03 pm  Reply with quote

As far as I can see JC_INSERT is not working for any given SMILES.

However the attached catalina.out file does have a considerable amount of warning information and so hopefully this will help determine what is missing?
pkovacs
Joined: 23 Jul 2004
Posts: 1038
ChemAxon personnel

View user's profile

Visit poster's website

Back to top
Post subject:
Link to postPosted: Thu May 12, 2005 3:07 pm  Reply with quote

I guess you forgot the attachement.
DanielSButler
Joined: 22 Oct 2004
Posts: 355


View user's profile



Back to top
Post subject:
Link to postPosted: Thu May 12, 2005 3:10 pm  Reply with quote

attached is a trace file from today.
DanielSButler
Joined: 22 Oct 2004
Posts: 355


View user's profile



Back to top
Post subject:
Link to postPosted: Thu May 12, 2005 3:10 pm  Reply with quote

yes sorry
DanielSButler
Joined: 22 Oct 2004
Posts: 355


View user's profile



Back to top
Post subject:
Link to postPosted: Thu May 12, 2005 3:15 pm  Reply with quote

catalina.out
pkovacs
Joined: 23 Jul 2004
Posts: 1038
ChemAxon personnel

View user's profile

Visit poster's website

Back to top
Post subject:
Link to postPosted: Fri May 13, 2005 9:24 am  Reply with quote

I still cannot see your attachment. I attached something so you can see how it looks like when there is an attachment to a posting. (I hope I manage to do the attaching myself. :-) )

First, you have to enter the path to the file that you want to attach in the "Filename" field (underneath the "Message body" edit box).

Then you have to push the "Add Attachment" button (orange of color) next to the "File Comment" edit box (which itself is below the "Filename" edit box).

If you then display a preview of the message currently being edited (by pressing the "Preview" button) you can see your message (on top of the page) and immediately below it a box containing to rows showing your current attachments to the message.



 Filename: query_file.txt    Filesize: 395 Bytes    Downloaded: 393 Time(s)
 Description:  
DanielSButler
Joined: 22 Oct 2004
Posts: 355


View user's profile



Back to top
Post subject:
Link to postPosted: Fri May 13, 2005 9:29 am  Reply with quote

And the answer is...

Changes I made for security purposes to server.xml has caused this issue...

<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="x,y" /> under any <Engine>, <Host> and <Context> will cause this problem, good that this has been identified, bad that I cannot implement security at this level without intefering with the Cartridge functions.

Thanks for all your help...
pkovacs
Joined: 23 Jul 2004
Posts: 1038
ChemAxon personnel

View user's profile

Visit poster's website

Back to top
Post subject:
Link to postPosted: Fri May 13, 2005 9:50 am  Reply with quote

I would still be interested to know exactly what was the problem. I have never used the RemoteAddrValve parameter, but based on the Tomcat documentation I would presume it should work with JChem Cartridge to restrict access to Tomcat. You just have to specify that your Oracle host also should have access to Tomcat. (If Tomcat and Oracle are on the same machine, then "localhost" must be specified in addition to other permitted hosts.)
DanielSButler
Joined: 22 Oct 2004
Posts: 355


View user's profile



Back to top
Post subject:
Link to postPosted: Fri May 13, 2005 10:36 am  Reply with quote

I have tried adding the ipaddress of my localhost to

<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="x,y"

I have also tried adding the string "localhost" and the machine name rather than ip address to

<Valve className="org.apache.catalina.valves.RemoteHostValve" allow="x,y"

I have tried both the above for all combinations of <Engine>,<Host> and <Context> but alas inclusion of any of the above causes a "not available" error when attempting to check the JChemstreams URL.
DanielSButler
Joined: 22 Oct 2004
Posts: 355


View user's profile



Back to top
Post subject:
Link to postPosted: Fri May 13, 2005 12:00 pm  Reply with quote

IPtables and building a firewall layer into our Linux server is the next option I am going to investigate, so that the security is not embedded at the application level at all - Thanks Karl!
DanielSButler
Joined: 22 Oct 2004
Posts: 355


View user's profile



Back to top
Post subject:
Link to postPosted: Fri May 13, 2005 12:13 pm  Reply with quote

I also retract an earlier statement and modify to:

If the <Valve> tags are included in <Context> alone then all the cartridge functionality work fine and a level of security retained.

Cheers!
Display posts from previous:   
Reply to topic    Home -> Forums -> Storage & search: JChem Base /Cartridge -> JC_INSERT issue All times are GMT + 1 Hour
Page 1 of 1
To watch this topic for replies   Register (enables digests) or give email address  
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum