wtf? you shouldn't be touching those methods, those are part of the internal serialisation process. In fact you shouldn't instantiate a Package at all, either serialise in an existing one
So you mean do this? :
ois = new ObjectInputStream(fis);
this.pkg = (Package) ois.readObject();
ois.close();
It did the same thing… threw same exception…
or use the PackageBuilder
How? Where is it described? Are there any examples?
From: rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Mark Proctor
Sent: Tuesday, October 09, 2007
11:55 AM
To: Rules Users List
Subject: Re: [rules-users] RE:
rules precompilation
Manukyan, Sergey wrote:
Ekke,
Started using 4.0.2, but getting same error.
This is how I am loading the Package :
this.pkg = new Package();
this.pkg.readExternal(ois);
Does that look right to you?
wtf? you shouldn't be touching those methods, those
are part of the internal serialisation process. And you should never
instantiation a Package with the default constructor, the javadocs even state
that. In fact you shouldn't instantiate a Package at all, either serialise in
an existing one or use the PackageBuilder.
-Sergey
-----Original Message-----
From: rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of ekke
Sent: Wednesday, October 03, 2007 4:08 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] RE: rules precompilation
sergey,
just tried it:
exported a package with rules as stream
(using the writeExternal() from Package)
then in another run I created new RuleBase, added new Package,
then import the rules into this empty Package (using the readExternal()
from
Package)
then added some facts, execute the rules,
tested if all rules are there,
tested if the Facts are in workingMemory - all ok
(using snapshot 4.0.2, eclipse 3.3, osx 10.4.10)
ekke
Manukyan, Sergey wrote:
Ming, Ekke,
After deserialising the Package back - getting exception when
inserting
facts:
Exception thrown : java.lang.NoClassDefFoundError: XXXShadowProxy
XXX - is my class name
Any ideas?
-Sergey
-----Original Message-----
From: rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Jin, Ming
Sent: Wednesday, October 03, 2007 1:50 PM
To: Rules Users List
Subject: RE: [rules-users] rules precompilation
Sergey,
I am using precompiled rules. Serializing instances of
org.drools.rule.Package works for me.
Thanks,
-Ming
-----Original Message-----
From: rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Manukyan,
Sergey
Sent: Wednesday, October 03, 2007 12:29 PM
To: Rules Users List
Subject: [rules-users] rules precompilation
Folks,
Where can I find information on how to pre-compile rules in 4.0.1?
Thanks,
-Sergey
**********************
** LEGAL DISCLAIMER **
**********************
This E-mail message and any attachments may contain legally
privileged,
confidential or proprietary information. If you are not the intended
recipient(s), or the employee or agent responsible for delivery of
this
message to the intended recipient(s), you are hereby notified that any
dissemination, distribution or copying of this E-mail message is
strictly prohibited. If you have received this message in error,
please
immediately notify the sender and delete this E-mail message from your
computer.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users