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 ekkeSent: Wednesday, October 03, 2007 4:08 PMTo: rules-users@lists.jboss.orgSubject: [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()fromPackage)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: XXXShadowProxyXXX - is my class nameAny ideas?-Sergey-----Original Message-----From: rules-users-bounces@lists.jboss.org[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Jin, MingSent: Wednesday, October 03, 2007 1:50 PMTo: Rules Users ListSubject: RE: [rules-users] rules precompilationSergey,I am using precompiled rules. Serializing instances oforg.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,SergeySent: Wednesday, October 03, 2007 12:29 PMTo: Rules Users ListSubject: [rules-users] rules precompilationFolks,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 intendedrecipient(s), or the employee or agent responsible for delivery of
this
message to the intended recipient(s), you are hereby notified that anydissemination, distribution or copying of this E-mail message isstrictly prohibited. If you have received this message in error,
please
immediately notify the sender and delete this E-mail message from yourcomputer._______________________________________________rules-users mailing listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users_______________________________________________rules-users mailing listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users_______________________________________________rules-users mailing listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users