[rules-users] Problem with DSL and 4.0.2

DELBART Vincent delbart.v at mipih.fr
Fri Oct 12 09:24:12 EDT 2007


done
 
http://jira.jboss.com/jira/browse/JBRULES-1272
 
V. 
 
 
 open a JIRA for it.
Markus Helbig wrote: 

	i only know i have this problem to when using 4.0.2 ->
conclusion:
	don't use it ... stay with 4.0.1
	
	2007/10/12, vdelbart <delbart.v at mipih.fr>
<mailto:delbart.v at mipih.fr> :
	  

		Nobody knows what's going wrong ?
		
		All my DSLs are wrong and in the same time my rules
too... It's very
		problematic...
		
		
		V.
		
		
		vdelbart wrote:
		    

			Hi,
			
			I have a problem with my DSL and the 4.0.2
version :
			
			this sentence doesn't work in 4.0.2 (work in
4.0.1) in Eclipse Editor :
			
			[condition][]there is at least {number}
{object}=ArrayList( size >=
			{number}) from collect( {object}() )
			
			log :
			!ENTRY org.eclipse.ui 4 0 2007-10-11
14:29:29.052
			!MESSAGE String index out of range: -1
			!STACK 0
			java.lang.StringIndexOutOfBoundsException:
String index out of range: -1
			      at
java.lang.String.substring(String.java:1768)
			      at
	
org.drools.lang.dsl.DefaultDSLMappingEntry.setMappingKey(DefaultDSLMappi
ngEntry.java:139)
			      at
org.drools.eclipse.dsl.editor.MappingEditor.okPressed(Unknown Source)
			      at
org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:508)
			      at
org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
			      at
	
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
			      at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
			      at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
			      at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
			      at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
			      at
org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
			      at
org.eclipse.jface.window.Window.open(Window.java:796)
			      at
org.drools.eclipse.dsl.editor.DSLEditor$8.widgetSelected(Unknown
			Source)
			      at
	
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
			      at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
			      at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
			      at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
			      at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
			      at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
			      at
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
			      at
	
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:4
19)
			      at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
			      at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
			      at
	
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActiva
tor.java:78)
			      at
	
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicat
ion(EclipseAppLauncher.java:92)
			      at
	
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Eclip
seAppLauncher.java:68)
			      at
	
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
400)
			      at
	
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
177)
			      at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
			      at
	
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
			      at
	
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
			      at
java.lang.reflect.Method.invoke(Method.java:585)
			      at
org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
			      at
org.eclipse.core.launcher.Main.basicRun(Main.java:280)
			      at
org.eclipse.core.launcher.Main.run(Main.java:977)
			      at
org.eclipse.core.launcher.Main.main(Main.java:952)
			
			
			If I put two blanks between {number} {object},
it's working.
			[condition][]there is at least {number}
{object}=ArrayList( size >=
			{number}) from collect( {object}() )
			
			
			But it's not a solution.
			
			thanks for your help,
			
			V.
			
			      

		--
		View this message in context:
http://www.nabble.com/Problem-with-DSL-and-4.0.2-tf4606960.html#a1317021
3
		Sent from the drools - user mailing list archive at
Nabble.com.
		
		_______________________________________________
		rules-users mailing list
		rules-users at lists.jboss.org
		https://lists.jboss.org/mailman/listinfo/rules-users
		
		    

	_______________________________________________
	rules-users mailing list
	rules-users at lists.jboss.org
	https://lists.jboss.org/mailman/listinfo/rules-users
	
	
	  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071012/9fe2af61/attachment.html 


More information about the rules-users mailing list