Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-2045

Understand occasional ClassNotFoundException in EjbObjectInputStream

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.6.0
    • 4.6.0
    • None
    • None
    • NA

    Description

      Sometimes get the following issue during development that is more than likely a versioning issue, but there is a need to understand why.

      Caused by: java.rmi.RemoteException: Cannot read the response from the server. The class for an object being returned is not located in this system:; nested exception is:
      java.lang.ClassNotFoundException: org/apache/openejb/client/EJBMetaDataImpl
      at org.apache.openejb.client.Client.processRequest(Client.java:327)
      at org.apache.openejb.client.Client.request(Client.java:141)
      at org.apache.openejb.client.JNDIContext.request(JNDIContext.java:90)
      at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:266)
      ... 22 common frames omitted
      Caused by: java.lang.ClassNotFoundException: org/apache/openejb/client/EJBMetaDataImpl
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:270)
      at org.apache.openejb.client.EjbObjectInputStream.resolveClass(EjbObjectInputStream.java:37)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1610)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      at org.apache.openejb.client.JNDIResponse.readExternal(JNDIResponse.java:99)
      at org.apache.openejb.client.Client.processRequest(Client.java:325)

      Attachments

        Activity

          People

            andyg Andy Gumbrecht
            andyg Andy Gumbrecht
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: