Hi, I'm using Java 1.5, Axis 2 and trying to make a request to a web service. 
However, I am getting an "Invalid argument" exception, and I can't tell what
argument the service is complaining about.  The request I'm sending is

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";><soapenv:Body><ns2:match
xmlns:ns2="http://soap.matching.driver.dmv.dor.myco";><ns2:matchRequest><identityMatchParameters
xmlns="http://soap.matching.driver.dmv.dor.myco/xsd";><firstName>F</firstName><lastName>LASTNAME</lastName><mailAddress1>123
MAILING
STREET</mailAddress1><mailZip5>43210</mailZip5><monthOfBirth>12</monthOfBirth><yearOfBirth>1968</yearOfBirth></identityMatchParameters><ns1:matchCodes
xmlns:ns1="http://soap.matching.driver.dmv.dor.myco/xsd";>31</ns1:matchCodes></ns2:matchRequest></ns2:match></soapenv:Body></soapenv:Envelope>

and below is the exception in the junit logs (with which I'm testing).   I
don't see any errors in the axis logs or on the server side, but I don't
think the request is reaching the server. - Dave

org.apache.axis2.AxisFault: Invalid argument
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
        at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
        at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
        at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
        at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at
myco.dor.dmv.driver.matching.soap.MatchingServiceStub.match(MatchingServiceStub.java:246)
        at
myco.dor.dmv.driver.matching.test.MatchingServiceTest._testMatch(MatchingServiceTest.java:16837)
        at
myco.dor.dmv.driver.matching.test.MatchingServiceTest._testMatch(MatchingServiceTest.java:16813)
        at
myco.dor.dmv.driver.matching.test.MatchingServiceTest._testMatchInvalidCaseType(MatchingServiceTest.java:16802)
        at
myco.dor.dmv.driver.matching.test.MatchingServiceTest._testInvalidMatchNegativeBirthMonth(MatchingServiceTest.java:16459)
        at
myco.dor.dmv.driver.matching.test.MatchingServiceTest.test31MatchInvalid_NegativeBirthMonth(MatchingServiceTest.java:4128)
        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:297)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1072)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:682)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1434)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:632)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:195)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at
org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at
org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:83)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:116)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:116)
 
        at org.apache.maven.werkz.Goal.fire(Goal.java:691) 
        at org.apache.maven.werkz.Goal.attain(Goal.java:623) 
        at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:712) 
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:265) 
        at org.apache.maven.cli.App.doMain(App.java:307) 
        at org.apache.maven.cli.App.main(App.java:217) 
        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 com.werken.forehead.Forehead.run(Forehead.java:551) 
        at com.werken.forehead.Forehead.main(Forehead.java:581) 
Caused by: java.net.SocketException: Invalid argument 
        at java.net.SocketInputStream.socketRead0(Native Method) 
        at java.net.SocketInputStream.read(SocketInputStream.java:129) 
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) 
        at java.io.BufferedInputStream.read(BufferedInputStream.java:235) 
        at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77) 
        at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105) 
        at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115) 
        at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1373)
 
        at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
 
        at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
 
        at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995) 
        at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
 
        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:520)
 
        at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191) 
        ... 60 more

-- 
View this message in context: 
http://www.nabble.com/AxisFault%3A-Invalid-argument-tp25978521p25978521.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to