[
https://issues.apache.org/jira/browse/TUSCANY-3288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luciano Resende resolved TUSCANY-3288.
--------------------------------------
Resolution: Fixed
Marking as fixed based on last comment. Please reopen if disagree.
> 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.