[
https://issues.apache.org/jira/browse/FALCON-2107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15404226#comment-15404226
]
ASF GitHub Bot commented on FALCON-2107:
----------------------------------------
GitHub user bvellanki opened a pull request:
https://github.com/apache/falcon/pull/254
FALCON-2107 NPE in FalconWorkflowEngine::isActive() method
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bvellanki/falcon FALCON-2107
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/falcon/pull/254.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #254
----
commit cc0da2e053fdb7a64f12df1792c85d20dd57da8d
Author: bvellanki <[email protected]>
Date: 2016-08-02T15:45:21Z
FALCON-2107 NPE in FalconWorkflowEngine::isActive() method
----
> NPE in FalconWorkflowEngine::isActive() method when FalconJPAService is not
> used
> --------------------------------------------------------------------------------
>
> Key: FALCON-2107
> URL: https://issues.apache.org/jira/browse/FALCON-2107
> Project: Falcon
> Issue Type: Bug
> Affects Versions: 0.10
> Reporter: Balu Vellanki
> Assignee: Balu Vellanki
> Priority: Blocker
> Fix For: 0.10
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> 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.
> {code}
> 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)
> {code}
> Confirmed with [~pallavi.rao] that the optimal solution is to catch NPE and
> return false in the isActive(...) method.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)