[jboss-jira] [JBoss JIRA] (AS7-4643) Failure of SimpleRunAsClientTestCase in some environments
Dominik Pospisil (JIRA)
jira-events at lists.jboss.org
Fri Apr 27 04:26:18 EDT 2012
[ https://issues.jboss.org/browse/AS7-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688258#comment-12688258 ]
Dominik Pospisil commented on AS7-4643:
---------------------------------------
The OSGiManagementTest line 92 sends to the CLI:
/subsystem=osgi:read-resource(include-runtime=true,recursive=true)
Than it expects that the result contains attribute bundle which contains a map. However, the bundle attribute is actually undefined.
[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] }
> Failure of SimpleRunAsClientTestCase in some environments
> ---------------------------------------------------------
>
> Key: AS7-4643
> URL: https://issues.jboss.org/browse/AS7-4643
> Project: Application Server 7
> Issue Type: Bug
> Components: OSGi, Test Suite
> Environment: Only some environments - see attached test output for complete capture of details.
> Reporter: Darran Lofthouse
> Assignee: Thomas Diesler
> Fix For: 7.1.2.Final-redhat1
>
> Attachments: SimpleRunAsClientTestCase.tgz
>
>
> The test org.jboss.as.test.smoke.osgi.SimpleRunAsClientTestCase is failing in a couple of environments, unfortunately the failure seems related to the other tests as running just this test passes without error.
> Will attach the logs but it appears the bundle is undeployed before the mgmt op is handled leading to a NPE in the test.
> 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)
> For other issues in the past I have seen that test order can vary by environment and for some reason my environment seems to pick the unique order ;-) so wouldn't rule out another test being the case.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list