There was a client refactoring for the .94 version - and looking at the .93 and .94 sources show that a lot of what was once in getMessageInformationHeaders() is now placed into the Options class - now a big part of the client side of axis2.
You're going to need to re-compile against .94 and then refactor to use Options. BTW, there is expected to be a .95 release hopefully by the end of the month. An option you may consider is running the nightly builds until then. HTH, Robert http://www.braziloutsource.com/ Em Sexta 17 Março 2006 07:25, o Jens Wolinder escreveu: > Hey all. > > Desperate for help.. Developing an applet which is suppose to send a file > to a server using mtom. > > The problem is this, when calling ServiceClient. sendReceive (OMElement), I > get a java.lang.NoSuchMethodError from > org.apache.axis2.context.MessageContext, and the missing method is > getMessageInformationHeaders(). > > Checked the javadoc and true enough there is no such method in 0.94, but in > 0.93 there is. and now I don't know what to do. is there a mismatch in the > 0.94 release or did I miss something essential?? > > > > Stacktrace: > > Exception in thread "Thread-3" java.lang.NoSuchMethodError: > org.apache.axis2.context.MessageContext.getMessageInformationHeaders()Lorg/ >a pache/axis2/addressing/MessageInformationHeaders; > > at > org.apache.axis2.handlers.addressing.AddressingOutHandler.invoke(Addressing >O utHandler.java:56) > > at > org.apache.axis2.engine.Phase.invoke(Phase.java:376) > > at > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:351) > > at > org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:441) > > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperati >o n.java:317) > > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOper >a tion.java:267) > > at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:393) > > at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:326) > > at > se.teknomedia.util.FileTransferHandler.transferFileMtom(FileTransferHandler >. java:135) > > at > se.teknomedia.applet.DropZone.startTransfer(DropZone.java:760) > > at > se.teknomedia.applet.DropZone.run(DropZone.java:658) > > at java.lang.Thread.run(Unknown Source) > > > > phanx > > /jens --
