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

RMI classloader doesn't search Skeleton files at the right place

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.1.3
    • core-libs
    • sparc
    • solaris_2.5.1

      Environnement : Solaris 2.5.1, HotJava 1.0 FCS
      (on both Solaris and Intel - I also tried to run HotJava with JDK1.1.3 Run time)

      We have an applet that uses RMI.
      We create a RemoteObject on the applet side and call UnicastRemoteObject.exportObject() to allow event callbacks.

      An exception is raised while loading the skeleton file :
      java.io.FileNotFoundException: /usr/dt/appconfig/hotjava/classes/COM/Sun/sunsoft/ldaps/sims/client/LDAEventHandler_Skel.class
              at java.io.FileInputStream.<init>(FileInputStream.java)
              at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:150)
              at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:170)
              at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
              at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:496)
              at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:199)
              at sun.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:159)
              at sun.rmi.server.RemoteProxy.getSkeleton(RemoteProxy.java:165)
              at sun.rmi.server.UnicastServerRef.setSkeleton(UnicastServerRef.java:122)
              at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:90)
              at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:98)
       
      The class should be loaded from the http server and not from the java runtime classpath.

      This was working with jdk1.1.1

      We have a simple example that recreate the problem.

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: