[ 
https://issues.apache.org/jira/browse/UNOMI-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Draier closed UNOMI-40.
------------------------------

> scoring plans update leads to NPE
> ---------------------------------
>
>                 Key: UNOMI-40
>                 URL: https://issues.apache.org/jira/browse/UNOMI-40
>             Project: Apache Unomi
>          Issue Type: Bug
>            Reporter: Thomas Draier
>            Assignee: Thomas Draier
>             Fix For: 1.1.0-incubating
>
>
> When creating or updating a new scoring plan, the update of existing profiles 
> gives a npe in the logs : 
> org.apache.cxf.interceptor.Fault: failed to execute script
>       at 
> org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:170)[126:org.apache.cxf.cxf-api:2.7.11]
>       at 
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:136)[126:org.apache.cxf.cxf-api:2.7.11]
>       at 
> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)[139:org.apache.cxf.cxf-rt-frontend-jaxrs:2.7.11]
>       at 
> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)[139:org.apache.cxf.cxf-rt-frontend-jaxrs:2.7.11]
>       at 
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)[126:org.apache.cxf.cxf-api:2.7.11]
>       at 
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)[126:org.apache.cxf.cxf-api:2.7.11]
>       at 
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)[126:org.apache.cxf.cxf-api:2.7.11]
>       at 
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[126:org.apache.cxf.cxf-api:2.7.11]
>       at 
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:241)[133:org.apache.cxf.cxf-rt-transports-http:2.7.11]
>       at 
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)[133:org.apache.cxf.cxf-rt-transports-http:2.7.11]
>       at 
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)[133:org.apache.cxf.cxf-rt-transports-http:2.7.11]
>       at 
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)[133:org.apache.cxf.cxf-rt-transports-http:2.7.11]
>       at 
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)[133:org.apache.cxf.cxf-rt-transports-http:2.7.11]
>       at 
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)[133:org.apache.cxf.cxf-rt-transports-http:2.7.11]
>       at 
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)[133:org.apache.cxf.cxf-rt-transports-http:2.7.11]
>       at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:595)[65:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0.0]
>       at 
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)[133:org.apache.cxf.cxf-rt-transports-http:2.7.11]
>       at Proxyfa6b6d5e_069f_477a_a050_bcfdaf25f5ef.service(Unknown Source)[:]
>       at 
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)[79:org.ops4j.pax.web.pax-web-jetty:3.2.3]
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)[79:org.ops4j.pax.web.pax-web-jetty:3.2.3]
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)[79:org.ops4j.pax.web.pax-web-jetty:3.2.3]
>       at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.server.Server.handle(Server.java:370)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[70:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
>       at java.lang.Thread.run(Thread.java:745)[:1.8.0_60]
> Caused by: org.elasticsearch.ElasticsearchIllegalArgumentException: failed to 
> execute script
>       at 
> org.elasticsearch.action.update.UpdateHelper.prepare(UpdateHelper.java:202)[216:org.apache.unomi.persistence-elasticsearch-core:1.1.0.incubating-SNAPSHOT]
>       at 
> org.elasticsearch.action.update.TransportUpdateAction.shardOperation(TransportUpdateAction.java:176)[216:org.apache.unomi.persistence-elasticsearch-core:1.1.0.incubating-SNAPSHOT]
>       at 
> org.elasticsearch.action.update.TransportUpdateAction.shardOperation(TransportUpdateAction.java:170)[216:org.apache.unomi.persistence-elasticsearch-core:1.1.0.incubating-SNAPSHOT]
>       at 
> org.elasticsearch.action.support.single.instance.TransportInstanceSingleOperationAction$AsyncSingleAction$1.run(TransportInstanceSingleOperationAction.java:187)[216:org.apache.unomi.persistence-elasticsearch-core:1.1.0.incubating-SNAPSHOT]
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_60]
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_60]
>       ... 1 more
> Caused by: org.elasticsearch.script.groovy.GroovyScriptExecutionException: 
> NullPointerException[Cannot invoke method containsKey() on null object]
>       at 
> org.elasticsearch.script.groovy.GroovyScriptEngineService$GroovyScript.run(GroovyScriptEngineService.java:278)[216:org.apache.unomi.persistence-elasticsearch-core:1.1.0.incubating-SNAPSHOT]
>       at 
> org.elasticsearch.action.update.UpdateHelper.prepare(UpdateHelper.java:198)[216:org.apache.unomi.persistence-elasticsearch-core:1.1.0.incubating-SNAPSHOT]
>       ... 6 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to