You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sis.apache.org by Travis L Pinney <tr...@gmail.com> on 2013/06/20 03:12:50 UTC
null pointer exception in demo app
Hello,
I am running the demo app, following the directions from here.
https://cwiki.apache.org/confluence/display/SIS/Getting+Started+With+SIS
mvn jetty:run
Putting in this data
Point Radius:
Latitude: 0
Longitude: 80
Radius: 400km
I am getting a Null Pointer exception.
Do I need to do anything else to get this to work?
Thanks,
Travis
2013-06-19 21:08:38.586:WARN:/:unavailable
java.lang.NullPointerException
at org.apache.sis.services.LocationServlet.init(LocationServlet.java:108)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:444)
at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:343)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:523)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:353)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
at java.lang.Thread.run(Thread.java:680)
2013-06-19 21:08:38.587:WARN::/location
java.lang.NullPointerException
at org.apache.sis.services.LocationServlet.init(LocationServlet.java:108)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:444)
at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:343)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:523)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:353)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
at java.lang.Thread.run(Thread.java:680)
2013-06-19 21:09:06.929:WARN::EXCEPTION
java.lang.IllegalArgumentException
at java.nio.Buffer.<init>(Buffer.java:172)
at java.nio.ByteBuffer.<init>(ByteBuffer.java:259)
at java.nio.ByteBuffer.<init>(ByteBuffer.java:267)
at java.nio.MappedByteBuffer.<init>(MappedByteBuffer.java:64)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:96)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
at org.eclipse.jetty.io.nio.DirectNIOBuffer.<init>(DirectNIOBuffer.java:46)
at org.eclipse.jetty.server.ResourceCache.getDirectBuffer(ResourceCache.java:314)
at org.eclipse.jetty.server.ResourceCache$Content.getDirectBuffer(ResourceCache.java:464)
at org.eclipse.jetty.server.HttpConnection$Output.sendContent(HttpConnection.java:1226)
at org.eclipse.jetty.servlet.DefaultServlet.sendData(DefaultServlet.java:784)
at org.eclipse.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:475)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:546)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:353)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
at java.lang.Thread.run(Thread.java:680)
Re: null pointer exception in demo app
Posted by Adam Estrada <es...@gmail.com>.
Makes perfect sense to me!
On Thu, Jun 20, 2013 at 8:49 AM, Martin Desruisseaux <
martin.desruisseaux@geomatys.fr> wrote:
> Hello Adam
>
> Le 20/06/13 14:43, Adam Estrada a écrit :
>
> I expect that the README is really out of date for the web app. I added
>> the
>> Jetty server config to pom.xml about a year ago and it was working then.
>> There has been some serious refactoring since then so the docs probably
>> need to be updated to reflect that.
>>
>
> Then, maybe we should just replace the "getting started" instructions in
> the README by a link to the wiki?
>
> Martin
>
>
Re: null pointer exception in demo app
Posted by Martin Desruisseaux <ma...@geomatys.fr>.
Hello Adam
Le 20/06/13 14:43, Adam Estrada a écrit :
> I expect that the README is really out of date for the web app. I added the
> Jetty server config to pom.xml about a year ago and it was working then.
> There has been some serious refactoring since then so the docs probably
> need to be updated to reflect that.
Then, maybe we should just replace the "getting started" instructions in
the README by a link to the wiki?
Martin
Re: null pointer exception in demo app
Posted by Adam Estrada <es...@gmail.com>.
All,
I expect that the README is really out of date for the web app. I added the
Jetty server config to pom.xml about a year ago and it was working then.
There has been some serious refactoring since then so the docs probably
need to be updated to reflect that.
Adam
On Thu, Jun 20, 2013 at 4:31 AM, Martin Desruisseaux <
martin.desruisseaux@geomatys.fr> wrote:
> Le 20/06/13 03:12, Travis L Pinney a écrit :
>
>> I am running the demo app, following the directions from here.
>>
>> https://cwiki.apache.org/**confluence/display/SIS/**
>> Getting+Started+With+SIS<https://cwiki.apache.org/confluence/display/SIS/Getting+Started+With+SIS>
>>
>> (...snip...)
>>
>>
>> java.lang.NullPointerException
>> at org.apache.sis.services.**LocationServlet.init(**
>> LocationServlet.java:108)
>>
>
> I'm not yet familiar with the sis-webapp module, but the exception seems
> to be caused by a "qIndexPath" parameter not found. I noticed that the
> README file in the root of SIS project seems to contains slightly different
> instructions than the one on the wiki page (thanks for updating the wiki by
> the way!). Maybe it would be good to compare them.
>
> Martin
>
>
Re: null pointer exception in demo app
Posted by Martin Desruisseaux <ma...@geomatys.fr>.
Le 20/06/13 03:12, Travis L Pinney a écrit :
> I am running the demo app, following the directions from here.
>
> https://cwiki.apache.org/confluence/display/SIS/Getting+Started+With+SIS
>
> (...snip...)
>
>
> java.lang.NullPointerException
> at org.apache.sis.services.LocationServlet.init(LocationServlet.java:108)
I'm not yet familiar with the sis-webapp module, but the exception seems
to be caused by a "qIndexPath" parameter not found. I noticed that the
README file in the root of SIS project seems to contains slightly
different instructions than the one on the wiki page (thanks for
updating the wiki by the way!). Maybe it would be good to compare them.
Martin