« Return to Thread: Error invoking loca Web sevice behind a firewall

Re: Error invoking loca Web sevice behind a firewall

by Jaime Rodríguez :: Rate this Message:

Reply to Author | View in Thread

I tried this solution but I have following problems (I´m working in Mule 2):

Connector definitions:

        <http:connector name="HttpConnector"
                    proxyHostname="${proxyHostname}"
                    proxyPort="${proxyPort}"
                    proxyUsername="${proxyUsername}"
                    proxyPassword="${proxyPassword}"/>

        <http:connector name="LocalHttpConnector" />

with the mule core outbound-endpoint:

                    <outbound-endpoint connector-ref="HttpConnector"  address="http://xxxxx">
                    </outbound-endpoint>

shows this error invocating the service:

********************************************************************************
Message               : Failed to invoke org.mule.component.simple.PassThroughComponent component for: PersistirRespuestaEJB. Component that caused exception is: PersistirRespuestaEJB. Message payload is of type: byte[]
Type                  : org.mule.api.service.ServiceException
Code                  : MULE_ERROR--2
JavaDoc               : http://mule.mulesource.org/docs/apidocs/org/mule/api/service/ServiceException.html
Payload               : [B@c5e2cf
********************************************************************************
Exception stack is:
1. only whitespace content allowed before start tag and not n (position: START_DOCUMENT seen <?xml version="1.0" encoding="utf-8"?>\r\n \r\n  \r\n   n... @4:5)  (org.xmlpull.v1.XmlPullParserException)
  org.xmlpull.mxp1.MXParser:1519 (null)
2.  : only whitespace content allowed before start tag and not n (position: START_DOCUMENT seen <?xml version="1.0" encoding="utf-8"?>\r\n \r\n  \r\n   n... @4:5)  (com.thoughtworks.xstream.io.StreamException)
  com.thoughtworks.xstream.io.xml.XppReader:67 (null)
3. Failed to invoke org.mule.component.simple.PassThroughComponent component for: PersistirRespuestaEJB. Component that caused exception is: PersistirRespuestaEJB. Message payload is of type: byte[] (org.mule.api.service.ServiceException)
  org.mule.component.AbstractComponent:101 (http://mule.mulesource.org/docs/apidocs/org/mule/api/service/ServiceException.html)
********************************************************************************

If I use axis:outbound-endpoint without connector_ref it behaves but when I reference the connector show this error starting the server:

<outbound-endpoint connector-ref="HttpConnector" address="axis:http://xxxxx">
</outbound-endpoint>

the error is:

********************************************************************************
Message               : Error creating bean with name 'WebServiceSNIES': Cannot create inner bean '(inner bean)' of type [org.mule.routing.outbound.DefaultOutboundRouterCollection] while setting bean property 'outboundRouter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.routing.outbound.ChainingRouter] while setting bean property 'routers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.config.spring.factories.OutboundEndpointFactoryBean] while setting bean property 'endpoints' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://200.41.9.227:7777/WebService/WS/WebService.jws?method=getXMLProgramasOL" (org.springframework.beans.factory.BeanCreationException)
Type                  : org.mule.api.config.ConfigurationException
Code                  : MULE_ERROR-12999
JavaDoc               : http://mule.mulesource.org/docs/apidocs/org/mule/api/config/ConfigurationException.html
********************************************************************************
Exception stack is:
1. Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://200.41.9.227:7777/WebService/WS/WebService.jws?method=getXMLProgramasOL" (java.lang.IllegalArgumentException)
  org.mule.endpoint.AbstractEndpointBuilder:191 (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html)
2. Error creating bean with name '(inner bean)': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://200.41.9.227:7777/WebService/WS/WebService.jws?method=getXMLProgramasOL" (org.springframework.beans.factory.BeanCreationException)
  org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1:127 (null)
3. Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.config.spring.factories.OutboundEndpointFactoryBean] while setting bean property 'endpoints' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://200.41.9.227:7777/WebService/WS/WebService.jws?method=getXMLProgramasOL" (org.springframework.beans.factory.BeanCreationException)
  org.springframework.beans.factory.support.BeanDefinitionValueResolver:230 (null)
4. Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.routing.outbound.ChainingRouter] while setting bean property 'routers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.config.spring.factories.OutboundEndpointFactoryBean] while setting bean property 'endpoints' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://200.41.9.227:7777/WebService/WS/WebService.jws?method=getXMLProgramasOL" (org.springframework.beans.factory.BeanCreationException)
  org.springframework.beans.factory.support.BeanDefinitionValueResolver:230 (null)
5. Error creating bean with name 'WebServiceSNIES': Cannot create inner bean '(inner bean)' of type [org.mule.routing.outbound.DefaultOutboundRouterCollection] while setting bean property 'outboundRouter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.routing.outbound.ChainingRouter] while setting bean property 'routers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.config.spring.factories.OutboundEndpointFactoryBean] while setting bean property 'endpoints' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://200.41.9.227:7777/WebService/WS/WebService.jws?method=getXMLProgramasOL" (org.springframework.beans.factory.BeanCreationException)
  org.springframework.beans.factory.support.BeanDefinitionValueResolver:230 (null)
6. Error creating bean with name 'WebServiceSNIES': Cannot create inner bean '(inner bean)' of type [org.mule.routing.outbound.DefaultOutboundRouterCollection] while setting bean property 'outboundRouter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.routing.outbound.ChainingRouter] while setting bean property 'routers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.config.spring.factories.OutboundEndpointFactoryBean] while setting bean property 'endpoints' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Endpoint scheme must be compatible with the connector scheme. Connector is: "http", endpoint is "http://200.41.9.227:7777/WebService/WS/WebService.jws?method=getXMLProgramasOL" (org.springframework.beans.factory.BeanCreationException) (org.mule.api.config.ConfigurationException)
  org.mule.config.builders.AbstractConfigurationBuilder:44 (http://mule.mulesource.org/docs/apidocs/org/mule/api/config/ConfigurationException.html)
********************************************************************************




Jaime Rodríguez wrote:
Hi,

My mule instance is behind a firewall and I need to invoke 2 Webservices the first one is external and the second one is internal (also behind the firewall), Mule send the local invocation to the firewall an failed. The http:connector element does not support the nonProxyHosts attribute, so I don't know how to configure mule in order to resolve local end points without the proxy.

This is a critical issue I need help very urgent. Thanks.

 « Return to Thread: Error invoking loca Web sevice behind a firewall