You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Rainer Schön (JIRA)" <ji...@apache.org> on 2014/04/05 18:00:15 UTC
[jira] [Created] (DELTASPIKE-561) ConversationScope not created
Rainer Schön created DELTASPIKE-561:
---------------------------------------
Summary: ConversationScope not created
Key: DELTASPIKE-561
URL: https://issues.apache.org/jira/browse/DELTASPIKE-561
Project: DeltaSpike
Issue Type: Bug
Components: TestControl
Affects Versions: 0.6
Environment: Eclipse Kepler SR2, Java 7, Junit 4.11, DS 0.6, tested with Weld SE 2.0.3 and Weld 2.1.1
Reporter: Rainer Schön
Priority: Critical
When I inject a ConversationScoped bean into the test, I get the following error:
Apr 01, 2014 11:19:37 PM org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner$ContainerAwareTestContext startScopes
SEVERE: failed to start scope @javax.enterprise.context.ConversationScoped
java.lang.NullPointerException
at org.jboss.weld.context.bound.BoundConversationContextImpl.setRequestAttribute(BoundConversationContextImpl.java:29)
at org.jboss.weld.context.bound.BoundConversationContextImpl.setRequestAttribute(BoundConversationContextImpl.java:10)
at org.jboss.weld.context.AbstractConversationContext.associate(AbstractConversationContext.java:134)
at org.apache.deltaspike.cdise.weld.ContextController.startConversationScope(ContextController.java:122)
at org.apache.deltaspike.cdise.weld.WeldContextControl.startConversationScope(WeldContextControl.java:149)
at org.apache.deltaspike.cdise.weld.WeldContextControl.startContext(WeldContextControl.java:74)
at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner$ContainerAwareTestContext.startScopes(CdiTestRunner.java:595)
at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner$ContainerAwareTestContext.applyBeforeClassConfig(CdiTestRunner.java:462)
at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner$BeforeClassStatement.evaluate(CdiTestRunner.java:347)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner$AfterClassStatement.evaluate(CdiTestRunner.java:374)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner.run(CdiTestRunner.java:129)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
RequestScope and SessionScope beans are injected correctly
The attached Eclipse/Maven Project Zip demonstrates the issue
--
This message was sent by Atlassian JIRA
(v6.2#6252)