Hi Nils,

I think you're running into a bug with Jackrabbit. In "system-view" XML 
exports, the data-representation is not sufficient - multiple-properties are 
not identified as such. This means: if you set up a node with a multiple-valued 
property, but only add one value to the property, and then export as XML, there 
is nothing to distinguish this property as multiple-valued. It looks the same 
in XML as a single-valued property of the same name.
When the same XML is imported into another Repo, the property is created as 
single-valued. Subsequent writes to this property then fail, because the 
property is supposed to be multi-valued, but isn't.

Ugly bug, but not the fault of magnolia. We worked around this by creating a 
groovy-skript which iterates over our content, searching for properties that 
should be multi-valued but are set up as single-valued, and then deleting and 
recreating these properties as multi-valued.

Regards from Vienna,

Richard



-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Nils Breunese
Gesendet: Freitag, 14. September 2012 10:35
An: Magnolia User-List
Betreff: [magnolia-user] Bootstrap data files and Magnolia 4.4.9-jr24 
(Jackrabbit 2)

Hello,

I'm working on an upgrade from Magnolia 4.4.6 to 4.4.9-jr24 and after updating 
our Maven project's pom.xml I get the error below when trying to start up. Any 
idea what's wrong here? Did the format of the bootstrap data XML files change 
with the upgrade to Jackrabbit 2? If so, can we convert our old (sample) 
bootstrap data XML files somehow for use with Jackrabbit 2?

Nils.

----
2012-09-13 17:28:09,150 ERROR info.magnolia.module.InstallContextImpl           
: > Error while installing or updating site-tegenlicht module. Task 'Bootstrap 
samples' failed. (ValueFormatException: Single-valued property can not be set 
to an array of values:property 
/tegenlicht-sample/headers/tegenlicht-header-degroenetransitie1/resolutions/thumbnail/jcr:lastModified)
java.lang.RuntimeException: Error importing media.tegenlicht-sample: 
Single-valued property can not be set to an array of values:property 
/tegenlicht-sample/headers/tegenlicht-header-degroenetransitie1/resolutions/thumbnail/jcr:lastModified
        at 
info.magnolia.importexport.DataTransporter.importXmlStream(DataTransporter.java:345)
        at 
info.magnolia.importexport.BootstrapUtil.bootstrap(BootstrapUtil.java:125)
        at 
info.magnolia.module.delta.BootstrapResourcesTask.execute(BootstrapResourcesTask.java:66)
        at 
info.magnolia.module.delta.ConditionalDelegateTask.execute(ConditionalDelegateTask.java:63)
        at 
info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:454)
        at 
info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:436)
        at 
info.magnolia.module.ModuleManagerImpl$1.doExec(ModuleManagerImpl.java:258)
        at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:434)
        at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:432)
        at 
info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:396)
        at 
info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:252)
        at 
info.magnolia.module.ui.ModuleManagerNullUI.onStartup(ModuleManagerNullUI.java:68)
        at 
info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:107)
        at 
info.magnolia.cms.servlets.MgnlServletContextListener$2.doExec(MgnlServletContextListener.java:207)
        at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:434)
        at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:432)
        at 
info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:396)
        at 
info.magnolia.cms.servlets.MgnlServletContextListener.startServer(MgnlServletContextListener.java:205)
        at 
info.magnolia.cms.servlets.MgnlServletContextListener.contextInitialized(MgnlServletContextListener.java:201)
        at 
org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:634)
        at 
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:228)
        at 
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1132)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:577)
        at 
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:491)
        at 
org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:160)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
        at 
org.eclipse.jetty.server.handler.HandlerCollection$1.run(HandlerCollection.java:200)
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
        at java.lang.Thread.run(Thread.java:722)
Caused by: org.xml.sax.SAXException: Single-valued property can not be set to 
an array of values:property 
/tegenlicht-sample/headers/tegenlicht-header-degroenetransitie1/resolutions/thumbnail/jcr:lastModified
javax.jcr.ValueFormatException: Single-valued property can not be set to an 
array of values:property 
/tegenlicht-sample/headers/tegenlicht-header-degroenetransitie1/resolutions/thumbnail/jcr:lastModified
        at 
org.apache.jackrabbit.core.xml.SysViewImportHandler.processNode(SysViewImportHandler.java:104)
        at 
org.apache.jackrabbit.core.xml.SysViewImportHandler.endElement(SysViewImportHandler.java:248)
        at 
org.apache.jackrabbit.core.xml.ImportHandler.endElement(ImportHandler.java:195)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
        at 
info.magnolia.importexport.filters.ImportXmlRootFilter.endElement(ImportXmlRootFilter.java:77)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
        at 
info.magnolia.importexport.filters.RemoveMixversionableFilter.endElement(RemoveMixversionableFilter.java:127)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
        at 
info.magnolia.importexport.filters.VersionFilter.endElement(VersionFilter.java:84)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
        at 
info.magnolia.importexport.filters.MagnoliaV2Filter.endElement(MagnoliaV2Filter.java:88)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
        at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
        at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
        at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
        at 
info.magnolia.importexport.DataTransporter.importXmlStream(DataTransporter.java:316)
        ... 28 more
Caused by: javax.jcr.ValueFormatException: Single-valued property can not be 
set to an array of values:property 
/tegenlicht-sample/headers/tegenlicht-header-degroenetransitie1/resolutions/thumbnail/jcr:lastModified
        at 
org.apache.jackrabbit.core.PropertyImpl.checkSetValue(PropertyImpl.java:274)
        at 
org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:780)
        at org.apache.jackrabbit.core.NodeImpl$7.perform(NodeImpl.java:2086)
        at org.apache.jackrabbit.core.NodeImpl$7.perform(NodeImpl.java:2076)
        at 
org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
        at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
        at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2076)
        at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1323)
        at 
org.apache.jackrabbit.core.xml.SessionImporter.createProperty(SessionImporter.java:185)
        at 
org.apache.jackrabbit.core.xml.SessionImporter.startNode(SessionImporter.java:443)
        at 
org.apache.jackrabbit.core.xml.SysViewImportHandler.processNode(SysViewImportHandler.java:93)
        ... 51 more
2012-09-13 17:28:09,155 ERROR info.magnolia.cms.beans.config.ConfigLoader       
: An unspecified error occurred during initialization: Error importing 
media.tegenlicht-sample: Single-valued property can not be set to an array of 
values:property 
/tegenlicht-sample/headers/tegenlicht-header-degroenetransitie1/resolutions/thumbnail/jcr:lastModified
----
------------------------------------------------------------------------
 VPRO   www.vpro.nl
------------------------------------------------------------------------


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, 
E-mail to: <[email protected]>
----------------------------------------------------------------





----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to