Thank Karl: bug report opened (CONNECTORS-1456).

I’ve filled in the meta as best I can: the “affects versions” field doesn’t include 2.8.1, but I suspect the problem is also in 2.8 anyway.

Adrian

From: Karl Wright [mailto:[EMAIL PROTECTED]]
Sent: 12 September 2017 11:28 AM
To: [EMAIL PROTECTED]
Subject: Re: Problem with JSON output of MCF web api

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 <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> 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 <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> 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<http://secure-web.cisco.com/1F1-jeD9BQYTEC7Ex6XqdT5olIxsRHXdTO4BijsIs5Tkqy6_1cI1r4gafkJR_s1KsEtkc4iD8zveYHmabU-89e7u54fqXEtJeMZixyY4FyTx0k7AsUlUoGRXpxfAx2MB_jvo64-ryMNY1poWlX5k9Igz8hbKB86WHqHYimNNY8tC2ZOQpIjgDfgej2Jhv8Ujpy88E1MSOJmmfHWHm_hPpnuAlaPNrRD5wnKHztmCijoaLUszec8qaf8TwvJs35SOs/http%3A%2F%2Flocalhost%3A8080%2Fmcf-api-service%2Fjson%2Fjobs>
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<http://secure-web.cisco.com/17VT5AP2f0OMp4UzQACUiBIPcLaYAn3LK_f3Pr4h8CAsNje34euIg-dTHKH2eIsgd9dnzJj0zeT_jl-GNnlNMFvmqnjaGoZdzGMvUYYIOtBKHkTXnHXDEupaHhOTNBu87A1dXqRZQUDBbSk7LuEcrDwPEmXiDDAAWUH-FgI-5K_z0QehJeXSP4Fo1KZ1CqTvVIZRE626g4lsVOR3f70sDqFnNU3uEAESb2wYcnb176-z9BctgjLdKxd1hT45u-Wzd/http%3A%2F%2Forg.apache.manifoldcf.core.int>erfaces.Configuration$JSONWriter.value(Configuration.java:797)
            at org.apache.manifoldcf.core.int<http://secure-web.cisco.com/17VT5AP2f0OMp4UzQACUiBIPcLaYAn3LK_f3Pr4h8CAsNje34euIg-dTHKH2eIsgd9dnzJj0zeT_jl-GNnlNMFvmqnjaGoZdzGMvUYYIOtBKHkTXnHXDEupaHhOTNBu87A1dXqRZQUDBbSk7LuEcrDwPEmXiDDAAWUH-FgI-5K_z0QehJeXSP4Fo1KZ1CqTvVIZRE626g4lsVOR3f70sDqFnNU3uEAESb2wYcnb176-z9BctgjLdKxd1hT45u-Wzd/http%3A%2F%2Forg.apache.manifoldcf.core.int>erfaces.Configuration.writeNode(Configuration.java:317)
            at org.apache.manifoldcf.core.int<http://secure-web.cisco.com/17VT5AP2f0OMp4UzQACUiBIPcLaYAn3LK_f3Pr4h8CAsNje34euIg-dTHKH2eIsgd9dnzJj0zeT_jl-GNnlNMFvmqnjaGoZdzGMvUYYIOtBKHkTXnHXDEupaHhOTNBu87A1dXqRZQUDBbSk7LuEcrDwPEmXiDDAAWUH-FgI-5K_z0QehJeXSP4Fo1KZ1CqTvVIZRE626g4lsVOR3f70sDqFnNU3uEAESb2wYcnb176-z9BctgjLdKxd1hT45u-Wzd/http%3A%2F%2Forg.apache.manifoldcf.core.int>erfaces.Configuration.writeNode(Configuration.java:406)
            at org.apache.manifoldcf.core.int<http://secure-web.cisco.com/17VT5AP2f0OMp4UzQACUiBIPcLaYAn3LK_f3Pr4h8CAsNje34euIg-dTHKH2eIsgd9dnzJj0zeT_jl-GNnlNMFvmqnjaGoZdzGMvUYYIOtBKHkTXnHXDEupaHhOTNBu87A1dXqRZQUDBbSk7LuEcrDwPEmXiDDAAWUH-FgI-5K_z0QehJeXSP4Fo1KZ1CqTvVIZRE626g4lsVOR3f70sDqFnNU3uEAESb2wYcnb176-z9BctgjLdKxd1hT45u-Wzd/http%3A%2F%2Forg.apache.manifoldcf.core.int>erfaces.Configuration.writeNode(Configuration.java:413)
            at org.apache.manifoldcf.core.int<http://secure-web.cisco.com/17VT5AP2f0OMp4UzQACUiBIPcLaYAn3LK_f3Pr4h8CAsNje34euIg-dTHKH2eIsgd9dnzJj0zeT_jl-GNnlNMFvmqnjaGoZdzGMvUYYIOtBKHkTXnHXDEupaHhOTNBu87A1dXqRZQUDBbSk7LuEcrDwPEmXiDDAAWUH-FgI-5K_z0QehJeXSP4Fo1KZ1CqTvVIZRE626g4lsVOR3f70sDqFnNU3uEAESb2wYcnb176-z9BctgjLdKxd1hT45u-Wzd/http%3A%2F%2Forg.apache.manifoldcf.core.int>erfaces.Configuration.writeNode(Configuration.java:413)
            at org.apache.manifoldcf.core.int<http://secure-web.cisco.com/17VT5AP2f0OMp4UzQACUiBIPcLaYAn3LK_f3Pr4h8CAsNje34euIg-dTHKH2eIsgd9dnzJj0zeT_jl-GNnlNMFvmqnjaGoZdzGMvUYYIOtBKHkTXnHXDEupaHhOTNBu87A1dXqRZQUDBbSk7LuEcrDwPEmXiDDAAWUH-FgI-5K_z0QehJeXSP4Fo1KZ1CqTvVIZRE626g4lsVOR3f70sDqFnNU3uEAESb2wYcnb176-z9BctgjLdKxd1hT45u-Wzd/http%3A%2F%2Forg.apache.manifoldcf.core.int>erfaces.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.se<http://secure-web.cisco.com/1opzcTT14cNCEed6F2I1dHaSmb4_o1Ga-HSbACOy_prp9xVJCC43rDMjG8hTmvkSR5hhViLYbidgdq_pYQgPuhrcJziv1dnXo_TQxT6dUkBi75hW8PQzpnD81PE_5Q4t6brKNwApGEsJoG-6NrlAqLgRXkoAV9T2uN5vXuxNUddrC0YruVJqrpuDXuD2eFLhEb-sRcEuELnahF0uu8N-s_Sl-zRa3LjIESuBF6rDA72UChji705itDsQ3XIzHR3rY/http%3A%2F%2Forg.apache.tomcat.websocket.se>rver.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.Au
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB