magja/magja — Issue #15: 15 - java.lang.ExceptionInInitializerError on run unit tests 
Author: ceefour
Created: 2011-11-02 11:32:33+00:00
State: open

Each Unit tests throw following exception, would you please tell me how can
I solve it?

java.lang.ExceptionInInitializerError
at
com.google.code.magja.soap.MagentoSoapClient.getInstance(MagentoSoapClient.java:66)
at
com.google.code.magja.service.RemoteServiceFactory.<init>(RemoteServiceFactory.java:42)
at
com.google.code.magja.service.product.ProductRemoteServiceTest.setUp(ProductRemoteServiceTest.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.internal.runners.MethodRoadie.runBefores(MethodRoadie.java:122)
at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:86)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.RuntimeException: org.apache.axis2.AxisFault:
SOAP-ERROR: Parsing Schema: can't import schema from
'http://schemas.xmlsoap.org/soap/encoding/'
at
com.google.code.magja.soap.MagentoSoapClient.<init>(MagentoSoapClient.java:51)
at
com.google.code.magja.soap.MagentoSoapClient.<init>(MagentoSoapClient.java:43)
at
com.google.code.magja.soap.MagentoSoapClient$MagentoSoapClientHolder.<clinit>(MagentoSoapClient.java:61)
... 23 more
Caused by: org.apache.axis2.AxisFault: SOAP-ERROR: Parsing Schema: can't
import schema from 'http://schemas.xmlsoap.org/soap/encoding/'
at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:435)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:540)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:521)
at
com.google.code.magja.soap.MagentoSoapClient.login(MagentoSoapClient.java:134)
at
com.google.code.magja.soap.MagentoSoapClient.<init>(MagentoSoapClient.java:48)
... 25 more

Original link: http://code.google.com/p/magja/issues/detail?id=15