java.lang.Exception: Failed to initialize exploded war

Jenkins JIRA | jshamacher | 8 years ago
  1. 0

    This is with version 260. $ mvn install ... ------------------------------------------------------- T E S T S ------------------------------------------------------- Running hudson.tasks.MailerTest Exploding hudson.war at /workplace2/hamacher-SafetyNet/Hudson/build/exploded-hudson/hudson-1.260/war/target/hudson.war Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.411 sec <<< FAILURE! Running hudson.scm.SubversionSCMTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.056 sec <<< FAILURE! Running hudson.model.AbstractProjectTest Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.023 sec <<< FAILURE! Running hudson.pages.SystemConfigurationTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 sec <<< FAILURE! Running hudson.bugs.JnlpAccessWithSecuredHudsonTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 sec <<< FAILURE! Running hudson.bugs.LoginRedirectTest Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.035 sec <<< FAILURE! Running hudson.scm.ScmTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 sec <<< FAILURE! Running hudson.model.JobPropertyTest Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.011 sec <<< FAILURE! Running hudson.slaves.JNLPLauncherTest Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.007 sec <<< FAILURE! Running hudson.model.FreeStyleProjectTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 sec <<< FAILURE! Running hudson.bugs.DateConversionTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.987 sec Running hudson.model.QueueTest Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.014 sec <<< FAILURE! Running org.jvnet.hudson.main.AppTest Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.009 sec <<< FAILURE! Running hudson.model.UserTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.013 sec <<< FAILURE! Running hudson.model.HudsonTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.098 sec <<< FAILURE! Results : Tests in error: testSenderAddress(hudson.tasks.MailerTest) testTaggingPermission(hudson.scm.SubversionSCMTest) testWipeWorkspace(hudson.model.AbstractProjectTest) testWipeWorkspaceProtected(hudson.model.AbstractProjectTest) testWipeWorkspaceProtected2(hudson.model.AbstractProjectTest) testPageDecoratorIsListedInPage(hudson.pages.SystemConfigurationTestCase) test(hudson.bugs.JnlpAccessWithSecuredHudsonTest) testRedirect(hudson.bugs.LoginRedirectTest) testRedirect2(hudson.bugs.LoginRedirectTest) testProjectDeletionAndCallback(hudson.scm.ScmTest) testJobPropertySummaryIsShownInMavenModuleSetIndexPage(hudson.model.JobPropertyTest) testJobPropertySummaryIsShownInMatrixProjectIndexPage(hudson.model.JobPropertyTest) testJobPropertySummaryIsShownInFreeStyleProjectIndexPage(hudson.model.JobPropertyTest) testLaunch(hudson.slaves.JNLPLauncherTest) testHeadlessLaunch(hudson.slaves.JNLPLauncherTest) testConfigSubmission(hudson.model.FreeStyleProjectTest) testPersistence(hudson.model.QueueTest) testPersistence2(hudson.model.QueueTest) testFileItemPersistence(hudson.model.QueueTest) test1(org.jvnet.hudson.main.AppTest) test2(org.jvnet.hudson.main.AppTest) testUserPropertySummaryIsShownInUserPage(hudson.model.UserTestCase) testSimpleConfigSubmit(hudson.model.HudsonTest) Tests run: 24, Failures: 0, Errors: 23, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. If I look at one of the specific failures: ------------------------------------------------------------------------------- Test set: hudson.tasks.MailerTest ------------------------------------------------------------------------------- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.412 sec <<< FAILURE! testSenderAddress(hudson.tasks.MailerTest) Time elapsed: 2.238 sec <<< ERROR! java.lang.Exception: Failed to initialize exploded war at org.jvnet.hudson.test.WarExploder.getExplodedDir(WarExploder.java:21) at org.jvnet.hudson.test.HudsonTestCase.createWebServer(HudsonTestCase.java:168) at org.jvnet.hudson.test.HudsonTestCase.newHudson(HudsonTestCase.java:158) at org.jvnet.hudson.test.HudsonTestCase.setUp(HudsonTestCase.java:112) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) 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.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) 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.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) at org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:241) at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:492) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.io.FileNotFoundException: ./target/hudson-for-test/.timestamp (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.jvnet.hudson.test.WarExploder.explode(WarExploder.java:71) at org.jvnet.hudson.test.WarExploder.<clinit>(WarExploder.java:30) ... 43 more Caused by: java.io.FileNotFoundException: ./target/hudson-for-test/.timestamp (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.jvnet.hudson.test.WarExploder.explode(WarExploder.java:71) at org.jvnet.hudson.test.WarExploder.<clinit>(WarExploder.java:30) ... 43 more Let me know if there's any more information I can provide. Thanks, Josh

    Jenkins JIRA | 8 years ago | jshamacher
    java.lang.Exception: Failed to initialize exploded war
  2. 0

    This is with version 260. $ mvn install ... ------------------------------------------------------- T E S T S ------------------------------------------------------- Running hudson.tasks.MailerTest Exploding hudson.war at /workplace2/hamacher-SafetyNet/Hudson/build/exploded-hudson/hudson-1.260/war/target/hudson.war Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.411 sec <<< FAILURE! Running hudson.scm.SubversionSCMTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.056 sec <<< FAILURE! Running hudson.model.AbstractProjectTest Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.023 sec <<< FAILURE! Running hudson.pages.SystemConfigurationTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 sec <<< FAILURE! Running hudson.bugs.JnlpAccessWithSecuredHudsonTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 sec <<< FAILURE! Running hudson.bugs.LoginRedirectTest Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.035 sec <<< FAILURE! Running hudson.scm.ScmTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 sec <<< FAILURE! Running hudson.model.JobPropertyTest Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.011 sec <<< FAILURE! Running hudson.slaves.JNLPLauncherTest Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.007 sec <<< FAILURE! Running hudson.model.FreeStyleProjectTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 sec <<< FAILURE! Running hudson.bugs.DateConversionTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.987 sec Running hudson.model.QueueTest Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.014 sec <<< FAILURE! Running org.jvnet.hudson.main.AppTest Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.009 sec <<< FAILURE! Running hudson.model.UserTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.013 sec <<< FAILURE! Running hudson.model.HudsonTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.098 sec <<< FAILURE! Results : Tests in error: testSenderAddress(hudson.tasks.MailerTest) testTaggingPermission(hudson.scm.SubversionSCMTest) testWipeWorkspace(hudson.model.AbstractProjectTest) testWipeWorkspaceProtected(hudson.model.AbstractProjectTest) testWipeWorkspaceProtected2(hudson.model.AbstractProjectTest) testPageDecoratorIsListedInPage(hudson.pages.SystemConfigurationTestCase) test(hudson.bugs.JnlpAccessWithSecuredHudsonTest) testRedirect(hudson.bugs.LoginRedirectTest) testRedirect2(hudson.bugs.LoginRedirectTest) testProjectDeletionAndCallback(hudson.scm.ScmTest) testJobPropertySummaryIsShownInMavenModuleSetIndexPage(hudson.model.JobPropertyTest) testJobPropertySummaryIsShownInMatrixProjectIndexPage(hudson.model.JobPropertyTest) testJobPropertySummaryIsShownInFreeStyleProjectIndexPage(hudson.model.JobPropertyTest) testLaunch(hudson.slaves.JNLPLauncherTest) testHeadlessLaunch(hudson.slaves.JNLPLauncherTest) testConfigSubmission(hudson.model.FreeStyleProjectTest) testPersistence(hudson.model.QueueTest) testPersistence2(hudson.model.QueueTest) testFileItemPersistence(hudson.model.QueueTest) test1(org.jvnet.hudson.main.AppTest) test2(org.jvnet.hudson.main.AppTest) testUserPropertySummaryIsShownInUserPage(hudson.model.UserTestCase) testSimpleConfigSubmit(hudson.model.HudsonTest) Tests run: 24, Failures: 0, Errors: 23, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. If I look at one of the specific failures: ------------------------------------------------------------------------------- Test set: hudson.tasks.MailerTest ------------------------------------------------------------------------------- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.412 sec <<< FAILURE! testSenderAddress(hudson.tasks.MailerTest) Time elapsed: 2.238 sec <<< ERROR! java.lang.Exception: Failed to initialize exploded war at org.jvnet.hudson.test.WarExploder.getExplodedDir(WarExploder.java:21) at org.jvnet.hudson.test.HudsonTestCase.createWebServer(HudsonTestCase.java:168) at org.jvnet.hudson.test.HudsonTestCase.newHudson(HudsonTestCase.java:158) at org.jvnet.hudson.test.HudsonTestCase.setUp(HudsonTestCase.java:112) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) 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.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) 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.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) at org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:241) at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:492) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.io.FileNotFoundException: ./target/hudson-for-test/.timestamp (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.jvnet.hudson.test.WarExploder.explode(WarExploder.java:71) at org.jvnet.hudson.test.WarExploder.<clinit>(WarExploder.java:30) ... 43 more Caused by: java.io.FileNotFoundException: ./target/hudson-for-test/.timestamp (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.jvnet.hudson.test.WarExploder.explode(WarExploder.java:71) at org.jvnet.hudson.test.WarExploder.<clinit>(WarExploder.java:30) ... 43 more Let me know if there's any more information I can provide. Thanks, Josh

    Jenkins JIRA | 8 years ago | jshamacher
    java.lang.Exception: Failed to initialize exploded war
  3. 0

    Unit Test - Jenkins - Jenkins Wiki

    jenkins-ci.org | 3 months ago
    java.lang.Exception: Failed to resolve plugin: XYZ:1.0.0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Concordion 1.4.6 incompatible with JUnit 4.12

    GitHub | 2 years ago | wjbakker
    java.lang.Exception: Failed to initialize ConcordionRunner
  6. 0

    GitHub comment 8658#181415953

    GitHub | 10 months ago | wildfly-ci
    org.jboss.as.test.integration.ws.injection.ejb.basic.InjectionTestCase: org.jboss.as.test.integration.ws.context.as1605.BothPojoAndEjbInWarTestCase: at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:83)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.Exception

      Failed to initialize exploded war

      at org.jvnet.hudson.test.WarExploder.getExplodedDir()
    2. Hudson :: Test Framework
      HudsonTestCase.setUp
      1. org.jvnet.hudson.test.WarExploder.getExplodedDir(WarExploder.java:21)
      2. org.jvnet.hudson.test.HudsonTestCase.createWebServer(HudsonTestCase.java:168)
      3. org.jvnet.hudson.test.HudsonTestCase.newHudson(HudsonTestCase.java:158)
      4. org.jvnet.hudson.test.HudsonTestCase.setUp(HudsonTestCase.java:112)
      4 frames
    3. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runBare(TestCase.java:125)
      2. junit.framework.TestResult$1.protect(TestResult.java:106)
      3. junit.framework.TestResult.runProtected(TestResult.java:124)
      4. junit.framework.TestResult.run(TestResult.java:109)
      5. junit.framework.TestCase.run(TestCase.java:118)
      6. junit.framework.TestSuite.runTest(TestSuite.java:208)
      7. junit.framework.TestSuite.run(TestSuite.java:203)
      7 frames
    4. Java RT
      NativeMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2 frames