Re: JUnit test with local transport failing to find hibernate session

2007-10-11 Thread Willem Jiang
Hi Gilles, I just committed a quick fix for the issue of the CXF local transport direct dispatch model [CXF-1107]. You can try it by using the truck version or waiting few days for the next 2.0.3 snapshot. Willem. Willem Jiang wrote: Hi, I can reproduce the error, it definitely is a CXF

Re: JUnit test with local transport failing to find hibernate session

2007-10-10 Thread Gilles Durys
Willem Jiang wrote: Hi, Which CXF version are you using? Can you access the service with http transport? I just checked the code in the trunk XMLStreamWriter xtw = message.getContent(XMLStreamWriter.class); * xtw.setPrefix(soapVersion.getPrefix(), soapVersion.getNamespace()); I guess the

Re: JUnit test with local transport failing to find hibernate session

2007-10-10 Thread Willem Jiang
Hi, I can reproduce the error, it definitely is a CXF local transport bug. I will investigate it later today. Willem. Gilles Durys wrote: Willem Jiang wrote: Hi, Which CXF version are you using? Can you access the service with http transport? I just checked the code in the trunk

Re: JUnit test with local transport failing to find hibernate session

2007-09-21 Thread Gilles Durys
Jiang, Ning (Willem) wrote: Hi Gilles, Do you need to use the Client to invoke the service in your unit test? If so , you need to use the below code to trigger the LocalConduit direct dispatch. Thank you. It works But now I have to find why I get a NullPointerException in SoapOutInterceptor

Re: JUnit test with local transport failing to find hibernate session

2007-09-21 Thread Willem Jiang
Hi, Which CXF version are you using? Can you access the service with http transport? I just checked the code in the trunk XMLStreamWriter xtw = message.getContent(XMLStreamWriter.class); * xtw.setPrefix(soapVersion.getPrefix(), soapVersion.getNamespace()); I guess the NPE is came from xtw, but

Re: JUnit test with local transport failing to find hibernate session

2007-09-20 Thread Gilles Durys
Willem Jiang wrote: Hi I just went through the code and Xfire JIRA, it may relate to the different send and receive thread on the client side. You just need to add this pair (org.apache.cxf.transport.local.LocalConduit.directDispatch, true) in your request context, to let the LocalConduit

JUnit test with local transport failing to find hibernate session

2007-09-19 Thread Gilles Durys
Hi, I developed a web service in a cxf-spring-hibernat environment. It runs in Tomcat fine. I also wrote some Junit tests that use the same web service with a local transport. Within these tests, the DAOs fail to find an Hibernate session. Has anyone a lead on why this fail? Thanks, -- Gilles

RE: JUnit test with local transport failing to find hibernate session

2007-09-19 Thread Jiang, Ning (Willem)
. Willem. -Original Message- From: Gilles Durys [mailto:[EMAIL PROTECTED] Sent: Wed 9/19/2007 21:16 To: cxf-user@incubator.apache.org Subject: JUnit test with local transport failing to find hibernate session Hi, I developed a web service in a cxf-spring-hibernat environment. It runs

Re: JUnit test with local transport failing to find hibernate session

2007-09-19 Thread Willem Jiang
Hi I just went through the code and Xfire JIRA, it may relate to the different send and receive thread on the client side. You just need to add this pair (org.apache.cxf.transport.local.LocalConduit.directDispatch, true) in your request context, to let the LocalConduit not fork a new thread