You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jorge Fernández (JIRA)" <ji...@apache.org> on 2007/09/24 20:28:50 UTC
[jira] Created: (AXIS2-3226) MTOM has problems when I create an
attachtment from a byte array of zero elements
MTOM has problems when I create an attachtment from a byte array of zero elements
---------------------------------------------------------------------------------
Key: AXIS2-3226
URL: https://issues.apache.org/jira/browse/AXIS2-3226
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Environment: Windows XP SP2, Tomcat 6.0
Reporter: Jorge Fernández
If I define a DataHandler from an ByteArrayDataSource and this one from a byte array of zero elements, I get the following exception in the client:
org.apache.axis2.AxisFault: Referenced Attachment not found in the MIME Message. ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:50213)
at client.Medici_LinkStub.getSignalData(Medici_LinkStub.java:6500)
at client.ClientUtilities.getSignalDataTest(ClientUtilities.java:600)
at client.Client.main(Client.java:172)
Caused by: org.apache.axiom.om.OMException: Referenced Attachment not found in the MIME Message.
ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
at org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:106)Closing
session...
at client.Medici_LinkStub$ExtDataSegment$Factory.parse(Medici_LinkStub.java:34167)
at client.Medici_LinkStub$ExtSignalData$Factory.parse(Medici_LinkStub.java:35862)
at client.Medici_LinkStub$GetSignalDataResponse$Factory.parse(Medici_LinkStub.java:8777)
at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:49766)
... 3 more
--
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
[jira] Assigned: (AXIS2-3226) MTOM has problems when I create an
attachtment from a byte array of zero elements
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe reassigned AXIS2-3226:
----------------------------------------
Assignee: Thilina Gunarathne
> MTOM has problems when I create an attachtment from a byte array of zero elements
> ---------------------------------------------------------------------------------
>
> Key: AXIS2-3226
> URL: https://issues.apache.org/jira/browse/AXIS2-3226
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: Windows XP SP2, Tomcat 6.0
> Reporter: Jorge Fernández
> Assignee: Thilina Gunarathne
> Attachments: message1.txt
>
>
> If I define a DataHandler from an ByteArrayDataSource and this one from a byte array of zero elements, I get the following exception in the client:
> org.apache.axis2.AxisFault: Referenced Attachment not found in the MIME Message. ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:50213)
> at client.Medici_LinkStub.getSignalData(Medici_LinkStub.java:6500)
> at client.ClientUtilities.getSignalDataTest(ClientUtilities.java:600)
> at client.Client.main(Client.java:172)
> Caused by: org.apache.axiom.om.OMException: Referenced Attachment not found in the MIME Message.
> ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
> at org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:106)Closing
> session...
> at client.Medici_LinkStub$ExtDataSegment$Factory.parse(Medici_LinkStub.java:34167)
> at client.Medici_LinkStub$ExtSignalData$Factory.parse(Medici_LinkStub.java:35862)
> at client.Medici_LinkStub$GetSignalDataResponse$Factory.parse(Medici_LinkStub.java:8777)
> at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:49766)
> ... 3 more
--
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
[jira] Updated: (AXIS2-3226) MTOM has problems when I create an
attachtment from a byte array of zero elements
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-3226:
------------------------------------
Fix Version/s: 1.4
> MTOM has problems when I create an attachtment from a byte array of zero elements
> ---------------------------------------------------------------------------------
>
> Key: AXIS2-3226
> URL: https://issues.apache.org/jira/browse/AXIS2-3226
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: Windows XP SP2, Tomcat 6.0
> Reporter: Jorge Fernández
> Assignee: Thilina Gunarathne
> Fix For: 1.4
>
> Attachments: message1.txt
>
>
> If I define a DataHandler from an ByteArrayDataSource and this one from a byte array of zero elements, I get the following exception in the client:
> org.apache.axis2.AxisFault: Referenced Attachment not found in the MIME Message. ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:50213)
> at client.Medici_LinkStub.getSignalData(Medici_LinkStub.java:6500)
> at client.ClientUtilities.getSignalDataTest(ClientUtilities.java:600)
> at client.Client.main(Client.java:172)
> Caused by: org.apache.axiom.om.OMException: Referenced Attachment not found in the MIME Message.
> ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
> at org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:106)Closing
> session...
> at client.Medici_LinkStub$ExtDataSegment$Factory.parse(Medici_LinkStub.java:34167)
> at client.Medici_LinkStub$ExtSignalData$Factory.parse(Medici_LinkStub.java:35862)
> at client.Medici_LinkStub$GetSignalDataResponse$Factory.parse(Medici_LinkStub.java:8777)
> at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:49766)
> ... 3 more
--
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
[jira] Updated: (AXIS2-3226) MTOM has problems when I create an
attachtment from a byte array of zero elements
Posted by "Jorge Fernández (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jorge Fernández updated AXIS2-3226:
-----------------------------------
Attachment: message1.txt
> MTOM has problems when I create an attachtment from a byte array of zero elements
> ---------------------------------------------------------------------------------
>
> Key: AXIS2-3226
> URL: https://issues.apache.org/jira/browse/AXIS2-3226
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: Windows XP SP2, Tomcat 6.0
> Reporter: Jorge Fernández
> Attachments: message1.txt
>
>
> If I define a DataHandler from an ByteArrayDataSource and this one from a byte array of zero elements, I get the following exception in the client:
> org.apache.axis2.AxisFault: Referenced Attachment not found in the MIME Message. ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:50213)
> at client.Medici_LinkStub.getSignalData(Medici_LinkStub.java:6500)
> at client.ClientUtilities.getSignalDataTest(ClientUtilities.java:600)
> at client.Client.main(Client.java:172)
> Caused by: org.apache.axiom.om.OMException: Referenced Attachment not found in the MIME Message.
> ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
> at org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:106)Closing
> session...
> at client.Medici_LinkStub$ExtDataSegment$Factory.parse(Medici_LinkStub.java:34167)
> at client.Medici_LinkStub$ExtSignalData$Factory.parse(Medici_LinkStub.java:35862)
> at client.Medici_LinkStub$GetSignalDataResponse$Factory.parse(Medici_LinkStub.java:8777)
> at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:49766)
> ... 3 more
--
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
[jira] Updated: (AXIS2-3226) MTOM has problems when I create an
attachtment from a byte array of zero elements
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-3226:
------------------------------------
Assignee: Rich Scheuerle (was: Thilina Gunarathne)
> MTOM has problems when I create an attachtment from a byte array of zero elements
> ---------------------------------------------------------------------------------
>
> Key: AXIS2-3226
> URL: https://issues.apache.org/jira/browse/AXIS2-3226
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: Windows XP SP2, Tomcat 6.0
> Reporter: Jorge Fernández
> Assignee: Rich Scheuerle
> Fix For: 1.4
>
> Attachments: message1.txt
>
>
> If I define a DataHandler from an ByteArrayDataSource and this one from a byte array of zero elements, I get the following exception in the client:
> org.apache.axis2.AxisFault: Referenced Attachment not found in the MIME Message. ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:50213)
> at client.Medici_LinkStub.getSignalData(Medici_LinkStub.java:6500)
> at client.ClientUtilities.getSignalDataTest(ClientUtilities.java:600)
> at client.Client.main(Client.java:172)
> Caused by: org.apache.axiom.om.OMException: Referenced Attachment not found in the MIME Message.
> ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
> at org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:106)Closing
> session...
> at client.Medici_LinkStub$ExtDataSegment$Factory.parse(Medici_LinkStub.java:34167)
> at client.Medici_LinkStub$ExtSignalData$Factory.parse(Medici_LinkStub.java:35862)
> at client.Medici_LinkStub$GetSignalDataResponse$Factory.parse(Medici_LinkStub.java:8777)
> at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:49766)
> ... 3 more
--
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
[jira] Resolved: (AXIS2-3226) MTOM has problems when I create an
attachtment from a byte array of zero elements
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas resolved AXIS2-3226.
-------------------------------------
Resolution: Fixed
Fixed in svn revision 639536
> MTOM has problems when I create an attachtment from a byte array of zero elements
> ---------------------------------------------------------------------------------
>
> Key: AXIS2-3226
> URL: https://issues.apache.org/jira/browse/AXIS2-3226
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: Windows XP SP2, Tomcat 6.0
> Reporter: Jorge Fernández
> Assignee: Rich Scheuerle
> Fix For: 1.4
>
> Attachments: message1.txt
>
>
> If I define a DataHandler from an ByteArrayDataSource and this one from a byte array of zero elements, I get the following exception in the client:
> org.apache.axis2.AxisFault: Referenced Attachment not found in the MIME Message. ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:50213)
> at client.Medici_LinkStub.getSignalData(Medici_LinkStub.java:6500)
> at client.ClientUtilities.getSignalDataTest(ClientUtilities.java:600)
> at client.Client.main(Client.java:172)
> Caused by: org.apache.axiom.om.OMException: Referenced Attachment not found in the MIME Message.
> ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
> at org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:106)Closing
> session...
> at client.Medici_LinkStub$ExtDataSegment$Factory.parse(Medici_LinkStub.java:34167)
> at client.Medici_LinkStub$ExtSignalData$Factory.parse(Medici_LinkStub.java:35862)
> at client.Medici_LinkStub$GetSignalDataResponse$Factory.parse(Medici_LinkStub.java:8777)
> at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:49766)
> ... 3 more
--
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
[jira] Commented: (AXIS2-3226) MTOM has problems when I create an
attachtment from a byte array of zero elements
Posted by "Roy Willy Haug (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548212 ]
Roy Willy Haug commented on AXIS2-3226:
---------------------------------------
I get an identical error when trying to upload files of byte length 0 from a client to a server.
This might at first glance not seem like an important problem (just skip 0-byte files), but this makes it unneccessary hard to use Axis2 for tasks like mirroring of a disk (which can contain 0-byte files)
I am using Axis2 1.3, MTOM, ADB, Tomcat 5.5, Java1.5.0_09.
DataHandler dh = new DataHandler(new FileDataSource(myZeroByteFile));
> MTOM has problems when I create an attachtment from a byte array of zero elements
> ---------------------------------------------------------------------------------
>
> Key: AXIS2-3226
> URL: https://issues.apache.org/jira/browse/AXIS2-3226
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: Windows XP SP2, Tomcat 6.0
> Reporter: Jorge Fernández
> Assignee: Thilina Gunarathne
> Attachments: message1.txt
>
>
> If I define a DataHandler from an ByteArrayDataSource and this one from a byte array of zero elements, I get the following exception in the client:
> org.apache.axis2.AxisFault: Referenced Attachment not found in the MIME Message. ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:50213)
> at client.Medici_LinkStub.getSignalData(Medici_LinkStub.java:6500)
> at client.ClientUtilities.getSignalDataTest(ClientUtilities.java:600)
> at client.Client.main(Client.java:172)
> Caused by: org.apache.axiom.om.OMException: Referenced Attachment not found in the MIME Message.
> ContentID:1.urn:uuid:0549F3F826EC3041861188639371827@apache.org
> at org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:106)Closing
> session...
> at client.Medici_LinkStub$ExtDataSegment$Factory.parse(Medici_LinkStub.java:34167)
> at client.Medici_LinkStub$ExtSignalData$Factory.parse(Medici_LinkStub.java:35862)
> at client.Medici_LinkStub$GetSignalDataResponse$Factory.parse(Medici_LinkStub.java:8777)
> at client.Medici_LinkStub.fromOM(Medici_LinkStub.java:49766)
> ... 3 more
--
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