[ http://jira.codehaus.org/browse/XFIRE-305?page=comments#action_62664 ]
Dan Diephouse commented on XFIRE-305: ------------------------------------- Hiya, sorry this totally fell off my radar here. The schemaType relates to whatever schema element the wsdl is pointing to. Which is probably the header in this case that is causing the problem. Can you either attach the wsdl or send it to me privately? I will get it fixed. > provide more meaningful exception messages > ------------------------------------------ > > Key: XFIRE-305 > URL: http://jira.codehaus.org/browse/XFIRE-305 > Project: XFire > Type: Bug > Versions: 1.0 > Reporter: Andreas Schildbach > Assignee: Dan Diephouse > Fix For: 1.1 > Attachments: checkAddress.wsdl > > > In a current project with client stubs generated from a WSDL, I get the > exception below when actually invoking a service method on the service proxy. > It is very much possible that I do not feed the correct values, however the > exception gives no clue what is wrong. I propose to give descriptive error > messages whereever possible. Exceptions like "Fault" or > "NullPointerException" are just the programmers equivalent to the famous "An > unknown error occured [ok] [cancel]". > Anyway, here is the exception: (comments on the concrete case are also very > welcome :-) > org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested > exception is org.codehaus.xfire.fault.XFireFault: Fault > org.codehaus.xfire.fault.XFireFault: Fault > at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89) > at org.codehaus.xfire.client.Client.invoke(Client.java:267) > at > org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) > at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) > at $Proxy13.checkAddress(Unknown Source) > at > com.o2.portal.services.soap.endpoint.connector.xfire.CheckAddressConnector.checkAddress(CheckAddressConnector.java:105) > at > com.o2.portal.services.soap.endpoint.connector.axis.CheckAddressConnectorTest.testCheckAddress(CheckAddressConnectorTest.java:58) > 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:585) > 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.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > Caused by: java.lang.NullPointerException > at > org.codehaus.xfire.service.binding.AbstractBinding.writeParameter(AbstractBinding.java:217) > at > org.codehaus.xfire.service.binding.ServiceInvocationHandler.writeHeaders(ServiceInvocationHandler.java:227) > at org.codehaus.xfire.client.Client.invoke(Client.java:261) > ... 20 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
