tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luciano Resende (JIRA)" <...@tuscany.apache.org>
Subject [jira] Commented: (TUSCANY-3288) Can't use non-Item type with atom Collection
Date Sat, 07 Nov 2009 00:04:32 GMT

    [ https://issues.apache.org/jira/browse/TUSCANY-3288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774500#action_12774500

Luciano Resende commented on TUSCANY-3288:

I see the error if I try to directly use Collection<String, Headline> but we also don'
t have a easy way to support this. Basically, when using :

public class NewsServiceImpl implements Collection<String, Headline> 

When the generic Collection interface is referred by the implementation class, we create a
SCA Service that only contains the erased type of information. Maybe Raymond can add his thoughts

> 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.

View raw message