Hi all, 

I've tried to isolate the problem, and while I'm
probably doing something wrong somehow, I still can't
get a long running Asynchronous IN/OUT message to work
based off of the user guide samples. I have done the
following: 

1) Downloaded .92v source.  
2) Changed the userguide/example1/MyService.java to
have the following Thread.sleep() : 

public class MyService {
    public OMElement echo(OMElement element) throws
XMLStreamException {
        //Praparing the OMElement so that it can be
attached to another OM Tree.
        //First the OMElement should be completely
build in case it is not fully built and still
        //some of the xml is in the stream.
        element.build();
        try {
          System.out.println("AXIS2 Rocks!,
sleeping...");
          Thread.sleep(100000);
        } catch (Exception e) {
            e.printStackTrace();
        }
        //Secondly the OMElement should be detached
from the current OMTree so that it can be attached
        //some other OM Tree. Once detached the OmTree
will remove its connections to this OMElement.
        element.detach();
        return element;
    }

    public void ping(OMElement element) throws
XMLStreamException {
        //Do some processing
    }
    public void pingF(OMElement element) throws
AxisFault{
        throw new AxisFault("Fault being thrown");
    }
}

3) Built the source with maven. 
4) Installed the axis2.war . 
5) Installed MyService.aar into axis2/WEB-INF/services
. 
6) Executed the test client
testEchoNonBlockingDualClient 

I get the following stacktrace : 

Buildfile: build.xml

testEchoNonBlockingDualClient:
     [java] org.apache.axis2.AxisFault: Read timed
out; nested exception is:
     [java]     java.net.SocketTimeoutException: Read
timed out; nested exception is:
     [java]     org.apache.axis2.AxisFault: Read timed
out; nested exception is:
     [java]     java.net.SocketTimeoutException: Read
timed out; nested exception is:
     [java]     org.apache.axis2.AxisFault: Read timed
out; nested exception is:
     [java]     java.net.SocketTimeoutException: Read
timed out; nested exception is:
     [java]     org.apache.axis2.AxisFault: Read timed
out; nested exception is:
     [java]     java.net.SocketTimeoutException: Read
timed out
     [java]     at
org.apache.axis2.clientapi.InOutMEPClient.invokeNonBlocking(InOutMEPClient.java:255)
     [java]     at
org.apache.axis2.clientapi.Call.invokeNonBlocking(Call.java:136)
     [java]     at
userguide.clients.EchoNonBlockingDualClient.main(EchoNonBlockingDualClient.java:77)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at
java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
     [java]     at
org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
     [java]     at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
     [java]     at
org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [java]     at
org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at
org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at
org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
     [java]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
     [java]     at
org.apache.tools.ant.Main.runBuild(Main.java:673)
     [java]     at
org.apache.tools.ant.Main.startAnt(Main.java:188)
     [java]     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
     [java]     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
     [java] Caused by: org.apache.axis2.AxisFault:
Read timed out; nested exception is:
     [java]     java.net.SocketTimeoutException: Read
timed out; nested exception is:
     [java]     org.apache.axis2.AxisFault: Read timed
out; nested exception is:
     [java]     java.net.SocketTimeoutException: Read
timed out
     [java]     at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:154)
     [java]     at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:100)
     [java]     at
org.apache.axis2.clientapi.InOutMEPClient.invokeNonBlocking(InOutMEPClient.java:245)
     [java]     ... 21 more
     [java] Caused by: org.apache.axis2.AxisFault:
Read timed out; nested exception is:
     [java]     java.net.SocketTimeoutException: Read
timed out
     [java]     at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:204)
     [java]     at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:123)
     [java]     ... 23 more
     [java] Caused by:
java.net.SocketTimeoutException: Read timed out
     [java]     at
java.net.SocketInputStream.socketRead0(Native Method)
     [java]     at
java.net.SocketInputStream.read(SocketInputStream.java:129)
     [java]     at
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
     [java]     at
java.io.BufferedInputStream.read(BufferedInputStream.java:235)
     [java]     at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
     [java]     at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
     [java]     at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1110)
     [java]     at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
     [java]     at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1592)
     [java]     at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
     [java]     at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:393)
     [java]     at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:168)
     [java]     at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
     [java]     at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
     [java]     at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.transportConfigurationPOST(CommonsHTTPTransportSender.java:502)
     [java]     at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:182)
     [java]     ... 24 more

BUILD SUCCESSFUL
Total time: 1 minute 2 seconds

Is this possibly a bug, ie, should I file a JIRA
report? Any other ideas I could try ? 

iksrazal

--- trebor iksrazal <[EMAIL PROTECTED]> wrote:

