You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Arjen Poutsma (JIRA)" <ji...@apache.org> on 2006/10/12 00:43:35 UTC

[jira] Created: (WSCOMMONS-110) org.apache.axiom.attachments.Attachments throws ClassCastException

org.apache.axiom.attachments.Attachments throws ClassCastException
------------------------------------------------------------------

                 Key: WSCOMMONS-110
                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-110
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
         Environment: Axiom 1.1.1
            Reporter: Arjen Poutsma


The org.apache.axiom.attachments.Attachments class has a private field attachmentMap, which should contain JAF DataHandlers. However, in the method getNextPartDataHandler, line 407, the map is filled with a Part, not a DataHandler. This eventually results in a ClassCastException, since the rest of the class expects the map to contain DataHandlers.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Commented: (WSCOMMONS-110) org.apache.axiom.attachments.Attachments throws ClassCastException

Posted by "Arjen Poutsma (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WSCOMMONS-110?page=comments#action_12442272 ] 
            
Arjen Poutsma commented on WSCOMMONS-110:
-----------------------------------------

Thanks for the quick fix!

> org.apache.axiom.attachments.Attachments throws ClassCastException
> ------------------------------------------------------------------
>
>                 Key: WSCOMMONS-110
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-110
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Axiom 1.1.1
>            Reporter: Arjen Poutsma
>         Assigned To: Thilina Gunarathne
>
> The org.apache.axiom.attachments.Attachments class has a private field attachmentMap, which should contain JAF DataHandlers. However, in the method getNextPartDataHandler, line 407, the map is filled with a Part, not a DataHandler. This eventually results in a ClassCastException, since the rest of the class expects the map to contain DataHandlers.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Commented: (WSCOMMONS-110) org.apache.axiom.attachments.Attachments throws ClassCastException

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WSCOMMONS-110?page=comments#action_12441592 ] 
            
Davanum Srinivas commented on WSCOMMONS-110:
--------------------------------------------

Arjen,

Do you have a quick patch that i can apply?

thanks,
dims

> org.apache.axiom.attachments.Attachments throws ClassCastException
> ------------------------------------------------------------------
>
>                 Key: WSCOMMONS-110
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-110
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Axiom 1.1.1
>            Reporter: Arjen Poutsma
>
> The org.apache.axiom.attachments.Attachments class has a private field attachmentMap, which should contain JAF DataHandlers. However, in the method getNextPartDataHandler, line 407, the map is filled with a Part, not a DataHandler. This eventually results in a ClassCastException, since the rest of the class expects the map to contain DataHandlers.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Resolved: (WSCOMMONS-110) org.apache.axiom.attachments.Attachments throws ClassCastException

Posted by "Thilina Gunarathne (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WSCOMMONS-110?page=all ]

Thilina Gunarathne resolved WSCOMMONS-110.
------------------------------------------

    Resolution: Fixed
      Assignee: Thilina Gunarathne

Fixed http://svn.apache.org/viewvc?view=rev&rev=463595

Thanks Arjen for pointing this out.. I have missed this point in the recent refactoring..

> org.apache.axiom.attachments.Attachments throws ClassCastException
> ------------------------------------------------------------------
>
>                 Key: WSCOMMONS-110
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-110
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Axiom 1.1.1
>            Reporter: Arjen Poutsma
>         Assigned To: Thilina Gunarathne
>
> The org.apache.axiom.attachments.Attachments class has a private field attachmentMap, which should contain JAF DataHandlers. However, in the method getNextPartDataHandler, line 407, the map is filled with a Part, not a DataHandler. This eventually results in a ClassCastException, since the rest of the class expects the map to contain DataHandlers.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Commented: (WSCOMMONS-110) org.apache.axiom.attachments.Attachments throws ClassCastException

Posted by "Arjen Poutsma (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WSCOMMONS-110?page=comments#action_12441646 ] 
            
Arjen Poutsma commented on WSCOMMONS-110:
-----------------------------------------

I'll try and create one.

> org.apache.axiom.attachments.Attachments throws ClassCastException
> ------------------------------------------------------------------
>
>                 Key: WSCOMMONS-110
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-110
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Axiom 1.1.1
>            Reporter: Arjen Poutsma
>
> The org.apache.axiom.attachments.Attachments class has a private field attachmentMap, which should contain JAF DataHandlers. However, in the method getNextPartDataHandler, line 407, the map is filled with a Part, not a DataHandler. This eventually results in a ClassCastException, since the rest of the class expects the map to contain DataHandlers.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org