Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2074

Startup Modeshape got exception: java.lang.IllegalStateException: Current state = CODING_END, new state = CODING

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.6.0.Final, 3.3.x-prod-ip6.0
    • 3.3.0.Final
    • None
    • None

    Description

      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?

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            angelo.chen Angelo Chen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: