2 Replies Latest reply on Jun 25, 2015 3:20 PM by elvisisking

    Error Initializing RepositoryIndexManager (java.lang.AssertionError: data were not fully read, check your serializer)

    elvisisking

      I am on a project that is using ModeShape. When I run tests locally on OS X 10.10.3 I am getting the below errors when the JcrRepository, and specifically the RepositoryIndexManager, is started. Also below is the repository configuration file we are using. We are using ModeShape 4.3.0.Final, Infinispan 6.0.2.Final, and MapDB 1.0.6.

       

      Has anyone seen this error or have any ideas?

       

      Many thanks!


      SLF4J implementation located in the classpath. It will be used by ModeShape for logging.

      ModeShape version 4.3.0.Final

      ISPN000128: Infinispan version: Infinispan 'Hoptimus Prime' 7.2.0.Final

      ISPN000104: Falling back to DummyTransactionManager from Infinispan

      Jun 23, 2015 2:36:56 PM org.komodo.utils.KLog$BasicLogger error

      SEVERE: Error starting engine

      Jun 23, 2015 2:36:56 PM org.komodo.utils.KLog$BasicLogger error

      SEVERE: An exception occurred in the local repository.

      java.lang.RuntimeException: java.lang.RuntimeException: java.lang.AssertionError: data were not fully read, check your serializer

        at org.komodo.repository.LocalRepository$1.errorOccurred(LocalRepository.java:446)

        at org.komodo.repository.internal.ModeshapeEngineThread.errorCallback(ModeshapeEngineThread.java:245)

        at org.komodo.repository.internal.ModeshapeEngineThread.startEngine(ModeshapeEngineThread.java:509)

        at org.komodo.repository.internal.ModeshapeEngineThread.run(ModeshapeEngineThread.java:625)

      Caused by: java.lang.RuntimeException: java.lang.AssertionError: data were not fully read, check your serializer

        at org.modeshape.jcr.JcrRepository$RunningState.completeInitialization(JcrRepository.java:1341)

        at org.modeshape.jcr.JcrRepository.doStart(JcrRepository.java:390)

        at org.modeshape.jcr.JcrRepository.getStartupProblems(JcrRepository.java:297)

        at org.komodo.repository.internal.ModeshapeEngineThread.startEngine(ModeshapeEngineThread.java:483)

        ... 1 more

      Caused by: java.lang.AssertionError: data were not fully read, check your serializer

        at org.mapdb.Store.deserialize(Store.java:299)

        at org.mapdb.StoreDirect.get2(StoreDirect.java:475)

        at org.mapdb.StoreWAL.get2(StoreWAL.java:368)

        at org.mapdb.StoreWAL.get(StoreWAL.java:352)

        at org.mapdb.Caches$HashTable.get(Caches.java:245)

        at org.mapdb.BTreeMap.<init>(BTreeMap.java:541)

        at org.mapdb.DB.getTreeSet(DB.java:997)

        at org.mapdb.DB.get(DB.java:1424)

        at org.mapdb.DB.getAll(DB.java:1497)

        at org.modeshape.jcr.index.local.LocalEnumeratedIndex.<init>(LocalEnumeratedIndex.java:83)

        at org.modeshape.jcr.index.local.LocalEnumeratedIndex.create(LocalEnumeratedIndex.java:55)

        at org.modeshape.jcr.index.local.ManagedLocalIndexBuilder$SingleColumnIndexBuilder.build(ManagedLocalIndexBuilder.java:423)

        at org.modeshape.jcr.index.local.LocalIndexProvider.createIndex(LocalIndexProvider.java:211)

        at org.modeshape.jcr.spi.index.provider.IndexProvider.notify(IndexProvider.java:690)

        at org.modeshape.jcr.RepositoryIndexManager.initialize(RepositoryIndexManager.java:188)

        at org.modeshape.jcr.RepositoryQueryManager.initialize(RepositoryQueryManager.java:94)

        at org.modeshape.jcr.JcrRepository$RunningState.completeInitialization(JcrRepository.java:1320)

        ... 4 more


      Here is the repository config file:

       

      {

        "name" : "Komodo Local Repository",

        "jndiName" : "jcr/KomodoLocalRepository",

        "monitoring" : {

             "enabled" : true

        },

        "node-types" :

        [

             "config/xmi.cnd",

             "config/med.cnd",

             "config/mmcore.cnd",

             "config/vdb.cnd",

             "config/TeiidSql.cnd",

             "config/komodo.cnd"

        ],

        "workspaces" : {

        "default" : "komodoLocalWorkspace",

        "allowCreation" : true,

        "initialContent" : {

        "*" : "initialContent.xml"

        }

        },

        "storage" : {

        "cacheConfiguration" : "org/komodo/repository/local-repository-infinispan-config.xml",

        "cacheName" : "Komodo Cache",

        "binaryStorage" : {

        "minimumBinarySizeInBytes" : 4096,

        "minimumStringSize" : 4096,

        "directory": "${user.home}/.komodo/storage/content/binaries",

        "type" : "file"

        }

        },

        "indexProviders" : {

        "local" : {

        "classname" : "org.modeshape.jcr.index.local.LocalIndexProvider",

        "directory" : "${user.home}/.komodo/indexes"

        }

        },

        "indexes" : {

        "nodesByLocalName" : {

        "kind" : "value",

        "provider" : "local",

        "synchronous" : true,

        "nodeType" : "nt:unstructured",

        "columns" : "mode:localName(STRING)",

        "workspaces" : "*"

        },

        "nodesByPath" : {

        "kind" : "value",

        "provider" : "local",

        "synchronous" : true,

        "nodeType" : "nt:unstructured",

        "columns" : "jcr:path(PATH)",

        "workspaces" : "*"

        },

        "nodesByType" : {

        "kind" : "Nodetype",

        "provider" : "local",

        "synchronous" : true,

        "nodeType" : "nt:unstructured",

        "workspaces" : "*",

        "columns" : "mode:localName(STRING)"

        },

        "vdbsByVersion" : {

        "kind" : "value",

        "provider" : "local",

        "synchronous" : true,

        "nodeType" : "vdb:virtualDatabase",

        "workspaces" : "*",

        "columns" : "vdb:version(LONG)"

        },

        "kSchemaByRendition" : {

        "kind" : "value",

        "provider" : "local",

        "synchronous" : true,

        "nodeType" : "tko:schema",

        "workspaces" : "*",

        "columns" : "tko:rendition(STRING)"

        },

        "ddlTableStmtByQuery" : {

        "kind" : "value",

        "provider" : "local",

        "synchronous" : true,

        "nodeType" : "teiidddl:createTable",

        "workspaces" : "*",

        "columns" : "teiidddl:queryExpression(STRING)"

        },

        "ddlViewStmtByQuery" : {

        "kind" : "value",

        "provider" : "local",

        "synchronous" : true,

        "nodeType" : "teiidddl:createView",

        "workspaces" : "*",

        "columns" : "teiidddl:queryExpression(STRING)"

        },

        "ddlProcStmtByQuery" : {

        "kind" : "value",

        "provider" : "local",

        "synchronous" : true,

        "nodeType" : "teiidddl:createProcedure",

        "workspaces" : "*",

        "columns" : "teiidddl:statement(STRING)"

        }

        },

        "sequencing" : {

        "removeDerivedContentWithOriginal" : true,

        "threadPool" : "modeshape-workers",

        "sequencers" : {

        "VDB Dynamic Sequencer" : {

      "classname" : "org.modeshape.sequencer.teiid.VdbDynamicSequencer"

      },

        "DDL Sequencer" : {

        "classname" : "org.komodo.modeshape.lib.sequencer.KDdlSequencer"

        },

        "Teiid SQL Sequencer" : {

        "classname" : "org.komodo.modeshape.teiid.TeiidSqlSequencer"

        }

        }

        }}