Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet -> Servlet -> JDBC -> Oracle Incompatibility

 
pondyprem
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<PRE>

Hi JDBC Ranch !
We have an applet that communicates in the following sequence
Applet <-> RMIServlet <-> JDBC <-> Oracle
initially we had oracle8, and Applet<->RMI was working-fine .. binding to the registry ... fetching data .. saving data ..etc.,
However, after changing to 8i it is not connecting ..
Strange Obsrevation: All the other servlets are connecting to 8i using the same drivers ... but this applet is giving error ...
The applet communicates to RMI servlet which in turn communicates with 8i.
I tried the following:
  • Oracle8 driver is in class path (816Classes111.zip)
    (XOR)
  • Oracle8i driver is in class path (Classes111.zip)
  • changed the RMI ports to ensure that port number is not the problem

    Following is the error message(from Browser JavaConsole):


    Invalidating certificate principals in [ http://10.200.4.30:8080/servlet/,]
    Exception java.rmi.ConnectException: Connection refused to host: [10.200.4.30:1099]; nested exception is:
    java.net.ConnectException: Connection refused
    java.rmi.ConnectException: Connection refused to host: [10.200.4.30:1099]; nested exception is:
    java.net.ConnectException: Connection refused
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(Compiled Code)
    at java.rmi.RemoteException.<init>(Compiled Code)
    at java.rmi.ConnectException.<init>(Compiled Code)
    at sun.rmi.transport.tcp.TCPChannel.openSocket(Compiled Code)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(Compiled Code)
    at sun.rmi.server.UnicastRef.newCall(Compiled Code)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Compiled Code)
    * at java.rmi.Naming.lookup(Compiled Code)
    at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(Compiled Code)
    at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    java.lang.NullPointerException
    * at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(Compiled Code)
    at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    # Applet lsi.editorInterface.UI.EIApplet did not shut down within 30 seconds -- killing it.

    Any clues ???
    </pre>
    ------------------
    pondyprem@yahoo.com
  •  
    pondyprem
    Greenhorn
    Posts: 2
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi all:
    I solved it ..
    thanks
    Prem
     
    Frank Carver
    Sheriff
    Posts: 6920
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    "pondyprem",
    The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
    Thanks.
     
    Premkumar N
    Greenhorn
    Posts: 22
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Sorry for the oversight

    Changed my user name.
    Thanks
    Prem
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic