[rules-users] [#JBRULES-1946] Deserializing a KnowledgeBase object throws a java.io.EOFException
Przemysław Różycki
P.Rozycki at amg.net.pl
Tue Jun 16 06:49:01 EDT 2009
Hello Rick,
I confirm, that implementations - DroolsObjectOutputStream and
DroolsObjectInputStream work well, but it's not applicable in my case,
because I depend on external component, that is responsible for storing
my data and it uses standard serialization mechanisms. Of course, I may
do some workarounds that for example first serialize the stream using
Drools implementation and then pass it to the external component, but I
prefer to try to do it as it should be. If I don't manage to, I will
think about some other ways.
Anyway, thank you for your response and advice.
Best regards,
Przemysław Różycki
Rick Lacy pisze:
> I haven't actually tested this with your example yet, but I recall
> having a similar problem. I notice you are using the raw
> java.io.ObjectInputStream and java.io.ObjectOutputStream. I think what
> I did was switch to org.drools.common.DroolsObjectInputStream and
> org.drools.common.DroolsObjectOutputStream. Have you tried it with
> these yet?
>
>
> Regards,
>
>
> Rick
>
>
> On 6/15/09, *Przemysław Różycki* <P.Rozycki at amg.net.pl
> <mailto:P.Rozycki at amg.net.pl>> wrote:
>
> Hello,
>
> IMHO, this bug still occurs in 5.0.1 final version as well as in
> trunk. I put the proper comment and example code in JIRA:
> https://jira.jboss.org/jira/browse/JBRULES-1946
>
> I need it working quite quickly, so if the Drools developers plan to
> solve it later, then I will try to look at the source code by myself
> and find the solution (and share of course).
>
> However I would like to ask if anyone tried to diagnose the problem
> earlier and has some thoughts where to look for the cause?
>
> Best regards,
> --
> Przemysław Różycki
> Architekt IT
> AMG.net, A Bull Group Company
> ul. Łąkowa 29
> 90-554 Łódź
> tel.: (+48 42) 296 11 82
> GSM: (+48) 510 022 612
> jid: p.rozycki at amg.net.pl <mailto:p.rozycki at amg.net.pl>
> GG: 145116
> www.amg.net.pl <http://www.amg.net.pl/>
>
>
> Treść niniejszej wiadomości może być poufna. Jeżeli nie jesteście
> Państwo jej adresatem, to rozprowadzanie lub wykorzystywanie
> zawartych tu informacji jest zabronione.
>
> This e-mail contains material that is confidential for the sole use
> of the intended recipient. Any review, reliance or distribution by
> others or forwarding without express permission is strictly
> prohibited. If you are not the intended recipient, please contact
> the sender and delete all copies.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
--
Przemysław Różycki
IT Architect
AMG.net, A Bull Group Company
ul. Łąkowa 29
90-554 Łódź
www.amg.net.pl
More information about the rules-users
mailing list