You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jeff Peterson (JIRA)" <ji...@apache.org> on 2006/08/01 19:34:13 UTC

[jira] Created: (AXIS2-955) ServiceClient.sendRobust() throws AxisFault: Incoming message input stream is null

ServiceClient.sendRobust() throws AxisFault: Incoming message input stream is null
----------------------------------------------------------------------------------

                 Key: AXIS2-955
                 URL: http://issues.apache.org/jira/browse/AXIS2-955
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: client-api
    Affects Versions: 1.0
         Environment: Weblogic 8.1.2, Solaris 8 (dont ask!)
            Reporter: Jeff Peterson
            Priority: Minor


The setup:

Client -------> Service

The service is using the RawXMLINOnlyMessageReceiver and the interface looks like the following (pseudo-code):

interface Service {
  void doWork(OMElement elem);
}

When the client invokes the target service using ServiceClient.sendRobust(), the following exception is generated on the client-side:

org.apache.axis2.AxisFault: Incoming message input stream is null
        at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:349)
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
        at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:359)
        at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:339)
        ...

This does not limit functionality, the full message is received and processed by the service.  It does, however, force the client to handle (ignore) the exception.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-955) ServiceClient.sendRobust() throws AxisFault: Incoming message input stream is null

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-955?page=all ]

Deepal Jayasinghe resolved AXIS2-955.
-------------------------------------

    Resolution: Fixed

issue is fixed in the current SVN

> ServiceClient.sendRobust() throws AxisFault: Incoming message input stream is null
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-955
>                 URL: http://issues.apache.org/jira/browse/AXIS2-955
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: 1.0
>         Environment: Weblogic 8.1.2, Solaris 8 (dont ask!)
>            Reporter: Jeff Peterson
>         Assigned To: Deepal Jayasinghe
>            Priority: Minor
>
> The setup:
> Client -------> Service
> The service is using the RawXMLINOnlyMessageReceiver and the interface looks like the following (pseudo-code):
> interface Service {
>   void doWork(OMElement elem);
> }
> When the client invokes the target service using ServiceClient.sendRobust(), the following exception is generated on the client-side:
> org.apache.axis2.AxisFault: Incoming message input stream is null
>         at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
>         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:349)
>         at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
>         at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:359)
>         at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:339)
>         ...
> This does not limit functionality, the full message is received and processed by the service.  It does, however, force the client to handle (ignore) the exception.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-955) ServiceClient.sendRobust() throws AxisFault: Incoming message input stream is null

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-955?page=all ]

Deepal Jayasinghe reassigned AXIS2-955:
---------------------------------------

    Assignee: Deepal Jayasinghe

> ServiceClient.sendRobust() throws AxisFault: Incoming message input stream is null
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-955
>                 URL: http://issues.apache.org/jira/browse/AXIS2-955
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: 1.0
>         Environment: Weblogic 8.1.2, Solaris 8 (dont ask!)
>            Reporter: Jeff Peterson
>         Assigned To: Deepal Jayasinghe
>            Priority: Minor
>
> The setup:
> Client -------> Service
> The service is using the RawXMLINOnlyMessageReceiver and the interface looks like the following (pseudo-code):
> interface Service {
>   void doWork(OMElement elem);
> }
> When the client invokes the target service using ServiceClient.sendRobust(), the following exception is generated on the client-side:
> org.apache.axis2.AxisFault: Incoming message input stream is null
>         at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
>         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:349)
>         at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
>         at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:359)
>         at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:339)
>         ...
> This does not limit functionality, the full message is received and processed by the service.  It does, however, force the client to handle (ignore) the exception.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-955) ServiceClient.sendRobust() throws AxisFault: Incoming message input stream is null

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-955?page=comments#action_12425007 ] 
            
Ali Sadik Kumlali commented on AXIS2-955:
-----------------------------------------

AFAIK, this is rather a feature. When you use sendRobust(), client will wait for a *soap* message from the service. But when you use RawXMLINOnlyMessageReceiver at the server side, there will be no *soap* message from the server. Yes, the server sends back a *HTTP* response, but it doesn't have a soap message in it. 

Consequently, you should either use fireAndForget () or use RawXMLINOutMessageReceiver.

