[rules-users] InvalidClassException: When creating RuleAgent

2008-07-23 Thread Felbecker, Tobias
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] InvalidClassException: When creating RuleAgent

2008-07-23 Thread Felbecker, Tobias
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] Accessing the fact model class files

2008-06-10 Thread Felbecker, Tobias
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

2008-04-08 Thread Felbecker, Tobias
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] Uploading the fact model to the DRools BRMS

2008-03-19 Thread Felbecker, Tobias
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: rules-users@lists.jboss.org
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