[rules-users] Exception "cannot determine ruleInfo" when trying to debug a rule

Mauricio Salatino salaboy at gmail.com
Fri Sep 16 08:30:41 EDT 2011


Interesting, probably the resource need to be in the class path to be able
to be picked up by eclipse.
If you add your old location to the project class path it will probably pick
it.
Cheers

On Fri, Sep 16, 2011 at 8:00 AM, skasab2s <skasab2s at smail.inf.fh-brs.de>wrote:

> Thanks for the reply, salaboy
>
> I moved my rule files to the "src" folder of a Java project and the
> exception is not shown. The debugging is successful. But when I try moving
> the original rules project to a java project and move the rules back to it,
> I still get the exception.
>
> What are the prerequisites for the location of the rule files?
>
> This is the complete exception stack trace:
>
> !ENTRY org.drools.eclipse 4 120 2011-09-16 12:43:51.408
> !MESSAGE Internal error in Drools Plugin:
> !STACK 1
> org.eclipse.core.runtime.CoreException: Cannot determine ruleInfo
>
> L/RulesDepotConf/GarmischRulesConf/rules/ValidationEarProtocolInsurAnaeTeq.drl
> 41
>        at
>
> org.drools.eclipse.debug.core.DroolsLineBreakpoint.setJavaBreakpointProperties(DroolsLineBreakpoint.java:112)
>        at
>
> org.drools.eclipse.debug.core.DroolsDebugTarget.breakpointAdded(DroolsDebugTarget.java:91)
>        at
>
> org.drools.eclipse.launching.DroolsLaunchConfigurationDelegate.launch(DroolsLaunchConfigurationDelegate.java:52)
>        at
>
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
>        at
>
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702)
>        at
>
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:924)
>        at
> org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1128)
>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> Caused by: java.lang.NullPointerException
>        at
>
> org.drools.eclipse.DRLInfo$RuleInfo.getConsequenceJavaLineNumber(DRLInfo.java:201)
>        at
>
> org.drools.eclipse.debug.core.DroolsLineBreakpoint.getRuleLineNumber(DroolsLineBreakpoint.java:146)
>        at
>
> org.drools.eclipse.debug.core.DroolsLineBreakpoint.setJavaBreakpointProperties(DroolsLineBreakpoint.java:107)
>        ... 7 more
> !SUBENTRY 1 org.drools.eclipse 4 0 2011-09-16 12:43:51.426
> !MESSAGE Cannot determine ruleInfo
>
> L/RulesDepotConf/GarmischRulesConf/rules/ValidationEarProtocolInsurAnaeTeq.drl
> 41
> !STACK 0
> java.lang.NullPointerException
>        at
>
> org.drools.eclipse.DRLInfo$RuleInfo.getConsequenceJavaLineNumber(DRLInfo.java:201)
>        at
>
> org.drools.eclipse.debug.core.DroolsLineBreakpoint.getRuleLineNumber(DroolsLineBreakpoint.java:146)
>        at
>
> org.drools.eclipse.debug.core.DroolsLineBreakpoint.setJavaBreakpointProperties(DroolsLineBreakpoint.java:107)
>        at
>
> org.drools.eclipse.debug.core.DroolsDebugTarget.breakpointAdded(DroolsDebugTarget.java:91)
>        at
>
> org.drools.eclipse.launching.DroolsLaunchConfigurationDelegate.launch(DroolsLaunchConfigurationDelegate.java:52)
>        at
>
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
>        at
>
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702)
>        at
>
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:924)
>        at
> org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1128)
>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
>
>
> Thanks in advance.
>
> Also I can't load the RETE view. This is the correpsonding exception:
>
>
> !ENTRY org.drools.eclipse 4 120 2011-09-16 12:56:16.996
> !MESSAGE Internal error in Drools Plugin:
> !STACK 0
> java.lang.Exception: 14 build errors
>        at
>
> org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(ReteViewer.java:147)
>        at
> org.drools.eclipse.editors.DRLRuleEditor2$3.run(DRLRuleEditor2.java:240)
>        at
>
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>
> !ENTRY org.drools.eclipse 4 120 2011-09-16 12:56:17.031
> !MESSAGE Internal error in Drools Plugin:
> !STACK 0
> java.lang.Exception: Unable to parse rules to show RETE view! 14 build
> errors
>        at
>
> org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(ReteViewer.java:162)
>        at
> org.drools.eclipse.editors.DRLRuleEditor2$3.run(DRLRuleEditor2.java:240)
>        at
>
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>
> !ENTRY org.drools.eclipse 4 120 2011-09-16 12:56:17.038
> !MESSAGE Internal error in Drools Plugin:
> !STACK 0
> java.lang.reflect.InvocationTargetException
>        at
> org.drools.eclipse.editors.DRLRuleEditor2$3.run(DRLRuleEditor2.java:248)
>        at
>
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> Caused by: java.lang.Exception: Unable to parse rules to show RETE view! 14
> build errors
>        at
>
> org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(ReteViewer.java:162)
>        at
> org.drools.eclipse.editors.DRLRuleEditor2$3.run(DRLRuleEditor2.java:240)
>        ... 1 more
> Root exception:
> java.lang.Exception: Unable to parse rules to show RETE view! 14 build
> errors
>        at
>
> org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(ReteViewer.java:162)
>        at
> org.drools.eclipse.editors.DRLRuleEditor2$3.run(DRLRuleEditor2.java:240)
>        at
>
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Exception-cannot-determine-ruleInfo-when-trying-to-debug-a-rule-tp3329759p3341599.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 - CTO @ http://www.plugtree.com
 - MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110916/3949edbe/attachment.html 


More information about the rules-users mailing list