Please note that, what I say is how sendRobust () and RawXMLINOnlyMessageReceiver interaction behaves currently. I cannot claim that it must be in this way.

> ServiceClient.sendRobust() throws AxisFault: Incoming message input stream is null
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-955
>                 URL: http://issues.apache.org/jira/browse/AXIS2-955
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: 1.0
>         Environment: Weblogic 8.1.2, Solaris 8 (dont ask!)
>            Reporter: Jeff Peterson
>            Priority: Minor
>
> The setup:
> Client -------> Service
> The service is using the RawXMLINOnlyMessageReceiver and the interface looks like the following (pseudo-code):
> interface Service {
>   void doWork(OMElement elem);
> }
> When the client invokes the target service using ServiceClient.sendRobust(), the following exception is generated on the client-side:
> org.apache.axis2.AxisFault: Incoming message input stream is null
>         at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
>         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:349)
>         at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
>         at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:359)
>         at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:339)
>         ...
> This does not limit functionality, the full message is received and processed by the service.  It does, however, force the client to handle (ignore) the exception.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-955) ServiceClient.sendRobust() throws AxisFault: Incoming message input stream is null

Posted by "Jeff Peterson (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-955?page=comments#action_12425020 ] 
            
Jeff Peterson commented on AXIS2-955:
-------------------------------------

I thought its purpose is to allow a one-way send with an _optional_ soap fault response.  The fact that the response/fault is optional was what differentiates it from the standard sendReceive()/fireAndForget() methods.

Perhaps I should have refined my interface above to be:

interface Service {
  void doWork(OMElement elem) throws AxisFault;
}



> ServiceClient.sendRobust() throws AxisFault: Incoming message input stream is null
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-955
>                 URL: http://issues.apache.org/jira/browse/AXIS2-955
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: 1.0
>         Environment: Weblogic 8.1.2, Solaris 8 (dont ask!)
>            Reporter: Jeff Peterson
>            Priority: Minor
>
> The setup:
> Client -------> Service
> The service is using the RawXMLINOnlyMessageReceiver and the interface looks like the following (pseudo-code):
> interface Service {
>   void doWork(OMElement elem);
> }
> When the client invokes the target service using ServiceClient.sendRobust(), the following exception is generated on the client-side:
> org.apache.axis2.AxisFault: Incoming message input stream is null
>         at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
>         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:349)
>         at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
>         at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:359)
>         at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:339)
>         ...
> This does not limit functionality, the full message is received and processed by the service.  It does, however, force the client to handle (ignore) the exception.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-955) ServiceClient.sendRobust() throws AxisFault: Incoming message input stream is null

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-955?page=comments#action_12425037 ] 
            
Ali Sadik Kumlali commented on AXIS2-955:
-----------------------------------------

Sorry for my other comment that says "this is rather a feature". I forgot the last conclusion about this problem :(  

As you figured out, if the service throws an exception while processing, you'll see sendRobust () & RawXMLINOutMessageReceiver combination works perfectly. But it is not true if the service ends up successfully and does not throw an exception. 

Since I thought that was a very strange thing, I sent a mail to the axis-user: http://www.mail-archive.com/axis-user@ws.apache.org/msg13665.html

An excerpt from the message flow:
[Me] - sendRobust(): Can handle HTTP 500. But it expects a not-null input stream from the server.
[Deepal] - sendRobuts problem need to be fixed.



> ServiceClient.sendRobust() throws AxisFault: Incoming message input stream is null
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-955
>                 URL: http://issues.apache.org/jira/browse/AXIS2-955
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: 1.0
>         Environment: Weblogic 8.1.2, Solaris 8 (dont ask!)
>            Reporter: Jeff Peterson
>            Priority: Minor
>
> The setup:
> Client -------> Service
> The service is using the RawXMLINOnlyMessageReceiver and the interface looks like the following (pseudo-code):
> interface Service {
>   void doWork(OMElement elem);
> }
> When the client invokes the target service using ServiceClient.sendRobust(), the following exception is generated on the client-side:
> org.apache.axis2.AxisFault: Incoming message input stream is null
>         at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
>         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:349)
>         at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
>         at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:359)
>         at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:339)
>         ...
> This does not limit functionality, the full message is received and processed by the service.  It does, however, force the client to handle (ignore) the exception.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org