Issue with new JChem Cartridge install: Connection refused

User 8c93e4d649

03-03-2009 20:41:34

Hi,





We are trying to get a new install of the JChem Oracle Cartridge working, but we're stuck on Step 5 - Testing the JChem Cartridge installation.  When I call jchem_core_pkg.use_password as the jchem-owner, I get the following exception:








Code:
ORA-29532: Java call terminated by uncaught Java exception: java.lang.Exception: Problem connecting to JChemServer: rmi://zots.broad.mit.edu:1099: Connection refused to host: localhost; nested exception is:


    java.net.ConnectException: Connection refused






We're using two different hosts for Oracle and the JChem Server.  Oracle 10g (10.1.0.4.0) is running on a 64 bit Linux box.  The JChem Server is running on a virtual machine configured with windows 2003 server.  The JChem installer that we used is jchem-5_1_05-windows_with_jre.exe.





Also, when I execute telnet zots.broad.mit.edu 1099 I get the following:








Code:
¼φsr4chemaxon.jchem.cartridge.rmi.impl.DirectoryImpl_Stub☻☻xrjava.rmi.server.RemoteStubΘ■▄╔ïße☻xr∟java.rmi.server.Remote


Object╙a┤æ


          a3▲♥xpw2


                  UnicastRef    localhost♠t@ZSp?╨╗♥┌╤_x☺▼ñ#Θ[Ç☺x





Connection to host lost.






Any help would be much appreciated.





Sincerely,





Steve

ChemAxon aa7c50abf8

04-03-2009 16:03:18

Hi Steve,





On the zots.broad.mit.edu host, have you changed the "jchem.server.host"


property in the file "cartridge/conf/jcart.properties" from localhost


to zots.broad.mit.edu? You also have to set the "oracle.server.host"


property in the same file to the DNS name of your Oracle Server host.


You have to restart JChem Server for these changes to take effect.





Thanks





<span style="font-weight: bold;">





Code:
Peter









User 8c93e4d649

05-03-2009 15:54:01

Hi Peter,





Thanks for your help.  We've updated jchem.server.host and oracle.server.host per your instructions.  Now we're getting a new error when calling jchem_core_pkg.use_password as the jchem-owner.  This error is on the JChem server:





Code:
Mar 5, 2009 9:35:46 AM chemaxon.jchem.cartridge.rmi.impl.RmiImplUtil


handleError


SEVERE: dbnode01.broad.mit.edu


java.net.UnknownHostException: dbnode01.broad.mit.edu


    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)


    at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)


    at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1200)


    at java.net.InetAddress.getAllByName0(InetAddress.java:1153)


    at java.net.InetAddress.getAllByName(InetAddress.java:1083)


    at java.net.InetAddress.getAllByName(InetAddress.java:1019)


    at java.net.InetAddress.getByName(InetAddress.java:969)


    at


chemaxon.jchem.cartridge.servlets.JCartConnectionManager.hostPreCheck(JCartConnectionManager.java:131)


    at


chemaxon.jchem.cartridge.servlets.JCartConnectionManager.checkConnection(JCartConnectionManager.java:112)


    at


chemaxon.jchem.cartridge.servlets.JCartConnectionManager.changeUserInfo(JCartConnectionManager.java:209)


    at


chemaxon.jchem.cartridge.rmi.impl.RmiTunnelImpl.setUserInfo(RmiTunnelImpl.java:124)


    at


chemaxon.jchem.cartridge.rmi.impl.RmiTunnelImpl.processUc(RmiTunnelImpl.java:63)


    at


chemaxon.jchem.cartridge.rmi.impl.RmiTunnelImpl.process(RmiTunnelImpl.java:53)


    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


    at


sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


    at


sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


    at java.lang.reflect.Method.invoke(Method.java:597)


    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)


    at sun.rmi.transport.Transport$1.run(Transport.java:159)


    at java.security.AccessController.doPrivileged(Native Method)


    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)


    at


sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)


    at


sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)


    at


sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)


    at


java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)


    at


java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)


    at java.lang.Thread.run(Thread.java:619)








dbnode01 is the oracle server host.  We are able to ping it successfully from zots, so I'm not sure why the JChem Server can't see it.





-Steve

ChemAxon aa7c50abf8

05-03-2009 19:51:21

Hi Steve,





Quote:
We are able to ping it successfully from zots



Then you are ahead of me as I have been unable to find a way of pinging my laptop from a Windows VMWare guest by my laptop's domain name.





My Windows guest (Windows Server 2003) is running on a Linux host. From the Linux host, I can ping my laptop called "pokkermann" using "pokkermann". But all my attempts at pinging pokkermann from the Windows guest keep ending up with


Quote:
Ping request could not find host pokkermann. Please check the name and try again.



The guest uses DHCP (as the host does) and uses the same DNS server as the host. The guest uses a bridged connection. Pinging pokkermann by its IP-address works without problem.








I have a fairly extensive experience in basic TCP/IP networking, but I find that networking with VMs is often "tricky".








Didn't you have problems with Windows guests accessing domain names? Do you use VMWare or Xen, or something else?





What happens if you replace references to dbnode01 with the IP address of dbnode01? Is the test of JChem Cartridge installation successful that way?





Thanks





Peter

User 8c93e4d649

06-03-2009 16:30:23

Hi Peter,





Plugging in the ip address of the Oracle host gives the same error.





We're using VMWare, but I'm not sure what version.





We are able to successfully execute 'telnet dbnode01 1521' from the jchem server host.





-Steve

ChemAxon aa7c50abf8

06-03-2009 17:32:26

Steve,





Two questions:





1. I'd expect the error messages to be somewhat different this time round. This part








Code:
java.net.UnknownHostException: dbnode01.broad.mit.edu








is different when you use IP address instead of domain name, correct?





2. Are you able to ping dbnode01 with its FQDN (dbnode01.broad.mit.edu) as well from the Windows guest?





Thanks





Peter