Hi,
I'm trying to serve raster data hosted in a PostGIS 2.0 through
GeoSeser via the ImageMosaicJDBC plugin. I'm currently using geoserver
2.2-RC2 and gt-imagemosaic-jdbc-8.0.
I was able to publish my new layer and I can see into the
getCapabilities response of my WCS service. However I can't request it
through a GetCoverage request in both 1.0.0 or 1.1.0 supported
version.
Here is the current stack trace I'm getting:
2012-09-04 12:11:55,111 ERROR [geoserver.ows] -
org.vfny.geoserver.wcs.WcsException: java.lang.NullPointerException
at org.geoserver.wcs.DefaultWebCoverageService100.getCoverage(DefaultWebCoverageService100.java:517)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:54)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy23.getCoverage(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:772)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272)
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:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
...
Caused by: java.lang.NullPointerException
at org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.transformRequestEnvelope(ImageMosaicJDBCReader.java:332)
at org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.loadTiles(ImageMosaicJDBCReader.java:407)
at org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.read(ImageMosaicJDBCReader.java:317)
at org.geoserver.wcs.DefaultWebCoverageService100.getCoverage(DefaultWebCoverageService100.java:406)
... 94 more
I debugged the existing code and figure out that the problem is
occuring because the requestedEnvelope property of the
ImageMosaicJDBCReaderState instance is null and then it cannot be
read. This happens because the READ_GRIDGEOMETRY2D is not set into the
GeneralParameterValue array passed as argument of the
ImageMosaicJDBCReader.read method. This is happening because this
property is explicitly ignored into
org.geoserver.data.util.CoverageUtils when the GeneralParameterValue
array is created.
Please can you help me to figure out was is wrong with my current
setup. The equivalent GetMap request is working perfectly fine.
Thanks.
J-F
Hi Simone, can you have a look at this.
org.geotools.coverage.grid.GeneralGridGeometry has a method getEnvelope and the java doc says
@return The bounding box in "real world" coordinates (never {@code null})
The imagemosiacjdbc module relies on getting a non null value.
Thanks
Zitat von Jean-François Bourgon <jfbourgon@anonymised.com>:
Hi,
I'm trying to serve raster data hosted in a PostGIS 2.0 through
GeoSeser via the ImageMosaicJDBC plugin. I'm currently using geoserver
2.2-RC2 and gt-imagemosaic-jdbc-8.0.
I was able to publish my new layer and I can see into the
getCapabilities response of my WCS service. However I can't request it
through a GetCoverage request in both 1.0.0 or 1.1.0 supported
version.
Here is the current stack trace I'm getting:
2012-09-04 12:11:55,111 ERROR [geoserver.ows] -
org.vfny.geoserver.wcs.WcsException: java.lang.NullPointerException
at org.geoserver.wcs.DefaultWebCoverageService100.getCoverage(DefaultWebCoverageService100.java:517)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:54)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy23.getCoverage(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:772)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272)
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:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
...
Caused by: java.lang.NullPointerException
at org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.transformRequestEnvelope(ImageMosaicJDBCReader.java:332)
at org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.loadTiles(ImageMosaicJDBCReader.java:407)
at org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.read(ImageMosaicJDBCReader.java:317)
at org.geoserver.wcs.DefaultWebCoverageService100.getCoverage(DefaultWebCoverageService100.java:406)
... 94 more
I debugged the existing code and figure out that the problem is
occuring because the requestedEnvelope property of the
ImageMosaicJDBCReaderState instance is null and then it cannot be
read. This happens because the READ_GRIDGEOMETRY2D is not set into the
GeneralParameterValue array passed as argument of the
ImageMosaicJDBCReader.read method. This is happening because this
property is explicitly ignored into
org.geoserver.data.util.CoverageUtils when the GeneralParameterValue
array is created.
Please can you help me to figure out was is wrong with my current
setup. The equivalent GetMap request is working perfectly fine.
Thanks.
J-F
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
On Wed, Sep 5, 2012 at 10:41 AM, <christian.mueller@anonymised.com> wrote:
Hi Simone, can you have a look at this.
org.geotools.coverage.grid.GeneralGridGeometry has a method
getEnvelope and the java doc says
@return The bounding box in “real world” coordinates (never {@code null})
The imagemosiacjdbc module relies on getting a non null value.
The WCS does not provide it on purpose to force the usage of the native resolution,
all other raster plugins handle that without issues.
The parameters in a read call are always optional, and even when present they are meant
to be a suggestion that the reader will try to address in a best effort way,
as far as I know a read must be working even if you pass none
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
Hi Jean-François
Can you open a jira issue with a description how to reproduce the situation.
Thanks
Zitat von Jean-François Bourgon <jfbourgon@anonymised.com>:
Hi,
I'm trying to serve raster data hosted in a PostGIS 2.0 through
GeoSeser via the ImageMosaicJDBC plugin. I'm currently using geoserver
2.2-RC2 and gt-imagemosaic-jdbc-8.0.
I was able to publish my new layer and I can see into the
getCapabilities response of my WCS service. However I can't request it
through a GetCoverage request in both 1.0.0 or 1.1.0 supported
version.
Here is the current stack trace I'm getting:
2012-09-04 12:11:55,111 ERROR [geoserver.ows] -
org.vfny.geoserver.wcs.WcsException: java.lang.NullPointerException
at org.geoserver.wcs.DefaultWebCoverageService100.getCoverage(DefaultWebCoverageService100.java:517)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:54)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy23.getCoverage(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:772)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272)
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:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
...
Caused by: java.lang.NullPointerException
at org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.transformRequestEnvelope(ImageMosaicJDBCReader.java:332)
at org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.loadTiles(ImageMosaicJDBCReader.java:407)
at org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.read(ImageMosaicJDBCReader.java:317)
at org.geoserver.wcs.DefaultWebCoverageService100.getCoverage(DefaultWebCoverageService100.java:406)
... 94 more
I debugged the existing code and figure out that the problem is
occuring because the requestedEnvelope property of the
ImageMosaicJDBCReaderState instance is null and then it cannot be
read. This happens because the READ_GRIDGEOMETRY2D is not set into the
GeneralParameterValue array passed as argument of the
ImageMosaicJDBCReader.read method. This is happening because this
property is explicitly ignored into
org.geoserver.data.util.CoverageUtils when the GeneralParameterValue
array is created.
Please can you help me to figure out was is wrong with my current
setup. The equivalent GetMap request is working perfectly fine.
Thanks.
J-F
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Hi Christian,
I just created the following JIRA issue:
http://jira.codehaus.org/browse/GEOT-4253.
Thanks,
J-F
2012/9/12 <christian.mueller@anonymised.com>:
Hi Jean-François
Can you open a jira issue with a description how to reproduce the situation.
Thanks
Zitat von Jean-François Bourgon <jfbourgon@anonymised.com>:
Hi,
I'm trying to serve raster data hosted in a PostGIS 2.0 through
GeoSeser via the ImageMosaicJDBC plugin. I'm currently using geoserver
2.2-RC2 and gt-imagemosaic-jdbc-8.0.
I was able to publish my new layer and I can see into the
getCapabilities response of my WCS service. However I can't request it
through a GetCoverage request in both 1.0.0 or 1.1.0 supported
version.
Here is the current stack trace I'm getting:
2012-09-04 12:11:55,111 ERROR [geoserver.ows] -
org.vfny.geoserver.wcs.WcsException: java.lang.NullPointerException
at
org.geoserver.wcs.DefaultWebCoverageService100.getCoverage(DefaultWebCoverageService100.java:517)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at
org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:54)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy23.getCoverage(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:772)
at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272)
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:923)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
...
Caused by: java.lang.NullPointerException
at
org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.transformRequestEnvelope(ImageMosaicJDBCReader.java:332)
at
org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.loadTiles(ImageMosaicJDBCReader.java:407)
at
org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.read(ImageMosaicJDBCReader.java:317)
at
org.geoserver.wcs.DefaultWebCoverageService100.getCoverage(DefaultWebCoverageService100.java:406)
... 94 more
I debugged the existing code and figure out that the problem is
occuring because the requestedEnvelope property of the
ImageMosaicJDBCReaderState instance is null and then it cannot be
read. This happens because the READ_GRIDGEOMETRY2D is not set into the
GeneralParameterValue array passed as argument of the
ImageMosaicJDBCReader.read method. This is happening because this
property is explicitly ignored into
org.geoserver.data.util.CoverageUtils when the GeneralParameterValue
array is created.
Please can you help me to figure out was is wrong with my current
setup. The equivalent GetMap request is working perfectly fine.
Thanks.
J-F
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.