You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Luciano Resende (JIRA)" <de...@tuscany.apache.org> on 2009/10/12 07:20:31 UTC
[jira] Resolved: (TUSCANY-3288) Can't use non-Item type with atom
Collection
[ https://issues.apache.org/jira/browse/TUSCANY-3288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luciano Resende resolved TUSCANY-3288.
--------------------------------------
Resolution: Fixed
Fix Version/s: Java-SCA-Next
Java-SCA-1.5.2
Fixed in both 1.x and 1.5.2.
- Added test case with the described scenario
- Fixed databinding to properly consider arrays when creating JAXB Context
- Fixed atom binding to avoid data copying ... avoiding the issue described here
> Can't use non-Item type with atom Collection
> --------------------------------------------
>
> Key: TUSCANY-3288
> URL: https://issues.apache.org/jira/browse/TUSCANY-3288
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA ATOM Binding Extension
> Affects Versions: Java-SCA-1.5
> Reporter: Andrew Mak
> Assignee: Luciano Resende
> Fix For: Java-SCA-1.5.2, Java-SCA-Next
>
>
> When using a custom, not-Item type with atom Collection, an exception occurs. For example:
> @Service(Collection.class)
> public class NewsComponentImpl implements Collection<String, Headline> { ... } // Headline is regular Java Bean
> Results in:
> [TuscanyBindingServletWrapper]: org.apache.tuscany.sca.databinding.TransformationException: javax.xml.stream.XMLStreamException: javax.xml.bind.MarshalException
> - with linked exception:
> [javax.xml.bind.JAXBException: class org.example.news.Headline nor any of its super class is known to this context.]
> at org.apache.tuscany.sca.databinding.axiom.OMElement2String.transform(OMElement2String.java:47)
> at org.apache.tuscany.sca.databinding.axiom.OMElement2String.transform(OMElement2String.java:37)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.