Re: EchoNonBlockingDualClient --> JVM_Bind

2006-05-12 Thread Ali Sadik Kumlali
Dims,

Created a JIRA entry: http://issues.apache.org/jira/browse/AXIS2-725

I'll provide you with all the information I can gather and add to the
JIRA. Thanks for the encouragement :)

Regards,

Ali Sadik Kumlali

--- Davanum Srinivas <[EMAIL PROTECTED]> wrote:

> or better yet, help with a patch :) :)
> 
> -- dims
> 
> On 5/12/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> > Ali,
> >
> > could u please drive this (create a jira and pester till someone
> fixes) ? :)
> >
> > thanks,
> > dims
> >
> > On 5/12/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> > > Hi Eran,
> > >
> > > I also reported -but didn't create a jira log :)- related with
> this
> > > problem. So, if you want, you may also add information found in
> > > postings with "Re: [Axis2] SimpleHTTPServer port conflict for
> multiple
> > > EchoNonBlockingDualClient threads" subject.
> > >
> > > Regards,
> > >
> > > Ali Sadik Kumlali
> > >
> > > --- Eran Chinthaka <[EMAIL PROTECTED]> wrote:
> > >
> > > > I sitll consider this as a bug, as if IIRC, we implemented to
> switch
> > > > to
> > > > the next port if one port is not available.
> > > >
> > > > Will create a JIRA out of this.
> > > >
> > > >
> > > >
> > > > Roman Weidlich wrote:
> > > > > It seems port 6060 was occupied by something, thx.
> > > > >
> > > > >
> > > > > Eran Chinthaka wrote:
> > > > >> Roman Weidlich wrote:
> > > > >>> Trying the EchoNonBlockingDualClient (addressing module is
> found)
> > > > >>> getting:
> > > > >>>
> > > > >>> org.apache.axis2.AxisFault: Address already in use:
> JVM_Bind
> > > > >>>
> > > > >> Do u have any listener opened in port 6060 ?
> > > > >>
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > __
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > >
> >
> >
> > --
> > Davanum Srinivas : http://wso2.com/blogs/
> >
> 
> 
> -- 
> Davanum Srinivas : http://wso2.com/blogs/
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: EchoNonBlockingDualClient --> JVM_Bind

2006-05-12 Thread Davanum Srinivas

or better yet, help with a patch :) :)

-- dims

On 5/12/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

Ali,

could u please drive this (create a jira and pester till someone fixes) ? :)

thanks,
dims

On 5/12/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> Hi Eran,
>
> I also reported -but didn't create a jira log :)- related with this
> problem. So, if you want, you may also add information found in
> postings with "Re: [Axis2] SimpleHTTPServer port conflict for multiple
> EchoNonBlockingDualClient threads" subject.
>
> Regards,
>
> Ali Sadik Kumlali
>
> --- Eran Chinthaka <[EMAIL PROTECTED]> wrote:
>
> > I sitll consider this as a bug, as if IIRC, we implemented to switch
> > to
> > the next port if one port is not available.
> >
> > Will create a JIRA out of this.
> >
> >
> >
> > Roman Weidlich wrote:
> > > It seems port 6060 was occupied by something, thx.
> > >
> > >
> > > Eran Chinthaka wrote:
> > >> Roman Weidlich wrote:
> > >>> Trying the EchoNonBlockingDualClient (addressing module is found)
> > >>> getting:
> > >>>
> > >>> org.apache.axis2.AxisFault: Address already in use: JVM_Bind
> > >>>
> > >> Do u have any listener opened in port 6060 ?
> > >>
> > >
> >
> >
> >
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


--
Davanum Srinivas : http://wso2.com/blogs/




--
Davanum Srinivas : http://wso2.com/blogs/


Re: EchoNonBlockingDualClient --> JVM_Bind

2006-05-12 Thread Davanum Srinivas

Ali,

could u please drive this (create a jira and pester till someone fixes) ? :)

thanks,
dims

On 5/12/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:

Hi Eran,

I also reported -but didn't create a jira log :)- related with this
problem. So, if you want, you may also add information found in
postings with "Re: [Axis2] SimpleHTTPServer port conflict for multiple
EchoNonBlockingDualClient threads" subject.

Regards,

Ali Sadik Kumlali

--- Eran Chinthaka <[EMAIL PROTECTED]> wrote:

> I sitll consider this as a bug, as if IIRC, we implemented to switch
> to
> the next port if one port is not available.
>
> Will create a JIRA out of this.
>
>
>
> Roman Weidlich wrote:
> > It seems port 6060 was occupied by something, thx.
> >
> >
> > Eran Chinthaka wrote:
> >> Roman Weidlich wrote:
> >>> Trying the EchoNonBlockingDualClient (addressing module is found)
> >>> getting:
> >>>
> >>> org.apache.axis2.AxisFault: Address already in use: JVM_Bind
> >>>
> >> Do u have any listener opened in port 6060 ?
> >>
> >
>
>
>


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com




--
Davanum Srinivas : http://wso2.com/blogs/


Re: EchoNonBlockingDualClient --> JVM_Bind

2006-05-11 Thread Ali Sadik Kumlali
Hi Eran,

I also reported -but didn't create a jira log :)- related with this
problem. So, if you want, you may also add information found in
postings with "Re: [Axis2] SimpleHTTPServer port conflict for multiple
EchoNonBlockingDualClient threads" subject.

