Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1, 3.1.1
    • Fix Version/s: None
    • Component/s: orb
    • Labels:
      None
    • Environment:

      Ubuntu Linux 64bit (Lucid Lynx), 2.6.32-22-generic, Glassfish 3.1.1, Netbeans 7.0.1, jdk1.6.0_25

      Description

      When invoking a method of an remote EJB with a parameter that extends a base class, and this extended class is located in the client, I get a NullPointerException from CORBA.
      Invoking this method with the not extended base class works fine.
      I expected the extended class to be casted to the base class or throwing a ClassNotFoundException, but not a NullPointerException.

      WARNING: IOP00010002: Unknown user exception thrown by the server - exception: java.lang.NullPointerException; message: null
      org.omg.CORBA.UNKNOWN: WARNING: IOP00010002: Unknown user exception thrown by the server - exception: java.lang.NullPointerException; message: null vmcid: OMG minor code: 2 completed: Maybe
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      ....
      Caused by: java.lang.NullPointerException
      at com.sun.corba.ee.impl.orbutil.ClassInfoCache$ClassInfo.<init>(ClassInfoCache.java:156)
      at com.sun.corba.ee.impl.orbutil.ClassInfoCache.get(ClassInfoCache.java:281)
      at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1097)
      at com.sun.corba.ee.impl.encoding.CDRInputObject.read_value(CDRInputObject.java:531)

      Full stacktrace is available here:
      http://java.net/projects/glassfish/lists/users/archive/2011-10/message/460

      As attachment three example projects to reproduce this bug.

        Activity

        Hide
        novy154 added a comment -

        Does anyone have fix for this? I'm using glassfish 3.1.2.2, no chances for upgrade unfortunately - and of course this bug is still present...

        Show
        novy154 added a comment - Does anyone have fix for this? I'm using glassfish 3.1.2.2, no chances for upgrade unfortunately - and of course this bug is still present...
        Hide
        chrispy added a comment -

        This strange bug still exists in GF 3.1.2.2
        I tested it with EcliseLink and OpenJPA (with static weaving).
        So remote EJB3.1 with JPA2 is not working correctly...
        Is there a plan to fix this issue in the next GF-Release?

        Show
        chrispy added a comment - This strange bug still exists in GF 3.1.2.2 I tested it with EcliseLink and OpenJPA (with static weaving). So remote EJB3.1 with JPA2 is not working correctly... Is there a plan to fix this issue in the next GF-Release?
        Hide
        Tom Mueller added a comment -

        Moving to the "orb" category.

        Show
        Tom Mueller added a comment - Moving to the "orb" category.

          People

          • Assignee:
            Harshad Vilekar
            Reporter:
            Dennis Schwarz
          • Votes:
            10 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated: