Bugs item #607805, was opened at 2002-09-11 15:06 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=607805&group_id=22866
Category: JBossServer Group: CVS HEAD >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Oskari Kettunen (aok) Assigned to: Christian Riege (lqd) Summary: invalid ejbspec 12.2.11 warning Initial Comment: Method verifyEntityLocalHome(...) in org.jboss.verifier.strategy.EJBVerifier20 uses method throwsRemoteException(...) in org.jboss.verifier.strategy.AbstractVerifier to enforce EJB Spec 12.2.11. This causes misfired SpecViolationEvents. Because of Bug #434739, the assignability is in the direction e.isAssignableFrom (java.rmi.RemoteException.class) however, for this purpose it should be the original java.rmi.RemoteException.class.isAssignableFrom(e). For, example, throwing an IOException from an entity's local home is not prohibited by the spec: -- The throws clause of any method on the entity bean�s local home interface must not include the java.rmi.RemoteException. -- but java.io.IOException.class.isAssignableFrom (java.rmi.RemoteException.class) returns true, an the bean gets rejected... Apparently the verifiation should use two separate throwsRemoteException(...) methods, one or each direction... Oskari Kettunen, Finland ---------------------------------------------------------------------- Comment By: Christian Riege (lqd) Date: 2002-09-11 16:40 Message: Logged In: YES user_id=176671 the fix is simpler than including a second method for specifically checking local interfaces: we now explicitly ignore exceptions of type java.io.IOException checked into HEAD, 3.2 and 3.0. thanks for the detailed report and analysis, this helped a lot! ---------------------------------------------------------------------- Comment By: Christian Riege (lqd) Date: 2002-09-11 16:09 Message: Logged In: YES user_id=176671 ... this must be fixed not only for 12.2.11 (EntityLocalHome) but also for SessionLocalHome, EntityLocal and SessionLocal. ---------------------------------------------------------------------- Comment By: Christian Riege (lqd) Date: 2002-09-11 16:01 Message: Logged In: YES user_id=176671 I'll look into this. Setting the StrictVerifier attribute to 'false' in jboss-service.xml will allow you to deploy your beans despite of the verification failing; you might want to try this as a workaround in the meantime. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=607805&group_id=22866 ------------------------------------------------------- In remembrance www.osdn.com/911/ _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
