axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ann Robinson (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-1806) NullPointerException when OperationClient executes with an invalid transport
Date Fri, 01 Dec 2006 21:58:25 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-1806?page=all ]

Ann Robinson updated AXIS2-1806:
--------------------------------

    Attachment: patch.txt

The patch file includes a test case to show the problem and the fix to the ClientUtils.java
file.

This patch was created against AXIS2 r479679.  



> NullPointerException when OperationClient executes with an invalid transport
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-1806
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1806
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.1
>            Reporter: Ann Robinson
>            Priority: Minor
>         Attachments: patch.txt
>
>
> When using an invalid transport protocol like "htp"  (instead of "http"), a NullPointerException
occurred instead of an AxisFault exception.
> java.lang.NullPointerException
> 	at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> 	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:260)
> 	at org.apache.axis2.engine.UsingTransportTest.testInvalidTransport(UsingTransportTest.java:159)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:615)
> 	at junit.framework.TestCase.runTest(TestCase.java:164)
> 	at junit.framework.TestCase.runBare(TestCase.java:130)
> 	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:120)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:230)
> 	at junit.framework.TestSuite.run(TestSuite.java:225)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.extensions.TestSetup.run(TestSetup.java:25)
> 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
> 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
> 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)

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


Mime
View raw message