[jbossseam-issues] [JBoss JIRA] Reopened: (JBSEAM-471) Method getUserPrincipal() in UserPrincipal has NullPointerException

Crayton OSteen (JIRA) jira-events at jboss.com
Fri Nov 10 12:24:41 EST 2006


     [ http://jira.jboss.com/jira/browse/JBSEAM-471?page=all ]

Crayton OSteen reopened JBSEAM-471:
-----------------------------------

             
Here's my call stack.  This problem only happens if I run all my unit tests together.  If I run them individually, I don't get this issue.

java.lang.NullPointerException
	at org.jboss.seam.core.UserPrincipal.getUserPrincipal(UserPrincipal.java:34)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
	at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
	at org.jboss.seam.Component.callComponentMethod(Component.java:1334)INFO  10-11 12:16:26,343 (EJBContainer.java:start:479)  -STARTED EJB: com.raritan.ccsd.action.identity.UserUpdateAction ejbName: UserUpdateAction
lookup 
  LoginAction: org.jnp.interfaces.NamingContext
  UserTransaction: org.jboss.ejb3.embedded.UserTransactionImpl
  GroupUpdateAction: org.jnp.interfaces.NamingContext
  GroupManagerAction: org.jnp.interfaces.NamingContext
  UserUpdateAction: org.jnp.interfaces.NamingContext
  UserManagerAction: org.jnp.interfaces.NamingContext

	at org.jboss.seam.Component.unwrap(Component.java:1350)
	at org.jboss.seam.Component.getInstance(Component.java:1276)
	at org.jboss.seam.Component.getInstance(Component.java:1253)
	at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:125)
	at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:104)
	at org.jboss.seam.init.Initialization.init(Initialization.java:196)
	at org.jboss.seam.mock.SeamTest.init(SeamTest.java:321)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:623)
	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:336)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:170)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:86)
	at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:163)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
	at org.testng.TestRunner.runWorkers(TestRunner.java:665)
	at org.testng.TestRunner.privateRun(TestRunner.java:636)
	at org.testng.TestRunner.run(TestRunner.java:513)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:279)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:264)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:244)
	at org.testng.SuiteRunner.run(SuiteRunner.java:168)
	at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:989)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:953)
	at org.testng.TestNG.run(TestNG.java:701)
	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:122)
Failed to invoke @Configuration method org.jboss.seam.mock.SeamTest.init:null
FAILED: init
java.lang.NullPointerException
	at org.jboss.seam.core.UserPrincipal.getUserPrincipal(UserPrincipal.java:34)
	at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
	at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
	at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
	at org.jboss.seam.Component.unwrap(Component.java:1350)
	at org.jboss.seam.Component.getInstance(Component.java:1276)
	at org.jboss.seam.Component.getInstance(Component.java:1253)
	at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:125)
	at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:104)
	at org.jboss.seam.init.Initialization.init(Initialization.java:196)
	at org.jboss.seam.mock.SeamTest.init(SeamTest.java:321)
... Removed 26 stack frames

> Method getUserPrincipal() in UserPrincipal has NullPointerException
> -------------------------------------------------------------------
>
>                 Key: JBSEAM-471
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-471
>             Project: JBoss Seam
>          Issue Type: Patch
>          Components: Core
>    Affects Versions: 1.1.0.BETA1
>            Reporter: Crayton OSteen
>         Assigned To: Gavin King
>            Priority: Trivial
>


-- 
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 seam-issues mailing list