[Qgis-user] NullPointerException updating with WFS plugin

Hilmy Hashim hilmyh at gmail.com
Mon May 9 02:28:46 PDT 2011


I get a java.lang.NullPointerException when I try to update an attribute on
a layer loaded using WFS. The WFS server is a Geoserver 2.0.2 with all wfs
methods enabled. I get the error when I click on the save button in
Attribute table. I tested my Geoserver with another application and it
updates alright.

How can I troubleshoot this?

My QGIS config: 1.8.0-Trunk rev 4aeb473 on OSGeo4W Windows 7 64-bit.

Here is the exception report from the pop-up:
---------------------------------------------------------------

 java.lang.NullPointerException

null

Details:

org.geoserver.platform.ServiceException: java.lang.NullPointerException

at org.geoserver.ows.Dispatcher.exception(Dispatcher.java:1304)

at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:240)

at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)

at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)

at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)

at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)

at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)

at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)

at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)

at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)

at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)

at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

at
org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)

at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)

at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)

at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:69)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:662)

Caused by: java.lang.NullPointerException

at
org.geotools.xml.impl.SchemaIndexImpl.buildElementIndex(SchemaIndexImpl.java:373)

at
org.geotools.xml.impl.SchemaIndexImpl.getElementIndex(SchemaIndexImpl.java:311)

at
org.geotools.xml.impl.SchemaIndexImpl.getElementDeclaration(SchemaIndexImpl.java:121)

at
org.geotools.xml.impl.HandlerFactoryImpl.createElementHandler(HandlerFactoryImpl.java:34)

at
org.geotools.xml.impl.DocumentHandlerImpl.createChildHandler(DocumentHandlerImpl.java:71)

at org.geotools.xml.impl.ParserHandler.startElement(ParserHandler.java:452)

at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)

at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.geotools.xml.Parser.parse(Parser.java:223)

at org.geotools.xml.Parser.parse(Parser.java:169)

at org.geoserver.wfs.xml.v1_0_0.WfsXmlReader.read(WfsXmlReader.java:72)

at org.geoserver.ows.Dispatcher.parseRequestXML(Dispatcher.java:1180)

at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:466)

at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:227)

... 48 more



*Hilmy*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20110509/d1886e42/attachment.html>


More information about the Qgis-user mailing list