[jboss-user] [JBoss Seam] - Seam Test and java.util.EmptyStackException

urswag do-not-reply at jboss.com
Wed Aug 15 08:12:47 EDT 2007


Using Seam 2.0.0 Beta and JBoss 4.2.0.

Making an own test with my user definend Entity Bean User for Oracle DB, I get a strange exception


  | [testng] java.util.EmptyStackException
  |    [testng] 	at java.util.Stack.peek(Stack.java:79)
  |    [testng] 	at org.jboss.seam.transaction.Transaction.beforeCommit(Transaction.java:64)
  | 

The exception is generated in the call of getValue in the Component test method.


  | assert getValue("#{user.username}").equals(testuserUsername);
  | 

Must I create the user table in the hypersonic database? Or is this table automatically? I don't think the oracle db connection is called within the test? Is this correct?

The whole exception stack?

anonymous wrote : 
  | [testng] java.util.EmptyStackException
  |    [testng] 	at java.util.Stack.peek(Stack.java:79)
  |    [testng] 	at org.jboss.seam.transaction.Transaction.beforeCommit(Transaction.java:64)
  |    [testng] 	at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:44)
  |    [testng] 	at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
  |    [testng] 	at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
  |    [testng] 	at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
  |    [testng] 	at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
  |    [testng] 	at org.jboss.seam.mock.BaseSeamTest$Request.invokeApplicationPhase(BaseSeamTest.java:616)
  |    [testng] 	at org.jboss.seam.mock.BaseSeamTest$Request.emulateJsfLifecycle(BaseSeamTest.java:556)
  |    [testng] 	at org.jboss.seam.mock.BaseSeamTest$Request.run(BaseSeamTest.java:487)
  |    [testng] 	at com.frox.atirasafnetz.test.integration.PasswordChangeTest.testPasswordChange(PasswordChangeTest.java:36)
  |    [testng] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |    [testng] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |    [testng] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |    [testng] 	at java.lang.reflect.Method.invoke(Method.java:585)
  |    [testng] 	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
  |    [testng] 	at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
  |    [testng] 	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
  |    [testng] 	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
  |    [testng] 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
  |    [testng] 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
  |    [testng] 	at org.testng.TestRunner.runWorkers(TestRunner.java:678)
  |    [testng] 	at org.testng.TestRunner.privateRun(TestRunner.java:624)
  |    [testng] 	at org.testng.TestRunner.run(TestRunner.java:495)
  |    [testng] 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
  |    [testng] 	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
  |    [testng] 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
  |    [testng] 	at org.testng.SuiteRunner.run(SuiteRunner.java:190)
  |    [testng] 	at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
  |    [testng] 	at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
  |    [testng] 	at org.testng.TestNG.run(TestNG.java:699)
  |    [testng] 	at org.testng.TestNG.privateMain(TestNG.java:824)
  |    [testng] 	at org.testng.TestNG.main(TestNG.java:802)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074402#4074402

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074402



More information about the jboss-user mailing list