cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Zavizionov" <alexey.zavizio...@gmail.com>
Subject Re: UnknownHostException: my.service
Date Mon, 12 Jan 2009 17:07:59 GMT
After I have debugged I found that for second service I have incorrect url

result = "http://my.service:8082/WSRPService"	

HTTPConduit.setupURL(Message) line: 677	
HTTPConduit.prepare(Message) line: 473	
MessageSenderInterceptor.handleMessage(Message) line: 46	
PhaseInterceptorChain.doIntercept(Message) line: 220	
ClientImpl.invoke(BindingOperationInfo, Object[], Map<String,Object>,
Exchange) line: 296
ClientImpl.invoke(BindingOperationInfo, Object[], Map<String,Object>) line: 242	
JaxWsClientProxy(ClientProxy).invokeSync(Method, BindingOperationInfo,
Object[], Map<String,Object>) line: 73
JaxWsClientProxy.invoke(Object, Method, Object[]) line: 178	
$Proxy45.getServiceDescription(RegistrationContext, List, List,
UserContext, Holder, Holder, Holder, Holder, Holder, Holder, Holder,
Holder, Holder, Holder, Holder, Holder, Holder, Holder, Holder,
Holder) line: not available
WSRPV2ServiceDescriptionPortTypeAdapter.getServiceDescription(GetServiceDescription)
line: 90

I think it depends on the first service or deploying order. When I
exclude the first one I have correct url

result = "http://localhost:8080/wsrp/soap/services/WSRP_v2_ServiceDescription_Service"

That's a bit strange.


On Mon, Jan 12, 2009 at 6:44 PM, Alexey Zavizionov
<alexey.zavizionov@gmail.com> wrote:
> Yes, I have the string "my.service" within my wsdl file for generating
> source of client and server side.
> But, when I triggering the ?wsdl url for a service there is no "my.service".
>
>
>
>
> On Mon, Jan 12, 2009 at 6:35 PM, Andrew Clegg <andrew@nervechannel.com> wrote:
>> Try grepping your codebase for the string "my.service" and seeing
>> where it  appears?
>>
>> Sounds like you have this string somewhere in place of a real hostname.
>>
>> Andrew.
>>
>> 2009/1/12 Alexey Zavizionov <alexey.zavizionov@gmail.com>:
>>> Hello list,
>>>
>>> I have deployed two web services with CXF, and I have with one of them
>>> an exception
>>>
>>> Jan 12, 2009 1:14:54 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
>>> INFO: Interceptor has thrown exception, unwinding now
>>> 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:220)
>>>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296)
>>>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242)
>>>        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>>>        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178)
>>>        at $Proxy45.getServiceDescription(Unknown Source)
>>>        at org.exoplatform.services.wsrp2.consumer.adapters.ports.v2.WSRPV2ServiceDescriptionPortTypeAdapter.getServiceDescription(WSRPV2ServiceDescriptionPortTypeAdapter.java:82)
>>> Caused by: java.net.UnknownHostException: my.service
>>>        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
>>>        at java.net.Socket.connect(Socket.java:519)
>>>        at sun.net.NetworkClient.doConnect(NetworkClient.java:152)
>>>        at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
>>>        at sun.net.www.http.HttpClient.openServer(HttpClient.java:509)
>>>        at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
>>>        at sun.net.www.http.HttpClient.New(HttpClient.java:304)
>>>        at sun.net.www.http.HttpClient.New(HttpClient.java:316)
>>>        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:817)
>>>        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:769)
>>>        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:694)
>>>        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:861)
>>>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1834)
>>>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1792)
>>>        at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:42)
>>>        at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
>>>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1852)
>>>        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>>>        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:593)
>>>        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>>>        ... 31 more
>>>
>>> What it could be?
>>>
>>> Thanks,
>>> Alexey.
>>>
>>
>>
>>
>> --
>> New site launched: http://biotext.org.uk/
>>
>> I am retiring my old email addresses.
>> Please use firstname@nervechannel.com where firstname = andrew.
>>
>

Mime
View raw message