cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Burns 2 <tim.bu...@retailsolutions.com>
Subject CXF cannot create webservice in JDK 1.5 with libraries but succeeds in 1.6
Date Fri, 11 Jul 2008 17:14:00 GMT

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.


Mime
View raw message