Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4032926

Naming.lookup() can't handle second lookups on the same url spec.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1
    • core-libs
    • None
    • x86, sparc
    • solaris_2.5.1, windows_nt



      Name: mc57594 Date: 02/18/97


      1. Establish a remote object binding with Naming.lookup().
      2. When finished using the remote object, do a Naming.unbind(),
      set the local remote reference to null, and kill the remote
      registry.
      3. Start a new registry at the same host and port as the old.
      4. Call Naming.lookup() with the same url spec as before.
      5. Get java.rmi.UnmarshalException - see below:

      sun1495: appletviewer scptd.html
      daemon command = runSCPTestDriver 2233
      Naming.lookup for //smsdemo.spd.dsccc.com:2233/systems.scptd.SCPTestDriver
      daemon command = runSCPTestDriver 2233
      Naming.lookup for //smsdemo.spd.dsccc.com:2233/systems.scptd.SCPTestDriver
      SCPTestDriverApplet: got exception: Error unmarshaling return header
      java.rmi.UnmarshalException: Error unmarshaling return header
              at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:208)
              at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:104)
              at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:94)
              at java.rmi.Naming.lookup(Naming.java:60)
              at systems.scptd.SCPTestDriverApplet.beginSession(SCPTestDriverApplet.java:616)
              at systems.scptd.SCPTestDriverApplet.begin(SCPTestDriverApplet.java:572)
              at systems.scptd.ThreadManStarter.run(ThreadMan.java:19)

      company - DSC Communications , email - ###@###.###
      ======================================================================

            acolleysunw Adrian Colley (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: