glassfish
  1. glassfish
  2. GLASSFISH-15836

@Remote EJBs involving inheritance cause CORBA serialization error in embedded Glassfish

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1_b40
    • Fix Version/s: 3.1
    • Component/s: embedded
    • Labels:
      None

      Description

      I have a (Serializable) business interface (SimpleStateless).

      I have a class that implements it but which is not an EJB of any kind (SimpleStatelessBean).

      I have a class that extends SimpleStatelessBean (SimpleStatelessBeanExtension). It is annotated as @Stateless(name="Extension") and @Remote.

      When this small module is tested with the maven-embedded-glassfish-plugin, a CORBA serialization error occurs. If you remove the inheritance (and adjust annotations accordingly), everything works fine.

      (In the attached test case please note that the interesting bits are all in src/test/java, not src/main/java. The attached test case as written will only function when http://java.net/jira/browse/GLASSFISH-15835 is fixed.)

      Bhavani is already working on this.

        Activity

        Hide
        ljnelson added a comment -

        Hallelujah; that worked. b05 of the embedded plugin works and resolves this issue.

        (Now to figure out how I'm going to test local EJBs without using the plugin...if you have an idea on how I could test local EJBs WITH the plugin I'm all ears. Do I need to go back to using the embeddable Glassfish container directly?)

        Show
        ljnelson added a comment - Hallelujah; that worked. b05 of the embedded plugin works and resolves this issue. (Now to figure out how I'm going to test local EJBs without using the plugin...if you have an idea on how I could test local EJBs WITH the plugin I'm all ears. Do I need to go back to using the embeddable Glassfish container directly?)
        Hide
        Bhavanishankar added a comment -

        For the local EJBs, v3/tests/embedded/maven-plugin/localejbs should help? Let me know otherwise.

        Also, for remote EJBs, could you please attach the working test case?

        Show
        Bhavanishankar added a comment - For the local EJBs, v3/tests/embedded/maven-plugin/localejbs should help? Let me know otherwise. Also, for remote EJBs, could you please attach the working test case?
        Hide
        Bhavanishankar added a comment -

        This works fine with 3.1-b05 of the plugin (i.e., 3.1-b41)

        Changing @Local(BusinessInterface.class) to @Remote(BusinessInterface.class) in BusinessInterfaceSLSB.java is necessary.

        I attach the modified test and the successful run log.

        Show
        Bhavanishankar added a comment - This works fine with 3.1-b05 of the plugin (i.e., 3.1-b41) Changing @Local(BusinessInterface.class) to @Remote(BusinessInterface.class) in BusinessInterfaceSLSB.java is necessary. I attach the modified test and the successful run log.
        Hide
        Scott Fordin added a comment -

        Does this need to be Release Noted?

        Show
        Scott Fordin added a comment - Does this need to be Release Noted?
        Hide
        Scott Fordin added a comment -

        In the absence of additional information and the fact that this bug is closed and fixed in 3.1, I'm thinking that this no longer needs to be included in the Release Notes.

        Show
        Scott Fordin added a comment - In the absence of additional information and the fact that this bug is closed and fixed in 3.1, I'm thinking that this no longer needs to be included in the Release Notes.

          People

          • Assignee:
            Bhavanishankar
            Reporter:
            ljnelson
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: