axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M. en C. Jesús Sosa Iglesias" <js...@imp.mx>
Subject Re: Attachment Example
Date Tue, 26 Mar 2002 17:45:54 GMT
I´m trying to run the attachment example too but unsuccesfull
The Client attach and send the File Succesfully to Axis but Axis Fails with
IllegalArgumentException.

 java.lang.IllegalArgumentException: argument type mismatch on object
&quot;samples.attachments.EchoAttachmentsService&quot;, method name
&quot;echo&quot;, tried argument types:
org.apache.axis.attachments.AttachmentPart

This is my Client Classpath

CLASSPATH=.;E:\jakarta-tomcat-3.2.3\webapps\axis\WEB-INF\lib\axis.jar;E:\jakarta

-tomcat-3.2.3\webapps\axis\WEB-INF\lib\log4j-core.jar;E:\jakarta-tomcat-4.0.1\co

mmon\lib\xerces.jar;E:\jakarta-tomcat-4.0.1\common\lib\activation.jar;E:\jakarta

-tomcat-3.2.3\webapps\axis\WEB-INF\lib\jaxrpc.jar;E:\jakarta-tomcat-3.2.3\webapp

s\axis\WEB-INF\lib\commons-logging.jar;E:\jakarta-tomcat-3.2.3\webapps\axis\WEB-

INF\lib\tt-bytecode.jar;E:\jakarta-tomcat-3.2.3\webapps\axis\WEB-INF\lib\clutil.

jar;E:\jakarta-tomcat-3.2.3\webapps\axis\WEB-INF\lib\wsdl4j.jar;E:\xml-axis-beta

1-rc2\junit.jar;E:\jakarta-tomcat-3.2.3\lib\mail.jar
------------------------

And this is my FaulString received from the TCPMonitor.

<SOAP-ENV:Body>
  <SOAP-ENV:Fault>
   <faultcode
xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.userException</faultcode>
   <faultstring>java.lang.IllegalArgumentException: argument type mismatch on
object &quot;samples.attachments.EchoAttachmentsService&quot;, method name
&quot;echo&quot;, tried argument types:
org.apache.axis.attachments.AttachmentPart</faultstring>
   <detail>
    <ns2:stackTrace
xmlns:ns2="http://xml.apache.org/axis/">java.lang.IllegalArgumentException:
argument type mismatch on object
&quot;samples.attachments.EchoAttachmentsService&quot;, method name
&quot;echo&quot;, tried argument types:
org.apache.axis.attachments.AttachmentPart&#xd;
 at org.apache.axis.providers.java.RPCProvider.processMessage(Unknown
Source)&#xd;
 at org.apache.axis.providers.java.JavaProvider.invoke(Unknown Source)&#xd;
 at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source)&#xd;
 at org.apache.axis.SimpleChain.doVisiting(Unknown Source)&#xd;
 at org.apache.axis.SimpleChain.invoke(Unknown Source)&#xd;
 at org.apache.axis.server.AxisServer.invoke(Unknown Source)&#xd;
 at org.apache.axis.transport.http.AxisServlet.doPost(Unknown Source)&#xd;
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)&#xd;
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)&#xd;
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)&#xd;
 at org.apache.tomcat.core.Handler.service(Handler.java:287)&#xd;
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)&#xd;
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)&#xd;

 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)&#xd;
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)&#xd;

 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)&#xd;
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)&#xd;
 at java.lang.Thread.run(Thread.java:484)&#xd;
</ns2:stackTrace>
   </detail>
  </SOAP-ENV:Fault>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

--7685785.1017164370509.JavaMail.Administrador.javax

Content-Type: application/octet-stream

Content-Transfer-Encoding: binary

Content-ID: <945990811.1017164359403.AXIS@javax>



             Axis (Apache eXtensible Interaction System)

             -------------------------------------------

             Alpha 3 Release          December 14, 2001



Welcome to Axis!  You'll find documentation in the docs/ directory.



Please read the release notes (release-notes.html) in this directory for

details on the current release.



Thanks from all of us on the Axis team for downloading the package; help

us make it better by sending comments to axis-user@xml.apache.org.







--7685785.1017164370509.JavaMail.Administrador.javax--



Gail Coates wrote:

> I have been trying to run the Attachment Example.
>
> First I was getting the Error reading data stream:  Error in MIME data
> stream, start boundary not found, I added the mail.jar to my classpath on
> the server and that seemed to fix that.
>
> I have the mail.jar on my classpath on the client, without that I receive a
> null pointer exception.
> I am now receiving: org.xml.sax.SAXParseException: required character (found
> "l") (expected "<")
> Gail

Mime
View raw message