-
Bug
-
Resolution: Done
-
Major
-
4.0.0.Final
-
None
I've tried to configure this index:
<index name="marketplaceSoftware" provider-name="local-index-provider" kind="ENUMERATED" node-type="imp:marketplace" columns="imp:software(STRING)"/>
But then ModeShape throws an error at launch time:
ERROR [org.jboss.as.server] (Controller Boot Thread) JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:112) [wildfly-controller-8.1.0.Final.jar:8.1.0.Final] at org.jboss.as.server.ServerService.boot(ServerService.java:331) [wildfly-server-8.1.0.Final.jar:8.1.0.Final] at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:256) [wildfly-controller-8.1.0.Final.jar:8.1.0.Final] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67] Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[448,21] Message: "JBAS014839: Invalid value enumerated for kind; legal values are [TEXT, VALUE, ENUMERATED_VALUE, UNIQUE_VALUE, NODE_TYPE]" at org.jboss.as.controller.SimpleAttributeDefinition.parse(SimpleAttributeDefinition.java:346) [wildfly-controller-8.1.0.Final.jar:8.1.0.Final] at org.jboss.as.controller.SimpleAttributeDefinition.parseAndSetParameter(SimpleAttributeDefinition.java:371) [wildfly-controller-8.1.0.Final.jar:8.1.0.Final] at org.modeshape.jboss.subsystem.ModeShapeSubsystemXMLReader_2_0.parseIndex(ModeShapeSubsystemXMLReader_2_0.java:955) at org.modeshape.jboss.subsystem.ModeShapeSubsystemXMLReader_2_0.parseIndexes(ModeShapeSubsystemXMLReader_2_0.java:922) at org.modeshape.jboss.subsystem.ModeShapeSubsystemXMLReader_2_0.parseRepository(ModeShapeSubsystemXMLReader_2_0.java:258) at org.modeshape.jboss.subsystem.ModeShapeSubsystemXMLReader_2_0.readElement(ModeShapeSubsystemXMLReader_2_0.java:63) at org.modeshape.jboss.subsystem.ModeShapeSubsystemXMLReader_2_0.readElement(ModeShapeSubsystemXMLReader_2_0.java:34) at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final] at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final] at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:1131) [wildfly-server-8.1.0.Final.jar:8.1.0.Final] at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:458) [wildfly-server-8.1.0.Final.jar:8.1.0.Final] at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:145) [wildfly-server-8.1.0.Final.jar:8.1.0.Final] at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:107) [wildfly-server-8.1.0.Final.jar:8.1.0.Final] at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final] at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final] at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:104) [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]
So I followed the information message and changed to:
kind="ENUMERATED_VALUE"
Bad luck, I got another error:
JBAS014777: Services which failed to start: service jboss.modeshape.imarchespublics.indexes.marketplaceSoftware: org.jboss.msc.service.StartException in service jboss.modeshape.imarchespublics.indexes.marketplaceSoftware: The "imarchespublics" repository configuration has 1 error(s) and cannot be deployed: ERROR: Error at indexes.marketplaceSoftware.kind : The 'kind' field on 'indexes.marketplaceSoftware' has a value of 'ENUMERATED_VALUE' that is not part of the enumeration: [value, text, unique, nodetype, enumerated]
So what's the correct attribute value to use?
By the way, the same problem might also apply for the UNIQUE(_VALUE) I suppose.