[JBoss JIRA] Created: (JBRULES-2232) NullPointerException using drools-persistance-jpa and Drools Flows (WorkItemInfo)
by Noel Keating (JIRA)
NullPointerException using drools-persistance-jpa and Drools Flows (WorkItemInfo)
---------------------------------------------------------------------------------
Key: JBRULES-2232
URL: https://jira.jboss.org/jira/browse/JBRULES-2232
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.1.0.M1
Reporter: Noel Keating
Assignee: Mark Proctor
I'm getting a NPE exception when using drools-persistence-jpa with Drools Flow (I'm working with the trunk version 28274). It occurs in MarshallerReaderContext and seems to be a result of JBRULES-2149. When loading a WorkItemInfo from the database a MarshallerReaderContext is created without the ruleBase set, however the MarshallerReaderContext expects the ruleBase to be set.
In the attached patch I have added a null check and call the super method if it is not set. This seems to be working correctly and would have been the behaviour before JBRULES-2149.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] Created: (JBRULES-2450) Nullpointer Exception when refacroring in unreleted projects
by Jürgen Schmied (JIRA)
Nullpointer Exception when refacroring in unreleted projects
------------------------------------------------------------
Key: JBRULES-2450
URL: https://jira.jboss.org/jira/browse/JBRULES-2450
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-eclipse
Affects Versions: 5.1.0.M1
Environment: eclipse.buildId=3.5.2
java.version=1.6.0_14
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
Reporter: Jürgen Schmied
Assignee: Mark Proctor
When renaming a class in a non drools project I get a NullPointerException in the drools plugin.
Participant 'org.drools.eclipse.refactoring.moveParticipant' removed due to the following exception
java.lang.NullPointerException
at org.drools.eclipse.refactoring.DRLProjectDetector.detect(Unknown Source)
at org.drools.eclipse.refactoring.DRLProjectDetector.detect(Unknown Source)
at org.drools.eclipse.refactoring.DRLProjectDetector.detect(Unknown Source)
at org.drools.eclipse.refactoring.RuleIFileMoveParticipant.createChange(Unknown Source)
at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.createChange(ProcessorBasedRefactoring.java:308)
at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:124)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:211)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months