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:27:33 GMT
The reason for the failure is likely because we had to move off of simple
json to a different library due to Apache withdrawing support for simple
json's license.  Tests passed but clearly we must have missed something.

Karl


On Tue, Sep 12, 2017 at 6:26 AM, Karl Wright <daddywri@gmail.com> wrote:

> 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.int
>> erfaces.Configuration$JSONWriter.value(Configuration.java:797)
>>
>>             at org.apache.manifoldcf.core.int
>> erfaces.Configuration.writeNode(Configuration.java:317)
>>
>>             at org.apache.manifoldcf.core.int
>> erfaces.Configuration.writeNode(Configuration.java:406)
>>
>>             at org.apache.manifoldcf.core.int
>> erfaces.Configuration.writeNode(Configuration.java:413)
>>
>>             at org.apache.manifoldcf.core.int
>> erfaces.Configuration.writeNode(Configuration.java:413)
>>
>>             at org.apache.manifoldcf.core.int
>> erfaces.Configuration.toJSON(Configuration.java:246)
>>
>>             at org.apache.manifoldcf.apiservlet.APIServlet.executeRead(
>> APIServlet.java:303)
>>
>>             at org.apache.manifoldcf.apiservl
>> et.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.Appli
>> cationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
>>
>>             at org.apache.catalina.core.Appli
>> cationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>
>>             at org.apache.tomcat.websocket.se
>> rver.WsFilter.doFilter(WsFilter.java:52)
>>
>>             at org.apache.catalina.core.Appli
>> cationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>
>>             at org.apache.catalina.core.Appli
>> cationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>
>>             at org.apache.catalina.core.Stand
>> ardWrapperValve.invoke(StandardWrapperValve.java:198)
>>
>>             at org.apache.catalina.core.Stand
>> ardContextValve.invoke(StandardContextValve.java:96)
>>
>>             at org.apache.catalina.authentica
>> tor.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
>>
>>             at org.apache.catalina.core.Stand
>> ardHostValve.invoke(StandardHostValve.java:140)
>>
>>             at org.apache.catalina.valves.Err
>> orReportValve.invoke(ErrorReportValve.java:80)
>>
>>             at org.apache.catalina.valves.Abs
>> tractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
>>
>>             at org.apache.catalina.core.Stand
>> ardEngineValve.invoke(StandardEngineValve.java:87)
>>
>>             at org.apache.catalina.connector.
>> CoyoteAdapter.service(CoyoteAdapter.java:342)
>>
>>             at org.apache.coyote.http11.Http1
>> 1Processor.service(Http11Processor.java:799)
>>
>>             at org.apache.coyote.AbstractProc
>> essorLight.process(AbstractProcessorLight.java:66)
>>
>>             at org.apache.coyote.AbstractProtocol$ConnectionHandler.
>> process(AbstractProtocol.java:868)
>>
>>             at org.apache.tomcat.util.net.Nio
>> Endpoint$SocketProcessor.doRun(NioEndpoint.java:1457)
>>
>>             at org.apache.tomcat.util.net.Soc
>> ketProcessorBase.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