Regards,

Ali Sadik Kumlali

--- Eran Chinthaka <[EMAIL PROTECTED]> wrote:

> I sitll consider this as a bug, as if IIRC, we implemented to switch
> to
> the next port if one port is not available.
> 
> Will create a JIRA out of this.
> 
> 
> 
> Roman Weidlich wrote:
> > It seems port 6060 was occupied by something, thx.
> > 
> > 
> > Eran Chinthaka wrote:
> >> Roman Weidlich wrote:
> >>> Trying the EchoNonBlockingDualClient (addressing module is found)
> >>> getting:
> >>>
> >>> org.apache.axis2.AxisFault: Address already in use: JVM_Bind
> >>>
> >> Do u have any listener opened in port 6060 ?
> >>
> > 
> 
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: EchoNonBlockingDualClient --> JVM_Bind

2006-05-11 Thread Eran Chinthaka
I sitll consider this as a bug, as if IIRC, we implemented to switch to
the next port if one port is not available.

Will create a JIRA out of this.



Roman Weidlich wrote:
> It seems port 6060 was occupied by something, thx.
> 
> 
> Eran Chinthaka wrote:
>> Roman Weidlich wrote:
>>> Trying the EchoNonBlockingDualClient (addressing module is found)
>>> getting:
>>>
>>> org.apache.axis2.AxisFault: Address already in use: JVM_Bind
>>>
>> Do u have any listener opened in port 6060 ?
>>
> 




signature.asc
Description: OpenPGP digital signature


Re: EchoNonBlockingDualClient --> JVM_Bind

2006-05-11 Thread Roman Weidlich

It seems port 6060 was occupied by something, thx.


Eran Chinthaka wrote:

Roman Weidlich wrote:

Trying the EchoNonBlockingDualClient (addressing module is found) getting:

org.apache.axis2.AxisFault: Address already in use: JVM_Bind


Do u have any listener opened in port 6060 ?



Re: EchoNonBlockingDualClient --> JVM_Bind

2006-05-11 Thread Eran Chinthaka
Roman Weidlich wrote:
> Trying the EchoNonBlockingDualClient (addressing module is found) getting:
> 
> org.apache.axis2.AxisFault: Address already in use: JVM_Bind
> 
Do u have any listener opened in port 6060 ?



signature.asc
Description: OpenPGP digital signature


EchoNonBlockingDualClient --> JVM_Bind

2006-05-11 Thread Roman Weidlich

Trying the EchoNonBlockingDualClient (addressing module is found) getting:

org.apache.axis2.AxisFault: Address already in use: JVM_Bind


[Axis2][1.0RC5] Asynchrony at the server side (EchoNonBlockingDualClient for long running MyService)

2006-05-01 Thread Ali Sadik Kumlali
Hi all,

As you know, EchoNonBlockingDualClient calls MyService and waits the
response by launching SimpleHTTPServer on port 6060.

Could someone check the correctness of the following flow, please?

C: client
S: server

[C->S] open connection to the server's endpoint
[C->S] send request SOAP with the ReplyTo declaring port 6060
[C<-S] send HTTP 200 OK
[C->S] close connection
[C] open a thread and listen to port 6060.
... (time passes)
[C<-S] open connection to the client's port 6060
[C<-S] send the result SOAP
[C->S] send HTTP 200 OK
[C->S] close connection

According to the sample, MyService completes quickly and the result is
returned immediately. Thus, there is no asynchrony at the server side.

How can I do the followings:
- Open a new thread that will do the actual work, when the echo
operation of MyService is called.
- Complete the rest of the echo operation WITHOUT sending any response
to the client which would cause SimpleHTTPServer to be closed.
- After the actual work has done in the thread, send the result to the
client's SimpleHTTPServer.

Any help would be great!

Ali Sadik Kumlali


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: [Axis2] SimpleHTTPServer port conflict for multiple EchoNonBlockingDualClient threads

2006-05-01 Thread Ali Sadik Kumlali
Hi Deepal,

I'm currently running 1.0RC5 and still have the same problem.

May be, as you said, I need somehow to use ListenerManager. Could you
please tell me what to do?

Thanks,

Ali Sadik Kumlali

--- Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

