Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.6
    • Fix Version/s: None
    • Component/s: WSS4J Core
    • Labels:
      None
    • Environment:

      Description

      Many tests failed with the following messages (full error log is attached):

      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building WSS4J 1.6.6-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] >>> maven-pmd-plugin:2.5:check (validate) @ wss4j >>>
      [INFO]
      [INFO] — maven-pmd-plugin:2.5:pmd (pmd) @ wss4j —
      [INFO]
      [INFO] <<< maven-pmd-plugin:2.5:check (validate) @ wss4j <<<
      [INFO]
      [INFO] — maven-pmd-plugin:2.5:check (validate) @ wss4j —
      [INFO]
      [INFO]
      [INFO] — maven-remote-resources-plugin:1.0:process (default) @ wss4j —
      [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
      [INFO] Setting property: velocimacro.messages.on => 'false'.
      [INFO] Setting property: resource.loader => 'classpath'.
      [INFO] Setting property: resource.manager.logwhenfound => 'false'.
      [INFO]
      [INFO] — maven-resources-plugin:2.5:resources (default-resources) @ wss4j —
      [debug] execute contextualize
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 0 resource
      [INFO] Copying 4 resources
      [INFO] Copying 3 resources
      [INFO]
      [INFO] — maven-compiler-plugin:2.3.2:compile (default-compile) @ wss4j —
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] — maven-resources-plugin:2.5:testResources (default-testResources) @ wss4j —
      [debug] execute contextualize
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 0 resource
      [INFO] Copying 68 resources
      [INFO] Copying 3 resources
      [INFO]
      [INFO] — maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ wss4j —
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] — maven-surefire-plugin:2.6:test (default-test) @ wss4j —
      [INFO] Surefire report directory: d:\javapack\wss4j\target\surefire-reports

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.apache.ws.security.message.ReplayTest
      Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.28 sec <<< FAILURE!
      testReplayedTimestampBelowSignature(org.apache.ws.security.message.ReplayTest) Time elapsed: 0.41 sec <<< ERROR!
      org.apache.ws.security.WSSecurityException: class org.apache.ws.security.components.crypto.Merlin cannot create instance
      at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:224)
      at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:117)
      at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:169)
      at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:161)
      at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:60)
      at org.apache.ws.security.message.ReplayTest.<init>(ReplayTest.java:55)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:209)
      at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:258)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:255)
      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:59)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
      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:350)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219)
      ... 32 more
      Caused by: org.apache.ws.security.components.crypto.CredentialException: Failed to load credentials.
      at org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:371)
      at org.apache.ws.security.components.crypto.Merlin.loadProperties(Merlin.java:190)
      at org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:140)
      ... 37 more
      Caused by: java.io.IOException: exception unwrapping private key - java.security.InvalidKeyException: Illegal key size
      at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.unwrapKey(Unknown Source)
      at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineLoad(Unknown Source)
      at java.security.KeyStore.load(KeyStore.java:1185)
      at org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:365)
      ... 39 more

      testReplayedTimestampNoExpires(org.apache.ws.security.message.ReplayTest) Time elapsed: 0 sec <<< ERROR!
      org.apache.ws.security.WSSecurityException: class org.apache.ws.security.components.crypto.Merlin cannot create instance
      at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:224)
      at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:117)
      at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:169)
      at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:161)
      at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:60)
      at org.apache.ws.security.message.ReplayTest.<init>(ReplayTest.java:55)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:209)
      at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:258)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:255)
      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:59)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
      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:350)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219)
      ... 32 more
      Caused by: org.apache.ws.security.components.crypto.CredentialException: Failed to load credentials.
      at org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:371)
      at org.apache.ws.security.components.crypto.Merlin.loadProperties(Merlin.java:190)
      at org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:140)
      ... 37 more
      Caused by: java.io.IOException: exception unwrapping private key - java.security.InvalidKeyException: Illegal key size
      at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.unwrapKey(Unknown Source)
      at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineLoad(Unknown Source)
      at java.security.KeyStore.load(KeyStore.java:1185)
      at org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:365)
      ... 39 more

      1. errors.zip
        12 kB
        Alexey Solodovnikov

        Activity

        Alexey Solodovnikov created issue -
        Alexey Solodovnikov made changes -
        Field Original Value New Value
        Attachment errors.zip [ 12520190 ]
        Alexey Solodovnikov made changes -
        Description Many tests failed with the following messages:


        [INFO] Scanning for projects...
        [INFO]
        [INFO] ------------------------------------------------------------------------
        [INFO] Building WSS4J 1.6.6-SNAPSHOT
        [INFO] ------------------------------------------------------------------------
        [INFO]
        [INFO] >>> maven-pmd-plugin:2.5:check (validate) @ wss4j >>>
        [INFO]
        [INFO] --- maven-pmd-plugin:2.5:pmd (pmd) @ wss4j ---
        [INFO]
        [INFO] <<< maven-pmd-plugin:2.5:check (validate) @ wss4j <<<
        [INFO]
        [INFO] --- maven-pmd-plugin:2.5:check (validate) @ wss4j ---
        [INFO]
        [INFO]
        [INFO] --- maven-remote-resources-plugin:1.0:process (default) @ wss4j ---
        [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
        [INFO] Setting property: velocimacro.messages.on => 'false'.
        [INFO] Setting property: resource.loader => 'classpath'.
        [INFO] Setting property: resource.manager.logwhenfound => 'false'.
        [INFO]
        [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ wss4j ---
        [debug] execute contextualize
        [INFO] Using 'UTF-8' encoding to copy filtered resources.
        [INFO] Copying 0 resource
        [INFO] Copying 4 resources
        [INFO] Copying 3 resources
        [INFO]
        [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ wss4j ---
        [INFO] Nothing to compile - all classes are up to date
        [INFO]
        [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ wss4j ---
        [debug] execute contextualize
        [INFO] Using 'UTF-8' encoding to copy filtered resources.
        [INFO] Copying 0 resource
        [INFO] Copying 68 resources
        [INFO] Copying 3 resources
        [INFO]
        [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ wss4j ---
        [INFO] Nothing to compile - all classes are up to date
        [INFO]
        [INFO] --- maven-surefire-plugin:2.6:test (default-test) @ wss4j ---
        [INFO] Surefire report directory: d:\javapack\wss4j\target\surefire-reports

        -------------------------------------------------------
         T E S T S
        -------------------------------------------------------
        Running org.apache.ws.security.message.ReplayTest
        Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.28 sec <<< FAILURE!
        testReplayedTimestampBelowSignature(org.apache.ws.security.message.ReplayTest) Time elapsed: 0.41 sec <<< ERROR!
        org.apache.ws.security.WSSecurityException: class org.apache.ws.security.components.crypto.Merlin cannot create instance
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:224)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:117)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:169)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:161)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:60)
        at org.apache.ws.security.message.ReplayTest.<init>(ReplayTest.java:55)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:209)
        at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:258)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:255)
        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:59)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
        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:350)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
        Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219)
        ... 32 more
        Caused by: org.apache.ws.security.components.crypto.CredentialException: Failed to load credentials.
        at org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:371)
        at org.apache.ws.security.components.crypto.Merlin.loadProperties(Merlin.java:190)
        at org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:140)
        ... 37 more
        Caused by: java.io.IOException: exception unwrapping private key - java.security.InvalidKeyException: Illegal key size
        at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.unwrapKey(Unknown Source)
        at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineLoad(Unknown Source)
        at java.security.KeyStore.load(KeyStore.java:1185)
        at org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:365)
        ... 39 more

        testReplayedTimestampNoExpires(org.apache.ws.security.message.ReplayTest) Time elapsed: 0 sec <<< ERROR!
        org.apache.ws.security.WSSecurityException: class org.apache.ws.security.components.crypto.Merlin cannot create instance
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:224)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:117)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:169)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:161)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:60)
        at org.apache.ws.security.message.ReplayTest.<init>(ReplayTest.java:55)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:209)
        at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:258)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:255)
        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:59)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
        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:350)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
        Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219)
        ... 32 more
        Caused by: org.apache.ws.security.components.crypto.CredentialException: Failed to load credentials.
        at org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:371)
        at org.apache.ws.security.components.crypto.Merlin.loadProperties(Merlin.java:190)
        at org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:140)
        ... 37 more
        Caused by: java.io.IOException: exception unwrapping private key - java.security.InvalidKeyException: Illegal key size
        at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.unwrapKey(Unknown Source)
        at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineLoad(Unknown Source)
        at java.security.KeyStore.load(KeyStore.java:1185)
        at org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:365)
        ... 39 more
        Many tests failed with the following messages (full error log is attached):


        [INFO] Scanning for projects...
        [INFO]
        [INFO] ------------------------------------------------------------------------
        [INFO] Building WSS4J 1.6.6-SNAPSHOT
        [INFO] ------------------------------------------------------------------------
        [INFO]
        [INFO] >>> maven-pmd-plugin:2.5:check (validate) @ wss4j >>>
        [INFO]
        [INFO] --- maven-pmd-plugin:2.5:pmd (pmd) @ wss4j ---
        [INFO]
        [INFO] <<< maven-pmd-plugin:2.5:check (validate) @ wss4j <<<
        [INFO]
        [INFO] --- maven-pmd-plugin:2.5:check (validate) @ wss4j ---
        [INFO]
        [INFO]
        [INFO] --- maven-remote-resources-plugin:1.0:process (default) @ wss4j ---
        [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
        [INFO] Setting property: velocimacro.messages.on => 'false'.
        [INFO] Setting property: resource.loader => 'classpath'.
        [INFO] Setting property: resource.manager.logwhenfound => 'false'.
        [INFO]
        [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ wss4j ---
        [debug] execute contextualize
        [INFO] Using 'UTF-8' encoding to copy filtered resources.
        [INFO] Copying 0 resource
        [INFO] Copying 4 resources
        [INFO] Copying 3 resources
        [INFO]
        [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ wss4j ---
        [INFO] Nothing to compile - all classes are up to date
        [INFO]
        [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ wss4j ---
        [debug] execute contextualize
        [INFO] Using 'UTF-8' encoding to copy filtered resources.
        [INFO] Copying 0 resource
        [INFO] Copying 68 resources
        [INFO] Copying 3 resources
        [INFO]
        [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ wss4j ---
        [INFO] Nothing to compile - all classes are up to date
        [INFO]
        [INFO] --- maven-surefire-plugin:2.6:test (default-test) @ wss4j ---
        [INFO] Surefire report directory: d:\javapack\wss4j\target\surefire-reports

        -------------------------------------------------------
         T E S T S
        -------------------------------------------------------
        Running org.apache.ws.security.message.ReplayTest
        Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.28 sec <<< FAILURE!
        testReplayedTimestampBelowSignature(org.apache.ws.security.message.ReplayTest) Time elapsed: 0.41 sec <<< ERROR!
        org.apache.ws.security.WSSecurityException: class org.apache.ws.security.components.crypto.Merlin cannot create instance
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:224)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:117)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:169)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:161)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:60)
        at org.apache.ws.security.message.ReplayTest.<init>(ReplayTest.java:55)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:209)
        at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:258)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:255)
        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:59)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
        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:350)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
        Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219)
        ... 32 more
        Caused by: org.apache.ws.security.components.crypto.CredentialException: Failed to load credentials.
        at org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:371)
        at org.apache.ws.security.components.crypto.Merlin.loadProperties(Merlin.java:190)
        at org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:140)
        ... 37 more
        Caused by: java.io.IOException: exception unwrapping private key - java.security.InvalidKeyException: Illegal key size
        at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.unwrapKey(Unknown Source)
        at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineLoad(Unknown Source)
        at java.security.KeyStore.load(KeyStore.java:1185)
        at org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:365)
        ... 39 more

        testReplayedTimestampNoExpires(org.apache.ws.security.message.ReplayTest) Time elapsed: 0 sec <<< ERROR!
        org.apache.ws.security.WSSecurityException: class org.apache.ws.security.components.crypto.Merlin cannot create instance
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:224)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:117)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:169)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:161)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:60)
        at org.apache.ws.security.message.ReplayTest.<init>(ReplayTest.java:55)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:209)
        at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:258)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:255)
        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:59)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
        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:350)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
        Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219)
        ... 32 more
        Caused by: org.apache.ws.security.components.crypto.CredentialException: Failed to load credentials.
        at org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:371)
        at org.apache.ws.security.components.crypto.Merlin.loadProperties(Merlin.java:190)
        at org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:140)
        ... 37 more
        Caused by: java.io.IOException: exception unwrapping private key - java.security.InvalidKeyException: Illegal key size
        at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.unwrapKey(Unknown Source)
        at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineLoad(Unknown Source)
        at java.security.KeyStore.load(KeyStore.java:1185)
        at org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:365)
        ... 39 more
        Alexey Solodovnikov made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Colm O hEigeartaigh
            Reporter:
            Alexey Solodovnikov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development