[rules-users] InvalidClassException: When creating RuleAgent
The BRMS is using drools-core-4.0.7 and I was working with drools-core-4.0.4. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] InvalidClassException: When creating RuleAgent
When I create a new RuleAgent with a package created with the BRMS following Exception is thrown: RuleAgent(BusinessRuleEngine) INFO (Wed Jul 23 12:00:32 CEST 2008): Configuring with newInstance=true, secondsToRefresh=30 RuleAgent(BusinessRuleEngine) INFO (Wed Jul 23 12:00:32 CEST 2008): Configuring package provider : FileScanner scanning: D:\...\mypackage.pkg RuleAgent(BusinessRuleEngine) EXCEPTION (Wed Jul 23 12:00:33 CEST 2008): org.drools.base.mvel.DroolsMVELFactory; Serializable incompatible with Externalizable. Stack trace should follow. java.io.InvalidClassException: org.drools.base.mvel.DroolsMVELFactory; Serializable incompatible with Externalizable ... It works fine with another package created earlier. So it could be something wrong with my fact model. I couldn't find any useful information about the Serializeable incompatible with Externalizable on the web. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Accessing the fact model class files
Hi all, I create a *.pkg package with the BRMS and I want to access the class files from my fact model at runtime. I coud't find a way to do so in the org.drools.rule.Package API. Is there a way to do so? Thx, Tobi ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Escape Character in Rules
Hi, I am using a DSL sentence within the JBRMS like this: [condition]There is an Instance with field of {value}=i: Instance(field=='{value}') When I enter a string for {value} in the rules editor that contains a "{" it is not shown in the source code of the rule and saving of that rule is impossible. There is no Error Message, but the saving dialog in not closing. So I wonder if there is any escape character, that I should use in the rule or is there something wrong with the DSL? Cheers Tobi ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] use data enumeration in DSL in BRMS
Hi, I have a following DSL sentence defined: [when] when the fact field is {field} =Fact(field=="{field}") And I have a defined a data enumeration : 'Fact.field' : (new com.helper.DataProvider()).getValues() When you choose "Add a restriction on a field" then I get the dropdown with the values but when I choose the DSL sentence that I have a input field. Is it possible to have the dropdown values in the dsl sentence?? Cheers Tobi ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Uploading the fact model to the DRools BRMS
Hi, I fixed the Problem. First I got rid of the Error [STDOUT] ERROR 16-01 11:42:25,609 (Contexts.java:flushAndDest royContexts:335) could not discover transaction status ... by editing the web.xml of drools-jbrms ear. I found that earlier in this list. After that my exception changed into java.lang.UnsupportedClassVersionError: Bad version number in .class file So I created my jars with some different Java versions and with jdk 1.6 the exception was gone. I don't why this is, cause drools and JBoss should work with 1.5. Cheers Tobi Message: 2 Date: Tue, 18 Mar 2008 18:11:31 +0100 From: "Felbecker, Tobias" <[EMAIL PROTECTED]> Subject: To: Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" Hi , I got the same problem and wonder if there is a solution for that yet. I'am using JBOSS: AS 4.2.2 GA DBMR: 4.0.4 JAVA: 1.5.0_15 After uploading the jar, editing the import in the package configuration and finally validating the package I get the following exception: java.lang.reflect.InvocationTargetException 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.jboss.seam.util.Reflections.invoke(Reflections.java:21) at. The import statement should and the packaging of the jar file seems to be correct. Otherwise there would be a Class not found error but no exception. I tried all kinds of packaging: binaries, source and binaries, creating the jar through eclipse and from cmd. This is my very simple java class: package test; public class MyBean{ public MyBean(){ } private int number; public int getNumber() { return number; } public void setNumber(int number) { this.number = number; } } Cheers Tobi ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Uploading the fact model to the DRools BRMS
Hi , I got the same problem and wonder if there is a solution for that yet. I'am using JBOSS: AS 4.2.2 GA DBMR: 4.0.4 JAVA: 1.5.0_15 After uploading the jar, editing the import in the package configuration and finally validating the package I get the following exception: java.lang.reflect.InvocationTargetException 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.jboss.seam.util.Reflections.invoke(Reflections.java:21) at. The import statement should and the packaging of the jar file seems to be correct. Otherwise there would be a Class not found error but no exception. I tried all kinds of packaging: binaries, source and binaries, creating the jar through eclipse and from cmd. This is my very simple java class: package test; public class MyBean{ public MyBean(){ } private int number; public int getNumber() { return number; } public void setNumber(int number) { this.number = number; } } Cheers Tobi ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users