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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 3.3.0.Final
    • Fix Version/s: 3.6.0.Final, 3.3.x-prod-ip6.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      MacOS 10.8.5
      JDK 1.7.21

      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?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                angelo.chen Angelo Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: