Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 24281 invoked from network); 3 Dec 2007 18:18:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2007 18:18:19 -0000 Received: (qmail 90653 invoked by uid 500); 3 Dec 2007 18:18:06 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 90609 invoked by uid 500); 3 Dec 2007 18:18:06 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 90598 invoked by uid 99); 3 Dec 2007 18:18:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 10:18:06 -0800 X-ASF-Spam-Status: No, hits=-97.8 required=10.0 tests=ALL_TRUSTED,HTTP_ESCAPED_HOST,SUBJECT_DRUG_GAP_X,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 18:18:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 359F9714236 for ; Mon, 3 Dec 2007 10:17:43 -0800 (PST) Message-ID: <11329709.1196705863217.JavaMail.jira@brutus> Date: Mon, 3 Dec 2007 10:17:43 -0800 (PST) From: "Mike Barlotta (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-3384) CXF and Axis2 interop: MTOM In-Reply-To: <15574891.1196703943082.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-3384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547924 ] Mike Barlotta commented on AXIS2-3384: -------------------------------------- Apologies for pasting the wrong stack trace. It was similar but had the wrong content-id for the SOAP response I included. org.apache.axiom.om.OMException: org.apache.axiom.om.OMException: Referenced Attachment not found in the MIME Message. ContentID:b11231ac-cfd1-434f-8f87-29bbcbb2c71c@http://cxf.apache.org/ Thanks, Mike > CXF and Axis2 interop: MTOM > --------------------------- > > Key: AXIS2-3384 > URL: https://issues.apache.org/jira/browse/AXIS2-3384 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.3 > Environment: Windows XP, JBoss, Sun JDK 1.5.0.12 > Reporter: Mike Barlotta > > I am working on getting an Axis2 1.3 MTOM client to work with a Java service written using CXF 2.0.3. > I have been trying to get an Axis2 client to receive an MTOM response back from my service, having been able to successfully send an MTOM value in the request. > Axis2 gives me this error on the SOAP response: > org.apache.axiom.om.OMException: org.apache.axiom.om.OMException: Referenced Attachment not found in the MIME Message. ContentID:95d29856-612d-4f0e-955b-184c6e8a6c9e@http://cxf.apache.org/ > at org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:228) > at org.apache.axiom.om.impl.llom.OMTextImpl.writeOutput(OMTextImpl.java:212) > at org.apache.axiom.om.impl.llom.OMTextImpl.internalSerializeLocal(OMTextImpl.java:390) > at org.apache.axiom.om.impl.llom.OMTextImpl.internalSerialize(OMTextImpl.java:200) > at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:772) > at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:756) > at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:772) > at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:756) > at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:772) > at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:756) > at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:345) > at org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:913) > at java.lang.String.valueOf(String.java:2615) > at java.lang.StringBuilder.append(StringBuilder.java:116) > at com.bah.hello.HeyWorld_Axis2_Client.test_WS_HeyWorld(HeyWorld_Axis2_Client.java:69) > 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.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) > at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > Caused by: org.apache.axiom.om.OMException: Referenced Attachment not found in the MIME Message. ContentID:95d29856-612d-4f0e-955b-184c6e8a6c9e@http://cxf.apache.org/ > at org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:106) > at org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:324) > at org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(OMTextImpl.java:338) > at org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:226) > ... 32 more > This issue I am having also seems related to the error experienced with this posting and issue (which appear to be fixed on CXF side): > http://www.nabble.com/URL-Encoded-ContentIDs-cause-interop-problems-with-Axis2-tf3639780.html#a10164676 > http://issues.apache.org/jira/browse/CXF-596 > Using TCPMON here is the partial SOAP response from CXF: > Hey Axis2 Client > > ------=_Part_0_2698425.1196702522207 > Content-Type: content/type > Content-Transfer-Encoding: binary > Content-ID: > At first I thought the problem might be related to the "<" and ">" surrounding the content id value but it seems that Axis2 also handles the content id in this manner in the request. I also noticed that the content-id in the SOAP response header sent by CXF has the forward slashes encoded, but the content-id as reported by Axis2 in the Exception is not. > Axis2: 95d29856-612d-4f0e-955b-184c6e8a6c9e@http://cxf.apache.org/ > CXF: <95d29856-612d-4f0e-955b-184c6e8a6c9e@http%3A%2F%2Fcxf.apache.org%2F> > It looks like Axis2 is searching incorrectly for the Content-ID value since an exact String match would not occur due to the encoding, and after examining the source in a debugger found that may be the case: > org.apache.axiom.attachments.Attachments class in the getDataHandler (line 270) > if (attachmentsMap.containsKey(blobContentID)) { (line 272) > blobContentId had the following value: > b11231ac-cfd1-434f-8f87-29bbcbb2c71c@http://cxf.apache.org/ > attachmentsMap has the following value: > [b11231ac-cfd1-434f-8f87-29bbcbb2c71c@http%3A%2F%2Fcxf.apache.org%2F=javax.activation.DataHandler@1d709a5, root.message@cxf.apache.org=javax.activation.DataHandler@14b84c7] > Thanks, > Mike -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org