You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Gabo Manuel <km...@solegysystems.com> on 2010/06/04 09:25:53 UTC

[CXF-2.2.8][JAXWS] Very very minor Issue with @XmlTransient

Hi All,

Not exactly an issue, more of, wouldn't it be better to just let it 
slide with a warning than throw an error?

Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 
counts of IllegalAnnotationExceptions
@javax.xml.bind.annotation.XmlTransient annotation is found on two 
places; one would be suffice.

        this problem is related to the following location:
                at @javax.xml.bind.annotation.XmlTransient()
                at public java.lang.String com.some.domain.Foo.getBar()
                at com.some.domain.Foo
        this problem is related to the following location:
                at @javax.xml.bind.annotation.XmlTransient()
                at public void com.some.domain.Foo.setBar(java.lang.String)
                at com.some.domain.Foo

Easily addressable tho.

Gabo

Re: [CXF-2.2.8][JAXWS] Very very minor Issue with @XmlTransient

Posted by Daniel Kulp <dk...@apache.org>.
On Friday 04 June 2010 3:25:53 am Gabo Manuel wrote:
> Hi All,
> 
> Not exactly an issue, more of, wouldn't it be better to just let it
> slide with a warning than throw an error?

This is actually coming from JAXB and not really much we can do about it.  :-(

At least it's an easy thing to correct and workaround.

Dan


> 
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
> counts of IllegalAnnotationExceptions
> @javax.xml.bind.annotation.XmlTransient annotation is found on two
> places; one would be suffice.
> 
>         this problem is related to the following location:
>                 at @javax.xml.bind.annotation.XmlTransient()
>                 at public java.lang.String com.some.domain.Foo.getBar()
>                 at com.some.domain.Foo
>         this problem is related to the following location:
>                 at @javax.xml.bind.annotation.XmlTransient()
>                 at public void com.some.domain.Foo.setBar(java.lang.String)
>                 at com.some.domain.Foo
> 
> Easily addressable tho.
> 
> Gabo

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog