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 "Sanka Samaranayake (JIRA)" <ji...@apache.org> on 2006/11/07 06:49:37 UTC

[jira] Resolved: (AXIS2-1574) Exception when using RPCInOnlyMessageReceiver

     [ http://issues.apache.org/jira/browse/AXIS2-1574?page=all ]

Sanka Samaranayake resolved AXIS2-1574.
---------------------------------------

    Resolution: Fixed

If you define the <operation> .. <operation> element in the services.xml you must specify the mep as follows[1]

I've tested the code with newly generated stub and it works fine. Hence I am closing this issue.


[1]
<service>
	<description>Web Service for ApplinX connection info management</description>
	<parameter name="ServiceClass" locked="false">com.test.Service</parameter>
	<operation name="dummy" mep="http://www.w3.org/2004/08/wsdl/in-only">
		<messageReceiver class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
	</operation>
</service>

I

> Exception when using RPCInOnlyMessageReceiver
> ---------------------------------------------
>
>                 Key: AXIS2-1574
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1574
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>    Affects Versions: 1.1
>         Environment: Windows XP Pro, Tomcat 5.0.28, latest nightly.
>            Reporter: Shahar Kedar
>         Assigned To: Sanka Samaranayake
>         Attachments: Service.aar, ServiceStub.java, ServiceTest.java
>
>
> I receiving the following exception when trying to invoke the dummy operation:
> 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:367)
> 	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:281)
> 	at com.test.ServiceStub.dummy(ServiceStub.java:141)
> 	at com.test.ServiceTest.testdummy(ServiceTest.java:33)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>  Attached is the AAR, the generated stub and stub tester.

-- 
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