[jboss-as7-dev] test failure: org.jboss.as.test.smoke.osgi.SimpleRunAsClientTestCase
Frank Langelage
frank at lafr.de
Mon Apr 23 16:34:00 EDT 2012
The current sources from github.com/jbossas/jboss-as fail the tests.
See attached files.
-------------- next part --------------
-------------------------------------------------------------------------------
Test set: org.jboss.as.test.smoke.osgi.SimpleRunAsClientTestCase
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.107 sec <<< FAILURE!
testClientDeploymentAsArchive(org.jboss.as.test.smoke.osgi.SimpleRunAsClientTestCase) Time elapsed: 3.666 sec <<< ERROR!
java.lang.NullPointerException
at org.jboss.as.test.osgi.OSGiManagementTest.getBundleId(OSGiManagementTest.java:96)
at org.jboss.as.test.smoke.osgi.SimpleRunAsClientTestCase.testClientDeploymentAsArchive(SimpleRunAsClientTestCase.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)
at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
at org.jboss.arquillian.container.test.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:53)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:129)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)
at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)
at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:234)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:133)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:188)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
-------------- next part --------------
CLI command:/mbi/tools/jdk/jdk1.6.0_31/jre/bin/java -Djboss.home.dir=/home/jboss/JBoss-7.1/jboss-as/testsuite/integration/smoke/target/jbossas -Djboss.modules.dir=/home/jboss/JBoss-7.1/jboss-as/testsuite/integration/smoke/../../../build/target/jboss-as-7.1.2.Final-SNAPSHOT/modules -Djline.WindowsTerminal.directConsole=false -jar /home/jboss/JBoss-7.1/jboss-as/testsuite/integration/smoke/../../../build/target/jboss-as-7.1.2.Final-SNAPSHOT/jboss-modules.jar -mp /home/jboss/JBoss-7.1/jboss-as/testsuite/integration/smoke/../../../build/target/jboss-as-7.1.2.Final-SNAPSHOT/modules org.jboss.as.cli --user=testSuite --password=testSuitePassword
[CLI-out] You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[CLI-inp] connect 127.0.0.1:9999
[CLI-out] [disconnected /] connect 127.0.0.1:9999
[CLI-inp] version
[CLI-out] [standalone at 127.0.0.1:9999 /] version
[CLI-out] JBoss Admin Command-line Interface
[CLI-out] JBOSS_HOME: /mbi/tools/jboss/7.1
[CLI-out] JBoss AS release: 7.1.2.Final-SNAPSHOT "Brontes"
[CLI-out] JAVA_HOME: /mbi/tools/jdk/1.6.0
[CLI-out] java.version: 1.6.0_31
[CLI-out] java.vm.vendor: Sun Microsystems Inc.
[CLI-out] java.vm.version: 20.6-b01
[CLI-out] os.name: SunOS
[CLI-out] os.version: 5.10
22:08:04,703 INFO [org.jboss.as.repository] (management-handler-thread - 6) JBAS014900: Content added at location /home/jboss/JBoss-7.1/jboss-as/testsuite/integration/smoke/target/jbossas/standalone/data/content/3c/c57658a812e8c120d5773c18165ab6c75dac63/content
22:08:04,711 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "runasclient-test-bundle"
22:08:04,863 INFO [org.jboss.as.server] (management-handler-thread - 6) JBAS018559: Deployed "runasclient-test-bundle"
[CLI-inp] /subsystem=osgi:read-resource(include-runtime=true,recursive=true)
[CLI-out] [standalone at 127.0.0.1:9999 /] /subsystem=osgi:read-resource(include-runtime=true,recursive=true)
[CLI-out] {
[CLI-out] "outcome" => "success",
[CLI-out] "result" => {
[CLI-out] "activation" => "lazy",
[CLI-out] "bundle" => undefined,
[CLI-out] "startlevel" => 1,
[CLI-out] "capability" => {
[CLI-out] "javax.servlet.api:v25" => {},
[CLI-out] "org.jboss.osgi.logging" => {"startlevel" => "1"},
[CLI-out] "org.jboss.as.osgi.configadmin" => {"startlevel" => "1"},
[CLI-out] "org.apache.felix.log" => {"startlevel" => "1"},
[CLI-out] "javax.transaction.api" => {},
[CLI-out] "org.apache.felix.configadmin" => {"startlevel" => "1"}
[CLI-out] },
[CLI-out] "property" => {"org.osgi.framework.startlevel.beginning" => {"value" => "1"}}
[CLI-out] },
[CLI-out] "response-headers" => {"process-state" => "reload-required"}
[CLI-out] }
22:08:06,509 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment runasclient-test-bundle in 8ms
22:08:06,685 INFO [org.jboss.as.repository] (management-handler-thread - 6) JBAS014901: Content removed from location /home/jboss/JBoss-7.1/jboss-as/testsuite/integration/smoke/target/jbossas/standalone/data/content/3c/c57658a812e8c120d5773c18165ab6c75dac63/content
22:08:06,689 INFO [org.jboss.as.server] (management-handler-thread - 6) JBAS018558: Undeployed "runasclient-test-bundle"
[CLI-inp] /subsystem=osgi/bundle=runasclient-test-bundle:read-attribute(name=state)
[CLI-out] [standalone at 127.0.0.1:9999 /] /subsystem=osgi/bundle=runasclient-test-bundle:read-attribute(name=state)
22:08:06,720 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 3) JBAS014612: Operation ("read-attribute") failed - address: ([
("subsystem" => "osgi"),
("bundle" => "runasclient-test-bundle")
]): java.lang.IllegalArgumentException: JBAS011972: Cannot obtain bundle resource for: runasclient-test-bundle
at org.jboss.as.osgi.parser.BundleRuntimeHandler.getTargetBundle(BundleRuntimeHandler.java:167)
at org.jboss.as.osgi.parser.BundleRuntimeHandler.handleReadAttributeOperation(BundleRuntimeHandler.java:118)
at org.jboss.as.osgi.parser.BundleRuntimeHandler.executeRuntimeStep(BundleRuntimeHandler.java:96)
at org.jboss.as.controller.AbstractRuntimeOnlyHandler$1.execute(AbstractRuntimeOnlyHandler.java:90) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:466) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:121) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:139) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:108) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.protocol.mgmt.AbstractMessageHandler$2$1.doExecute(AbstractMessageHandler.java:287) [jboss-as-protocol-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:487) [jboss-as-protocol-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]
[CLI-out] {
[CLI-out] "outcome" => "failed",
[CLI-out] "failure-description" => "JBAS014749: Operation handler failed: JBAS011972: Cannot obtain bundle resource for: runasclient-test-bundle",
[CLI-out] "rolled-back" => true,
[CLI-out] "response-headers" => {"process-state" => "reload-required"}
[CLI-out] }
More information about the jboss-as7-dev
mailing list