-
1. Re: MS 3 on JBAS5
rhauch Jul 12, 2013 8:35 AM (in response to nl)1 of 1 people found this helpfulTo tell ModeShape not to register the repository into JNDI, simply set the "jndiName" field in your repository configuration JSON file to a blank string value.
-
2. Re: MS 3 on JBAS5
nl Jul 12, 2013 9:31 AM (in response to rhauch)Thanks Randall,
and yet another question:
I switched my file-based binary store to a database (oracle) store. But upon adding a node and calling save() on the JcrSession I get
{code}
org.modeshape.jcr.value.binary.BinaryStoreException: java.sql.SQLException: Ungültiger Vorgang bei Nur-Weiterleiten-Ergebnismenge: first
at org.modeshape.jcr.value.binary.Database.asString(Database.java:622)
at org.modeshape.jcr.value.binary.DatabaseBinaryStore.getExtractedText(DatabaseBinaryStore.java:235)
at org.modeshape.jcr.value.binary.AbstractBinaryStore.getText(AbstractBinaryStore.java:122)
at org.modeshape.jcr.query.lucene.basic.BasicLuceneSchema.addDynamicField(BasicLuceneSchema.java:278)
at org.modeshape.jcr.query.lucene.basic.BasicLuceneSchema.nodeInfo(BasicLuceneSchema.java:212)
at org.modeshape.jcr.query.lucene.basic.BasicLuceneSchema.addToIndex(BasicLuceneSchema.java:406)
at org.modeshape.jcr.JcrRepository$RepositoryMonitorFactory$2.recordAdd(JcrRepository.java:1875)
at org.modeshape.jcr.cache.document.WritableSessionCache.persistChanges(WritableSessionCache.java:1088)
at org.modeshape.jcr.cache.document.WritableSessionCache.save(WritableSessionCache.java:544)
at org.modeshape.jcr.JcrSession.save(JcrSession.java:1022)
{code}
The exception message is : "Invalid operation for forward-only result set: first"
Thanks, Niels
-
3. Re: MS 3 on JBAS5
rhauch Jul 12, 2013 10:31 AM (in response to nl)Niels, please log a defect for that case. Oracle is not an open source database, so it's difficult for us to test against it. It looks like that error is because Oracle doesn't like us calling "resultSet.first()" on a non-scrollable query (see this discussion). We'll have to re-evaluate whether we even need to call 'first', or whether we should be wrapping that call in a try-catch block and using the exception to signal that we should ignore the operation. (Or, we could make the method non-static, and use the database type to check for Oracle and skip the call entirely in that case.)
-
-