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

ClassCastException on Session.save()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.2.0.Final
    • 3.1.3.Final
    • None
    • None

    Description

      This seems to only happen in a clustered environment.

      Caused by: javax.jcr.RepositoryException: java.lang.ClassCastException: org.infinispan.schematic.internal.document.ArrayEditor cannot be cast to org.infinispan.schematic.internal.document.BasicArray
      [Server:server-one] 	at org.modeshape.jcr.JcrSession.save(JcrSession.java:1003) [modeshape-jcr-3.2-SNAPSHOT.jar:3.2-SNAPSHOT]
      [Server:server-one] 	... 130 more
      [Server:server-one] Caused by: java.lang.ClassCastException: org.infinispan.schematic.internal.document.ArrayEditor cannot be cast to org.infinispan.schematic.internal.document.BasicArray
      [Server:server-one] 	at org.infinispan.schematic.internal.document.DocumentEditor.editable(DocumentEditor.java:588) [modeshape-schematic-3.2-SNAPSHOT.jar:3.2-SNAPSHOT]
      [Server:server-one] 	at org.infinispan.schematic.internal.document.DocumentEditor.getArray(DocumentEditor.java:210) [modeshape-schematic-3.2-SNAPSHOT.jar:3.2-SNAPSHOT]
      [Server:server-one] 	at org.modeshape.jcr.cache.document.DocumentTranslator.insertChildren(DocumentTranslator.java:849) [modeshape-jcr-3.2-SNAPSHOT.jar:3.2-SNAPSHOT]
      [Server:server-one] 	at org.modeshape.jcr.cache.document.DocumentTranslator.changeChildren(DocumentTranslator.java:768) [modeshape-jcr-3.2-SNAPSHOT.jar:3.2-SNAPSHOT]
      [Server:server-one] 	at org.modeshape.jcr.cache.document.WritableSessionCache.persistChanges(WritableSessionCache.java:985) [modeshape-jcr-3.2-SNAPSHOT.jar:3.2-SNAPSHOT]
      [Server:server-one] 	at org.modeshape.jcr.cache.document.WritableSessionCache.save(WritableSessionCache.java:543) [modeshape-jcr-3.2-SNAPSHOT.jar:3.2-SNAPSHOT]
      [Server:server-one] 	at org.modeshape.jcr.JcrSession.save(JcrSession.java:986) [modeshape-jcr-3.2-SNAPSHOT.jar:3.2-SNAPSHOT]
      [Server:server-one] 	... 131 more
      [Server:server-one] 
      

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            clementp_jira Clement Pang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: