Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-2107

NPE in FalconWorkflowEngine::isActive() method when FalconJPAService is not used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.10
    • trunk, 0.10
    • None
    • None

    Description

      When attempting any schedulable entity actions, Falcon is attempting to do getNativeWorkflowEngine().isActive(entity) – which throws an NPE when FalconJPAService is not enabled in startup.properties.

      falcon:DELETE//entities/delete/process/rawEmailIngestProcess] ~ Unable to reach workflow engine for deletion or deletion failed (AbstractEntityManager:287)
      java.lang.NullPointerException
             at org.apache.falcon.service.FalconJPAService.getEntityManager(FalconJPAService.java:168)
             at org.apache.falcon.state.store.jdbc.JDBCStateStore.getEntityManager(JDBCStateStore.java:495)
             at org.apache.falcon.state.store.jdbc.JDBCStateStore.getEntityBean(JDBCStateStore.java:113)
             at org.apache.falcon.state.store.jdbc.JDBCStateStore.getEntityByKey(JDBCStateStore.java:101)
             at org.apache.falcon.state.store.jdbc.JDBCStateStore.entityExists(JDBCStateStore.java:126)
             at org.apache.falcon.workflow.engine.FalconWorkflowEngine.isActive(FalconWorkflowEngine.java:113)
             at org.apache.falcon.workflow.WorkflowEngineFactory.getWorkflowEngine(WorkflowEngineFactory.java:54)
             at org.apache.falcon.resource.AbstractEntityManager.getWorkflowEngine(AbstractEntityManager.java:1325)
             at org.apache.falcon.resource.AbstractEntityManager.delete(AbstractEntityManager.java:274)
             at org.apache.falcon.resource.AbstractEntityManager.delete(AbstractEntityManager.java:257)
      

      Confirmed with pallavi.rao that the optimal solution is to catch NPE and return false in the isActive(...) method.

      Attachments

        Issue Links

          Activity

            People

              bvellanki Balu Vellanki
              bvellanki Balu Vellanki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified