cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schneider <ch...@die-schneider.net>
Subject Re: Java first and the new JMS config universe ...
Date Sun, 19 Sep 2010 22:18:19 GMT
  Is that the full stack trace? Some times could not send message hides 
an exception deeper down the trace.
For example if there is no listener you get could not send message but 
deeper in the stack you see timeout waiting
for response or something like this.

Best Regards

Christian


Am 19.09.2010 22:59, schrieb Benson Margulies:
> I've got everything working except using the JAX-WS Client API to
> create a client.
>
> The code below blows up. Do I need a JMS binding ID?
>
> org.apache.cxf.interceptor.Fault: Could not send Message.
> 	at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:48)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:247)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
> 	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
> 	at $Proxy34.sayHi(Unknown Source)
> 	at demo.client.ClientJMS.main(ClientJMS.java:61)
>
> private static HelloWorld createClientJaxWs() {
>          Service service = Service.create(SERVICE_QNAME);
>          // Add a port to the Service
>          service.addPort(PORT_QNAME, SOAPBinding.SOAP11HTTP_BINDING,
> JMS_ENDPOINT_URI);
>          return service.getPort(HelloWorld.class);
>      }
>
>
>
> On Sun, Sep 19, 2010 at 3:48 PM, Christian Schneider
> <chris@die-schneider.net>  wrote:
>>   Hi Benson,
>> the important question is: Where do you set the connection factory. The code
>> snippet you provided does not set one.
>>
>> Regards
>>
>> Christian
>>
>>
>> Am 19.09.2010 21:11, schrieb Benson Margulies:
>>> I'm trying out the new JMS in the Java-first case, and I've hit my
>>> first pothole.
>>>
>>> I'm going to commit the sample in the state that gets this error.
>>>
>>>   Object implementor = new HelloWorldImpl();
>>>          JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
>>>          svrFactory.setServiceClass(HelloWorld.class);
>>>
>>> svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID);
>>>
>>> svrFactory.setAddress("jms:queue:test.cxf.jmstransport.queue?timeToLive=1000");
>>>          svrFactory.setServiceBean(implementor);
>>>          svrFactory.create();
>>>
>>>
>>> INFO: Setting the server's publish address to be
>>> jms:queue:test.cxf.jmstransport.queue?timeToLive=1000
>>> Exception in thread "main" java.lang.IllegalArgumentException: Target
>>> ConnectionFactory must not be null
>>>         at org.springframework.util.Assert.notNull(Assert.java:112)
>>>         at
>>> org.springframework.jms.connection.SingleConnectionFactory.<init>(SingleConnectionFactory.java:130)
>>>         at
>>> org.apache.cxf.transport.jms.JMSConfiguration.getOrCreateWrappedConnectionFactory(JMSConfiguration.java:441)
>>>         at
>>> org.apache.cxf.transport.jms.JMSConfiguration.ensureProperlyConfigured(JMSConfiguration.java:104)
>>>         at
>>> org.apache.cxf.transport.jms.JMSDestination.activate(JMSDestination.java:111)
>>>         at
>>> org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
>>>         at
>>> org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:181)
>>>         at
>>> org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:835)
>>>         at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:127)
>>>         at
>>> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:186)
>>>         at
>>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183)
>>>         at demo.server.ServerJMS.main(ServerJMS.java:63)
>>>
>> --
>> ----
>> http://www.liquid-reality.de
>>
>>

-- 
----
http://www.liquid-reality.de


Mime
View raw message