OK, I will see if I can add a test & fix for this tomorrow sometime...
- Dan
Jiang Ning wrote:
Hi Dan,
Here is a code first error in CXF dispatch example. You can Easy
reprouduce it in Provider systest.
Just remove the HWDOMSourceMessageProvider WebServiceProvider
annotation's detail infor , and run Server in the same package as Java
Application.
Index:
trunk/systests/src/test/java/org/apache/cxf/systest/provider/HWDOMSourceMessageProvider.java
===================================================================
---
trunk/systests/src/test/java/org/apache/cxf/systest/provider/HWDOMSourceMessageProvider.java
(revision 466936)
+++
trunk/systests/src/test/java/org/apache/cxf/systest/provider/HWDOMSourceMessageProvider.java
(working copy)
@@ -34,9 +34,7 @@
//The following wsdl file is used.
//wsdlLocation =
"/trunk/testutils/src/main/resources/wsdl/hello_world_rpc_lit.wsdl"
[EMAIL PROTECTED](portName = "SoapPortProviderRPCLit2", serviceName
= "SOAPServiceProviderRPCLit",
- targetNamespace =
"http://apache.org/hello_world_rpclit",
- wsdlLocation = "/wsdl/hello_world_rpc_lit.wsdl")
[EMAIL PROTECTED]()
@ServiceMode(value = Service.Mode.MESSAGE)
public class HWDOMSourceMessageProvider implements Provider<DOMSource> {
The Stack trace is below
java.lang.NullPointerException
at
org.apache.cxf.binding.soap.SoapDestinationFactory.getDestination(SoapDestinationFactory.java:68)
at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:49)
at
org.apache.cxf.service.factory.ServerFactoryBean.create(ServerFactoryBean.java:78)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:245)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:161)
at
org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:67)
at javax.xml.ws.Endpoint.publish(Endpoint.java:156)
at org.apache.cxf.systest.provider.Server.run(Server.java:35)
at
org.apache.cxf.testutil.common.AbstractTestServerBase.start(AbstractTestServerBase.java:61)
at org.apache.cxf.systest.provider.Server.main(Server.java:61)
server startup failed (not a log message)
I just looked into it , it because of SoapDestinationFactory create
without DestinationFactoryManager setting.
I thinks the old way Manager->Factory->Work can make sure the Factory
get the reference of Manager.
So can you get it fixed :).
Willem
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog