Return-Path: X-Original-To: apmail-openejb-commits-archive@www.apache.org Delivered-To: apmail-openejb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC6C2291E for ; Tue, 3 May 2011 06:33:43 +0000 (UTC) Received: (qmail 31345 invoked by uid 500); 3 May 2011 06:33:43 -0000 Delivered-To: apmail-openejb-commits-archive@openejb.apache.org Received: (qmail 31322 invoked by uid 500); 3 May 2011 06:33:43 -0000 Mailing-List: contact commits-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openejb.apache.org Delivered-To: mailing list commits@openejb.apache.org Received: (qmail 31311 invoked by uid 99); 3 May 2011 06:33:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 06:33:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 06:33:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2ADE9BF51A for ; Tue, 3 May 2011 06:33:03 +0000 (UTC) Date: Tue, 3 May 2011 06:33:03 +0000 (UTC) From: "Ivan (JIRA)" To: commits@openejb.apache.org Message-ID: <1086606196.17702.1304404383172.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1756220143.76140.1303461485722.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (OPENEJB-1531) "No mainInterface: otherwise di: " IllegalArgumentException when use ejbref in ejbref's method. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENEJB-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ivan resolved OPENEJB-1531. --------------------------- Resolution: Fixed Fix Version/s: 4.0 Commit changes to trunk at rev.1098938 Thanks, Shawn. > "No mainInterface: otherwise di: " IllegalArgumentException when use ejbref in ejbref's method. > ------------------------------------------------------------------------------------------------ > > Key: OPENEJB-1531 > URL: https://issues.apache.org/jira/browse/OPENEJB-1531 > Project: OpenEJB > Issue Type: Bug > Components: server > Affects Versions: 4.0 > Reporter: Shawn Jiang > Fix For: 4.0 > > Attachments: 0001-for-request-that-don-t-support-mainInterface-always-.patch > > > 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). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira