[ http://issues.apache.org/jira/browse/WSS-8?page=comments#action_12318883 ]
Guy Rixon commented on WSS-8: ----------------------------- This seems not to be a problem in the current code on the CVS head. > CryptoFactory fails to instantiate Merlin > ----------------------------------------- > > Key: WSS-8 > URL: http://issues.apache.org/jira/browse/WSS-8 > Project: WSS4J > Type: Bug > Environment: Sun JDK 1.5.0_b09 + Axis 1.2.1 + WSS4J 1.0.0 > Reporter: Guy Rixon > Assignee: Davanum Srinivas > > When using the WSS4J sender handler, Merline is not instantiated: > ------------- Standard Error ----------------- > 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:274) > at > org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:117) > at > org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:101) > at > org.apache.ws.axis.security.WSDoAllSender.loadSignatureCrypto(WSDoAllSender.java:632) > at > org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:281) > at > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:121) > at org.apache.axis.client.Call.invokeEngine(Call.java:2765) > at org.apache.axis.client.Call.invoke(Call.java:2748) > at org.apache.axis.client.Call.invoke(Call.java:2424) > at org.apache.axis.client.Call.invoke(Call.java:2347) > at org.apache.axis.client.Call.invoke(Call.java:1804) > at > org.astrogrid.security.sample.SamplePortSoapBindingStub.whoAmI(SamplePortSoapBindingStub.java:108) > at org.astrogrid.security.EndToEndTest.testAll(EndToEndTest.java:46) > 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:324) > at junit.framework.TestCase.runTest(TestCase.java:154) > at junit.framework.TestCase.runBare(TestCase.java:127) > 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 > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325) > at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536) > Caused by: java.lang.NullPointerException: name > at java.util.zip.ZipFile.getEntry(ZipFile.java:141) > at java.util.jar.JarFile.getEntry(JarFile.java:194) > at java.util.jar.JarFile.getJarEntry(JarFile.java:181) > at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:671) > at sun.misc.URLClassPath.getResource(URLClassPath.java:160) > at sun.misc.URLClassPath.getResource(URLClassPath.java:212) > at java.lang.ClassLoader.getBootstrapResource(ClassLoader.java:949) > at java.lang.ClassLoader.getResource(ClassLoader.java:810) > at java.lang.ClassLoader.getResource(ClassLoader.java:808) > at > org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:158) > at > org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(DiscoverResources.java:153) > at > org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(DiscoverResources.java:129) > at > org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverResources.java:116) > at > org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:99) > ... 33 more > java.lang.InstantiationException: > org.apache.ws.security.components.crypto.Merlin > at java.lang.Class.newInstance0(Class.java:293) > at java.lang.Class.newInstance(Class.java:261) > at > org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:125) > at > org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:101) > at > org.apache.ws.axis.security.WSDoAllSender.loadSignatureCrypto(WSDoAllSender.java:632) > at > org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:281) > at > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:121) > at org.apache.axis.client.Call.invokeEngine(Call.java:2765) > at org.apache.axis.client.Call.invoke(Call.java:2748) > at org.apache.axis.client.Call.invoke(Call.java:2424) > at org.apache.axis.client.Call.invoke(Call.java:2347) > at org.apache.axis.client.Call.invoke(Call.java:1804) > at > org.astrogrid.security.sample.SamplePortSoapBindingStub.whoAmI(SamplePortSoapBindingStub.java:108) > at org.astrogrid.security.EndToEndTest.testAll(EndToEndTest.java:46) > 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:324) > at junit.framework.TestCase.runTest(TestCase.java:154) > at junit.framework.TestCase.runBare(TestCase.java:127) > 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 > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325) > at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536) > ------------- ---------------- --------------- > Testcase: testAll(org.astrogrid.security.EndToEndTest): Caused an ERROR > ; nested exception is: > java.lang.RuntimeException: > org.apache.ws.security.components.crypto.Merlin cannot create instance > AxisFault > faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > faultSubcode: > faultString: java.lang.RuntimeException: > org.apache.ws.security.components.crypto.Merlin cannot create instance > faultActor: > faultNode: > faultDetail: > {http://xml.apache.org/axis/}stackTrace:java.lang.RuntimeException: > org.apache.ws.security.components.crypto.Merlin cannot create instance > at > org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:130) > at > org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:101) > at > org.apache.ws.axis.security.WSDoAllSender.loadSignatureCrypto(WSDoAllSender.java:632) > at > org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:281) > at > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:121) > at org.apache.axis.client.Call.invokeEngine(Call.java:2765) > at org.apache.axis.client.Call.invoke(Call.java:2748) > at org.apache.axis.client.Call.invoke(Call.java:2424) > at org.apache.axis.client.Call.invoke(Call.java:2347) > at org.apache.axis.client.Call.invoke(Call.java:1804) > at > org.astrogrid.security.sample.SamplePortSoapBindingStub.whoAmI(SamplePortSoapBindingStub.java:108) > at org.astrogrid.security.EndToEndTest.testAll(EndToEndTest.java:46) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > {http://xml.apache.org/axis/}hostname:capc57 > java.lang.RuntimeException: org.apache.ws.security.components.crypto.Merlin > cannot create instance > at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:216) > at org.apache.axis.client.Call.invokeEngine(Call.java:2765) > at org.apache.axis.client.Call.invoke(Call.java:2748) > at org.apache.axis.client.Call.invoke(Call.java:2424) > at org.apache.axis.client.Call.invoke(Call.java:2347) > at org.apache.axis.client.Call.invoke(Call.java:1804) > at > org.astrogrid.security.sample.SamplePortSoapBindingStub.whoAmI(SamplePortSoapBindingStub.java:108) > at org.astrogrid.security.EndToEndTest.testAll(EndToEndTest.java:46) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > Caused by: java.lang.RuntimeException: > org.apache.ws.security.components.crypto.Merlin cannot create instance > at > org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:130) > at > org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:101) > at > org.apache.ws.axis.security.WSDoAllSender.loadSignatureCrypto(WSDoAllSender.java:632) > at > org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:281) > at > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:121) > ... 21 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
