You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2006/11/23 21:43:01 UTC

[jira] Created: (AXIS2-1768) JAXBRI databinding failure at runtime

JAXBRI databinding failure at runtime
-------------------------------------

                 Key: AXIS2-1768
                 URL: http://issues.apache.org/jira/browse/AXIS2-1768
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
            Reporter: Davanum Srinivas


The following line in the JaxbRIDatabindingTemplate.xsl throws NPE at runtime for many classes

javax.xml.namespace.QName elementName = context.createJAXBIntrospector().getElementName(param);

with a message similar to this one:

unable to marshal type "org.blah.MessageType" as an element because it is missing an @XmlRootElement annotation

So, i enhanced codegen to pass along the QName into the stylesheet. attachment follows.

-- dims


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1768) JAXBRI databinding failure at runtime

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1768?page=all ]

Davanum Srinivas updated AXIS2-1768:
------------------------------------

    Attachment: jaxbri-nov-23-2006.txt

> JAXBRI databinding failure at runtime
> -------------------------------------
>
>                 Key: AXIS2-1768
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1768
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Davanum Srinivas
>         Attachments: jaxbri-nov-23-2006.txt
>
>
> The following line in the JaxbRIDatabindingTemplate.xsl throws NPE at runtime for many classes
> javax.xml.namespace.QName elementName = context.createJAXBIntrospector().getElementName(param);
> with a message similar to this one:
> unable to marshal type "org.blah.MessageType" as an element because it is missing an @XmlRootElement annotation
> So, i enhanced codegen to pass along the QName into the stylesheet. attachment follows.
> -- dims

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1768) JAXBRI databinding failure at runtime

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1768?page=comments#action_12452324 ] 
            
Davanum Srinivas commented on AXIS2-1768:
-----------------------------------------

see http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html for the tip that led to the fix.

> JAXBRI databinding failure at runtime
> -------------------------------------
>
>                 Key: AXIS2-1768
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1768
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Davanum Srinivas
>         Attachments: jaxbri-nov-23-2006.txt
>
>
> The following line in the JaxbRIDatabindingTemplate.xsl throws NPE at runtime for many classes
> javax.xml.namespace.QName elementName = context.createJAXBIntrospector().getElementName(param);
> with a message similar to this one:
> unable to marshal type "org.blah.MessageType" as an element because it is missing an @XmlRootElement annotation
> So, i enhanced codegen to pass along the QName into the stylesheet. attachment follows.
> -- dims

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-1768) JAXBRI databinding failure at runtime

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1768?page=all ]

Davanum Srinivas resolved AXIS2-1768.
-------------------------------------

    Resolution: Fixed

Applied in revision 478661

thanks,
dims

> JAXBRI databinding failure at runtime
> -------------------------------------
>
>                 Key: AXIS2-1768
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1768
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Davanum Srinivas
>         Attachments: jaxbri-nov-23-2006.txt
>
>
> The following line in the JaxbRIDatabindingTemplate.xsl throws NPE at runtime for many classes
> javax.xml.namespace.QName elementName = context.createJAXBIntrospector().getElementName(param);
> with a message similar to this one:
> unable to marshal type "org.blah.MessageType" as an element because it is missing an @XmlRootElement annotation
> So, i enhanced codegen to pass along the QName into the stylesheet. attachment follows.
> -- dims

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org