1 Reply Latest reply on Jun 30, 2014 1:33 AM by hchiorean

    Mode Shape 3.x error when  session = repository.login("default");

    caliskan

      ı have just tried mode shape example codes located in ModeShape/modeshape-examples · GitHub and ı have downloaded modeshape-examples-3.x  but ı got an exception   and ı couldn't passi it, do you have any solutions. Erroe message is

       

      org.infinispan.jmx.CacheJmxRegistration start INFO: ISPN000031: MBeans were successfully registered to the platform MBean server. Jun 25, 2014 11:26:54 AM org.infinispan.jmx.CacheJmxRegistration start INFO: ISPN000031: MBeans were successfully registered to the platform MBean server. javax.jcr.RepositoryException: Error while starting 'Persisted-Repository' repository: null at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:650) at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:619) at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:155) at org.modeshape.example.filesystem.ModeShapeExample.main(ModeShapeExample.java:71) Caused by: java.lang.NullPointerException at org.modeshape.jcr.RepositoryNodeTypeManager$NodeTypes.<init>(RepositoryNodeTypeManager.java:932) at org.modeshape.jcr.RepositoryNodeTypeManager$NodeTypes.with(RepositoryNodeTypeManager.java:985) at org.modeshape.jcr.RepositoryNodeTypeManager.registerNodeTypes(RepositoryNodeTypeManager.java:519) at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:1129) at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:971) at org.modeshape.jcr.JcrRepository.doStart(JcrRepository.java:404) at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:648) ... 3 more Shutting down engine ... Success!

       

      I use Netbeans 8, Java 8

       

      Infinispan definition,

       

      <?xml version="1.0" encoding="UTF-8"?>

      <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                  xsi:schemaLocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"

                  xmlns="urn:infinispan:config:5.1">

          <global>

          </global>

          <default>

          </default>

       

          <namedCache name="persisted-repository">

              <loaders passivation="false" shared="false" preload="false">

                  <loader class="org.infinispan.loaders.bdbje.BdbjeCacheStore"

                          fetchPersistentState="false" purgeOnStartup="false">

                      <properties>

                          <property name="location" value="target/content" />

                      </properties>

                  </loader>

              </loaders>

       

       

              <transaction

                  transactionManagerLookupClass="org.infinispan.transaction.lookup.DummyTransactionManagerLookup"

                  transactionMode="TRANSACTIONAL" lockingMode="OPTIMISTIC" />

                 

          </namedCache>

       

      </infinispan>

       

      Repository config definiton,

       

      {

          "name" : "Persisted-Repository",

          "workspaces" : {

              "predefined" : ["otherWorkspace"],

              "default" : "default",

              "allowCreation" : true

          },

          "security" : {

              "anonymous" : {

                  "roles" : ["readonly","readwrite","admin"],

                  "useOnFailedLogin" : false

              }

          },

          "storage" : {

              "cacheConfiguration" : "infinispan-configuration.xml",

              "cacheName" : "persisted-repository",

              "binaryStorage" : {

                  "type" : "file",

                  "directory": "target/binaries",

                  "minimumBinarySizeInBytes" : 999

              }

          }

       

       

      }