I'm running on Mule 1.4.3 and everything works fine in various local
environments (fedora, ubuntu and windows). However when I staged the code
onto an AIX box (5.3.0 on a p570) I get a bizarre xfire error connecting to
a local URL.

The code flow is as follows;

* read from stdin to simulate an inbound message
* via command pattern this generate a message triggering an inbound router
* the appropriate router and component execute
* the component has a nested router that calls out to a service (normal java
interface binding) and that service is simulated/exposed with an internal
xfire endpoint

On the AIX box the component dies with an HTTP 407 Proxy Auth Required as
follows;


Root Exception stack trace:
org.codehaus.xfire.XFireRuntimeException: Server returned error code = 407
for URI : http://127.0.0.1:7081/services/IDLookupService. Check server logs
for details
        at
org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:130)
        at
org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
        at
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
        at org.codehaus.xfire.client.Client.invoke(Client.java:336)
        at org.codehaus.xfire.client.Client.invoke(Client.java:368)
        at
org.mule.providers.soap.xfire.XFireMessageDispatcher.doSend(XFireMessageDispatcher.java:275)
        at
org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:224)
        at
org.mule.providers.AbstractConnector.send(AbstractConnector.java:1629)
        at
org.mule.impl.ImmutableMuleEndpoint.send(ImmutableMuleEndpoint.java:955)
        at org.mule.impl.MuleSession.sendEvent(MuleSession.java:327)
        at org.mule.impl.MuleSession.sendEvent(MuleSession.java:210)
        at
org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:120)
        at
org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:66)
        at
org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:79)
        at org.mule.routing.nested.NestedRouter.route(NestedRouter.java:52)
        at
org.mule.routing.nested.NestedInvocationHandler.invoke(NestedInvocationHandler.java:85)
        at $Proxy0.getBPIDForMO(Unknown Source)
        at
com.xxy.BusinessPartnerFacadeImpl.handleMORequest(BusinessPartnerFacadeImpl.java:61)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
        at java.lang.reflect.Method.invoke(Method.java:391)
        at
org.mule.impl.model.resolvers.DynamicEntryPoint.invokeMethod(DynamicEntryPoint.java:312)
        at
org.mule.impl.model.resolvers.DynamicEntryPoint.invoke(DynamicEntryPoint.java:259)
        at
org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:194)
        at
org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47)
        at
org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:73)
        at
org.mule.interceptors.TimerInterceptor.intercept(TimerInterceptor.java:43)
        at
org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:68)
        at
org.mule.interceptors.InterceptorStack.intercept(InterceptorStack.java:48)
        at
org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47)
        at
org.mule.impl.model.DefaultMuleProxy.run(DefaultMuleProxy.java:467)
        at org.mule.impl.work.WorkerContext.run(WorkerContext.java(Compiled
Code))
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java(Compiled
Code))
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
        at java.lang.Thread.run(Thread.java:570)

********************************************************************************

16 Oct 2007 11:25:28,324 ERROR -
com.xvz.exception.ComponentExceptionStrategy.routeException:213 -- Message
being processed is:

org.mule.providers.DefaultMessageAdapter/[EMAIL PROTECTED],
payload=[Ljava.lang.Object;,
correlationId=03630bdb-7bfc-11dc-b362-25e9f918a668, correlationGroup=-1,
correlationSeq=-1, encoding=UTF-8,
exceptionPayload=null, properties={
MULE_ENDPOINT=http://127.0.0.1:7081/services/IDLookupService?wsdl&method=getBPIDForMO
method=getBPIDForMO
MULE_SESSION=SUQ9MDM2MzBiZGMtN2JmYy0xMWRjLWIzNjItMjVlOWY5MThhNjY4O0lEPTAzNjMwYmRjLTdiZmMtMTFkYy1iMzYyLTI1ZTlmOTE4YTY2OA==
MULE_ORIGINATING_ENDPOINT=endpoint.vm.client.msg.to.isa
MULE_CORRELATION_ID=03630bdb-7bfc-11dc-b362-25e9f918a668
wsdl=
}}

There is a web proxy on this intranet but as we're targeting
localhost/127.0.0.1 I don't see how thats relevant.

I can telnet locally;

$ lsof -iTCP -a -u n0151917
COMMAND      PID     USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
java      442514 n0151917    4u  IPv4 0xf100060000de8b98      0t0  TCP
loopback:32000 (LISTEN)
java      442514 n0151917  186u  IPv6 0xf100060002206398      0t0  TCP
loopback:31000->loopback:32000 (ESTABLISHED)
java      442514 n0151917  187u  IPv6 0xf100060002218398      0t0  TCP
*:rmiregistry (LISTEN)
java      442514 n0151917  188u  IPv6 0xf100060000defb98      0t0  TCP
*:38629 (LISTEN)
java      442514 n0151917  193u  IPv6 0xf10006000223fb98      0t0  TCP
loopback:distinct (LISTEN)
java      442514 n0151917  194u  IPv6 0xf100060001c3bb98      0t0  TCP
*:60504 (LISTEN)
java      442514 n0151917  195u  IPv6 0xf1000600021c4398      0t0  TCP
*:7081 (LISTEN)
wrapper-a 471096 n0151917    7u  IPv4 0xf10006000221c398      0t0  TCP
loopback:32000->loopback:31000 (ESTABLISHED)
$ telnet localhost 7081
Trying...
Connected to loopback.
Escape character is '^]'.
^]

telnet> quit
Connection closed.
$

And I can hit the URL remotely;


$ wget http://xyz.com:7081/services/IDLookupService?wsdl&method=getBPIDForMO
Resolving xyz.com... xxx.150.xx.xx
Connecting to xzy.com|xxx.150.xx.xx|:7081... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7896 (7.7K) [text/xml]
Saving to: `IDLookupService?wsdl'

100%[======================================================================================>]
7,896       33.4K/s   in 0.2s  

03:28:30 (33.4 KB/s) - `IDLookupService?wsdl' saved [7896/7896]

I'm inclined to suspect some AIX weirdness or a borked environment thats
pointing to some proxy but everything seems fine. I dont see how I can get a
407 connecting to 127.0.0.1 and not when that host/port isn't blocked
locally (telnet) or remotely (wget).

Any help or further debugging much appreciated! 
-- 
View this message in context: 
http://www.nabble.com/weird-HTTP-407-from-xfire-tf4639106.html#a13249857
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to