1 Reply Latest reply on Feb 11, 2013 7:49 PM by Shashank Dass

    Null Pointer exception

    Shashank Dass Newbie

      Hi,

      I am quite a newbee to integration testing frameworks. I am trying the example given on the arquillian website http://arquillian.org/guides/testing_java_persistence/.

      I am getting a null pointer exceptions whenever I try to add or read the data structure defined in the bean. I tried using JBoss as well as Glassfish as AS.

      Following is the server log using JBoss as AS. Please help me finding what I am doign wrong. Thanks in advance.

       

       

      09:53:55,176 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      09:53:55,319 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      09:53:55,356 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.0.Final "Thunder" starting

      09:53:55,897 INFO  [org.xnio] XNIO Version 3.0.3.GA

      09:53:55,897 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      09:53:55,905 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      09:53:55,913 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.2.GA

      09:53:55,925 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      09:53:55,928 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

      09:53:55,932 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

      09:53:55,941 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

      09:53:55,942 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

      09:53:55,946 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

      09:53:55,953 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

      09:53:55,957 INFO  [org.jboss.as.security] (MSC service thread 1-9) JBAS013100: Current PicketBox version=4.0.6.final

      09:53:55,982 INFO  [org.jboss.as.connector] (MSC service thread 1-7) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.7.Final)

      09:53:56,002 INFO  [org.jboss.as.naming] (MSC service thread 1-7) JBAS011802: Starting Naming Service

      09:53:56,011 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-5) JBAS015400: Bound mail session [java:jboss/mail/Default]

      09:53:56,061 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-11) JBoss Web Services - Stack CXF Server 4.0.1.GA

      09:53:56,061 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      09:53:56,125 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-15) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

      09:53:56,322 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      09:53:56,514 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-16) JBAS015012: Started FileSystemDeploymentService for directory /Users/sdass/jboss-as-7.1.0.Final/standalone/deployments

      09:53:56,529 INFO  [org.jboss.as.remoting] (MSC service thread 1-15) JBAS017100: Listening on /127.0.0.1:9999

      09:53:56,529 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on localhost/127.0.0.1:4447

      09:53:56,584 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.0.Final "Thunder" started in 1652ms - Started 134 of 205 services (70 services are passive or on-demand)

      09:54:11,402 INFO  [org.jboss.as.repository] (management-handler-threads - 3) JBAS014900: Content added at location /Users/sdass/jboss-as-7.1.0.Final/standalone/data/content/f4/dc7ada11b231afaf3bdcb25d24e9b9f2a048f6/content

      09:54:11,413 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-12) JBAS015876: Starting deployment of "arquillian-service"

      09:54:11,658 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-9) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.jmx:main") which may be changed or removed in future versions without notice.

      09:54:11,659 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-9) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.server:main") which may be changed or removed in future versions without notice.

      09:54:11,660 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-9) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.osgi:main") which may be changed or removed in future versions without notice.

      09:54:11,661 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-9) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.jandex:main") which may be changed or removed in future versions without notice.

      09:54:11,661 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-9) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.osgi.framework:main") which may be changed or removed in future versions without notice.

      09:54:11,739 INFO  [org.jboss.as.server] (management-handler-threads - 3) JBAS018559: Deployed "arquillian-service"

      09:54:11,979 INFO  [org.jboss.as.repository] (management-handler-threads - 4) JBAS014900: Content added at location /Users/sdass/jboss-as-7.1.0.Final/standalone/data/content/8b/543ba492438c1bd3c618ee584a20dc62ab9f2d/content

      09:54:11,985 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "test.jar"

      09:54:12,033 INFO  [org.jboss.weld.deployer] (MSC service thread 1-13) JBAS016002: Processing weld deployment test.jar

      09:54:12,038 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-13) JNDI bindings for session bean named SingletonOrderRepository in deployment unit deployment "test.jar" are as follows:

       

                java:global/test/SingletonOrderRepository!org.arquillian.example.OrderRepository

                java:app/test/SingletonOrderRepository!org.arquillian.example.OrderRepository

                java:module/SingletonOrderRepository!org.arquillian.example.OrderRepository

                java:global/test/SingletonOrderRepository

                java:app/test/SingletonOrderRepository

                java:module/SingletonOrderRepository

       

      09:54:12,098 INFO  [org.jboss.weld.deployer] (MSC service thread 1-14) JBAS016005: Starting Services for CDI deployment: test.jar

      09:54:12,139 INFO  [org.jboss.weld.Version] (MSC service thread 1-14) WELD-000900 1.1.5 (AS71)

      09:54:12,156 INFO  [org.jboss.weld.deployer] (MSC service thread 1-12) JBAS016008: Starting weld service for deployment test.jar

      09:54:12,156 INFO  [org.jboss.as.arquillian] (MSC service thread 1-14) Arquillian deployment detected: ArquillianConfig[service=jboss.arquillian.config."test.jar",unit=test.jar,tests=[org.arquillian.example.BasketTest]]

      09:54:12,397 INFO  [org.jboss.as.server] (management-handler-threads - 4) JBAS018559: Deployed "test.jar"

      09:54:12,588 SEVERE [org.jboss.arquillian.protocol.jmx.JMXTestRunner] (pool-4-thread-1) Failed: org.arquillian.example.BasketTest.place_order_should_add_order: java.lang.NullPointerException

                at org.arquillian.example.d [test.jar:]

                at org.arquillian.example.Basket.placeOrder(Basket.java:33) [test.jar:]

                at org.arquillian.example.Basket$Proxy$_$$_WeldClientProxy.placeOrder(Basket$Proxy$_$$_WeldClientProxy.java) [test.jar:]

                at org.arquillian.example.BasketTest.place_order_should_add_order(BasketTest.java:36) [test.jar:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [arquillian-service:]

                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [arquillian-service:]

                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270) [arquillian-service:]

                at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60) [arquillian-service:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81) [arquillian-service:]

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135) [arquillian-service:]

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67) [arquillian-service:]

                at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38) [arquillian-service:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81) [arquillian-service:]

                at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89) [arquillian-service:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]

                at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75) [arquillian-service:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]

                at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60) [arquillian-service:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135) [arquillian-service:]

                at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240) [arquillian-service:]

                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) [arquillian-service:]

                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [arquillian-service:]

                at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [arquillian-service:]

                at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [arquillian-service:]

                at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [arquillian-service:]

                at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [arquillian-service:]

                at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199) [arquillian-service:]

                at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147) [arquillian-service:]

                at org.junit.runner.JUnitCore.run(JUnitCore.java:157) [arquillian-service:]

                at org.junit.runner.JUnitCore.run(JUnitCore.java:136) [arquillian-service:]

                at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65) [arquillian-service:]

                at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:129) [arquillian-service:]

                at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:108) [arquillian-service:]

                at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:226) [arquillian-service:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93) [classes.jar:1.6.0_37]

                at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27) [classes.jar:1.6.0_37]

                at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208) [classes.jar:1.6.0_37]

                at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120) [classes.jar:1.6.0_37]

                at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262) [classes.jar:1.6.0_37]

                at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) [classes.jar:1.6.0_37]

                at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) [classes.jar:1.6.0_37]

                at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:489)

                at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:243)

                at org.jboss.remoting3.jmx.protocol.v1.ServerProxy$InvokeHandler.handle(ServerProxy.java:1034)

                at org.jboss.remoting3.jmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:215)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_37]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_37]

                at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_37]

       

      09:54:12,714 INFO  [stdout] (pool-4-thread-1) Initializing orders...

      09:54:12,748 INFO  [org.jboss.weld.deployer] (MSC service thread 1-12) JBAS016009: Stopping weld service for deployment test.jar

      09:54:12,762 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment test.jar in 31ms

      09:54:12,778 INFO  [org.jboss.as.repository] (management-handler-threads - 4) JBAS014901: Content removed from location /Users/sdass/jboss-as-7.1.0.Final/standalone/data/content/8b/543ba492438c1bd3c618ee584a20dc62ab9f2d/content

      09:54:12,778 INFO  [org.jboss.as.server] (management-handler-threads - 4) JBAS018558: Undeployed "test.jar"

      09:54:12,800 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015877: Stopped deployment arquillian-service in 9ms

      09:54:12,809 INFO  [org.jboss.as.repository] (management-handler-threads - 3) JBAS014901: Content removed from location /Users/sdass/jboss-as-7.1.0.Final/standalone/data/content/f4/dc7ada11b231afaf3bdcb25d24e9b9f2a048f6/content

      09:54:12,810 INFO  [org.jboss.as.server] (management-handler-threads - 3) JBAS018558: Undeployed "arquillian-service"

      09:55:04,923 INFO  [org.jboss.as.repository] (management-handler-threads - 5) JBAS014900: Content added at location /Users/sdass/jboss-as-7.1.0.Final/standalone/data/content/ad/8dfc60f22146d821ec03481363f684588042ba/content

      09:55:04,925 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015876: Starting deployment of "arquillian-service"

      09:55:05,031 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-12) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.jmx:main") which may be changed or removed in future versions without notice.

      09:55:05,032 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-12) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.server:main") which may be changed or removed in future versions without notice.

      09:55:05,032 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-12) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.osgi:main") which may be changed or removed in future versions without notice.

      09:55:05,033 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-12) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.jandex:main") which may be changed or removed in future versions without notice.

      09:55:05,033 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-12) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.osgi.framework:main") which may be changed or removed in future versions without notice.

      09:55:05,049 INFO  [org.jboss.as.server] (management-handler-threads - 5) JBAS018559: Deployed "arquillian-service"

      09:55:05,211 INFO  [org.jboss.as.repository] (management-handler-threads - 5) JBAS014900: Content added at location /Users/sdass/jboss-as-7.1.0.Final/standalone/data/content/2a/67cc9378bbc15f336ceff0b52cb5f9aba0c3b5/content

      09:55:05,214 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "test.jar"

      09:55:05,228 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016002: Processing weld deployment test.jar

      09:55:05,229 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-5) JNDI bindings for session bean named SingletonOrderRepository in deployment unit deployment "test.jar" are as follows:

       

                java:global/test/SingletonOrderRepository!org.arquillian.example.OrderRepository

                java:app/test/SingletonOrderRepository!org.arquillian.example.OrderRepository

                java:module/SingletonOrderRepository!org.arquillian.example.OrderRepository

                java:global/test/SingletonOrderRepository

                java:app/test/SingletonOrderRepository

                java:module/SingletonOrderRepository

       

      09:55:05,241 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016005: Starting Services for CDI deployment: test.jar

      09:55:05,250 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016008: Starting weld service for deployment test.jar

      09:55:05,253 INFO  [org.jboss.as.arquillian] (MSC service thread 1-8) Arquillian deployment detected: ArquillianConfig[service=jboss.arquillian.config."test.jar",unit=test.jar,tests=[org.arquillian.example.BasketTest]]

      09:55:05,316 INFO  [org.jboss.as.server] (management-handler-threads - 5) JBAS018559: Deployed "test.jar"

      09:55:05,451 SEVERE [org.jboss.arquillian.protocol.jmx.JMXTestRunner] (pool-4-thread-1) Failed: org.arquillian.example.BasketTest.place_order_should_add_order: java.lang.NullPointerException

                at org.arquillian.example.SingletonOrderRepository.addOrder(SingletonOrderRepository.java:22) [test.jar:]

                at org.arquillian.example.Basket.placeOrder(Basket.java:33) [test.jar:]

                at org.arquillian.example.Basket$Proxy$_$$_WeldClientProxy.placeOrder(Basket$Proxy$_$$_WeldClientProxy.java) [test.jar:]

                at org.arquillian.example.BasketTest.place_order_should_add_order(BasketTest.java:36) [test.jar:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [arquillian-service:]

                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [arquillian-service:]

                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270) [arquillian-service:]

                at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60) [arquillian-service:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81) [arquillian-service:]

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135) [arquillian-service:]

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67) [arquillian-service:]

                at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38) [arquillian-service:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81) [arquillian-service:]

                at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89) [arquillian-service:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]

                at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75) [arquillian-service:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]

                at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60) [arquillian-service:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-service:]

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-service:]

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135) [arquillian-service:]

                at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240) [arquillian-service:]

                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) [arquillian-service:]

                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [arquillian-service:]

                at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [arquillian-service:]

                at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [arquillian-service:]

                at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [arquillian-service:]

                at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [arquillian-service:]

                at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199) [arquillian-service:]

                at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [arquillian-service:]

                at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147) [arquillian-service:]

                at org.junit.runner.JUnitCore.run(JUnitCore.java:157) [arquillian-service:]

                at org.junit.runner.JUnitCore.run(JUnitCore.java:136) [arquillian-service:]

                at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65) [arquillian-service:]

                at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:129) [arquillian-service:]

                at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:108) [arquillian-service:]

                at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:226) [arquillian-service:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_37]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_37]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_37]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_37]

                at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93) [classes.jar:1.6.0_37]

                at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27) [classes.jar:1.6.0_37]

                at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208) [classes.jar:1.6.0_37]

                at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120) [classes.jar:1.6.0_37]

                at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262) [classes.jar:1.6.0_37]

                at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) [classes.jar:1.6.0_37]

                at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) [classes.jar:1.6.0_37]

                at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:489)

                at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:243)

                at org.jboss.remoting3.jmx.protocol.v1.ServerProxy$InvokeHandler.handle(ServerProxy.java:1034)

                at org.jboss.remoting3.jmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:215)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_37]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_37]

                at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_37]

       

      09:55:05,543 INFO  [stdout] (pool-4-thread-1) Initializing orders...

      09:55:05,572 INFO  [org.jboss.weld.deployer] (MSC service thread 1-15) JBAS016009: Stopping weld service for deployment test.jar

      09:55:05,582 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015877: Stopped deployment test.jar in 26ms

      09:55:05,590 INFO  [org.jboss.as.repository] (management-handler-threads - 5) JBAS014901: Content removed from location /Users/sdass/jboss-as-7.1.0.Final/standalone/data/content/2a/67cc9378bbc15f336ceff0b52cb5f9aba0c3b5/content

      09:55:05,590 INFO  [org.jboss.as.server] (management-handler-threads - 5) JBAS018558: Undeployed "test.jar"

      09:55:05,608 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-16) JBAS015877: Stopped deployment arquillian-service in 7ms

      09:55:05,615 INFO  [org.jboss.as.repository] (management-handler-threads - 5) JBAS014901: Content removed from location /Users/sdass/jboss-as-7.1.0.Final/standalone/data/content/ad/8dfc60f22146d821ec03481363f684588042ba/content

      09:55:05,615 INFO  [org.jboss.as.server] (management-handler-threads - 5) JBAS018558: Undeployed "arquillian-service"