Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.1.2
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Steps to Reproduce:
      Hide

      1. Run cmd
      2. Go to project folder
      3. Execute mvn install

      Show
      1. Run cmd 2. Go to project folder 3. Execute mvn install
    • Similar Issues:
      Show 4 results 

      Description

      Test is failing causing whole build to fail.

      Run: mvn install
      I am getting:
      Running org.jboss.shrinkwrap.impl.nio.file.FileStoreTestCase
      Tests run: 14, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.199 sec <<< FAILURE!
      (...)
      Tests in error:
      usedSpace(org.jboss.shrinkwrap.impl.nio.file.FileStoreTestCase)

      which causes:
      [INFO] ShrinkWrap NIO.2 Implementation ................... FAILURE [3.465s]

      running maven with -X gets a bit more information:

      Forking command line: cmd.exe /X /C ""C:\Program Files\Java\jdk1.7.0_13\jre\bin\java" -XX:-UseSplitVerifier -jar C:\java\jbossContrib\shrinkwrap\impl-nio2\target\surefire\surefirebooter5511466650885380015.jar C:\java\jbossContrib\shrinkwrap\impl-nio2\target\surefire\surefire1512637945828983343tmp C:\java\jbossContrib\shrinkwrap\impl-nio2\target\surefire\surefire3374467175783166650tmp"
      Running org.jboss.shrinkwrap.impl.nio.file.FileStoreTestCase
      Tests run: 14, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.199 sec <<< FAILURE!

      When I run build with sipping unit tests, it finished with success:

      mvn install -Dmaven.test.skip=true

      I am trying to build latest source code from git repo on master branch

      I will try to further investigate this problem

        Activity

        Hide
        Michal Matloka
        added a comment - - edited

        I am able to reproduce this situation.

        -------------------------------------------------------------------------------
        Test set: org.jboss.shrinkwrap.impl.nio.file.FileStoreTestCase
        -------------------------------------------------------------------------------
        Tests run: 14, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.288 sec <<< FAILURE!
        usedSpace(org.jboss.shrinkwrap.impl.nio.file.FileStoreTestCase)  Time elapsed: 0.033 sec  <<< ERROR!
        java.lang.NullPointerException
        	at org.jboss.shrinkwrap.impl.nio.file.FileStoreTestCase.usedSpace(FileStoreTestCase.java:87)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:601)
        	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        	at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
        	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
        	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
        	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
        	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
        	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:601)
        	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
        	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
        	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
        	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:81)
        	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
        

        Under IDE works.

        Show
        Michal Matloka
        added a comment - - edited I am able to reproduce this situation. ------------------------------------------------------------------------------- Test set: org.jboss.shrinkwrap.impl.nio.file.FileStoreTestCase ------------------------------------------------------------------------------- Tests run: 14, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.288 sec <<< FAILURE! usedSpace(org.jboss.shrinkwrap.impl.nio.file.FileStoreTestCase) Time elapsed: 0.033 sec <<< ERROR! java.lang.NullPointerException at org.jboss.shrinkwrap.impl.nio.file.FileStoreTestCase.usedSpace(FileStoreTestCase.java:87) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:81) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68) Under IDE works.
        Hide
        Jan Roman
        added a comment -
        Show
        Jan Roman
        added a comment - I posted stockoverflow question to better understand why this happens: http://stackoverflow.com/questions/14865831/junit-class-path-and-contextclassloader-inconsistency-or-my-misunderstanding
        Show
        Andrew Rubinger
        added a comment - Upstream: https://github.com/shrinkwrap/shrinkwrap/commit/7e1dd1eab26fecf70ee9d1d7e3061de2ddf18830

          People

          • Assignee:
            Michal Matloka
            Reporter:
            Jan Roman
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: