You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andy Chang (JIRA)" <ji...@apache.org> on 2012/10/02 19:17:07 UTC

[jira] [Created] (CXF-4537) XmlAdapter Not Being Used

Andy Chang created CXF-4537:
-------------------------------

             Summary: XmlAdapter Not Being Used
                 Key: CXF-4537
                 URL: https://issues.apache.org/jira/browse/CXF-4537
             Project: CXF
          Issue Type: Bug
          Components: JAXB Databinding
            Reporter: Andy Chang
         Attachments: cxf.zip

XmlAdapter is not being used for marshalling/unmarshalling in a JAX-WS service with the following conditions:

-XmlAdapter is being hooked up with @XmlJavaTypeAdapters in package-info.java
-Class that XmlAdapter handles (bound type) has a no-arg constructor

For more info, please see:
http://stackoverflow.com/questions/12684103/xmladapter-not-being-used-in-cxf

In attached sample maven project, the main method is in com.internal.SomeService. Running it should throw an exception with the following cause:

Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
java.util.Currency does not have a no-arg default constructor.
	this problem is related to the following location:
		at java.util.Currency
		at public java.util.Currency com.external.Money.getCurrency()
		at com.external.Money

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CXF-4537) XmlAdapter Not Being Used

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-4537.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.0
                   2.6.3
                   2.5.6
         Assignee: Daniel Kulp
    
> XmlAdapter Not Being Used
> -------------------------
>
>                 Key: CXF-4537
>                 URL: https://issues.apache.org/jira/browse/CXF-4537
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>            Reporter: Andy Chang
>            Assignee: Daniel Kulp
>             Fix For: 2.5.6, 2.6.3, 2.7.0
>
>         Attachments: cxf.zip
>
>
> XmlAdapter is not being used for marshalling/unmarshalling in a JAX-WS service with the following conditions:
> -XmlAdapter is being hooked up with @XmlJavaTypeAdapters in package-info.java
> -Class that XmlAdapter handles (bound type) has a no-arg constructor
> If the no-arg constructor is removed from the bound type, the XmlAdapter is correctly used.
> For more info, please see:
> http://stackoverflow.com/questions/12684103/xmladapter-not-being-used-in-cxf
> In attached sample maven project, the main method is in com.internal.SomeService. Running it should throw an exception with the following cause:
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> java.util.Currency does not have a no-arg default constructor.
> 	this problem is related to the following location:
> 		at java.util.Currency
> 		at public java.util.Currency com.external.Money.getCurrency()
> 		at com.external.Money

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CXF-4537) XmlAdapter Not Being Used

Posted by "Andy Chang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Chang updated CXF-4537:
----------------------------

    Description: 
XmlAdapter is not being used for marshalling/unmarshalling in a JAX-WS service with the following conditions:

-XmlAdapter is being hooked up with @XmlJavaTypeAdapters in package-info.java
-Class that XmlAdapter handles (bound type) has a no-arg constructor

If the no-arg constructor is removed from the bound type, the XmlAdapter is correctly used.

For more info, please see:
http://stackoverflow.com/questions/12684103/xmladapter-not-being-used-in-cxf

In attached sample maven project, the main method is in com.internal.SomeService. Running it should throw an exception with the following cause:

Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
java.util.Currency does not have a no-arg default constructor.
	this problem is related to the following location:
		at java.util.Currency
		at public java.util.Currency com.external.Money.getCurrency()
		at com.external.Money

  was:
XmlAdapter is not being used for marshalling/unmarshalling in a JAX-WS service with the following conditions:

-XmlAdapter is being hooked up with @XmlJavaTypeAdapters in package-info.java
-Class that XmlAdapter handles (bound type) has a no-arg constructor

For more info, please see:
http://stackoverflow.com/questions/12684103/xmladapter-not-being-used-in-cxf

In attached sample maven project, the main method is in com.internal.SomeService. Running it should throw an exception with the following cause:

Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
java.util.Currency does not have a no-arg default constructor.
	this problem is related to the following location:
		at java.util.Currency
		at public java.util.Currency com.external.Money.getCurrency()
		at com.external.Money

    
> XmlAdapter Not Being Used
> -------------------------
>
>                 Key: CXF-4537
>                 URL: https://issues.apache.org/jira/browse/CXF-4537
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>            Reporter: Andy Chang
>         Attachments: cxf.zip
>
>
> XmlAdapter is not being used for marshalling/unmarshalling in a JAX-WS service with the following conditions:
> -XmlAdapter is being hooked up with @XmlJavaTypeAdapters in package-info.java
> -Class that XmlAdapter handles (bound type) has a no-arg constructor
> If the no-arg constructor is removed from the bound type, the XmlAdapter is correctly used.
> For more info, please see:
> http://stackoverflow.com/questions/12684103/xmladapter-not-being-used-in-cxf
> In attached sample maven project, the main method is in com.internal.SomeService. Running it should throw an exception with the following cause:
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> java.util.Currency does not have a no-arg default constructor.
> 	this problem is related to the following location:
> 		at java.util.Currency
> 		at public java.util.Currency com.external.Money.getCurrency()
> 		at com.external.Money

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CXF-4537) XmlAdapter Not Being Used

Posted by "Andy Chang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Chang updated CXF-4537:
----------------------------

    Attachment: cxf.zip

Attaching sample maven project.
                
> XmlAdapter Not Being Used
> -------------------------
>
>                 Key: CXF-4537
>                 URL: https://issues.apache.org/jira/browse/CXF-4537
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>            Reporter: Andy Chang
>         Attachments: cxf.zip
>
>
> XmlAdapter is not being used for marshalling/unmarshalling in a JAX-WS service with the following conditions:
> -XmlAdapter is being hooked up with @XmlJavaTypeAdapters in package-info.java
> -Class that XmlAdapter handles (bound type) has a no-arg constructor
> For more info, please see:
> http://stackoverflow.com/questions/12684103/xmladapter-not-being-used-in-cxf
> In attached sample maven project, the main method is in com.internal.SomeService. Running it should throw an exception with the following cause:
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> java.util.Currency does not have a no-arg default constructor.
> 	this problem is related to the following location:
> 		at java.util.Currency
> 		at public java.util.Currency com.external.Money.getCurrency()
> 		at com.external.Money

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira