File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Applet -> Servlet -> JDBC -> Oracle Incompatibility Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Applet -> Servlet -> JDBC -> Oracle Incompatibility " Watch "Applet -> Servlet -> JDBC -> Oracle Incompatibility " New topic
Author

Applet -> Servlet -> JDBC -> Oracle Incompatibility

pondyprem
Greenhorn

Joined: Apr 21, 2001
Posts: 2
<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


  • <A HREF="mailto:pondyprem@yahoo.com" rel="nofollow">pondyprem@yahoo.com</A>
    pondyprem
    Greenhorn

    Joined: Apr 21, 2001
    Posts: 2
    Hi all:
    I solved it ..
    thanks
    Prem
    Frank Carver
    Sheriff

    Joined: Jan 07, 1999
    Posts: 6920
    "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.

    Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
    Premkumar N
    Greenhorn

    Joined: Apr 21, 2001
    Posts: 22
    Sorry for the oversight

    Changed my user name.
    Thanks
    Prem


    <a href="mailto:pondyprem@yahoo.com" rel="nofollow">pondyprem@yahoo.com</a> <br />Sr.Programmer Analyst ( Bioinformatics)<br />Monsanto Entrprises
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Applet -> Servlet -> JDBC -> Oracle Incompatibility
     
    Similar Threads
    java.security.AccessControlException
    applet can't start error!!
    Not able to get the context Lookup..Help
    Reading from a JAR file
    Cannot view the left frame of admin console