[
https://issues.apache.org/jira/browse/AXIS2-2417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503756
]
sumedha rubasinghe commented on AXIS2-2417:
-------------------------------------------
Hi Mike,
I could not get the test to run. Following is what I did.
1. maven -o -Dtestcase=org.apache.axis2.jaxws.sample.AddNumbersHandlerTests
test:single (this is even without removing _ from the method names)
2. The test report shows a connection refused message. (I have pasted the
contents in the report bellow)
3. Is there anything else I should do to get the test running??
Any pointers to over come this is greatly appreciated.
Thank you.
sumedha
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Testsuite: org.apache.axis2.jaxws.sample.AddNumbersHandlerTests
Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 1.948 sec
------------- Standard Output ---------------
Retrieving document at
'file:/home/sumedha/projects/axis/trunk/modules/jaxws/test/org/apache/axis2/jaxws/sample/addnumbershandler/META-INF/AddNumbersHandler.wsdl'.
------------- ---------------- ---------------
------------- Standard Error -----------------
javax.xml.ws.WebServiceException: java.net.ConnectException: Connection refused
at
org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:172)
at
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:67)
at
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:125)
at
org.apache.axis2.jaxws.core.controller.AxisInvocationController.execute(AxisInvocationController.java:571)
at
org.apache.axis2.jaxws.core.controller.AxisInvocationController.doInvoke(AxisInvocationController.java:109)
at
org.apache.axis2.jaxws.core.controller.InvocationController.invoke(InvocationController.java:98)
at
org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:278)
at
org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:141)
at $Proxy11.addNumbersHandler(Unknown Source)
at
org.apache.axis2.jaxws.sample.AddNumbersHandlerTests.testAddNumbersHandler(AddNumbersHandlerTests.java:60)
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:585)
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
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:516)
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:585)
at
org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:650)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:188)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:74)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:312)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:200)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:383)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:332)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:199)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:142)
at
org.apache.axis2.jaxws.core.controller.AxisInvocationController.execute(AxisInvocationController.java:566)
... 20 more
------------- ---------------- ---------------
Testcase:
testAddNumbersHandler(org.apache.axis2.jaxws.sample.AddNumbersHandlerTests):
FAILED
null
junit.framework.AssertionFailedError
at
org.apache.axis2.jaxws.sample.AddNumbersHandlerTests.testAddNumbersHandler(AddNumbersHandlerTests.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> unimplemented code in kernel module saaj SOAPPartImpl
> -----------------------------------------------------
>
> Key: AXIS2-2417
> URL: https://issues.apache.org/jira/browse/AXIS2-2417
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Environment: discovered in running new JAXWS AddNumbersHandler tests
> Reporter: Mike Rheinheimer
> Assignee: sumedha rubasinghe
> Priority: Blocker
> Attachments: axis-2417.patch,
> TEST-org.apache.axis2.jaxws.sample.AddNumbersHandlerTests.xml
>
>
> When JAXWS handlers are present in an endpoint implementation, or client app,
> they may obviously have access to the SOAP message elements in a given SOAP
> message. This requires that the message be demarshalled for a handler's use.
> In this case, the handler would be using the
> org.apache.axis2.saaj.SOAPPartImpl class from the axis2 kernel module to get
> and set elements in the SOAP message. Hardly anything is implemented in this
> class; there are 58 occurances of "TODO" in there.
> To reproduce the problem, download and build the axis2 environment with the
> org.apache.axis2.jaxws.sample.AddNumbersHandler tests enabled (by removing
> the '_' from the method names in that class)... or a simple reading of the
> SOAPPartImpl will show the unimplemented code.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]