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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0
    • Component/s: server
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: