On Thu, Dec 4, 2008 at 12:55 PM, ant elder (JIRA) <[email protected]>wrote:
> zipcode-jaxws sample in binary distribution hangs > ------------------------------------------------- > > Key: TUSCANY-2710 > URL: https://issues.apache.org/jira/browse/TUSCANY-2710 > Project: Tuscany > Issue Type: Bug > Affects Versions: Java-SCA-1.4 > Reporter: ant elder > Fix For: Java-SCA-1.4 > > > Trying to run the zipcode-jaxws sample with ant or mvn in the 1.4 binary > distribution hangs trying to get the wsdl at > http://www.webservicex.net/uszip.asmx?wsdl > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > > Yep, I'm seeing that intermittently. The URL is sometimes not active. However it was active just now and when run I get a different error from the sample; run: [java] Please wait... [java] 04-Dec-2008 13:57:25 org.apache.tuscany.sca.node.impl.NodeImpl <init > [java] INFO: Creating node: ZipCode.composite [java] 04-Dec-2008 13:57:25 org.apache.tuscany.sca.node.impl.NodeImpl confi gureNode [java] INFO: Loading contribution: file:/C:/simon/tuscany/release/sca-r1.4- rc0/tuscany-sca-1.4/samples/zipcode-jaxws/target/sample-zipcode-jaxws.jar [java] 04-Dec-2008 13:57:26 org.apache.tuscany.sca.node.impl.NodeImpl confi gureNode [java] INFO: Loading composite: jar:file:/C:/simon/tuscany/release/sca-r1.4 -rc0/tuscany-sca-1.4/samples/zipcode-jaxws/target/sample-zipcode-jaxws.jar!/ZipC ode.composite [java] 04-Dec-2008 13:57:27 org.apache.tuscany.sca.node.impl.NodeImpl start [java] INFO: Starting node: ZipCode.composite [java] Exception in thread "main" org.osoa.sca.ServiceRuntimeException: org .apache.axis2.AxisFault: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Client found response content type of 'text/html; charset=iso-8859-1', but expected 'text/xml '. [java] [java] at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadRespo nse(SoapClientMessage message, WebResponse response, Stream responseStream, Bool ean asyncCall) [java] at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(St ring methodName, Object[] parameters) [java] at WeatherService.www.nws.noaa.gov.ndfdXML.NDFDgen(Decimal latitu de, Decimal longitude, productType product, DateTime startTime, DateTime endTime , weatherParametersType weatherParameters) [java] at WeatherService.WeatherForecast.getData(Double latitude, Double longtitude) [java] at WeatherService.WeatherForecast.GetWeatherByZipCode(String ZipC ode) [java] --- End of inner exception stack trace --- [java] at org.apache.tuscany.sca.core.databinding.wire.DataTransformati onInterceptor.invoke(DataTransformationInterceptor.java:136) [java] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.i nvoke(JDKInvocationHandler.java:287) [java] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.i nvoke(JDKInvocationHandler.java:154) [java] at $Proxy36.getWeatherByZipCode(Unknown Source) [java] at zipcode.ZipCodeServiceImpl.lookup(ZipCodeServiceImpl.java:59) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tuscany.sca.implementation.java.invocation.JavaImp lementationInvoker.invoke(JavaImplementationInvoker.java:132) [java] at org.apache.tuscany.sca.core.databinding.wire.PassByValueInter ceptor.invoke(PassByValueInterceptor.java:107) [java] at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.inv oke(SCABindingInvoker.java:61) [java] at org.apache.tuscany.sca.core.databinding.wire.PassByValueInter ceptor.invoke(PassByValueInterceptor.java:107) [java] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.i nvoke(JDKInvocationHandler.java:287) [java] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.i nvoke(JDKInvocationHandler.java:154) [java] at $Proxy35.lookup(Unknown Source) [java] at zipcode.ZipCodeClient.main(ZipCodeClient.java:35) [java] Caused by: org.apache.axis2.AxisFault: System.Web.Services.Protocols .SoapException: Server was unable to process request. ---> System.InvalidOperati onException: Client found response content type of 'text/html; charset=iso-8859- 1', but expected 'text/xml'. [java] [java] at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadRespo nse(SoapClientMessage message, WebResponse response, Stream responseStream, Bool ean asyncCall) [java] at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(St ring methodName, Object[] parameters) [java] at WeatherService.www.nws.noaa.gov.ndfdXML.NDFDgen(Decimal latitu de, Decimal longitude, productType product, DateTime startTime, DateTime endTime , weatherParametersType weatherParameters) [java] at WeatherService.WeatherForecast.getData(Double latitude, Double longtitude) [java] at WeatherService.WeatherForecast.GetWeatherByZipCode(String ZipC ode) [java] --- End of inner exception stack trace --- [java] at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext (Utils.java:512) [java] at org.apache.axis2.description.OutInAxisOperationClient.handleR esponse(OutInAxisOperation.java:370) [java] at org.apache.axis2.description.OutInAxisOperationClient.send(Ou tInAxisOperation.java:416) [java] at org.apache.axis2.description.OutInAxisOperationClient.execute Impl(OutInAxisOperation.java:228) [java] at org.apache.axis2.client.OperationClient.execute(OperationClie nt.java:163) [java] at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker$1 .run(Axis2BindingInvoker.java:170) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.i nvokeTarget(Axis2BindingInvoker.java:168) [java] at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.i nvoke(Axis2BindingInvoker.java:122) [java] at org.apache.tuscany.sca.core.databinding.wire.DataTransformati onInterceptor.invoke(DataTransformationInterceptor.java:78) [java] ... 16 more [java] Java Result: 1 Smon
