Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-7801

Batch operation cancel running process instances throws NullPointerException

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 7.7.0
    • Component/s: cockpit
    • Labels:
      None
    • Environment:
      WLS 12R1

      Description

      Reproduce:

      • Use cockpits batch operation to cancel running process instances
      • Cancel all instances
        {
          "historicProcessInstanceQuery": {
            "unfinished": true,
            "processDefinitionName": "Loan Approval"
          },
          "skipCustomListeners": true
        }
        

      Problem:
      NullPointerException occurs

      Hint:
      Reproduced on WLS 12R1
      Cannot reproduce on Wildfly10

      
      java.lang.RuntimeException: java.lang.NullPointerException
      	at org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter$1.execute(AuthenticationFilter.java:61)
      	at org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter$1.execute(AuthenticationFilter.java:56)
      	at org.camunda.bpm.webapp.impl.security.SecurityActions.runWithAuthentications(SecurityActions.java:38)
      	at org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:56)
      	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)
      	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
      	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      	at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
      	at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
      	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
      	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
      	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
      	at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
      	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
      	at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
      Caused by: java.lang.NullPointerException
      	at org.camunda.bpm.engine.impl.HistoricProcessInstanceQueryImpl.listIds(HistoricProcessInstanceQueryImpl.java:289)
      	at org.camunda.bpm.engine.rest.impl.ProcessInstanceRestServiceImpl.deleteAsyncHistoricQueryBased(ProcessInstanceRestServiceImpl.java:159)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
      	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
      	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
      	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      	at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
      	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
      	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
      	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
      	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
      	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
      	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
      	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
      	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
      	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
      	at weblogic.jaxrs.server.portable.servlet.ServletContainer.service(ServletContainer.java:218)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
      	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
      	at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      	at org.camunda.bpm.engine.rest.filter.CacheControlFilter.doFilter(CacheControlFilter.java:41)
      	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      	at org.camunda.bpm.webapp.impl.security.filter.SecurityFilter.doFilterSecure(SecurityFilter.java:67)
      	at org.camunda.bpm.webapp.impl.security.filter.SecurityFilter.doFilter(SecurityFilter.java:51)
      	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      	at org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter$1.execute(AuthenticationFilter.java:59)
      	... 16 more
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            michael.schoettes Michael Schoettes
            Reporter:
            michael.schoettes Michael Schoettes
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: