Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 52951 invoked from network); 27 Feb 2007 14:03:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2007 14:03:29 -0000 Received: (qmail 39188 invoked by uid 500); 27 Feb 2007 14:03:35 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 39151 invoked by uid 500); 27 Feb 2007 14:03:35 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 39138 invoked by uid 99); 27 Feb 2007 14:03:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Feb 2007 06:03:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Feb 2007 06:03:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7C04D71403D for ; Tue, 27 Feb 2007 06:03:05 -0800 (PST) Message-ID: <1821414.1172584985505.JavaMail.jira@brutus> Date: Tue, 27 Feb 2007 06:03:05 -0800 (PST) From: "Brian DePradine (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-2264) "org.apache.axis2.AxisFault: Incoming message input stream is null" while engaging addressing module on client side In-Reply-To: <19995923.1172580365516.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-2264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476177 ] Brian DePradine commented on AXIS2-2264: ---------------------------------------- You should not set options.setReplyTo() in your client application. This will be set for you by Axis2 to enable response messages to make it back to the client. This should make the exception go away. I am not sure why you are not getting addressing headers in the response, but one problem at a time :-) > "org.apache.axis2.AxisFault: Incoming message input stream is null" while engaging addressing module on client side > ------------------------------------------------------------------------------------------------------------------- > > Key: AXIS2-2264 > URL: https://issues.apache.org/jira/browse/AXIS2-2264 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: Addressing > Affects Versions: 1.1.1 > Environment: Linux Fedora fc5, tomcat 6.0.7, java1.5.0_11, Axis2 1.1.1 > Reporter: Federica Ciotti > Attachments: AddService.java, Constants.java, MultiplyService.java, newCalc.aar > > > My client class needs to engage addressing module. > This is my client > package calc1; > public class RPC_MyCalcClient { > public static void main(String[] args){ > try{ > EndpointReference targetEPR = new EndpointReference("http://localhost:8080/axis2/services/AddService/"); > EndpointReference myEPR = new EndpointReference("http://localhost:8080/axis2/services/clientService/"); > Options options = new Options(); > options.setTo(targetEPR); > options.setReplyTo(myEPR); > options.setFrom(myEPR); > //options.setAction("addPrevious"); > options.setAction("add"); > options.setFrom(myEPR); > options.setMessageId("Msg123"); > > RPCServiceClient sender = new RPCServiceClient(); > sender.setOptions(options); > sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); > //add > QName opAdd = new QName("http://calc/xsd", "add"); > Integer a = new Integer(1); > Integer b = new Integer(2); > Object[] params = new Object[] { a, b }; > Class[] returnTypes = new Class[] { Integer.class }; > Object[] response = sender.invokeBlocking(opAdd, params, returnTypes); > Integer result = (Integer) response[0]; > if (result == null) {System.out.println("Null");} > else System.out.println("Result "+ result.toString()); > > //addPrev > /*QName opAdd = new QName("http://calc/xsd", "addPrevious"); > Integer a = new Integer(1); > Object[] params = new Object[] { a}; > Class[] returnTypes = new Class[] { Integer.class }; > Object[] response = sender.invokeBlocking(opAdd, params, returnTypes); > Integer result = (Integer) response[0]; > if (result == null) {System.out.println("Null");} > else System.out.println("Result "+ result.toString());*/ > }catch(AxisFault a){a.printStackTrace();} > } > } > Even if the addressing module is in the classpath I get AxisFault. > This is the exception i get trying to engage addressing module on 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:252) > at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202) > at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579) > at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508) > at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:95) > at calc1.RPC_MyCalcClient.main(RPC_MyCalcClient.java:52) > I noticed from SOAPMonitor that apart the AxisFault the request and response messages are correct but only the request one has the wsa header fields: > SOAPRequest > > > > http://localhost:8080/axis2/services/AddService/ > > http://localhost:8080/axis2/services/clientService/ > > > http://localhost:8080/axis2/services/clientService/ > > Msg123 > add > > > > 1 > 2 > > > > SOAPResponse > > > > > > 3 > > > > How can I get wsa fields in the SOAPResponse (addressing module is already engaged on service side and is the classpath) ? > Dropping the engage instruction from the client code causes the exception to disappear but I have a wsaddressing=required in the services.xml. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org