Ok, I've found a solution on another thread. This is just for people having the same problem. Check if woodstock is in your classpath on the side where the problem occurs... I've had not added woodstock.
Also (as an idea) there should be a check for stax implementation in the classpath and throw a better exception if not found. Markus Wolf schrieb: > Hi, > > is it possible that the dynamic client has problems with MTOM? > I have no further idea what is going wrong... > > This is my service interface, maybe someone can give me a hint what I'm > doing wrong: > > @WebService(name = "ReportingJob", targetNamespace = > "http://www.llynch.net/2007/05/reporting") > @EnableMTOM > public interface ReportingJob { > > /** > * @param reportDesign > */ > @WebMethod > public void run(DataHandler reportDesign); > > /** > * @return The rendered report > */ > @WebMethod > public DataHandler render(); > > } > > >> I've trying to create a webservice (Using JSR181) which could receive >> and send large documents. >> For this I've enabled MTOM and CHUNKING in the client and MTOM in the >> service implementation. >> But when I run my client the server does throw a NPE while getting the >> attachement. Below is the exception trace. >> Am I missing something important? >> >> Thanks for your help. >> >> java.lang.NullPointerException >> at >> org.codehaus.xfire.attachments.AttachmentUtil.getAttachment(AttachmentUtil.java:33) >> at >> org.codehaus.xfire.aegis.type.mtom.AbstractXOPType.readInclude(AbstractXOPType.java:58) >> at >> org.codehaus.xfire.aegis.type.mtom.AbstractXOPType.readObject(AbstractXOPType.java:45) >> at >> org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:162) >> at >> org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:206) >> at >> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:50) >> at >> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42) >> at >> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) >> at >> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64) >> at >> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38) >> at >> org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireServletController.java:281) >> at >> org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:129) >> at >> org.codehaus.xfire.transport.http.XFireServlet.doPost(XFireServlet.java:116) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >> at >> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) >> at >> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677) >> at >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) >> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) >> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) >> at org.mortbay.http.HttpServer.service(HttpServer.java:909) >> at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) >> at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) >> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) >> at >> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) >> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) >> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > > -- NMMN - New Media Markets & Networks GmbH Geschäftsführung: Kfm. Michael Schütt Finanzamt HH-Altona UStID DE 812 699 852 HRB 71102 Hamburg HypoVereinsbank - BLZ 200 300 00 - Konto-Nr. 156 29 82 http://www.nmmn.com Tel.: +49 40 284 118 -0 Langbehnstrasse 6 Entwicklung: -720 22761 Hamburg Fax: -999 Rufen Sie uns kostenlos an: http://www.nmmn.com/call/software --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
