[Geoserver-devel] GML exception on Linux with oracle

Hi

I'm not sure if it is the right place to post this message, in any
case I believe it is a topic concerning to the developers community,
if not, please excuse me.

I'm getting an strange behavior with geoserver 2.0.2 running on a
Linux OS and using the oracle plugin for connect it to a oracle server
in the same system. Any request on get involved the GML related
functions (or core ¿?) produce an exception. I note this when trying
to get the getFeatureInfo response with application/vnd.ogc.gml
format, but after trying to generate the GML's sample on preview, got
a similar one result. Any layer or setting I'm probing shows the same
problem.

Before to install and configure Geoserver on a Linux system, I was
using the same versión of GS and Oracle pluging but on a Windows op.
system, with identical setting and identical datasets (but no the same
Oracle server) and everything went ok.

I'm not sure if I'm doing a wrong thing like to have copied the
windows data_dir to the Linux installation or simply the versión of
JDK.

I'm running a RHELS 5.4, Oracle is 11.2.0 with spatial extensions and
JDK is 1.6.0_20. Geoserver and Oracle plugin are the 2.0.2 as I said,
but I started with the previous released before try with this one.

Here is what the logs says:

ERROR [geoserver.ows] -
java.lang.NullPointerException
  at org.geoserver.wfs.xml.GML2OutputFormat.prepare(GML2OutputFormat.java:231)
  at org.geoserver.wfs.xml.GML2OutputFormat.write(GML2OutputFormat.java:294)
  at org.geoserver.wfs.WFSGetFeatureOutputFormat.write(WFSGetFeatureOutputFormat.java:137)
  at org.geoserver.ows.Dispatcher.response(Dispatcher.java:726)
  at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:234)
  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.doGet(FrameworkServlet.java:501)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
  at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  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.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
  at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
  at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
  at org.mortbay.jetty.Server.handle(Server.java:324)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
  at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

Thanks in advanced and greetings from Barcelona

José Angel

--
o.o
..o
O..

José Angel Rodríguez Leyva ha scritto:

Hi

I'm not sure if it is the right place to post this message, in any
case I believe it is a topic concerning to the developers community,
if not, please excuse me.

I'm getting an strange behavior with geoserver 2.0.2 running on a
Linux OS and using the oracle plugin for connect it to a oracle server
in the same system. Any request on get involved the GML related
functions (or core ¿?) produce an exception. I note this when trying
to get the getFeatureInfo response with application/vnd.ogc.gml
format, but after trying to generate the GML's sample on preview, got
a similar one result. Any layer or setting I'm probing shows the same
problem.

Before to install and configure Geoserver on a Linux system, I was
using the same versión of GS and Oracle pluging but on a Windows op.
system, with identical setting and identical datasets (but no the same
Oracle server) and everything went ok.

I'm not sure if I'm doing a wrong thing like to have copied the
windows data_dir to the Linux installation or simply the versión of
JDK.

I'm running a RHELS 5.4, Oracle is 11.2.0 with spatial extensions and
JDK is 1.6.0_20. Geoserver and Oracle plugin are the 2.0.2 as I said,
but I started with the previous released before try with this one.

Here is what the logs says:

ERROR [geoserver.ows] -
java.lang.NullPointerException
  at org.geoserver.wfs.xml.GML2OutputFormat.prepare(GML2OutputFormat.java:231)

The error does not make much sense to me.
Do you have the full logs from the startup onwards?
Is there any other error message, in particular related to the WFS startup?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi,

I’m sorry for take so much time in answer you. I couldn’t do it before.

I attach a full log files since GS startup, with some generated exceptions in GML and WFS->GML2 layers preview options and getFeatureInfo request with application/vnd.ogc.gml type of format. And was included some of the project’s configurations files.

In this moment I’m using the same Geoserver and Oracle pluggin versions but for Windows and with the same cloned data_dir, to the same Oracle’s database server on Linux system, without any problem.

It could be a JDK version related issue? Mine is the 1.6.0_20 version.

Greetings

José Angel.

2010/7/1 Andrea Aime <aaime@anonymised.com>

José Angel Rodríguez Leyva ha scritto:

Hi

I’m not sure if it is the right place to post this message, in any
case I believe it is a topic concerning to the developers community,
if not, please excuse me.

I’m getting an strange behavior with geoserver 2.0.2 running on a
Linux OS and using the oracle plugin for connect it to a oracle server
in the same system. Any request on get involved the GML related
functions (or core ¿?) produce an exception. I note this when trying
to get the getFeatureInfo response with application/vnd.ogc.gml
format, but after trying to generate the GML’s sample on preview, got
a similar one result. Any layer or setting I’m probing shows the same
problem.

Before to install and configure Geoserver on a Linux system, I was
using the same versión of GS and Oracle pluging but on a Windows op.
system, with identical setting and identical datasets (but no the same
Oracle server) and everything went ok.

I’m not sure if I’m doing a wrong thing like to have copied the
windows data_dir to the Linux installation or simply the versión of
JDK.

I’m running a RHELS 5.4, Oracle is 11.2.0 with spatial extensions and
JDK is 1.6.0_20. Geoserver and Oracle plugin are the 2.0.2 as I said,
but I started with the previous released before try with this one.

Here is what the logs says:

ERROR [geoserver.ows] -
java.lang.NullPointerException
at org.geoserver.wfs.xml.GML2OutputFormat.prepare(GML2OutputFormat.java:231)

The error does not make much sense to me.
Do you have the full logs from the startup onwards?
Is there any other error message, in particular related to the WFS startup?

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.


o.o
…o
O…

(attachments)

geoserver.tgz (11.7 KB)