> Hi Sadik;
> 
> In the current code base we done a major improvements in our
> transport
> freamwork with the introduction of ListenerManager. So in the next
> release onword you wont have such a problem.
> 
> Ali Sadik Kumlali wrote:
> 
> > Dear all,
> >
> > I simply changed EchoNonBlockingDualClient sample to make it run as
> > threads and created two threads. First one successfully starts
> > SimpleHTTPServer on port 6060 and the second one gets an
> > "java.net.BindException: Address already in use: JVM_Bind" while
> > trying to start the server.
> >
> > Doesn't I have an option to listen all the responses for its
> dedicated
> > port? For example 6060 for first request, 6061 for the second, and
> so
> > on. Or, should i assume Axis2 to use the same port for the
> responses
> > of all the long running transactions?
> >
> > Thanks a lot for any help.
> >
> > Ali Sadik Kumlali
> >
> >
>
--
> > Error Message I Get
> >
>
--
> > testEchoNonBlockingDualClient:
> >  [java] [CLIENT1] Outgoing message
> >  [java]  > xmlns:example1="http://example1.org/example1";> > e1:Text>Axis2 Echo String 
> >  [java] - Deploying module : addressing
> >  [java] [CLIENT2] Outgoing message
> >  [java]  > xmlns:example1="http://example1.org/example1";> > e1:Text>Axis2 Echo String 
> >  [java] - Deploying module : addressing
> >  [java] - java.net.BindException: Address already in use:
> JVM_Bind
> >  [java] org.apache.axis2.AxisFault: Address already in use:
> > JVM_Bind; nested
> >  exception is:
> >  [java] java.net.BindException: Address already in use:
> JVM_Bind
> >  [java] at
> > org.apache.axis2.transport.http.SimpleHTTPServer.start(Simple
> > HTTPServer.java:220)
> >  [java] at
> > org.apache.axis2.client.ListenerManager.makeSureStarted(Liste
> > nerManager.java:73)
> >
> >
> >
>
--
> > Modified EchoNonBlockingDualClient.java
> >
>
--
> > public class EchoNonBlockingDualClient implements Runnable {
> > private static EndpointReference targetEPR = new
> EndpointReference(
> > "http://127.0.0.1:8080/axis2/services/MyService";);
> >
> > private String name;
> >
> > public EchoNonBlockingDualClient(String name) {
> > this.name = name;
> > }
> >
> > publ ic OMElement getPayload() throws XMLStreamException,
> > FactoryConfigurationError {
> > OMElement payload = ClientUtil.getEchoOMElement();
> >
> > // Log the outgoing payload
> > StringWriter writer = new StringWriter();
> >   
> > 
>
payload.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(
> > writer));
> > writer.flush();
> > System.out.println("[" + name + "] Outgoing message\n"
> > + writer.toString());
> > return payload;
> > }
> >
> > public Options getOptions() {
> >  & nbsp;  Options options = new Options();
> > options.setTo(targetEPR);
> > options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> > options.setUseSeparateListener(true);
> > return options;
> > }
> >
> > public void makeRequest() {
> > try {
> > OMElement payload = getPayload();
> > Options options = getOptions();
> >
> > // Callback to handle the response
> > Callback callback = new Callback() {
> > public void onComplete(AsyncResult result) {
> > try {
> > StringWriter writer = new StringWriter();
> > result.getResponseEnvelope().serialize(
> > XMLO

Re: [Axis2] SimpleHTTPServer port conflict for multiple EchoNonBlockingDualClient threads

2006-03-15 Thread Deepal Jayasinghe
Hi Sadik;

In the current code base we done a major improvements in our transport
freamwork with the introduction of ListenerManager. So in the next
release onword you wont have such a problem.

Ali Sadik Kumlali wrote:

> Dear all,
>
> I simply changed EchoNonBlockingDualClient sample to make it run as
> threads and created two threads. First one successfully starts
> SimpleHTTPServer on port 6060 and the second one gets an
> "java.net.BindException: Address already in use: JVM_Bind" while
> trying to start the server.
>
> Doesn't I have an option to listen all the responses for its dedicated
> port? For example 6060 for first request, 6061 for the second, and so
> on. Or, should i assume Axis2 to use the same port for the responses
> of all the long running transactions?
>
> Thanks a lot for any help.
>
> Ali Sadik Kumlali
>
> --
> Error Message I Get
> --
> testEchoNonBlockingDualClient:
>  [java] [CLIENT1] Outgoing message
>  [java]  xmlns:example1="http://example1.org/example1";> e1:Text>Axis2 Echo String 
>  [java] - Deploying module : addressing
>  [java] [CLIENT2] Outgoing message
>  [java]  xmlns:example1="http://example1.org/example1";> e1:Text>Axis2 Echo String 
>  [java] - Deploying module : addressing
>  [java] - java.net.BindException: Address already in use: JVM_Bind
>  [java] org.apache.axis2.AxisFault: Address already in use:
> JVM_Bind; nested
>  exception is:
>  [java] java.net.BindException: Address already in use: JVM_Bind
>  [java] at
> org.apache.axis2.transport.http.SimpleHTTPServer.start(Simple
> HTTPServer.java:220)
>  [java] at
> org.apache.axis2.client.ListenerManager.makeSureStarted(Liste
> nerManager.java:73)
>
>
> ------
> Modified EchoNonBlockingDualClient.java
> --
> public class EchoNonBlockingDualClient implements Runnable {
> private static EndpointReference targetEPR = new EndpointReference(
> "http://127.0.0.1:8080/axis2/services/MyService";);
>
> private String name;
>
> public EchoNonBlockingDualClient(String name) {
> this.name = name;
> }
>
> publ ic OMElement getPayload() throws XMLStreamException,
> FactoryConfigurationError {
> OMElement payload = ClientUtil.getEchoOMElement();
>
> // Log the outgoing payload
> StringWriter writer = new StringWriter();
>   
>  payload.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(
> writer));
> writer.flush();
> System.out.println("[" + name + "] Outgoing message\n"
> + writer.toString());
> return payload;
> }
>
> public Options getOptions() {
>  & nbsp;  Options options = new Options();
> options.setTo(targetEPR);
> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> options.setUseSeparateListener(true);
> return options;
> }
>
> public void makeRequest() {
> try {
> OMElement payload = getPayload();
> Options options = getOptions();
>
> // Callback to handle the response
> Callback callback = new Callback() {
> public void onComplete(AsyncResult result) {
> try {
> StringWriter writer = new StringWriter();
> result.getResponseEnvelope().serialize(
> XMLOutputFactory.newInstance()
> .createXMLStreamWriter(writer));
> writer.flush();
> System.out.println("[" + name + "] Incoming
> message\n"
> + writer.toString());
> try {
> Thread.sleep(1000);
> } catch (InterruptedException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
>
> } catch (XMLStreamException e) {
> onError(e);
> }
> }
>
> public vo

[Axis2] SimpleHTTPServer port conflict for multiple EchoNonBlockingDualClient threads

2006-03-15 Thread Ali Sadik Kumlali
Dear all,I simply changed EchoNonBlockingDualClient sample to make it run as threads and created two threads. First one successfully starts SimpleHTTPServer on port 6060 and the second one gets an  "java.net.BindException: Address already in use: JVM_Bind" while trying to start the server.Doesn't I have an option to listen all the responses for its dedicated port? For example 6060 for first request, 6061 for the second, and so on. Or, should i assume Axis2 to use the same port for the responses of all the long running transactions?Thanks a lot for any help.Ali Sadik Kumlali--Error Message I Get--testEchoNonBlockingDualClient: [java] [CLIENT1] Outgoing message [java] e1:Text>Axis2 Echo String  [java] - Deploying module : addressing [java] [CLIENT2] Outgoing message [java] e1:Text>Axis2 Echo String  [java] - Deploying module : addressing [java] - java.net.BindException: Address already in use: JVM_Bind [java] org.apache.axis2.AxisFault: Address already in use: JVM_Bind; nested exception is: [java] java.net.BindException: Address already in use: JVM_Bind [java] at
 org.apache.axis2.transport.http.SimpleHTTPServer.start(SimpleHTTPServer.java:220) [java] at org.apache.axis2.client.ListenerManager.makeSureStarted(ListenerManager.java:73)-- Modified EchoNonBlockingDualClient.java------ public class EchoNonBlockingDualClient implements Runnable {    private static EndpointReference targetEPR = new EndpointReference(            "http://127.0.0.1:8080/axis2/services/MyService");    private String name;    public EchoNonBlockingDualClient(String name) {        this.name = name;    }    publ
 ic
 OMElement getPayload() throws XMLStreamException,            FactoryConfigurationError {        OMElement payload = ClientUtil.getEchoOMElement();        // Log the outgoing payload        StringWriter writer = new StringWriter();        payload.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(                writer));        writer.flush();        System.out.println("[" + name + "] Outgoing message\n"                + writer.toString());        return payload;    }    public Options getOptions() { &
 nbsp;
      Options options = new Options();        options.setTo(targetEPR);        options.setTransportInProtocol(Constants.TRANSPORT_HTTP);        options.setUseSeparateListener(true);        return options;    }    public void makeRequest() {        try {            OMElement payload = getPayload();            Options options = getOptions();            // Callback to handle the response            Callback callback = new Callback() {                public void onComplete(AsyncResult result)
 {                    try {                        StringWriter writer = new StringWriter();                        result.getResponseEnvelope().serialize(                                XMLOutputFactory.newInstance()                                        .createXMLStreamWriter(writer));                        writer.flush();  
                      System.out.println("[" + name + "] Incoming message\n"                                + writer.toString());                        try {                            Thread.sleep(1000);                        } catch (InterruptedException e) {                            // TODO Auto-generated catch block          
                  e.printStackTrace();                        }                    } catch (XMLStreamException e) {                        onError(e);                    }                }                public void onError(Exception e) {                    e.printStackTrace();              
  }            };            // Non-Blocking Invocation            ServiceClient sender = new ServiceClient();            sender.setOptions(options);            sender.sendReceiveNonblocking(payload, callback);            // Wait till the callback receives the response.            while (!callback.isComplete()) {                System.out.println("[" + name                        + "] I'm waiting for the response from the server");      
          Thread.sleep(1000);            }            // Need to close the Client Side Listener.        } catch (AxisFault axisFault) {            axisFault.printStackTrace();        } catch (Exception ex) {            ex.printStackTrace();        }    }    public void run() {        makeRequest();    }    private static final void wait(int ms) {        try {            Thread.sleep(ms);        } catch
 (

Re: [Axis2] EchoNonBlockingDualClient problem

2006-03-14 Thread Diego

Hi everybody!

I'm also experiencing the same problem.  I run axis2 v0.93 on tomcat 
5.5.7.  My code is slightly different than the EchoNonBlockingDualClient 
but it's basically the same:



public void 
startinsertMappingAnnotations(InsertMappingAnnotationsDocument requestDoc,
 final 
AstrodasPeerCallbackHandler callback)

   throws RemoteException {
   Call call = new Call(_serviceContext);
   call.setClientOptions(_clientOptions);
   MessageContext messageContext = getMessageContext();
   _clientOptions.setSoapAction("insertMappingAnnotations");
   // Uses two separate listeners: dual transport.
   call.engageModule(new QName(Constants.MODULE_ADDRESSING));
   _clientOptions.setListenerTransportProtocol(Constants.TRANSPORT_HTTP);
   _clientOptions.setUseSeparateListener(true);
   // Sets the exception throwing status.
   _clientOptions.setExceptionToBeThrownOnSOAPFault(true);
   // Sets the properties.
   SOAPEnvelope envelope = createEnvelope();

setValueDoc(envelope,AstrodasPeerinsertMappingAnnotationsDatabindingSupporter.toOM(requestDoc));
   messageContext.setEnvelope(envelope);
   call.invokeNonBlocking(operations[0], messageContext,
   new Callback() {
   public void onComplete(AsyncResult result) {
   Object object = 
AstrodasPeerinsertMappingAnnotationsDatabindingSupporter


.fromOM(getElement(result.getResponseEnvelope(),"doc"),

InsertMappingAnnotationsResponseDocument.class);

callback.receiveResultinsertMappingAnnotations((InsertMappingAnnotationsResponseDocument) 
object);

   }
   public void reportError(Exception e) {
   callback.receiveErrorinsertMappingAnnotations(e);
   }
   });
}


I also get the same problem using a dual transport blocking client:


public InsertMappingAnnotationsResponseDocument 
insertMappingAnnotations(InsertMappingAnnotationsDocument requestDoc)

throws RemoteException {
MessageContext messageContext = getMessageContext();
Call call = new Call(_serviceContext);
_clientOptions.setSoapAction("insertMappingAnnotations");
call.setClientOptions(_clientOptions);
// Uses two separate listeners: dual transport.
call.engageModule(new QName(Constants.MODULE_ADDRESSING));
_clientOptions.setListenerTransportProtocol(Constants.TRANSPORT_HTTP);
_clientOptions.setUseSeparateListener(true);
// Sets the exception throwing status.
// Sets the properties.
populateModules(call);
SOAPEnvelope envelope = createEnvelope();
// Style is Doc.

setValueDoc(envelope,AstrodasPeerinsertMappingAnnotationsDatabindingSupporter.toOM(requestDoc));
messageContext.setEnvelope(envelope);
MessageContext responseMessageContext = 
call.invokeBlocking(operations[0],messageContext);

SOAPEnvelope responseEnvelope = responseMessageContext.getEnvelope();
Object obj = AstrodasPeerinsertMappingAnnotationsDatabindingSupporter

.fromOM(getElement(responseEnvelope,"doc"),InsertMappingAnnotationsResponseDocument.class);
return (InsertMappingAnnotationsResponseDocument)obj;
}


The request arrives to the client and is executed successfully but the 
client doesn't get any response.  Actually, the server sends a response 
to the client, here it is:




xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> 


  
  

  Client
  
 For input string: "0:0:0:0:0:0:1:6060"; nested exception is:
.java.net.MalformedURLException: For input string: 
"0:0:0:0:0:0:1:6060"; nested exception is:
.org.apache.axis2.AxisFault: For input string: 
"0:0:0:0:0:0:1:6060"; nested exception is:
.java.net.MalformedURLException: For input string: 
"0:0:0:0:0:0:1:6060"
   



  http://myAxisServer/role/default
  

  org.apache.axis2.AxisFault: For input string: 
"0:0:0:0:0:0:1:6060"; nested exception is:

  .java.net.MalformedURLException: For input string: "
  0:0:0:0:0:0:1:6060"; nested exception is:
  .org.apache.axis2.AxisFault: For input string: 
"0:0:0:0:0:0:1:6060"; nested exception is:
  .java.net.MalformedURLException: For input string: 
"0:0:0:0:0:0:1:6060"
  .at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:265)
  .at 
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:93) 

  .at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:42)
  .at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:158)
  .at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:211)
  .at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:181)


Re: [Axis2] EchoNonBlockingDualClient problem

2006-03-14 Thread Ali Sadik Kumlali
Hi,I have the same problem with Tomcat 5.5 and have two questions:1) Why does my client HTTP server is immediately closed and i get  I/O exception when server tries to post the response? 2) Why does it print "waiting" when options.setUseSeparateListener() is passed false? (This is Antony Wilson's question actually) Thanks a lot.Ali Sadik KumlaliFIRST CASE    + Original EchoNonBlockingDualClient.java    + System.out.println("waiting..."); in while loopClient Log---testEchoNonBlockingDualClient: [java] - Deploying module : addressing [java] - Starting to process SOAP 1.1 message [java] v="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://10.10.10.103:6060/axis2/services/__ANONYMOUS_SERVICE__/__OPERATION_OUT_IN__http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://127.0.0.1:8080/axis2/services/MyService="http://schemas.xmlsoap.org/ws/2004/08/addressing">D3C49495E884E3019B11423375911122975BF946D7CFA918C611423375837211Axis2 Echo String example1:echo> [java] [SimpleHTTPServer] Stop calledServer Log--- Deploying module : addressing- Deploying module : security- Starting to process SOAP 1.1 message- I/O exception (org.apache.commons.httpclient.NoHttpResponseException) caught   when processing request: The server 10.10.10.103 failed to respond- Retrying requestSECOND CASE:     + Original EchoNonBlockingDualClient.java     + System.out.println("waiting..."); in while loop   &nbs
 p; +
 options.setUseSeparateListener(false); Client Log---testEchoNonBlockingDualClient: [java] - Deploying module : addressing [java] waiting... [java] - Starting to process SOAP 1.1 message [java] v="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymoushttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymoushttp://127.0.0.1:8080/axis2/services/MyServiceD3C49495E884E3019B11423376489274>:RelationshipType="wsa:Reply">6439FE16DCA2252A8E11423376486611soapenv:Header>Axis2 Echo String penv:Body>Server Log--- De
 ploying
 module : addressing- Deploying module : security- Starting to process SOAP 1.1 messagerobert lazarski <[EMAIL PROTECTED]> wrote: Could you start another thread with an axis2 prefix mentioning jboss ? I know jboss with web services ok, but it was with either axis 1 or jwsdp - not axis2 . Are you using wsdl and ejb ?   Robert http://www.braziloutsource.com/On 3/13/06, Brian Shields < [EMAIL PROTECTED]> wrote:Tony,Apologies for jumping into this thread on an unr
 elated
 issue but i notice you have axis2 deployed on JBoss 4.0. I am about to undertakethis task and was wondering if there was any resources on the web tohelp in it. I dont have a lot of experience with JBoss so not looking forward to it!!Regards,BrianAntony Wilson wrote:>> I have not been able to get the EchonNonBlockingDualClient example to> work as described in the documentation.  In my setup, I have Axis2 > deployed to JBoss 4.0.3 and I have modified the> userguide.example1.MyService to delay for about 10 seconds before> responding (leaving the 'echo' method).  After packaging and deploying> the  MyService.aar to Axis2, I run EchoNonBlockingDualClient> example...slightly modified to add a print statement within the while> loop...like so>>public static void main(String[] args)
 {>try { >OMElement payload = ClientUtil.getEchoOMElement();>>Options options = new Options();>options.setTo(targetEPR);>options.setTransportInProtocol (Constants.TRANSPORT_HTTP);>options.setUseSeparateListener(true);>>//Callback to handle the response>Callback callback = new Callback()
 {>public void onComplete(AsyncResult result) {>try {>StringWriter writer = new StringWriter();>> result.getResponseEnvelope().serialize(XMLOutputFactory.newInstance()>.createXMLStreamWriter(writer));>writer.flush
 ();>System.out.println(writer.toString());>>>} catch (XMLStreamException e) {>onError(e);>}>}>>public void onErro

Re: [Axis2] EchoNonBlockingDualClient problem

2006-03-13 Thread robert lazarski
Could you start another thread with an axis2 prefix mentioning jboss ?
I know jboss with web services ok, but it was with either axis 1 or
jwsdp - not axis2 . Are you using wsdl and ejb ? 

Robert
http://www.braziloutsource.com/On 3/13/06, Brian Shields <
[EMAIL PROTECTED]> wrote:Tony,Apologies for jumping into this thread on an unrelated issue but i
notice you have axis2 deployed on JBoss 4.0. I am about to undertakethis task and was wondering if there was any resources on the web tohelp in it. I dont have a lot of experience with JBoss so not looking
forward to it!!Regards,BrianAntony Wilson wrote:>> I have not been able to get the EchonNonBlockingDualClient example to> work as described in the documentation.  In my setup, I have Axis2
> deployed to JBoss 4.0.3 and I have modified the> userguide.example1.MyService to delay for about 10 seconds before> responding (leaving the 'echo' method).  After packaging and deploying> the 
MyService.aar to Axis2, I run EchoNonBlockingDualClient> example...slightly modified to add a print statement within the while> loop...like so>>public static void main(String[] args) {>try {
>OMElement payload = ClientUtil.getEchoOMElement();>>Options options = new Options();>options.setTo(targetEPR);>options.setTransportInProtocol
(Constants.TRANSPORT_HTTP);>options.setUseSeparateListener(true);>>//Callback to handle the response>Callback callback = new Callback() {>public
void onComplete(AsyncResult result) {>try
{>StringWriter
writer = new StringWriter();>> result.getResponseEnvelope().serialize(XMLOutputFactory.newInstance()>.createXMLStreamWriter(writer));>writer.flush
();>System.out.println(writer.toString());>>>}
catch (XMLStreamException e) {>onError(e);>}>}>>public
void onError(Exception e) {>e.printStackTrace();>}>};>>//Non-Blocking Invocation>ServiceClient sender = new ServiceClient();
>sender.setOptions(options);>sender.sendReceiveNonblocking(payload, callback);>>//Wait till the callback receives the response.>while (!callback.isComplete()) {
>System.out.println("waiting...");>Thread.sleep(1000);>}>//Need to close the Client Side Listener.>> We I run it the code appears to block/wait at the
> "sender.sendRecieveNonBlocking(...)" line for about 10 seconds. When> the program continues,  I never see any print statements since the> "callback.isComplete()" is true by the time it gets to that point in
> the code.  The really bizarre part is that if I use> "options.setUseSeparateListener(false)"...the behavior is exactly what> I was originally expecting...I see several "waiting..." print
> statements before the callback's onComplete is invoked.  My> operational scenario requires a dual channel transport since my> webservice calls can be really long...therefore using a single two-way
> transport (e.g., options.setUseSeparateListener(false)) is not a> viable option.>> Bottomline, I can't seem to get the two-way dual channel stuff> (EchoNonBlockingDualClient) to work for me.  I must be missing
> something obvious...but I don't see what it is.  Any help would be> appreciated.>> Thanks,> Tony>>--Brian Shields BSc. MSc.,PhD Candidate,Department of Information Technology,
National University of Ireland,Galway,Ireland.


Re: [Axis2] EchoNonBlockingDualClient problem

2006-03-13 Thread Brian Shields

Tony,
Apologies for jumping into this thread on an unrelated issue but i 
notice you have axis2 deployed on JBoss 4.0. I am about to undertake 
this task and was wondering if there was any resources on the web to 
help in it. I dont have a lot of experience with JBoss so not looking 
forward to it!!

Regards,
Brian

Antony Wilson wrote:



I have not been able to get the EchonNonBlockingDualClient example to 
work as described in the documentation.  In my setup, I have Axis2 
deployed to JBoss 4.0.3 and I have modified the 
userguide.example1.MyService to delay for about 10 seconds before 
responding (leaving the 'echo' method).  After packaging and deploying 
the MyService.aar to Axis2, I run EchoNonBlockingDualClient 
example...slightly modified to add a print statement within the while 
loop...like so


   public static void main(String[] args) {
   try {
   OMElement payload = ClientUtil.getEchoOMElement();

   Options options = new Options();
   options.setTo(targetEPR);
   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
   options.setUseSeparateListener(true);

   //Callback to handle the response
   Callback callback = new Callback() {
   public void onComplete(AsyncResult result) {
   try {
   StringWriter writer = new StringWriter();
   
result.getResponseEnvelope().serialize(XMLOutputFactory.newInstance()

   .createXMLStreamWriter(writer));
   writer.flush();
   System.out.println(writer.toString());


   } catch (XMLStreamException e) {
   onError(e);
   }
   }

   public void onError(Exception e) {
   e.printStackTrace();
   }
   };

   //Non-Blocking Invocation
   ServiceClient sender = new ServiceClient();
   sender.setOptions(options);
   sender.sendReceiveNonblocking(payload, callback);

   //Wait till the callback receives the response.
   while (!callback.isComplete()) {
   System.out.println("waiting...");
   Thread.sleep(1000);
   }
   //Need to close the Client Side Listener.

We I run it the code appears to block/wait at the 
"sender.sendRecieveNonBlocking(...)" line for about 10 seconds. When 
the program continues,  I never see any print statements since the 
"callback.isComplete()" is true by the time it gets to that point in 
the code.  The really bizarre part is that if I use 
"options.setUseSeparateListener(false)"...the behavior is exactly what 
I was originally expecting...I see several "waiting..." print 
statements before the callback's onComplete is invoked.  My 
operational scenario requires a dual channel transport since my 
webservice calls can be really long...therefore using a single two-way 
transport (e.g., options.setUseSeparateListener(false)) is not a 
viable option.


Bottomline, I can't seem to get the two-way dual channel stuff 
(EchoNonBlockingDualClient) to work for me.  I must be missing 
something obvious...but I don't see what it is.  Any help would be 
appreciated.


Thanks,
Tony




--
Brian Shields BSc. MSc.,
PhD Candidate,
Department of Information Technology,
National University of Ireland,
Galway,
Ireland.


[Axis2] EchoNonBlockingDualClient problem

2006-03-10 Thread Antony Wilson


I have not been able to get the EchonNonBlockingDualClient example to 
work as described in the documentation.  In my setup, I have Axis2 
deployed to JBoss 4.0.3 and I have modified the 
userguide.example1.MyService to delay for about 10 seconds before 
responding (leaving the 'echo' method).  After packaging and deploying 
the MyService.aar to Axis2, I run EchoNonBlockingDualClient 
example...slightly modified to add a print statement within the while 
loop...like so


   public static void main(String[] args) {
   try {
   OMElement payload = ClientUtil.getEchoOMElement();

   Options options = new Options();
   options.setTo(targetEPR);
   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
   options.setUseSeparateListener(true);

   //Callback to handle the response
   Callback callback = new Callback() {
   public void onComplete(AsyncResult result) {
   try {
   StringWriter writer = new StringWriter();
   
result.getResponseEnvelope().serialize(XMLOutputFactory.newInstance()

   .createXMLStreamWriter(writer));
   writer.flush();
   System.out.println(writer.toString());


   } catch (XMLStreamException e) {
   onError(e);
   }
   }

   public void onError(Exception e) {
   e.printStackTrace();
   }
   };

   //Non-Blocking Invocation
   ServiceClient sender = new ServiceClient();
   sender.setOptions(options);
   sender.sendReceiveNonblocking(payload, callback);

   //Wait till the callback receives the response.
   while (!callback.isComplete()) {
   System.out.println("waiting...");
   Thread.sleep(1000);
   }
   //Need to close the Client Side Listener.

We I run it the code appears to block/wait at the 
"sender.sendRecieveNonBlocking(...)" line for about 10 seconds. When the 
program continues,  I never see any print statements since the 
"callback.isComplete()" is true by the time it gets to that point in the 
code.  The really bizarre part is that if I use 
"options.setUseSeparateListener(false)"...the behavior is exactly what I 
was originally expecting...I see several "waiting..." print statements 
before the callback's onComplete is invoked.  My operational scenario 
requires a dual channel transport since my webservice calls can be 
really long...therefore using a single two-way transport (e.g., 
options.setUseSeparateListener(false)) is not a viable option.


Bottomline, I can't seem to get the two-way dual channel stuff 
(EchoNonBlockingDualClient) to work for me.  I must be missing something 
obvious...but I don't see what it is.  Any help would be appreciated.


Thanks,
Tony



Re: EchoNonBlockingDualClient

2005-12-15 Thread Alan Aguia
NopDavanum Srinivas <[EMAIL PROTECTED]> wrote:  Is this a IPv6 box?On 12/14/05, Alan Aguia <[EMAIL PROTECTED]>wrote:> Hi Im trying to deploy the EchoNonBlockingDualClient in my sun solaris 8> server but I get this error, I dont know what its causing the problem and> how to solve it. Im running axis2 using jboss and with a proxypass from> apache. If I run EchoNonBlockingClient everything work fine.>> Alan.>> 2005-12-14 12:10:20,787 INFO> [org.apache.axis2.engine.AxisEngine] Axis Engine Started> 2005-12-14 12:10:20,787 INFO [org.apache.axis2.engine.Phase] Invoke the> Handler AddressingOutHandlerwith in the Phase MessageOut> 2005-12-14 12:10:20,797 INFO> [org.apache.commons.httpclient.HttpMethodDirector] I/O> exception caught when
 processing request: Connection refused> 2005-12-14 12:10:20,797 INFO> [org.apache.commons.httpclient.HttpMethodDirector] Retrying> request> 2005-12-14 12:10:20,801 INFO> [org.apache.commons.httpclient.HttpMethodDirector] I/O> exception caught when pr ocessing request: Connection refused> 2005-12-14 12:10:20,801 INFO> [org.apache.commons.httpclient.HttpMethodDirector] Retrying> request> 2005-12-14 12:10:20,806 INFO> [org.apache.commons.httpclient.HttpMethodDirector] I/O> exception caught when processing request: Connection refused> 2005-12-14 12:10:20,806 INFO> [org.apache.commons.httpclient.HttpMethodDirector] Retrying> request>>> > Yahoo! Shopping> Find Great Deals on Holiday Gifts at Yahoo! Shopping>>--Davanum Srinivas : http://wso2.com/blogs/
	
		Yahoo! Shopping 
Find Great Deals on Holiday Gifts at Yahoo! Shopping 

Re: EchoNonBlockingDualClient

2005-12-14 Thread Davanum Srinivas
Is this a IPv6 box?

On 12/14/05, Alan Aguia <[EMAIL PROTECTED]> wrote:
> Hi Im trying to deploy the EchoNonBlockingDualClient in my sun solaris 8
> server but I get this error, I dont know what its causing the problem and
> how to solve it.  Im running axis2 using jboss and with a proxypass from
> apache. If I run EchoNonBlockingClient everything work fine.
>
> Alan.
>
> 2005-12-14 12:10:20,787 INFO
> [org.apache.axis2.engine.AxisEngine] Axis Engine Started
> 2005-12-14 12:10:20,787 INFO  [org.apache.axis2.engine.Phase] Invoke the
> Handler AddressingOutHandlerwith in the Phase MessageOut
> 2005-12-14 12:10:20,797 INFO
> [org.apache.commons.httpclient.HttpMethodDirector] I/O
> exception caught when processing request: Connection refused
> 2005-12-14 12:10:20,797 INFO
> [org.apache.commons.httpclient.HttpMethodDirector] Retrying
> request
> 2005-12-14 12:10:20,801 INFO
> [org.apache.commons.httpclient.HttpMethodDirector] I/O
> exception caught when pr ocessing request: Connection refused
> 2005-12-14 12:10:20,801 INFO
> [org.apache.commons.httpclient.HttpMethodDirector] Retrying
> request
> 2005-12-14 12:10:20,806 INFO
> [org.apache.commons.httpclient.HttpMethodDirector] I/O
> exception caught when processing request: Connection refused
> 2005-12-14 12:10:20,806 INFO
> [org.apache.commons.httpclient.HttpMethodDirector] Retrying
> request
>
>
>  
> Yahoo! Shopping
>  Find Great Deals on Holiday Gifts at Yahoo! Shopping
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


EchoNonBlockingDualClient

2005-12-14 Thread Alan Aguia
Hi Im trying to deploy the EchoNonBlockingDualClient in my sun solaris 8 server but I get this error, I dont know what its causing the problem and how to solve it.  Im running axis2 using jboss and with a proxypass from apache. If I run EchoNonBlockingClient everything work fine.     Alan.     2005-12-14 12:10:20,787 INFO  [org.apache.axis2.engine.AxisEngine] Axis Engine Started2005-12-14 12:10:20,787 INFO  [org.apache.axis2.engine.Phase] Invoke the Handler AddressingOutHandlerwith in the Phase MessageOut2005-12-14 12:10:20,797 INFO  [org.apache.commons.httpclient.HttpMethodDirector] I/O exception caught when processing request: Connection refused2005-12-14 12:10:20,797 INFO  [org.apache.commons.httpclient.HttpMethodDirector] Retrying request2005-12-14 12:10:20,801 INFO  [org.apache.commons.httpclient.HttpMethodDirector] I/O exception caught when pr
 ocessing
 request: Connection refused2005-12-14 12:10:20,801 INFO  [org.apache.commons.httpclient.HttpMethodDirector] Retrying request2005-12-14 12:10:20,806 INFO  [org.apache.commons.httpclient.HttpMethodDirector] I/O exception caught when processing request: Connection refused2005-12-14 12:10:20,806 INFO  [org.apache.commons.httpclient.HttpMethodDirector] Retrying request
	
		Yahoo! Shopping 
Find Great Deals on Holiday Gifts at Yahoo! Shopping