You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (Assigned) (JIRA)" <ji...@apache.org> on 2011/10/19 20:11:10 UTC

[jira] [Assigned] (CXF-3846) NullPointerException when requesting ?wsdl using AegisDatabinding and @SchemaValidation

     [ https://issues.apache.org/jira/browse/CXF-3846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp reassigned CXF-3846:
--------------------------------

    Assignee: Daniel Kulp
    
> NullPointerException when requesting ?wsdl using AegisDatabinding and @SchemaValidation
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-3846
>                 URL: https://issues.apache.org/jira/browse/CXF-3846
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.4.1
>         Environment: Debian 6.1 x64, java 1.6.0_18, JBoss 7.0.1
>            Reporter: Rik van Ballegooijen
>            Assignee: Daniel Kulp
>            Priority: Minor
>
> After getting schema validation to work with aegis databinding, I noticed the ?wsdl is no longer working due to a NullPointerException. The relevant part of the stacktrace:
> unwinding now: java.lang.NullPointerException
>         at org.apache.cxf.wstx_msv_validation.Stax2ValidationUtils.setupValidation(Stax2ValidationUtils.java:71) [cxf-wstx-msv-validation-2.4.1.jar:]
>         at org.apache.cxf.wstx_msv_validation.WoodstoxValidationImpl.setupValidation(WoodstoxValidationImpl.java:67) [cxf-wstx-msv-validation-2.4.1.jar:]
>         at org.apache.cxf.aegis.databinding.AegisSchemaValidationInInterceptor.setSchemaInMessage(AegisSchemaValidationInInterceptor.java:68) [cxf-rt-databinding-aegis-2.4.1.jar:2.4.1]
>         at org.apache.cxf.aegis.databinding.AegisSchemaValidationInInterceptor.handleMessage(AegisSchemaValidationInInterceptor.java:56) [cxf-rt-databinding-aegis-2.4.1.jar:2.4.1]
>         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) [cxf-api-2.4.1.jar:2.4.1]
> It seems that at AegisSchemaValidationInInterceptor:54 the result of message.getContent(XMLStreamReader.class) is null.
> Obviously, a ?wsdl from a webbrowser is not a valid message, so a validation error could be expectable (a NPE isn't of course). I am wondering though if it is desirable, as it would leave ?wsdl broken.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira