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

"No mainInterface: otherwise di: " IllegalArgumentException when use ejbref in ejbref's method.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.0
    • server
    • None

    Description

      b1ref = (b1) beanHome1.create();
      b2ref = (b2) beanHome2.create();

      b1ref.use(b2ref);

      I met "No mainInterface: otherwise di: xxxxxx" IllegalArgumentException when doing a call like the case above. I found that the changes in JIRA OPENEJB-1328 caused this.

      a quick solution would to give it a chance to set the only interface as maininterface in org.apache.openejb.core.ivm.BaseEjbProxyHandler.BaseEjbProxyHandler(BeanContext, Object, InterfaceType, List<Class>, Class).

      Attachments

        Activity

          People

            Unassigned Unassigned
            genspring Lin Quan Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: