Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
2.0.3
-
None
Description
When trying to resolve data through CRISP ResourceBroker in CMS application (e.g, in external document picker or value provider for instance), NPE is observed like the following:
[INFO] [talledLocalContainer] 27.09.2017 12:02:45 ERROR http-nio-8080-exec-10 [CommerceProductDataServiceFacade.searchExternalDocuments:57] Failed to find resources. [INFO] [talledLocalContainer] java.lang.NullPointerException: null [INFO] [talledLocalContainer] at org.onehippo.cms7.crisp.core.broker.CacheableResourceServiceBroker.getResourceCacheInRequestLevelCache(CacheableResourceServiceBroker.java:349) ~[?:?] [INFO] [talledLocalContainer] at org.onehippo.cms7.crisp.core.broker.CacheableResourceServiceBroker.findResources(CacheableResourceServiceBroker.java:244) ~[?:?] [INFO] [talledLocalContainer] at org.onehippo.cms7.crisp.api.broker.AbstractDelegatingResourceServiceBroker.findResources(AbstractDelegatingResourceServiceBroker.java:68) ~[hippo-addon-crisp-api-2.0.4-SNAPSHOT.jar:2.0.4-SNAPSHOT] [INFO] [talledLocalContainer] at org.onehippo.cms7.crisp.hst.broker.RequestContextResolvingDelegatingResourceServiceBroker.findResources(RequestContextResolvingDelegatingResourceServiceBroker.java:96) ~[?:?] [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144] [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_144] [INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_144] [INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144] [INFO] [talledLocalContainer] at org.onehippo.cms7.services.HippoServiceRegistry$NamedRegistration$1.invoke(HippoServiceRegistry.java:57) ~[hippo-services-4.0.0.jar:4.0.0] [INFO] [talledLocalContainer] at com.sun.proxy.$Proxy48.findResources(Unknown Source) ~[?:?] [INFO] [talledLocalContainer] at org.onehippo.cms7.crisp.demo.cms.plugin.CommerceProductDataServiceFacade.findAllProductResources(CommerceProductDataServiceFacade.java:128) ~[classes/:2.0.4-SNAPSHOT] [INFO] [talledLocalContainer] at org.onehippo.cms7.crisp.demo.cms.plugin.CommerceProductDataServiceFacade.searchExternalDocuments(CommerceProductDataServiceFacade.java:49) [classes/:2.0.4-SNAPSHOT] [INFO] [talledLocalContainer] at org.onehippo.forge.exdocpicker.impl.field.ExternalDocumentFieldBrowserDialog.searchExternalDocumentsBySearchQuery(ExternalDocumentFieldBrowserDialog.java:241) [exdocpickerbase-field-5.0.0.jar:?] [INFO] [talledLocalContainer] at org.onehippo.forge.exdocpicker.impl.field.TextSearchExternalDocumentFieldBrowserDialog$1.onSubmit(TextSearchExternalDocumentFieldBrowserDialog.java:55) [exdocpickerbase-field-5.0.0.jar:?] [INFO] [talledLocalContainer] at org.apache.wicket.ajax.markup.html.form.AjaxButton$1.onSubmit(AjaxButton.java:108) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$AjaxFormSubmitter.onSubmit(AjaxFormSubmitBehavior.java:215) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1305) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.hippoecm.frontend.dialog.AbstractDialog.delegateSubmit(AbstractDialog.java:545) [hippo-cms-api-5.0.0.jar:5.0.0] [INFO] [talledLocalContainer] at org.apache.wicket.markup.html.form.Form.process(Form.java:966) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.hippoecm.frontend.dialog.AbstractDialog.process(AbstractDialog.java:670) [hippo-cms-api-5.0.0.jar:5.0.0] [INFO] [talledLocalContainer] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:788) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:171) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:145) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:654) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144] [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_144] [INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_144] [INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144] [INFO] [talledLocalContainer] at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:890) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) [wicket-request-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) [wicket-core-6.26.0.jar:6.26.0] [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.15] [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54) [hippo-cms-engine-5.0.0.jar:5.0.0] [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) [catalina.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [catalina.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) [catalina.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [catalina.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) [catalina.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624) [catalina.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [catalina.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [catalina.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) [tomcat-coyote.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-coyote.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861) [tomcat-coyote.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455) [tomcat-coyote.jar:8.5.15] [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote.jar:8.5.15] [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_144] [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_144] [INFO] [talledLocalContainer] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:8.5.15] [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]