> Hi Eran, 
> 
> The web service works fine if I have only a short
> task.    I'm logging a success message in the web
> service so I know for sure. It gives me a timeout
> error when I try to execute my long task, but I
> still
> get a logged message saying it did get there and it
> does start executing my long task.  
> 
> The 'swa' reference is for our existing app. I put
> the
> needed servlet mappings in our web.xml, as well as
> axis2.xml in our WEB-INF, etc. Can I do that, ie,
> could this be my problem? 
> 
> It'd be too dificult to try and put our app in the
> axis2 war, but I suppose I could try putting my web
> service there, and putting a Thread.sleep there
> instead of our app. In the end, we need to continue
> using our current erp with swa - its a big existing
> app. 
> 
> Worth a shot, cheers,
> iksrazal
> 
> --- Eran Chinthaka <[EMAIL PROTECTED]> wrote:
> 
> > your epr was
> > 
> > "http://127.0.0.1:8080/swa/services/RCService";
> > 
> > In Axis2 the EPR should contain
> >
>
<protocol>://<ip>:<port>/axis2/services/<serviceName>
> > 
> > but I can see your EPR contains "swa", without
> > "axis2". Did you change the mapping in Struts ? Or
> > can this be the problem. Change it to axis2 and
> > check.
> > 
> > 
> > trebor iksrazal wrote:
> > 
> > >Hi Eran, 
> > >
> > >The server is Axis2 - its an existing
> > >spring/hibernate/struts app with Axis2 v.92 added
> > in.
> > >Here's the stacktrace - I run the client via the
> > >commandline with ant: 
> > >
> > > [echo] Starting rc client...
> > >     [java] org.apache.axis2.AxisFault: Read
> timed
> > >out; nested exception is:
> > >     [java]     java.net.SocketTimeoutException:
> > Read
> > >timed out; nested exception is:
> > >     [java]     org.apache.axis2.AxisFault: Read
> > timed
> > >out; nested exception is:
> > >     [java]     java.net.SocketTimeoutException:
> > Read
> > >timed out; nested exception is:
> > >     [java]     org.apache.axis2.AxisFault: Read
> > timed
> > >out; nested exception is:
> > >     [java]     java.net.SocketTimeoutException:
> > Read
> > >timed out; nested exception is:
> > >     [java]     org.apache.axis2.AxisFault: Read
> > timed
> > >out; nested exception is:
> > >     [java]     java.net.SocketTimeoutException:
> > Read
> > >timed out
> > >     [java]     at
> >
>
>org.apache.axis2.clientapi.InOutMEPClient.invokeNonBlocking(InOutMEPClient.java:255)
> > >     [java]     at
> >
>
>org.apache.axis2.clientapi.Call.invokeNonBlocking(Call.java:136)
> > >     [java]     at
> >
>
>com.siemens.swa.plugins.clients.RCServiceClient.main(RCServiceClient.java:61)
> > >     [java]     at
> >
> >sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > >Method)
> > >     [java]     at
> >
>
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >     [java]     at
> >
>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >     [java]     at
> > >java.lang.reflect.Method.invoke(Method.java:585)
> > >     [java]     at
> >
>
>org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
> > >     [java]     at
> >
>
>org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
> > >     [java]     at
> >
>
>org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
> > >     [java]     at
> >
>
>org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
> > >     [java]     at
> >
>
>org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
> > >     [java]     at
> >
>
>org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> > >     [java]     at
> > >org.apache.tools.ant.Task.perform(Task.java:364)
> > >     [java]     at
> >
>
>org.apache.tools.ant.Target.execute(Target.java:341)
> > >     [java]     at
> >
>
>org.apache.tools.ant.Target.performTasks(Target.java:369)
> > >     [java]     at
> >
>
>org.apache.tools.ant.Project.executeTarget(Project.java:1214)
> > >     [java]     at
> >
>
>org.apache.tools.ant.Project.executeTargets(Project.java:1062)
> > >     [java]     at
> > >org.apache.tools.ant.Main.runBuild(Main.java:673)
> > >     [java]     at
> > >org.apache.tools.ant.Main.startAnt(Main.java:188)
> > >     [java]     at
> >
>
>org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
> > >     [java]     at
> >
>
>org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
> > >     [java] Caused by:
> org.apache.axis2.AxisFault:
> > >Read timed out; nested exception is:
> > >     [java]     java.net.SocketTimeoutException:
> > Read
> > >timed out; nested exception is:
> > >     [java]     org.apache.axis2.AxisFault: Read
> > timed
> > >out; nested exception is:
> > >     [java]     java.net.SocketTimeoutException:
> > Read
> > >timed out
> > >     [java]     at
> >
>
>org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:154)
> > >     [java]     at
> >
>
>org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:100)
> > >     [java]     at
> >
>
>org.apache.axis2.clientapi.InOutMEPClient.invokeNonBlocking(InOutMEPClient.java:245)
> > >     [java]     ... 21 more
> > >     [java] Caused by:
> org.apache.axis2.AxisFault:
> > >Read timed out; nested exception is:
> > >     [java]     java.net.SocketTimeoutException:
> > Read
> > >timed out
> > >     [java]     at
> >
>
>org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:204)
> > >     [java]     at
> >
>
>org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:123)
> > >     [java]     ... 23 more
> > >     [java] Caused by:
> > >java.net.SocketTimeoutException: Read timed out
> > >     [java]     at
> > >java.net.SocketInputStream.socketRead0(Native
> > Method)
> > >     [java]     at
> >
>
>java.net.SocketInputStream.read(SocketInputStream.java:129)
> > >     [java]     at
> >
>
>java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> > >     [java]     at
> >
>
>java.io.BufferedInputStream.read(BufferedInputStream.java:235)
> > >     [java]     at
> >
>
>org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
> > >     [java]     at
> >
>
>org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
> > >     [java]     at
> >
>
>org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1110)
> > >     [java]     at
> >
>
>org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
> 
=== message truncated ===

"None are more hopelessly enslaved than those who falsely believe they are 
free. -- Goethe"


        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

Reply via email to