cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: Java first and the new JMS config universe ...
Date Mon, 20 Sep 2010 00:00:15 GMT
That doesn't change the strange 'no endpoint' error. Do you have any
hints for how to track this down, or do you JMS hackers want to pick
up from here?

On Sun, Sep 19, 2010 at 7:32 PM, Daniel Kulp <dkulp@apache.org> wrote:
> On Sunday 19 September 2010 7:20:12 pm Benson Margulies wrote:
>> Or, perhaps you prefer to answer this question:
>>
>>  service.addPort(PORT_QNAME, SOAPBinding.SOAP11HTTP_BINDING,
>> JMS_ENDPOINT_URI);
>>
>> looks wrong. But what should I pass? What is the binding ID for SOAP/JMS?
>
> I THINK you could use either of the SOAP id's:
>
> http://schemas.xmlsoap.org/wsdl/soap/
> http://schemas.xmlsoap.org/wsdl/soap12/
>
> depending on what version you want.
>
>
> Dan
>
>
>
>>
>> On Sun, Sep 19, 2010 at 6:18 PM, Christian Schneider
>>
>> <chris@die-schneider.net> wrote:
>> >  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(Messag
>> >> eSenderInterceptor.java:48) at
>> >> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC
>> >> hain.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_TRA
>> >>>> NSPORTID);
>> >>>>
>> >>>>
>> >>>> svrFactory.setAddress("jms:queue:test.cxf.jmstransport.queue?timeToLiv
>> >>>> e=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>(Sing
>> >>>> leConnectionFactory.java:130) at
>> >>>>
>> >>>> org.apache.cxf.transport.jms.JMSConfiguration.getOrCreateWrappedConnec
>> >>>> tionFactory(JMSConfiguration.java:441) at
>> >>>>
>> >>>> org.apache.cxf.transport.jms.JMSConfiguration.ensureProperlyConfigured
>> >>>> (JMSConfiguration.java:104) at
>> >>>>
>> >>>> org.apache.cxf.transport.jms.JMSDestination.activate(JMSDestination.ja
>> >>>> va:111) at
>> >>>>
>> >>>> org.apache.cxf.transport.AbstractObservable.setMessageObserver(Abstrac
>> >>>> tObservable.java:48) at
>> >>>>
>> >>>> org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBind
>> >>>> ingFactory.java:181) at
>> >>>>
>> >>>> org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBinding
>> >>>> Factory.java:835) at
>> >>>> org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:127) at
>> >>>>
>> >>>> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.jav
>> >>>> a:186) at
>> >>>>
>> >>>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryB
>> >>>> ean.java:183) at demo.server.ServerJMS.main(ServerJMS.java:63)
>> >>>
>> >>> --
>> >>> ----
>> >>> http://www.liquid-reality.de
>> >
>> > --
>> > ----
>> > http://www.liquid-reality.de
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
>

Mime
View raw message