Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 57B0518363 for ; Fri, 30 Oct 2015 14:30:31 +0000 (UTC) Received: (qmail 7458 invoked by uid 500); 30 Oct 2015 14:30:28 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 7320 invoked by uid 500); 30 Oct 2015 14:30:28 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 7252 invoked by uid 99); 30 Oct 2015 14:30:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2015 14:30:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E56D72C1F57 for ; Fri, 30 Oct 2015 14:30:27 +0000 (UTC) Date: Fri, 30 Oct 2015 14:30:27 +0000 (UTC) From: "Alessio Soldano (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-6655) Error Invalid address. Endpoint address cannot be null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alessio Soldano updated CXF-6655: --------------------------------- Fix Version/s: 3.0.7 > Error Invalid address. Endpoint address cannot be null > ------------------------------------------------------ > > Key: CXF-6655 > URL: https://issues.apache.org/jira/browse/CXF-6655 > Project: CXF > Issue Type: Bug > Affects Versions: 3.0.6, 3.1.3 > Reporter: Jaume Vicens > Assignee: Alessio Soldano > Fix For: 3.0.7, 3.1.4 > > > When creating a client setting proxy config first and then endopoint address, we get Exception when Sending Message (this worked perfectly in CXF 3.0.2): > java.net.URISyntaxException: Invalid address. Endpoint address cannot be null. at index 0: > org.apache.cxf.interceptor.Fault: Could not send Message. > at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:48) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279) > at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) > at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:138) > ............. > ..................... > Caused by: java.io.IOException: java.net.URISyntaxException: Invalid address. Endpoint address cannot be null. at index 0: > at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:490) > at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46) > ... 16 more > Caused by: java.net.URISyntaxException: Invalid address. Endpoint address cannot be null. at index 0: > at org.apache.cxf.transport.http.HTTPConduit.setAndGetDefaultAddress(HTTPConduit.java:732) > at org.apache.cxf.transport.http.HTTPConduit.setupAddress(HTTPConduit.java:677) > at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:488) > ... 17 more > Could not send Message. > javax.xml.ws.WebServiceException: Could not send Message. > at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:149) > ...... > ...... > Caused by: java.io.IOException: java.net.URISyntaxException: Invalid address. Endpoint address cannot be null. at index 0: > at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:490) > at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) > at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279) > at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) > at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:138) > ... 9 more > Caused by: java.net.URISyntaxException: Invalid address. Endpoint address cannot be null. at index 0: > at org.apache.cxf.transport.http.HTTPConduit.setAndGetDefaultAddress(HTTPConduit.java:732) > at org.apache.cxf.transport.http.HTTPConduit.setupAddress(HTTPConduit.java:677) > at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:488) > ... 17 more > This is Client Creation: > Service service = HydraWebService.create(SERVICE_NAME); > port = service.getPort(HydraService.class); > > Client client = ClientProxy.getClient(port); > client.getInInterceptors().add(new LoggingInInterceptor()); > client.getOutInterceptors().add(new LoggingOutInterceptor()); > HTTPConduit http = (HTTPConduit) client.getConduit(); > HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); > httpClientPolicy.setAllowChunking(false); > httpClientPolicy.setReceiveTimeout(0); > httpClientPolicy.setProxyServerType(ProxyServerType.HTTP); > httpClientPolicy.setProxyServer(ConnectorConfiguration.getProxyURL()); > httpClientPolicy.setProxyServerPort(Integer.parseInt(ConnectorConfiguration.getProxyPort())); > http.setClient(httpClientPolicy); > BindingProvider provider = (BindingProvider) port; > > provider.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, wsdlURL.toString()); -- This message was sent by Atlassian JIRA (v6.3.4#6332)