Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 11255 invoked from network); 20 Sep 2010 00:01:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Sep 2010 00:01:06 -0000 Received: (qmail 19896 invoked by uid 500); 20 Sep 2010 00:01:06 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 19767 invoked by uid 500); 20 Sep 2010 00:01:05 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 19759 invoked by uid 99); 20 Sep 2010 00:01:05 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Sep 2010 00:01:05 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bimargulies@gmail.com designates 209.85.214.41 as permitted sender) Received: from [209.85.214.41] (HELO mail-bw0-f41.google.com) (209.85.214.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Sep 2010 00:00:36 +0000 Received: by bwz10 with SMTP id 10so5479378bwz.0 for ; Sun, 19 Sep 2010 17:00:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Xp9/l4ZOrcA+1HpieNfEZWvya+PJIFeMnUEIALWNLU4=; b=gv1qSbdSa/tWygSh1SRPqfyERmnwj1NcHZlW02IdlaMGXUgdlVpZ+Em8e0EbHoVwf7 SWNzbJ3s5/UQB8VToASoT9jc94zOPXMqMamTlj0Q3g14NL+Ug9XJj1o+gTnohstUTYHb pDPOayow9e0HxzWbjj7jAeVCLJ8mUm4OifFas= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=l/0+7S6A7WgauUxLsih0HC6ZTWdZ1VdVCebg/EP/twEo6f4IiRrzkXrcoKQVRa1dqd M4RMHu9q+jnNLLyWHKXHnAAN5PmwkVwwww6xHt5qlGNIO0Lt97MuOSqQSG3qKiBhZQ6S oBS3e2+SZ63aC/EyQ3zi5BslHXRXtEv/5kCmk= MIME-Version: 1.0 Received: by 10.204.15.148 with SMTP id k20mr6225197bka.74.1284940815655; Sun, 19 Sep 2010 17:00:15 -0700 (PDT) Received: by 10.204.75.72 with HTTP; Sun, 19 Sep 2010 17:00:15 -0700 (PDT) In-Reply-To: <201009191932.59231.dkulp@apache.org> References: <4C968C2B.1070804@die-schneider.net> <201009191932.59231.dkulp@apache.org> Date: Sun, 19 Sep 2010 20:00:15 -0400 Message-ID: Subject: Re: Java first and the new JMS config universe ... From: Benson Margulies To: Daniel Kulp Cc: dev@cxf.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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 wrote: > On Sunday 19 September 2010 7:20:12 pm Benson Margulies wrote: >> Or, perhaps you prefer to answer this question: >> >> =C2=A0service.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 >> >> wrote: >> > =C2=A0Is 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. >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> >> org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(Mes= sag >> >> eSenderInterceptor.java:48) at >> >> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept= orC >> >> 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) >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> >> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:12= 4) >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at $Proxy34.sayHi(Unknown Source) >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at demo.client.ClientJMS.main(ClientJMS.ja= va:61) >> >> >> >> private static HelloWorld createClientJaxWs() { >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Service service =3D Service.create(SERVIC= E_QNAME); >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 // Add a port to the Service >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 service.addPort(PORT_QNAME, SOAPBinding.S= OAP11HTTP_BINDING, >> >> JMS_ENDPOINT_URI); >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 return service.getPort(HelloWorld.class); >> >> =C2=A0 =C2=A0 } >> >> >> >> >> >> >> >> On Sun, Sep 19, 2010 at 3:48 PM, Christian Schneider >> >> >> >> =C2=A0wrote: >> >>> =C2=A0Hi 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. >> >>>> >> >>>> =C2=A0Object implementor =3D new HelloWorldImpl(); >> >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 JaxWsServerFactoryBean svrFactory =3D n= ew >> >>>> JaxWsServerFactoryBean(); >> >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 svrFactory.setServiceClass(HelloWorld.c= lass); >> >>>> >> >>>> >> >>>> svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_= TRA >> >>>> NSPORTID); >> >>>> >> >>>> >> >>>> svrFactory.setAddress("jms:queue:test.cxf.jmstransport.queue?timeTo= Liv >> >>>> e=3D1000"); svrFactory.setServiceBean(implementor); >> >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 svrFactory.create(); >> >>>> >> >>>> >> >>>> INFO: Setting the server's publish address to be >> >>>> jms:queue:test.cxf.jmstransport.queue?timeToLive=3D1000 >> >>>> Exception in thread "main" java.lang.IllegalArgumentException: Targ= et >> >>>> ConnectionFactory must not be null >> >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.springframework.util.Assert.notNu= ll(Assert.java:112) >> >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> >>>> >> >>>> org.springframework.jms.connection.SingleConnectionFactory.(S= ing >> >>>> leConnectionFactory.java:130) at >> >>>> >> >>>> org.apache.cxf.transport.jms.JMSConfiguration.getOrCreateWrappedCon= nec >> >>>> tionFactory(JMSConfiguration.java:441) at >> >>>> >> >>>> org.apache.cxf.transport.jms.JMSConfiguration.ensureProperlyConfigu= red >> >>>> (JMSConfiguration.java:104) at >> >>>> >> >>>> org.apache.cxf.transport.jms.JMSDestination.activate(JMSDestination= .ja >> >>>> va:111) at >> >>>> >> >>>> org.apache.cxf.transport.AbstractObservable.setMessageObserver(Abst= rac >> >>>> tObservable.java:48) at >> >>>> >> >>>> org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractB= ind >> >>>> ingFactory.java:181) at >> >>>> >> >>>> org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBind= ing >> >>>> 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(JaxWsServerFacto= ryB >> >>>> 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 >