-
Bug
-
Resolution: Done
-
Blocker
-
3.3.0.Final
-
None
-
None
Our modeshape project used JdbcStringBasedCacheStore as cache loaders. It works well for months, one day it came out the exception when startup:
15:12:59,501 ERROR InvocationContextInterceptor:148 - ISPN000136: Execution error
java.lang.IllegalStateException: Current state = CODING_END, new state = CODING
at java.nio.charset.CharsetDecoder.throwIllegalStateException(CharsetDecoder.java:968)
at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:554)
at org.infinispan.schematic.internal.io.BsonDataInput.readUTF(BsonDataInput.java:277)
at org.infinispan.schematic.internal.io.BsonDataInput.readUTF(BsonDataInput.java:223)
at org.infinispan.schematic.internal.document.BsonReader$Reader.readString(BsonReader.java:236)
at org.infinispan.schematic.internal.document.BsonReader$Reader.readElement(BsonReader.java:213)
at org.infinispan.schematic.internal.document.BsonReader$Reader.readDocument(BsonReader.java:139)
....
That I hacked the org.infinispan.schematic.internal.io.Utf8Util to reset the encoder/decorder before return, it works. I'm not known it's the best or correct fix?