Modeshape 3 Beta 2: java.lang.NumberFormatException: For input string: "classname"
kbachl Aug 15, 2012 3:33 PMHi,
I tried to give ModeShape3 Beta 2 a go but I somehow hit a wall I cant see. I change my createRepo for a modshape 3 base:
public Repository createRepository(String modeshapePath) {
try {
log.info("JCR...");
engine = new ModeShapeEngine();
engine.start();
RepositoryConfiguration config = RepositoryConfiguration
.read(JcrServiceModeshape3.class.getResource("config/repository-ms3.json"));
Problems problems = config.validate();
if (problems.hasErrors()) {
System.err.println("Problems starting the engine.");
System.err.println(problems);
System.exit(-1);
}
return engine.deploy(config);
} catch (Exception e) {
throw new RuntimeException("Could not create repository! ", e);
}
}
where my json is:
{
"name":"wwRepo",
"jndiName":"",
"security":{
"jaas":{
"policyName":""
},
"anonymous":{
"roles":["readonly", "readwrite", "admin"],
"username":"<anonymous>",
"useOnFailedLogin":true
}
},
"sequencing":{
"removeDerivedContentWithOriginal":true,
"sequencers":{
"description":"CND Sequencer Same Location",
"type":"CNDSequencer",
"pathExpressions":[ "default://(*.cnd)/jcr:content[@jcr:data]" ]
}
}
}
however, when I boot it up I get:
[#|2012-08-15T21:25:00.506+0200|SEVERE|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=18;_ThreadName=Thread-6;|WebModule[]PWC1270: Exception starting filter brix.app-shop
java.lang.InstantiationException
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:124)
....
Caused by: java.lang.NumberFormatException: For input string: "classname"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.parseInt(Integer.java:499)
at org.infinispan.schematic.internal.document.BasicArray.indexFrom(BasicArray.java:636)
at org.infinispan.schematic.internal.document.BasicArray.get(BasicArray.java:93)
at org.infinispan.schematic.internal.document.BasicArray.getString(BasicArray.java:400)
at org.infinispan.schematic.internal.document.BasicArray.getString(BasicArray.java:394)
at org.modeshape.jcr.RepositoryConfiguration.readComponents(RepositoryConfiguration.java:1602)
at org.modeshape.jcr.RepositoryConfiguration$Sequencing.validateSequencers(RepositoryConfiguration.java:1532)
at org.modeshape.jcr.RepositoryConfiguration.validate(RepositoryConfiguration.java:1728)
at de.xxxx.jcr.JcrServiceModeshape3.createRepository(JcrServiceModeshape3.java:45)
... 46 more
What is going on here? - Any Idea how I can fix this?