You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Lewis John Mcgibbney <le...@gmail.com> on 2016/01/04 12:19:44 UTC
Re: nutch 2.x nutchserver problem
Hi Paul,
I cannot reproduce this initialization error... I show this as follows
using 2.X from SVN
lmcgibbn@LMC-032857 /usr/local/2hbase(joshua) $ svn status
lmcgibbn@LMC-032857 /usr/local/2hbase(joshua) $ svn update
Updating '.':
At revision 1722842.
lmcgibbn@LMC-032857 /usr/local/2hbase(joshua) $ ./runtime/local/bin/nutch
nutchserver
Starting NutchServer on port: 8081 with logging level: INFO ...
Starting the internal [HTTP/1.1] server on port 8081
Started NutchServer on port 8081
When I start the webapp on port 8080 I also get no errors!
Can you please make sure that you pull the code from the canonical source
when resides at
http://svn.apache.org/repos/asf/nutch/branches/2.x/
Lewis
On Sat, Jan 2, 2016 at 11:11 AM, <us...@nutch.apache.org> wrote:
> I'm trying to get the nutchserver up and runnning. I can easily start the
> server but when I do a request an error is returned:
>
> java.lang.NoSuchMethodError:
> com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z
> at
> com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:457)
> at
> com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:389)
> at
>
> org.restlet.ext.jackson.JacksonRepresentation.createObjectMapper(JacksonRepresentation.java:207)
> at
>
> org.restlet.ext.jackson.JacksonRepresentation.getObjectMapper(JacksonRepresentation.java:333)
> at
>
> org.restlet.ext.jackson.JacksonRepresentation.createObjectWriter(JacksonRepresentation.java:277)
> at
>
> org.restlet.ext.jackson.JacksonRepresentation.getObjectWriter(JacksonRepresentation.java:361)
> at
>
> org.restlet.ext.jackson.JacksonRepresentation.write(JacksonRepresentation.java:474)
> at
>
> org.restlet.ext.jaxrs.internal.provider.ConverterProvider.writeTo(ConverterProvider.java:178)
> at
>
> org.restlet.ext.jaxrs.internal.wrappers.provider.SingletonProvider.writeTo(SingletonProvider.java:351)
> at
>
> org.restlet.ext.jaxrs.internal.util.JaxRsOutputRepresentation.write(JaxRsOutputRepresentation.java:113)
> at
>
> org.restlet.engine.adapter.ServerCall.writeResponseBody(ServerCall.java:519)
> at
> org.restlet.engine.adapter.ServerCall.sendResponse(ServerCall.java:463)
> at
> org.restlet.engine.adapter.ServerAdapter.commit(ServerAdapter.java:196)
> at
>
> org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:153)
> at
>
> org.restlet.engine.connector.HttpServerHelper$1.handle(HttpServerHelper.java:73)
> at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
> at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
> at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)
> at
>
> sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:677)
> at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
> at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:649)
> at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
>
> Dec 31, 2015 2:01:42 PM org.restlet.engine.adapter.ServerAdapter commit
> WARNING: Unable to send error response
> java.io.IOException: headers already sent
> at
> sun.net.httpserver.ExchangeImpl.sendResponseHeaders(ExchangeImpl.java:204)
> at
>
> sun.net.httpserver.HttpExchangeImpl.sendResponseHeaders(HttpExchangeImpl.java:86)
> at
>
> org.restlet.engine.connector.HttpExchangeCall.writeResponseHead(HttpExchangeCall.java:157)
> at
> org.restlet.engine.adapter.ServerCall.sendResponse(ServerCall.java:459)
> at
> org.restlet.engine.adapter.ServerAdapter.commit(ServerAdapter.java:214)
> at
>
> org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:153)
> at
>
> org.restlet.engine.connector.HttpServerHelper$1.handle(HttpServerHelper.java:73)
> at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
> at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
> at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)
> at
>
> sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:677)
> at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
> at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:649)
> at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
>
> The source code is freshly pulled out of git without modifications in the
> dependencies.
>
>
--
*Lewis*