Bug in org.modeshape.jcr.index.lucene.MultiColumnIndex
jessie_jie_xie Dec 25, 2015 1:23 AMHi Guys,
Unexpected Exception thrown in org.modeshape.jcr.index.lucene.MultiColumnIndex.add( final String nodeKey, final String propertyName, final Object[] values ) in 4.5.0
Caused by: java.lang.IllegalArgumentException: 5 parameters supplied, but 4 parameters required: "Updating the property '{0}' of document '{1}' in the Lucene index '{2}' with the values '{3}'" => "Updating the property '[侧面像]' of document 'cds:tag' in the Lucene index '312386807cdb478a14f630-277d-45d4-9c0c-9521661315a2' with the values 'documentByTag"
at org.modeshape.common.util.StringUtil.createString(StringUtil.java:187)
at org.modeshape.common.logging.slf4j.SLF4JLoggerImpl.debug(SLF4JLoggerImpl.java:102)
at org.modeshape.jcr.index.lucene.MultiColumnIndex.add(MultiColumnIndex.java:78)
at org.modeshape.jcr.index.lucene.LuceneIndex.add(LuceneIndex.java:82)
at org.modeshape.jcr.spi.index.provider.IndexChangeAdapters$PropertyChangeAdapter.addValues(IndexChangeAdapters.java:694)
at org.modeshape.jcr.spi.index.provider.IndexChangeAdapters$AbstractPropertyChangeAdapter.modifyProperties(IndexChangeAdapters.java:648)
at org.modeshape.jcr.spi.index.provider.IndexChangeAdapters$MultiColumnChangeAdapter.modifyProperties(IndexChangeAdapters.java:301)
at org.modeshape.jcr.cache.change.ChangeSetAdapter.firePropertyChanges(ChangeSetAdapter.java:228)
at org.modeshape.jcr.cache.change.ChangeSetAdapter.notify(ChangeSetAdapter.java:154)
at org.modeshape.jcr.spi.index.provider.IndexProvider$AtomicIndex.notify(IndexProvider.java:1452)
at org.modeshape.jcr.bus.RepositoryChangeBus.notify(RepositoryChangeBus.java:190)
at org.modeshape.jcr.bus.ClusteredChangeBus.consume(ClusteredChangeBus.java:71)
at org.modeshape.jcr.bus.ClusteredChangeBus.notify(ClusteredChangeBus.java:108)
at org.modeshape.jcr.cache.document.WorkspaceCache.changed(WorkspaceCache.java:333)
at org.modeshape.jcr.txn.SynchronizedTransactions.updateCache(SynchronizedTransactions.java:223)
at org.modeshape.jcr.cache.document.WritableSessionCache.save(WritableSessionCache.java:738)
It is caused by
if (documentExists(nodeKey)) {
// we're updating an existing document
logger.debug("Updating the property '{0}' of document '{1}' in the Lucene index '{2}' with the values '{3}'", values,
propertyName, nodeKey, name, values);
I guess the first "values" should be removed.
Bests,
Jessie