Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Applet -> Servlet -> JDBC -> Oracle Incompatibility

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi all:
    I solved it ..
    thanks
    Prem
     
    Sheriff
    Posts: 7001
    6
    Eclipse IDE Python C++ Debian Java Linux
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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.
     
    Greenhorn
    Posts: 22
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Sorry for the oversight

    Changed my user name.
    Thanks
    Prem
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    reply
      Bookmark Topic Watch Topic
    • New Topic