[rules-dev] Open a BRL file from BRMS in Eclipse throws an Exception

Michael Neale michael.neale at gmail.com
Wed Sep 23 03:17:10 EDT 2009


ok well try latest, not the tools one, and report back when you can.

On Wed, Sep 23, 2009 at 3:48 PM, Bernd Rücker <bernd.ruecker at camunda.com> wrote:
> Hi Michael.
>
> There is a nature tag in my brl-XML:
>
>  <rhs>
>    <assert>
>      <fieldValues>
>        <fieldValue>
>          <field>reason</field>
>          <value>Too Young</value>
>          <nature>1</nature>
>          <type>String</type>
>        </fieldValue>
>      </fieldValues>
>      <factType>Rejection</factType>
>      <isBound>false</isBound>
>    </assert>
>  </rhs>
> </rule>
>
> I try to check with the pure plugin from Drools later on, I tried with
> Eclipse and the latest JBoss Tools as well, no difference...
>
> Cheers
> Bernd
>
> -----Ursprüngliche Nachricht-----
> Von: rules-dev-bounces at lists.jboss.org
> [mailto:rules-dev-bounces at lists.jboss.org] Im Auftrag von Michael Neale
> Gesendet: Mittwoch, 23. September 2009 01:31
> An: Rules Dev List
> Betreff: Re: [rules-dev] Open a BRL file from BRMS in Eclipse throws an
> Exception
>
> Also - if you open up the BRL as text - so you see a <nature> type tag
> or something that could be causing that?
>
> On Tue, Sep 22, 2009 at 10:43 PM, Bernd Rücker
> <bernd.ruecker at camunda.com> wrote:
>> Hey guys.
>>
>>
>>
>> Not sure if this is a bug or if it is just not supported, it appears
> with
>> the current version of Drools 5 and JBoss Tools. If I open a brl created
>> with the BRMS I get the following Exception in Eclipse:
>>
>>
>>
>> com.thoughtworks.xstream.mapper.CannotResolveClassException: nature :
> nature
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java
> :68)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyM
> apper.java:71)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAli
> asingMapper.java:88)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasin
> gMapper.java:86)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:96)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java
> :38)
>>
>>                 at
>>
> com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java
> :52)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
> .determineType(AbstractReflectionConverter.java:347)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
> .doUnmarshal(AbstractReflectionConverter.java:208)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
> .unmarshal(AbstractReflectionConverter.java:162)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.ja
> va:82)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Abstra
> ctReferenceUnmarshaller.java:63)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:76)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:60)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.collections.AbstractCollectionConverte
> r.readItem(AbstractCollectionConverter.java:71)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.collections.ArrayConverter.unmarshal(A
> rrayConverter.java:55)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.ja
> va:82)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Abstra
> ctReferenceUnmarshaller.java:63)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:76)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
> .unmarshallField(AbstractReflectionConverter.java:246)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
> .doUnmarshal(AbstractReflectionConverter.java:218)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
> .unmarshal(AbstractReflectionConverter.java:162)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.ja
> va:82)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Abstra
> ctReferenceUnmarshaller.java:63)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:76)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:60)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.collections.AbstractCollectionConverte
> r.readItem(AbstractCollectionConverter.java:71)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.collections.ArrayConverter.unmarshal(A
> rrayConverter.java:55)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.ja
> va:82)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Abstra
> ctReferenceUnmarshaller.java:63)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:76)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
> .unmarshallField(AbstractReflectionConverter.java:246)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
> .doUnmarshal(AbstractReflectionConverter.java:218)
>>
>>                 at
>>
> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
> .unmarshal(AbstractReflectionConverter.java:162)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.ja
> va:82)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Abstra
> ctReferenceUnmarshaller.java:63)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:76)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarsha
> ller.java:60)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java
> :137)
>>
>>                 at
>>
> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(Ab
> stractTreeMarshallingStrategy.java:33)
>>
>>                 at
>> com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
>>
>>                 at
>> com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
>>
>>                 at
>> com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
>>
>>                 at
>> com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
>>
>>                 at
>>
> org.drools.guvnor.server.util.BRXMLPersistence.unmarshal(BRXMLPersistence.
> java:83)
>>
>>                 at
>>
> org.drools.eclipse.rulebuilder.editors.BrlPage.setModelXML(BrlPage.java:44
> )
>>
>>                 at
>>
> org.drools.eclipse.rulebuilder.editors.RuleEditor.pageChange(RuleEditor.ja
> va:274)
>>
>>                 at
>>
> org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.
> java:973)
>>
>>                 at
>>
> org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:623)
>>
>>                 at
>>
> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorP
> art.java:314)
>>
>>                 at
>>
> org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.j
> ava:661)
>>
>>                 at
>>
> org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:42
> 8)
>>
>>                 at
>>
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartRefere
> nce.java:594)
>>
>>                 at
>>
> org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266
> )
>>
>>                 at
>>
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.
> java:2820)
>>
>>                 at
>>
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:27
> 29)
>>
>>                 at
>> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
>>
>>                 at
>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
>>
>>                 at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>>
>>                 at
>>
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
>>
>>                 at
>>
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
>>
>>                 at
>> org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:337)
>>
>>                 at
>> org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:325)
>>
>>                 at
>> org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:187)
>>
>>                 at
>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>>
>>                 at
>> org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>>
>>                 at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
>>
>>                 at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
>>
>>                 at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
>>
>>                 at
>> org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
>>
>>                 at
>> org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
>>
>>                 at
>> org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
>>
>>                 at
>>
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:28
> 8)
>>
>>                 at
>>
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490
> )
>>
>>                 at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>
>>                 at
>>
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplicatio
> n.java:113)
>>
>>                 at
>>
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.jav
> a:193)
>>
>>                 at
>>
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicatio
> n(EclipseAppLauncher.java:110)
>>
>>                 at
>>
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Eclipse
> AppLauncher.java:79)
>>
>>                 at
>>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:38
> 6)
>>
>>                 at
>>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:17
> 9)
>>
>>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>>
>>                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
>> Source)
>>
>>                 at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>
>>                 at java.lang.reflect.Method.invoke(Unknown Source)
>>
>>                 at
>> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
>>
>>                 at
> org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>>
>>                 at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>>
>>
>>
>> Thanks
>>
>> Bernd
>>
>> --
>>
>> Unsere Seminare: www.camunda.com/seminare/
>>
>> Blog: www.bpm-guide.de
>>
>> ---------------------------------------------
>>
>> camunda services GmbH - The Business Process Company
>>
>> Zossener Straße 55-58 - 10961 Berlin
>>
>> www.camunda.com - info at camunda.com
>>
>> ---------------------------------------------
>>
>> Bernd Rücker
>>
>> Geschäftsführer
>>
>> Telefon +49 +49 30 664040 901
>>
>> Mobil +49 171 1473461
>>
>> bernd.ruecker at camunda.com
>>
>> ---------------------------------------------
>>
>> Amtsgericht Charlottenburg: HRB 113230 B
>>
>> Geschäftsführer: Jakob Freund, Bernd Rücker
>>
>> ---------------------------------------------
>>
>> EJB-3-Buch: http://www.ejbbuch.de/
>>
>> BPMN-Buch: http://www.hanser.de/buch.asp?isbn=978-3-446-41768-7
>>
>>
>>
>> _______________________________________________
>> rules-dev mailing list
>> rules-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>
>>
>
>
>
> --
> Michael D Neale
> home: www.michaelneale.net
> blog: michaelneale.blogspot.com
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>



-- 
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com



More information about the rules-dev mailing list