It seems that this is some kind of security mechanism in googles' protobuf (the serialization framework Drools is using). <br clear="all">From protobuf's documentation:<div><br></div><div>CodeInputStream.setSizeLimit():</div>
<div><span style="font-family:'Times New Roman';font-size:medium;background-color:rgb(255,255,255)">"Set the maximum message size. In order to prevent malicious messages from exhausting memory or causing integer overflows, </span><code style="background-color:rgb(255,255,255)">CodedInputStream</code><span style="font-family:'Times New Roman';font-size:medium;background-color:rgb(255,255,255)"> limits how large a message may be. The default limit is 64MB. You should set this limit as small as you can without harming your app's functionality. Note that size limits only apply when reading from an </span><code style="background-color:rgb(255,255,255)">InputStream</code><span style="font-family:'Times New Roman';font-size:medium;background-color:rgb(255,255,255)">, not when constructed around a raw byte array (nor with </span><a href="https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/ByteString.html#newCodedInput()" style="font-family:'Times New Roman';font-size:medium;background-color:rgb(255,255,255)"><code>ByteString.newCodedInput()</code></a><span style="font-family:'Times New Roman';font-size:medium;background-color:rgb(255,255,255)">)."</span></div>
<div><font face="Times New Roman" size="3"><br></font></div><div>It appears to me that Drools needs to expose this configuration to end users in some way (not sure if it is already exposed), or use a ridiculous large predefined size. <font face="Times New Roman" size="3"><br>
</font><br>Best Regards,<br><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Mon, Jul 23, 2012 at 3:06 PM, chrisLi <span dir="ltr"><<a href="mailto:shengtao0077@163.com" target="_blank">shengtao0077@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Laune,<br>
<br>
Thank you very much for your quick response.<br>
<br>
I did not understand your response very clearly. Could you explain it in<br>
more detail.<br>
<br>
Thank you!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/com-google-protobuf-InvalidProtocolBufferException-thrown-when-deserializing-tp4018822p4018830.html" target="_blank">http://drools.46999.n3.nabble.com/com-google-protobuf-InvalidProtocolBufferException-thrown-when-deserializing-tp4018822p4018830.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br></div>