5 Replies Latest reply on May 22, 2012 7:44 AM by Jim Ma

    @SchemaValidation not being performed

    onetake Newbie

      Hi Everyone.

       

      I recently upgraded to JBoss 7.1.1 Final and I'm having a hard time getting schema validation on two WS endpoints to work. The endpoints are reachable in 7.1.1, but schema validation is not working as it once did in 4.2.3. I believe this has to do with the use of CXF as the WS stack in 7.1.1.

       

      Doing some searching I found these relevant articles/forum posts (https://community.jboss.org/thread/175592?tstart=7, https://community.jboss.org/wiki/JBossWS-AS7FAQ).

       

      I changed the annotations on my endpoint implementation to the CXF equivalents as I was originally using com.sun.xml.ws.developer.SchemaValidation.

       

      {code}

      @WebService(endpointInterface = "com.foo.ws.usstaffing.plan.VacancySetup", wsdlLocation = "WEB-INF/wsdl/ApplicationPlanService.wsdl")

      @org.apache.cxf.annotations.SchemaValidation(enabled = true)

      @HandlerChain(file = "../handlers.xml")

      public class VacancySetupImpl implements VacancySetup {

      {code}

       

      I added the dependency on Jboss's CXF module to my EAR's MANIFEST.MF as described.

       

      {code}

      Manifest-Version: 1.0

      Ant-Version: Apache Ant 1.8.2

      Created-By: 1.6.0_13-b03 (Sun Microsystems Inc.)

      Dependencies: org.apache.cxf services export

      {code}

       

      Which seems to be working accordingly as a line similar to the following is displayed for my EAR and the WARs it contains

       

      {code}JBAS018567: Deployment "deployment.internal_at1.ear" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.{code}

       

      However, when I send a bogus request (with invalid data) to the endpoint I'm getting a JAXB unmarshalling error; which leads me to believe that validation is NOT taking place.

       

      Below is the stack trace I receive:

       

      {code}

      12:02:35,498 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http-foo-127.0.0.1-8080-1) Interceptor for {http://plan.usstaffing.ws.foo.com/}VacancySetupImplService#{http://plan.usstaffing.ws.foo.com/}processApplicationPlan has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Unmarshalling Error: Not a number: ?

                at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:801) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

                at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:642) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

                at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:156) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

                at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:109) [cxf-rt-core-2.4.6.jar:2.4.6]

                at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) [cxf-api-2.4.6.jar:2.4.6]

                at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-rt-core-2.4.6.jar:2.4.6]

                at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207) [cxf-rt-transports-http-2.4.6.jar:2.4.6]

                at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)

                at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)

                at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)

                at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185) [cxf-rt-transports-http-2.4.6.jar:2.4.6]

                at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108) [cxf-rt-transports-http-2.4.6.jar:2.4.6]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)

                at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.0.3.GA.jar:2.0.3.GA]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49) [extremecomponents-1.0.4.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                at com.cs.security.filter.NoCacheFilter.doFilter(NoCacheFilter.java:42) [foo-base.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_32]

      Caused by: javax.xml.bind.UnmarshalException

      - with linked exception:

      [javax.xml.bind.UnmarshalException: Not a number: ?

      - with linked exception:

      [java.lang.NumberFormatException: Not a number: ?]]

                at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:434)

                at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:371)

                at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:348)

                at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:778) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

                ... 35 more

      Caused by: javax.xml.bind.UnmarshalException: Not a number: ?

      - with linked exception:

      [java.lang.NumberFormatException: Not a number: ?]

                at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:662)

                at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleError(UnmarshallingContext.java:691)

                at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleError(UnmarshallingContext.java:687)

                at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.handleParseConversionException(Loader.java:271)

                at com.sun.xml.bind.v2.runtime.unmarshaller.TextLoader.text(TextLoader.java:73)

                at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:514)

                at com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.text(ValidatingUnmarshaller.java:130)

                at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.text(InterningXmlVisitor.java:93)

                at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.processText(StAXStreamConnector.java:339)

                at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleEndElement(StAXStreamConnector.java:217)

                at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:186)

                at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:369)

                ... 37 more

      Caused by: javax.xml.bind.UnmarshalException: Not a number: ?

      - with linked exception:

      [java.lang.NumberFormatException: Not a number: ?]

                ... 49 more

      Caused by: java.lang.NumberFormatException: Not a number: ?

                at com.sun.xml.bind.DatatypeConverterImpl._parseInt(DatatypeConverterImpl.java:131)

                at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$17.parse(RuntimeBuiltinLeafInfoImpl.java:728)

                at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$17.parse(RuntimeBuiltinLeafInfoImpl.java:731)

                at com.sun.xml.bind.v2.runtime.unmarshaller.TextLoader.text(TextLoader.java:69)

                ... 44 more

       

      {code}

       

      Any help or guidance would be greatly appreciated. Thanks.

        • 1. Re: @SchemaValidation not being performed
          spyhunter99 Novice

          Can you try sending a slightly invalid request?

           

          For instance, if you have a string data type with a regex defined restricting the length and character set for a particular field, then try sending something that doesn't match.

          • 2. Re: @SchemaValidation not being performed
            onetake Newbie

            Per your suggestion I sent a request that was completely valid with the exception of one field (an enumeration) was sent with an invalid value. The implementation code was reached and a NullPointerException was thrown. This proves that schema validation is not being performed as it would have executed prior to the unmarshalling and resulting NPE.

             

            Below is the stack trace I received:

             

            {code}

            16:18:07,863 ERROR [org.jboss.ws.common.invocation.InvocationHandlerJAXWS] (http-foo-127.0.0.1-8080-7) Method invocation failed with exception: null: java.lang.reflect.InvocationTargetException

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_32]

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_32]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_32]

                      at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_32]

                      at org.jboss.ws.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:111)

                      at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:181)

                      at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:127)

                      at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

                      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_32]

                      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_32]

                      at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_32]

                      at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

                      at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

                      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)

                      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

                      at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)

                      at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)

                      at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)

                      at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)

                      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)

                      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                      at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)

                      at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.0.3.GA.jar:2.0.3.GA]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                      at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49) [extremecomponents-1.0.4.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                      at com.cs.security.filter.NoCacheFilter.doFilter(NoCacheFilter.java:42) foo-base-SNAPSHOT-1.4.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]

                      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_32]

            Caused by: java.lang.NullPointerException

                      at com.foo.ws.usstaffing.plan.VacancySetupImpl.createAPConstants(VacancySetupImpl.java:156) [classes:]

                      at com.foo.ws.usstaffing.plan.VacancySetupImpl.processApplicationPlan(VacancySetupImpl.java:71) [classes:]

                      ... 45 more

             

             

            16:18:07,884 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http-foo-127.0.0.1-8080-7) Application {http://plan.usstaffing.ws.foo.com/}VacancySetupImplService#{http://plan.usstaffing.ws.foo.com/}processApplicationPlan has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault

                      at org.jboss.wsf.stack.cxf.JBossWSInvoker.createFault(JBossWSInvoker.java:246)

                      at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:201)

                      at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:127)

                      at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

                      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_32]

                      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_32]

                      at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_32]

                      at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

                      at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

                      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)

                      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

                      at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)

                      at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)

                      at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)

                      at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)

                      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)

                      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                      at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)

                      at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.0.3.GA.jar:2.0.3.GA]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                      at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49) [extremecomponents-1.0.4.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                      at com.cs.security.filter.NoCacheFilter.doFilter(NoCacheFilter.java:42) [foo-base-SNAPSHOT-1.4.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]

                      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_32]

            Caused by: java.lang.NullPointerException

                      at com.foo.ws.usstaffing.plan.VacancySetupImpl.createAPConstants(VacancySetupImpl.java:156) [classes:]

                      at com.foo.ws.usstaffing.plan.VacancySetupImpl.processApplicationPlan(VacancySetupImpl.java:71) [classes:]

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_32]

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_32]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_32]

                      at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_32]

                      at org.jboss.ws.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:111)

                      at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:181)

                      ... 39 more

            {code}

             

            Message was edited by: onetake (Fixed code block with wiki markup)

            • 3. Re: @SchemaValidation not being performed
              spyhunter99 Novice

              No arguments here. Looks like a bug. You might also want to try a non-enum data type, but I suspect that it simply isn't implemented in cxf, or probably any of the jbossws stacks. I've heard that it works in weblogic, but that doesn't help us.

               

              If you really want this functionality, a jaxws handler is probably the way to go.

              • 4. Re: @SchemaValidation not being performed
                onetake Newbie

                Regardless, thanks for the suggestion and your time spyhunter99. I'm afraid you're right. I was hoping not to have to roll my own handler or interceptor to perform validation, but it looks like I might have to...

                • 5. Re: @SchemaValidation not being performed
                  Jim Ma Apprentice

                  Just had a quickly try , and it's an issue in jbossws-cxf: https://issues.jboss.org/browse/JBWS-3500.  I'll look at and get this fixed it later.

                  It will help me to verify my fix if you can attach your test case. Thanks.