You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Tim Burns 2 <ti...@retailsolutions.com> on 2008/07/11 19:14:00 UTC
CXF cannot create webservice in JDK 1.5 with libraries but succeeds
in 1.6
If I create a CXF project and compile the project under Java 1.6, I am able
to connect to SQL server reporting Services with no problems.
public static ReportingService2005Soap getService() throws
MalformedURLException {
//return new ReportingService2005().getReportingService2005Soap();
return new ReportingService2005(new
URL("http://joey:8083/ReportServer_SS08/ReportService2005.asmx?wsdl")).getReportingService2005Soap();
}
However, if I use the same project but under 1.5 as in the attached
project, I get the following message:
javax.xml.ws.soap.SOAPFaultException: Could not send Message.
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:218)
at $Proxy39.listChildren(Unknown Source)
at com.rsi.reporting.ssrs2008.SsrsTest.testOpenSSRS(SsrsTest.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.apache.cxf.interceptor.Fault: Could not send Message.
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:177)
... 18 more
Caused by: java.net.HttpRetryException: cannot retry due to server
authentication, in streaming mode
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1896)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1824)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:583)
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
... 23 more
I'm sure the web service is correct but it looks like there is some bug
somewhere in the 1.5 xml libraries to support the binding. Has anyone else
seen this problems?
Thanks,
Tim
--
View this message in context: http://www.nabble.com/CXF-cannot-create-webservice-in-JDK-1.5-with-libraries-but-succeeds-in-1.6-tp18408520p18408520.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: CXF cannot create webservice in JDK 1.5 with libraries but
succeeds in 1.6
Posted by Tim Burns 2 <ti...@retailsolutions.com>.
here is the other file
http://www.nabble.com/file/p18495715/SSRSjdk1_6_07_success.zip
SSRSjdk1_6_07_success.zip
--
View this message in context: http://www.nabble.com/CXF-cannot-create-webservice-in-JDK-1.5-with-libraries-but-succeeds-in-1.6-tp18408520p18495715.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: CXF cannot create webservice in JDK 1.5 with libraries but
succeeds in 1.6
Posted by Tim Burns 2 <ti...@retailsolutions.com>.
dkulp wrote:
>
>
> Can you use wireshark or something to capture the request/response?
>
> Looking at the stack trace, I see:
>
> Caused by: java.net.HttpRetryException: cannot retry due to server
> authentication, in streaming mode
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
> Source)
> at java.net.HttpURLConnection.getResponseCode(Unknown Source)
>
>
> Which suggests to me that some sort of authentication token isn't
> being sent in.
>
> Dan
>
>
Hi Dan, I ran the traces and I see something suspicious. For the success,
the following executes:
In frame 149 of the attached success jdk 1.6_07 file.
POST /ReportServer_SS08/ReportService2005.asmx H... and then a response
comes back as
0000 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 <?xml version="1
0010 2e 30 22 20 3f 3e 3c 53 3a 45 6e 76 65 6c 6f 70 .0" ?><S:Envelop
0020 65 20 78 6d 6c 6e 73 3a 53 3d 22 68 74 74 70 3a e xmlns:S="http:...
all good stuff.
In frame 136 of the jdk 1.5 failure file, the same post gets this response:
HTTP/1.1 401 Unauthorized..Content-Length: 0..WWW-Authenticate:
Negotiate..WWW-Authenticate: NTL
M..Date: Wed, 16 Jul 2008 18:53: 23 GMT..Connection: close....
I'll attach the respective protocol traces.
http://www.nabble.com/file/p18495699/SSRSjdk1_5_failure.zip
SSRSjdk1_5_failure.zip
--
View this message in context: http://www.nabble.com/CXF-cannot-create-webservice-in-JDK-1.5-with-libraries-but-succeeds-in-1.6-tp18408520p18495699.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: CXF cannot create webservice in JDK 1.5 with libraries but succeeds in 1.6
Posted by Daniel Kulp <dk...@apache.org>.
Can you use wireshark or something to capture the request/response?
Looking at the stack trace, I see:
Caused by: java.net.HttpRetryException: cannot retry due to server
authentication, in streaming mode
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
Which suggests to me that some sort of authentication token isn't
being sent in.
Dan
On Jul 16, 2008, at 1:10 AM, Tim Burns 2 wrote:
>
>
>
> dkulp wrote:
>>
>>
>> This seems to be an older service. Can you try turning off
>> chunking?
>>
>> Dan
>>
>>
>
> Hi Dan, I tried turning off chucking to my web service:
>
> http://joey:8082/ReportServer_SS08/ReportService2005.asmx?wsdl
>
> by creating a cxf.xml file in the src directory. I experiemented
> with a few
> permutations, with no success my file.
>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:http-conf="http://cxf.apache.org/transports/http/configuration
> "
>
> xsi:schemaLocation="http://cxf.apache.org/transports/http/
> configuration
> http://cxf.apache.org/schemas/configuration/http-conf.xsd
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-
> beans.xsd">
>
> <http-conf:conduit
>
> name="{http://joey:8082/ReportServer_SS08/
> ReportService2005}ReportService2005.http-conduit">
> <http-conf:client AllowChunking="false"/>
> </http-conf:conduit>
> </beans>
>
> There must be some default in the JAXB or other negotiation
> libraries that
> was changed between Java 1.6_02 and Java 1.6.0_07. Because that has a
> similiar problem with negotiation. Is there a good list that deals
> with
> JAXB issues?
> Thanks again,
> Tim
> --
> View this message in context: http://www.nabble.com/CXF-cannot-create-webservice-in-JDK-1.5-with-libraries-but-succeeds-in-1.6-tp18408520p18480353.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog
Re: CXF cannot create webservice in JDK 1.5 with libraries but
succeeds in 1.6
Posted by Tim Burns 2 <ti...@retailsolutions.com>.
dkulp wrote:
>
>
> This seems to be an older service. Can you try turning off chunking?
>
> Dan
>
>
Hi Dan, I tried turning off chucking to my web service:
http://joey:8082/ReportServer_SS08/ReportService2005.asmx?wsdl
by creating a cxf.xml file in the src directory. I experiemented with a few
permutations, with no success my file.
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<http-conf:conduit
name="{http://joey:8082/ReportServer_SS08/ReportService2005}ReportService2005.http-conduit">
<http-conf:client AllowChunking="false"/>
</http-conf:conduit>
</beans>
There must be some default in the JAXB or other negotiation libraries that
was changed between Java 1.6_02 and Java 1.6.0_07. Because that has a
similiar problem with negotiation. Is there a good list that deals with
JAXB issues?
Thanks again,
Tim
--
View this message in context: http://www.nabble.com/CXF-cannot-create-webservice-in-JDK-1.5-with-libraries-but-succeeds-in-1.6-tp18408520p18480353.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: CXF cannot create webservice in JDK 1.5 with libraries but succeeds in 1.6
Posted by Daniel Kulp <dk...@apache.org>.
This seems to be an older service. Can you try turning off chunking?
Dan
On Jul 11, 2008, at 1:14 PM, Tim Burns 2 wrote:
>
> If I create a CXF project and compile the project under Java 1.6, I
> am able
> to connect to SQL server reporting Services with no problems.
>
> public static ReportingService2005Soap getService() throws
> MalformedURLException {
> //return new ReportingService2005().getReportingService2005Soap();
> return new ReportingService2005(new
> URL("http://joey:8083/ReportServer_SS08/ReportService2005.asmx?
> wsdl")).getReportingService2005Soap();
> }
>
>
> However, if I use the same project but under 1.5 as in the attached
> project, I get the following message:
>
> javax.xml.ws.soap.SOAPFaultException: Could not send Message.
> at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:
> 218)
> at $Proxy39.listChildren(Unknown Source)
> at com.rsi.reporting.ssrs2008.SsrsTest.testOpenSSRS(SsrsTest.java:23)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at
> org
> .eclipse
> .jdt
> .internal
> .junit
> .runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at
> org
> .eclipse
> .jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at
> org
> .eclipse
> .jdt
> .internal
> .junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at
> org
> .eclipse
> .jdt
> .internal
> .junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at
> org
> .eclipse
> .jdt
> .internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at
> org
> .eclipse
> .jdt
> .internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
> 196)
> Caused by: org.apache.cxf.interceptor.Fault: Could not send Message.
> at
> org.apache.cxf.interceptor.MessageSenderInterceptor
> $
> MessageSenderEndingInterceptor
> .handleMessage(MessageSenderInterceptor.java:64)
> at
> org
> .apache
> .cxf
> .phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:
> 221)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
> at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:
> 73)
> at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:
> 177)
> ... 18 more
> Caused by: java.net.HttpRetryException: cannot retry due to server
> authentication, in streaming mode
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
> Source)
> at java.net.HttpURLConnection.getResponseCode(Unknown Source)
> at
> org.apache.cxf.transport.http.HTTPConduit
> $WrappedOutputStream.handleResponse(HTTPConduit.java:1896)
> at
> org.apache.cxf.transport.http.HTTPConduit
> $WrappedOutputStream.close(HTTPConduit.java:1824)
> at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:
> 66)
> at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:
> 583)
> at
> org.apache.cxf.interceptor.MessageSenderInterceptor
> $
> MessageSenderEndingInterceptor
> .handleMessage(MessageSenderInterceptor.java:62)
> ... 23 more
>
> I'm sure the web service is correct but it looks like there is some
> bug
> somewhere in the 1.5 xml libraries to support the binding. Has
> anyone else
> seen this problems?
>
> Thanks,
> Tim
> --
> View this message in context: http://www.nabble.com/CXF-cannot-create-webservice-in-JDK-1.5-with-libraries-but-succeeds-in-1.6-tp18408520p18408520.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog