[jboss-jira] [JBoss JIRA] Commented: (JBAS-5953) JBoss-AS-5.0.x-TestSuite-sun16-sun16 - org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase

Dimitris Andreadis (JIRA) jira-events at lists.jboss.org
Wed Nov 26 06:54:36 EST 2008


    [ https://jira.jboss.org/jira/browse/JBAS-5953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12439833#action_12439833 ] 

Dimitris Andreadis commented on JBAS-5953:
------------------------------------------

I have workedaround the test crash:

         // JBAS-5953, conditionally delay this test on Sun 1.6 JVM
         // The deployed jar is still used by VFS that keeps files open for a while
         // and overwriting the jar on this particular VM combination causes crashes
         boolean sunVM = System.getProperty("java.vm.vendor").indexOf("Sun") > -1;
         if (Java.isVersion(Java.VERSION_1_6) && sunVM)
         {
            // delay the file overwrite until the vfs reaper closes it
            Thread.sleep(7000);
         }
         //assertTrue(thejar.delete()); // TODO - this should work
         Files.copy(goodjar, thejar);
         getLog().info("Redeploying testPackage: " + testPackage);

> JBoss-AS-5.0.x-TestSuite-sun16-sun16 - org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase
> ------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-5953
>                 URL: https://jira.jboss.org/jira/browse/JBAS-5953
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: Test Suite
>            Reporter: Shelly McGowan
>            Assignee: Ales Justin
>             Fix For: JBossAS-5.0.0.GA
>
>         Attachments: hs_err_pid10253.log, hs_err_pid22930-OPENJDK.log
>
>
> testBadEjbRedeployment test fails when run with JDK 6.  
> After the bad jar is deployed and exception caught as expected, the redeploy doesn't happen with JDK 6.
> 2008-09-11 22:28:24,504 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] ejbredeploy.jar is not a valid URL, no protocol: ejbredeploy.jar
> 2008-09-11 22:28:24,504 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Testing file: /NotBackedUp/smcgowan/trunk/testsuite/output/lib/ejbredeploy.jar
> 2008-09-11 22:28:24,504 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] /NotBackedUp/smcgowan/trunk/testsuite/output/lib/ejbredeploy.jar is a valid file
> 2008-09-11 22:28:24,504 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Undeploying ejbredeploy.jar, url=file:/NotBackedUp/smcgowan//trunk/testsuite/output/lib/ejbredeploy.jar
> 2008-09-11 22:28:24,504 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Invoking jboss.system:service=MainDeployer method=undeploy
> 2008-09-11 22:28:24,504 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] args=[file:/NotBackedUp/smcgowan/trunk/testsuite/output/lib/ejbredeploy.jar]
> Test output with JDK 5:
> 2008-09-11 23:28:57,897 INFO  [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Redeploying testPackage: ejbredeploy.jar
> 2008-09-11 23:28:57,897 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] ejbredeploy.jar is not a valid URL, no protocol: ejbredeploy.jar
> 2008-09-11 23:28:57,897 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Testing file: /home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar
> 2008-09-11 23:28:57,897 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] /home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar is a valid file
> 2008-09-11 23:28:57,897 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Deploying ejbredeploy.jar, url=file:/home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar
> 2008-09-11 23:28:57,897 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Invoking jboss.system:service=MainDeployer method=redeploy
> 2008-09-11 23:28:57,898 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] args=[file:/home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar]
> 2008-09-11 23:28:58,632 INFO  [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Found EntityA home
> 2008-09-11 23:28:58,632 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] ejbredeploy.jar is not a valid URL, no protocol: ejbredeploy.jar
> 2008-09-11 23:28:58,633 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Testing file: /home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar
> 2008-09-11 23:28:58,633 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] /home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar is a valid file
> 2008-09-11 23:28:58,633 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Undeploying ejbredeploy.jar, url=file:/home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar
> 2008-09-11 23:28:58,633 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] Invoking jboss.system:service=MainDeployer method=undeploy
> 2008-09-11 23:28:58,633 DEBUG [org.jboss.test.jmx.test.UndeployBrokenPackageUnitTestCase] args=[file:/home/smcgowan2/workspace/trunk/testsuite/output/lib/ejbredeploy.jar] 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list