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

ObjectInputStream.inputClassDescriptor erroneously traps NoClassDefFoundError

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_2.6

      Description

      The inputClassDescriptor method of ObjectInputStream traps ClassNotFoundException and NoClassDefFoundError. However, catching the NoClassDefFoundError results in an error propagation such that the
      name of the original missing class is normally lost, and only the top
      level class is reported as missing.

      This can be reproduced with a simple RMI server which is restricted to
      using it's own codebase. If the interface for the server contains a class
      which is not in the RMI client's classpath, when Naming.lookup is called,
      the registry will fail to locate the missing class. However, the exception
      thrown will report that the server's Impl class is missing.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peterjones Peter Jones
              Reporter:
              twatson Trevor Watson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: