manifoldcf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wright <daddy...@gmail.com>
Subject Re: Problem with JSON output of MCF web api
Date Tue, 12 Sep 2017 10:26:07 GMT
Hi Adrian,

Can you create a ticket and include this stack trace?

Thanks!
Karl


On Tue, Sep 12, 2017 at 6:23 AM, Adrian Conlon <Adrian.Conlon@28hands.com>
wrote:

> Hi List,
>
>
>
> I’m attempting to upgrade my manifoldcf installation scripts from  v2.5 to
> v2.8.1 (bit of a jump, I know!).
>
>
>
> Almost everything works, apart from the Json jobs/job access.  All other
> JSON API output seems to work as expected (all that I’ve tried, anyway).
>
>
>
> Has anyone else experienced this?  If not, does anyone have any idea what
> I might be doing wrong?
>
>
>
> Thanks for any help/advice!
>
>
>
> Adrian
>
>
>
>
>
> Sample URL giving failure: http://localhost:8080/mcf-api-service/json/jobs
>
> Sample stack trace:
>
> 12-Sep-2017 10:55:54.501 SEVERE [http-nio-8080-exec-7]
> org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service()
> for servlet [APIServlet] in context with path [/mcf-api-service] threw
> exception
>
> java.lang.NullPointerException
>
>             at org.apache.manifoldcf.core.interfaces.Configuration$
> JSONWriter.value(Configuration.java:797)
>
>             at org.apache.manifoldcf.core.interfaces.Configuration.
> writeNode(Configuration.java:317)
>
>             at org.apache.manifoldcf.core.interfaces.Configuration.
> writeNode(Configuration.java:406)
>
>             at org.apache.manifoldcf.core.interfaces.Configuration.
> writeNode(Configuration.java:413)
>
>             at org.apache.manifoldcf.core.interfaces.Configuration.
> writeNode(Configuration.java:413)
>
>             at org.apache.manifoldcf.core.interfaces.Configuration.
> toJSON(Configuration.java:246)
>
>             at org.apache.manifoldcf.apiservlet.APIServlet.
> executeRead(APIServlet.java:303)
>
>             at org.apache.manifoldcf.apiservlet.APIServlet.doGet(
> APIServlet.java:97)
>
>             at javax.servlet.http.HttpServlet.service(
> HttpServlet.java:635)
>
>             at javax.servlet.http.HttpServlet.service(
> HttpServlet.java:742)
>
>             at org.apache.catalina.core.ApplicationFilterChain.
> internalDoFilter(ApplicationFilterChain.java:231)
>
>             at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:166)
>
>             at org.apache.tomcat.websocket.server.WsFilter.doFilter(
> WsFilter.java:52)
>
>             at org.apache.catalina.core.ApplicationFilterChain.
> internalDoFilter(ApplicationFilterChain.java:193)
>
>             at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:166)
>
>             at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:198)
>
>             at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:96)
>
>             at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> AuthenticatorBase.java:478)
>
>             at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:140)
>
>             at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:80)
>
>             at org.apache.catalina.valves.AbstractAccessLogValve.invoke(
> AbstractAccessLogValve.java:650)
>
>             at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:87)
>
>             at org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:342)
>
>             at org.apache.coyote.http11.Http11Processor.service(
> Http11Processor.java:799)
>
>             at org.apache.coyote.AbstractProcessorLight.process(
> AbstractProcessorLight.java:66)
>
>             at org.apache.coyote.AbstractProtocol$
> ConnectionHandler.process(AbstractProtocol.java:868)
>
>             at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
> doRun(NioEndpoint.java:1457)
>
>             at org.apache.tomcat.util.net.SocketProcessorBase.run(
> SocketProcessorBase.java:49)
>
>             at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
> Source)
>
>             at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>
>             at org.apache.tomcat.util.threads.TaskThread$
> WrappingRunnable.run(TaskThread.java:61)
>
>             at java.lang.Thread.run(Unknown Source)
>
>
>

Mime
View raw message