473,462 Members | 1,333 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

XML validation error: javax.xml.validation.Validator.validate(Unknown Source)

Hi,

I have created an XML writer module to write xml using StaX api for our Rest Web Service(using Jersey). I am validating my XML against schema. It works Locally without
any error but when I have deployed it in the production server, I have got the following error:

Expand|Select|Wrap|Line Numbers
  1. java.lang.NullPointerException
  2.  
  3. at com.sun.org.apache.xerces.internal.jaxp.validation.StAXValidatorHelper.validate(Unknown Source)
  4.  
  5. at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(Unknown Source)
  6.  
  7. at javax.xml.validation.Validator.validate(Unknown Source)
  8.  
  9. at org.webdev.kpoint.ws.xmlprocessor.XMLProcessor.validateXMLAgainstSchema(XMLProcessor.java:64)
  10.  
  11. at org.webdev.kpoint.ws.domain.KinekPointsDomain.produceKinekPointToXML(KinekPointsDomain.java:120)
  12.  
  13. at org.webdev.kpoint.ws.resource.KinekPointsResource.getKinekPoint(KinekPointsResource.java:105)
  14.  
  15. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  16.  
  17. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  18.  
  19. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  20.  
  21. at java.lang.reflect.Method.invoke(Unknown Source)
  22.  
  23. at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:184)
  24.  
  25. at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
  26.  
  27. at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:276)
  28.  
  29. at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133)
  30.  
  31. at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:83)
  32.  
  33. at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133)
  34.  
  35. at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:71)
  36.  
  37. at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1171)
  38.  
  39. at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1103)
  40.  
  41. at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1053)
  42.  
  43. at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1043)
  44.  
  45. at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:406)
  46.  
  47. at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:477)
  48.  
  49. at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:662)
  50.  
  51. at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  52.  
  53. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  54.  
  55. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  56.  
  57. at org.webdev.kpoint.ws.auth.SecurityFilter.doFilter(SecurityFilter.java:73)
  58.  
  59. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  60.  
  61. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  62.  
  63. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  64.  
  65. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  66.  
  67. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  68.  
  69. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  70.  
  71. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  72.  
  73. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
  74.  
  75. at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
  76.  
  77. at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  78.  
  79. at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  80.  
  81. at java.lang.Thread.run(Unknown Source)
Any idea?
Aug 12 '10 #1
0 1643

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: David Moore | last post by:
Hello I am using the System.DirectoryServices namespace classes to access Active Directory. We connect using the LDAP://DOMAIN method. The code works on local dev boxes, and in staging, but...
0
by: Robert | last post by:
socket.sslerror:(1, 'error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol') Got this from another computer/setup, which I cannot debug. What can be the cause for this problem? ...
1
by: AP | last post by:
Hi, I'm getting the following error trying to validate an xml document against a schema: The 'xsi:noNameSpaceSchemaLocation' attribute is not declared My xml file looks like this: <?xml...
1
by: Jung | last post by:
I am trying to make connection to Content Manager. Can anyone help me how to fix this error? Thank you. Exception in thread "main" java.lang.UnsatisfiedLinkError: SQLAllocEnv at...
8
by: Tony Williams | last post by:
I have a form where the user inputs a series of figures into a number of controls. After they've input the total (they don't want the program to create the total) there is a check to make sure the...
0
by: Harald Hoyer | last post by:
My application has an exe and some DLLs. During debugging only debug information of the current binary is available. For example: ============DLL: ...
2
by: Alan Silver | last post by:
Hello, I have a custom validator on my page, and have the server-side code working fine. I want to add a client-side funtion as well, but am not sure how to wire it in so that it works with the...
1
by: tactech | last post by:
Hello Can somebody help me and tell me why I can’t change the background color of the second PN2 panel. I get this error about unknown source Exception in thread "AWT-EventQueue-1"...
3
by: haji | last post by:
how to validate phone number,age using javascript with html.reply with simple source code .i am well in javascript. give explanation with simple example
2
by: rubyhuang | last post by:
when using eclipse, if want to read a file(eg. using bufferedReader to read), then where to put the .txt file, no matter what place i put the .txt file to, it always said at...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.