[jboss-jira] [JBoss JIRA] Commented: (JBAS-4914) NPE in JBossWebRealm
Anil Saldhana (JIRA)
jira-events at lists.jboss.org
Fri Oct 26 09:19:04 EDT 2007
[ http://jira.jboss.com/jira/browse/JBAS-4914?page=comments#action_12384557 ]
Anil Saldhana commented on JBAS-4914:
-------------------------------------
============
ServletMetaData servletMD = metaData.getServlets().get(servletName);
SecurityRoleRefsMetaData roleRefs = servletMD.getSecurityRoleRefs();
==================
servletMD is null.
> NPE in JBossWebRealm
> --------------------
>
> Key: JBAS-4914
> URL: http://jira.jboss.com/jira/browse/JBAS-4914
> Project: JBoss Application Server
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Reporter: Thomas Diesler
> Assigned To: Scott M Stark
> Fix For: JBossAS-5.0.0.Beta3
>
>
> [tdiesler at tddell jbossws-native-2.0.2]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.context.WebServiceContextJSETestCase
> one-test:
> [junit] Running org.jboss.test.ws.jaxws.samples.context.WebServiceContextJSETestCase
> [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 4.809 sec
> [junit] Test org.jboss.test.ws.jaxws.samples.context.WebServiceContextJSETestCase FAILED
> java.lang.NullPointerException
> at org.jboss.web.tomcat.security.JBossWebRealm.hasRole(JBossWebRealm.java:536)
> at org.apache.catalina.connector.Request.isUserInRole(Request.java:2184)
> at org.apache.catalina.connector.RequestFacade.isUserInRole(RequestFacade.java:763)
> at org.jboss.wsf.spi.invocation.WebServiceContextJSE.isUserInRole(WebServiceContextJSE.java:61)
> at org.jboss.test.ws.jaxws.samples.context.EndpointJSE.testIsUserInRole(EndpointJSE.java:60)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list