Hi,
I recently converted an EJB 1.1 entity bean to an EJB 2.0 local bean. The bean uses a security proxy in the form of a class implementing the same methods as the bean.
When deploying this bean on JBoss, I get a NullPointerException from the AbstractSecurityProxy class. I traced this in the source code and it seems to me it only uses the remote interface pair when installing the security proxy. Since my bean does not have remote interfaces, a NullPointerException occurs.
Is there a way to use my security proxy class on a local EJB?
Frank
Stack trace excerpt:
13:04:48,026 ERROR [SecurityProxyInterceptor] Failed to initialze SecurityProxy
java.lang.NullPointerException
at org.jboss.security.AbstractSecurityProxy.mapHomeMethods(AbstractSecurityProxy.java:173)
at org.jboss.security.AbstractSecurityProxy.init(AbstractSecurityProxy.java:87)
at org.jboss.security.SubjectSecurityProxy.init(SubjectSecurityProxy.java:50)
at org.jboss.ejb.plugins.SecurityProxyInterceptor.setContainer(SecurityProxyInterceptor.java:105)
at org.jboss.ejb.EntityContainer.create(EntityContainer.java:343)
at org.jboss.ejb.Container.invoke(Container.java:789)
I posted a fix to the patch section which should solve your problem. Unfortunately it is not integrated to the main branch yet:
http://sourceforge.net/tracker/index.php?func=detail&aid=633353&group_id=22866&atid=376687
Cheers,
Rainer