Hi,

I get a similar error to pedrof’s:

 

java.lang.StackOverflowError

      at java.io.ObjectStreamClass$FieldReflector.getPrimFieldValues(ObjectStreamClass.java:1907)

      at java.io.ObjectStreamClass.getPrimFieldValues(ObjectStreamClass.java:1184)

      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1494)

      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)

      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)

      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)

...

Ad infinitum

 

I’m wondering if anyone else has got this error?

 

All I’m doing is serializing the rule base:

 

ByteArrayOutputStream out = new ByteArrayOutputStream();

ObjectOutputStream oOut = new ObjectOutputStream(out);

      oOut.writeObject(ruleBase);

      oOut.flush();

      oOut.close();

 

Any ideas? Maybe it’s some kind of circular reference problem...

 

Cheers,

Rene