Hello,

I ran the example with: run.client -Dfile c:\out.txt -Ddest c:\in.txt

But the error message is the same. I just can't think of what might be
wrong. Just for changes I tried the other attachment sample 
"soapwithattachments". It also didn't work but the error message is somehow 
different. Maybe this helps a bit:

First thing which is strange: The run-client triggers a redeploy on the
server and then error on client side is this:

[java] INFO: Deploying Web service  version.aar
[java] Exception in thread "main" org.apache.axis2.AxisFault: 
Exception occurred while trying to invoke service method uploadFile
[java]     at org.apache.axis2.description.OutInAxisOperationClient.execute
(OutInAxisOperation.java:308)
[java]     at sample.soapwithattachments.client.SWAClient.transferFile(SWAC
lient.java:133)
[java]     at sample.soapwithattachments.client.SWAClient.main(SWAClient.ja
va:81)
[java] Java Result: 1

Also on the server side an error occurs:

23.11.2006 11:06:49 org.apache.axis2.rpc.receivers.RPCMessageReceiver
invokeBusinessLogic
SCHWERWIEGEND: Exception occurred while trying to invoke service method
uploadFile
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMes
sageReceiver.
java:118)
        at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abstract
InOutSyncMess
ageReceiver.java:39)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
        at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
TPTransportUt
ils.java:319)
        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:247)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.j
ava:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Htt
p11BaseProtocol.java:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.ja
va:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
        at
sample.soapwithattachments.service.AttachmentService.uploadFile(AttachmentSe
rvice.java:21
)
        ... 25 more



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to