You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2010/01/27 04:04:32 UTC

[jira] Created: (CAMEL-2407) XmlStream can't deal with different encoding xml message

XmlStream can't deal with different encoding xml message
--------------------------------------------------------

                 Key: CAMEL-2407
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2407
             Project: Apache Camel
          Issue Type: Bug
    Affects Versions: 2.1.0, 2.0.0, 2.0-M3, 2.0-M2, 1.6.2, 1.6.1, 2.0-M1, 1.6.0, 1.5.0, 1.4.0
            Reporter: Willem Jiang
             Fix For: 1.6.3, 2.2.0


here is [the mail thread|http://old.nabble.com/XStream-and-forcing-ISO-8859-1-Encoding-tp27328336p27328442.html] which discusses about it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-2407) XmlStream can't deal with different encoding xml message

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-2407:
-----------------------------------

    Assignee: Willem Jiang

> XmlStream can't deal with different encoding xml message
> --------------------------------------------------------
>
>                 Key: CAMEL-2407
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2407
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0, 2.1.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.6.3, 2.2.0
>
>
> here is [the mail thread|http://old.nabble.com/XStream-and-forcing-ISO-8859-1-Encoding-tp27328336p27328442.html] which discusses about it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2407) XmlStream can't deal with different encoding xml message

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57239#action_57239 ] 

Claus Ibsen commented on CAMEL-2407:
------------------------------------

Willem can you look at the WARNING you now get as the type converter overrides some stuff

{code}
2010-01-29 10:22:23,577 [main           ] WARN  DefaultTypeConverter           - Overriding type converter from: InstanceMethodTypeConverter: public javax.xml.stream.XMLEventWriter org.apache.camel.converter.jaxp.StaxConverter.createXMLEventWriter(java.io.OutputStream) throws javax.xml.stream.XMLStreamException to: InstanceMethodTypeConverter: public javax.xml.stream.XMLEventWriter org.apache.camel.converter.jaxp.StaxConverter.createXMLEventWriter(java.io.OutputStream,org.apache.camel.Exchange) throws javax.xml.stream.XMLStreamException
2010-01-29 10:22:23,580 [main           ] WARN  DefaultTypeConverter           - Overriding type converter from: InstanceMethodTypeConverter: public javax.xml.stream.XMLStreamWriter org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamWriter(java.io.OutputStream) throws javax.xml.stream.XMLStreamException to: InstanceMethodTypeConverter: public javax.xml.stream.XMLStreamWriter org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamWriter(java.io.OutputStream,org.apache.camel.Exchange) throws javax.xml.stream.XMLStreamException
2010-01-29 10:22:23,583 [main           ] WARN  DefaultTypeConverter           - Overriding type converter from: InstanceMethodTypeConverter: public javax.xml.stream.XMLStreamReader org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamReader(java.io.InputStream,org.apache.camel.Exchange) throws javax.xml.stream.XMLStreamException to: InstanceMethodTypeConverter: public javax.xml.stream.XMLStreamReader org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamReader(java.io.InputStream) throws javax.xml.stream.XMLStreamException
2010-01-29 10:22:23,589 [main           ] WARN  DefaultTypeConverter           - Overriding type converter from: InstanceMethodTypeConverter: public javax.xml.stream.XMLEventReader org.apache.camel.converter.jaxp.StaxConverter.createXMLEventReader(java.io.InputStream) throws javax.xml.stream.XMLStreamException to: InstanceMethodTypeConverter: public javax.xml.stream.XMLEventReader org.apache.camel.converter.jaxp.StaxConverter.createXMLEventReader(java.io.InputStream,org.apache.camel.Exchange) throws javax.xml.stream.XMLStreamException
2010
{code}

This is annoying and should be fixed before the 2.2

> XmlStream can't deal with different encoding xml message
> --------------------------------------------------------
>
>                 Key: CAMEL-2407
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2407
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0, 2.1.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 1.6.3, 2.3.0
>
>
> here is [the mail thread|http://old.nabble.com/XStream-and-forcing-ISO-8859-1-Encoding-tp27328336p27328442.html] which discusses about it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2407) XmlStream can't deal with different encoding xml message

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57196#action_57196 ] 

Claus Ibsen commented on CAMEL-2407:
------------------------------------

Willem have you commit anything to this one? If not then we will move it to 2.3 as Hadrian has _green light_ to do the 2.2 release.

> XmlStream can't deal with different encoding xml message
> --------------------------------------------------------
>
>                 Key: CAMEL-2407
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2407
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0, 2.1.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.6.3, 2.2.0
>
>
> here is [the mail thread|http://old.nabble.com/XStream-and-forcing-ISO-8859-1-Encoding-tp27328336p27328442.html] which discusses about it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-2407) XmlStream can't deal with different encoding xml message

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-2407:
-------------------------------

         Priority: Minor  (was: Major)
    Fix Version/s:     (was: 1.6.3)
                       (was: 2.2.0)
                   2.3.0
       Issue Type: New Feature  (was: Bug)

Its not a bug, its a new feature as the component did not support that option before

> XmlStream can't deal with different encoding xml message
> --------------------------------------------------------
>
>                 Key: CAMEL-2407
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2407
>             Project: Apache Camel
>          Issue Type: New Feature
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0, 2.1.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 1.6.3, 2.3.0
>
>
> here is [the mail thread|http://old.nabble.com/XStream-and-forcing-ISO-8859-1-Encoding-tp27328336p27328442.html] which discusses about it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2407) XmlStream can't deal with different encoding xml message

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57237#action_57237 ] 

Willem Jiang commented on CAMEL-2407:
-------------------------------------

@Claus 
Yeah, it is easy to add this encoding property on XmlStream DataFormat. 
+1 for you suggestion.
I already committed a fix to let the XmlStream DataFormat take the Exchange CHARSET property and will commit the encoding fix for it. 


> XmlStream can't deal with different encoding xml message
> --------------------------------------------------------
>
>                 Key: CAMEL-2407
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2407
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0, 2.1.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 1.6.3, 2.3.0
>
>
> here is [the mail thread|http://old.nabble.com/XStream-and-forcing-ISO-8859-1-Encoding-tp27328336p27328442.html] which discusses about it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2407) XmlStream can't deal with different encoding xml message

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57199#action_57199 ] 

Willem Jiang commented on CAMEL-2407:
-------------------------------------

@Claus
We can't set the String encoding on the XmlStreamDataFormat, and the user find the work around for this.
I think we can move this feature to camel 2.3.0.


> XmlStream can't deal with different encoding xml message
> --------------------------------------------------------
>
>                 Key: CAMEL-2407
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2407
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0, 2.1.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 1.6.3, 2.3.0
>
>
> here is [the mail thread|http://old.nabble.com/XStream-and-forcing-ISO-8859-1-Encoding-tp27328336p27328442.html] which discusses about it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2407) XmlStream can't deal with different encoding xml message

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57229#action_57229 ] 

Claus Ibsen commented on CAMEL-2407:
------------------------------------

Willem you can easily add a property on XStream DataFormat and have xstream builder method in camel-core accepting an encoding as well.

> XmlStream can't deal with different encoding xml message
> --------------------------------------------------------
>
>                 Key: CAMEL-2407
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2407
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0, 2.1.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 1.6.3, 2.3.0
>
>
> here is [the mail thread|http://old.nabble.com/XStream-and-forcing-ISO-8859-1-Encoding-tp27328336p27328442.html] which discusses about it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-2407) XmlStream can't deal with different encoding xml message

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-2407:
-------------------------------

    Issue Type: Improvement  (was: New Feature)

> XmlStream can't deal with different encoding xml message
> --------------------------------------------------------
>
>                 Key: CAMEL-2407
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2407
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0, 2.1.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 1.6.3, 2.3.0
>
>
> here is [the mail thread|http://old.nabble.com/XStream-and-forcing-ISO-8859-1-Encoding-tp27328336p27328442.html] which discusses about it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2407) XmlStream can't deal with different encoding xml message

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57241#action_57241 ] 

Willem Jiang commented on CAMEL-2407:
-------------------------------------

@Claus,

Sure, I will fix these WARN messages in my next commit.


> XmlStream can't deal with different encoding xml message
> --------------------------------------------------------
>
>                 Key: CAMEL-2407
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2407
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0, 2.1.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 1.6.3, 2.3.0
>
>
> here is [the mail thread|http://old.nabble.com/XStream-and-forcing-ISO-8859-1-Encoding-tp27328336p27328442.html] which discusses about it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2407) XmlStream can't deal with different encoding xml message

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-2407.
---------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.3.0)
                   2.2.0

> XmlStream can't deal with different encoding xml message
> --------------------------------------------------------
>
>                 Key: CAMEL-2407
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2407
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0, 2.1.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 1.6.3, 2.2.0
>
>
> here is [the mail thread|http://old.nabble.com/XStream-and-forcing-ISO-8859-1-Encoding-tp27328336p27328442.html] which discusses about it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-2407) XmlStream can't deal with different encoding xml message

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-2407:
-------------------------------

    Fix Version/s: 1.6.3

> XmlStream can't deal with different encoding xml message
> --------------------------------------------------------
>
>                 Key: CAMEL-2407
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2407
>             Project: Apache Camel
>          Issue Type: New Feature
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0, 2.1.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 1.6.3, 2.3.0
>
>
> here is [the mail thread|http://old.nabble.com/XStream-and-forcing-ISO-8859-1-Encoding-tp27328336p27328442.html] which discusses about it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.