principal=null or requiredRoles=null causing a SecurityExcep
callum Aug 16, 2001 10:54 AMHi all,
I have seen many posts regarding this issue but no solutions, as yet.
I am using JBoss 2.2.2 and Tomcat 3.2.2.
I receive this error when calling Session beans from java classes accessed via JSPs. Authentication and authorisation work fine with most actions, however sometimes JBoss appears to drop either the principal or required roles which are clearly listed in the roles.properties and users.properties files.
Is there a solution to this? it appears unlikely that the application is incorrect as the security is declarative and also works in SilverStream
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[MatrixEntity] Insufficient method permissions, principal=callumw, method=findByCollection, requiredRoles
=null
[TheSearchService] TRANSACTION ROLLBACK EXCEPTION:checkSecurityAssociation; nested exception is:
java.lang.SecurityException: Insufficient method permissions, principal=callumw, method=findByCol
lection, requiredRoles=null; nested exception is:
java.rmi.RemoteException: checkSecurityAssociation; nested exception is:
java.lang.SecurityException: Insufficient method permissions, principal=callumw, method=findByCol
lection, requiredRoles=null
[TheSearchService] java.rmi.RemoteException: checkSecurityAssociation; nested exception is:
[TheSearchService] java.lang.SecurityException: Insufficient method permissions, principal=callumw,
method=findByCollection, requiredRoles=null
[TheSearchService] java.lang.SecurityException: Insufficient method permissions, principal=callumw, metho
d=findByCollection, requiredRoles=null
[TheSearchService] at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInt
erceptor.java:232)
[TheSearchService] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:
144)
[TheSearchService] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
[TheSearchService] at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316)
[TheSearchService] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContaine
rInvoker.java:436)
[TheSearchService] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:212)
[TheSearchService] at $Proxy72.findByCollection(Unknown Source)
[TheSearchService] at uk.co.mfl.app.common.search.ejb.service.SearchServiceEJB.search(SearchServiceE
JB.java:109)
[TheSearchService] at java.lang.reflect.Method.invoke(Native Method)
[TheSearchService] at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSes
sionContainer.java:570)
[TheSearchService] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:190)
[TheSearchService] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessio