web service
2017-01-02 16:10
405 查看
按照http://blog.163.com/xs_fantasy/blog/static/101560871200911294035667/这个实例走到最后
从菜单中选择“Run->Run as->JUnit Test 进行测试
测试并不成功……
出现下面情况,求高手解答!
java.lang.ExceptionInInitializerError
at org.apache.axis2.description.AxisDescription.<init>(AxisDescription.java:72)
at org.apache.axis2.description.AxisService.<init>(AxisService.java:323)
at org.apache.axis2.description.AxisService.<init>(AxisService.java:394)
at org.example.www.sayhello.SayHelloStub.populateAxisService(SayHelloStub.java:47)
at org.example.www.sayhello.SayHelloStub.<init>(SayHelloStub.java:94)
at org.example.www.sayhello.SayHelloStub.<init>(SayHelloStub.java:83)
at org.example.www.sayhello.SayHelloStub.<init>(SayHelloStub.java:131)
at test.org.example.www.sayhello.SayHelloTest.testSayHello(SayHelloTest.java:24)
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 junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
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:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
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.NullPointerException
at org.apache.axiom.locator.DefaultOMMetaFactoryLocator.<init>(DefaultOMMetaFactoryLocator.java:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.apache.axiom.om.OMAbstractFactory.<clinit>(OMAbstractFactory.java:95)
... 26 more
从菜单中选择“Run->Run as->JUnit Test 进行测试
测试并不成功……
出现下面情况,求高手解答!
java.lang.ExceptionInInitializerError
at org.apache.axis2.description.AxisDescription.<init>(AxisDescription.java:72)
at org.apache.axis2.description.AxisService.<init>(AxisService.java:323)
at org.apache.axis2.description.AxisService.<init>(AxisService.java:394)
at org.example.www.sayhello.SayHelloStub.populateAxisService(SayHelloStub.java:47)
at org.example.www.sayhello.SayHelloStub.<init>(SayHelloStub.java:94)
at org.example.www.sayhello.SayHelloStub.<init>(SayHelloStub.java:83)
at org.example.www.sayhello.SayHelloStub.<init>(SayHelloStub.java:131)
at test.org.example.www.sayhello.SayHelloTest.testSayHello(SayHelloTest.java:24)
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 junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
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:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
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.NullPointerException
at org.apache.axiom.locator.DefaultOMMetaFactoryLocator.<init>(DefaultOMMetaFactoryLocator.java:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.apache.axiom.om.OMAbstractFactory.<clinit>(OMAbstractFactory.java:95)
... 26 more
相关文章推荐
- JAVA使用XFire开发和调用Web Service的方法
- 用myeclipse 插件开发xfire的web service,并建立服务客户端调用此web service进行测试 ----转
- Web Service概述
- 用MyEclipse10在5分钟之内开发一个基于JAX-WS的Web Service实例
- Apache CXF实战之五 压缩Web Service数据
- Web Service 监控磁盘文件
- 在IIS 中部署Silverlight及Web Service的问题与解决方法
- C#调用Web Service时的身份验证
- JQuery调用Web service实现AJAX原来如此?
- 添加Soap头来增加Web Service的安全性
- web service优缺点
- 3.利用CFX开发Web Service的服务器端:发布
- Web Service小结
- 在Joomla!的组件里创建web service - opening
- Web Service学习
- IBM python编写Web service教程
- WCF、Net remoting、Web service概念及区别
- 36wu中可用的web service服务与接口
- 定义良好的web service接口
- axis2创建web service(二)