AnsweredAssumed Answered

JCR Export Exception with locale?

Question asked by stebans on Jul 23, 2009
Hi,

I came across an Exception while exporting a space containing translated locale documents :
javax.jcr.RepositoryException: 06230002 Cannot map Alfresco data type {http://www.alfresco.org/model/dictionary/1.0}locale to JCR property type.: 06230002 Cannot map Alfresco data type {http://www.alfresco.org/model/dictionary/1.0}locale to JCR property type.
   at org.alfresco.jcr.util.JCRProxyFactory$SessionContextInvocationHandler.invoke(JCRProxyFactory.java:175)
   at $Proxy109.exportSystemView(Unknown Source)
  […]
Caused by: org.alfresco.error.AlfrescoRuntimeException: 06230002 Cannot map Alfresco data type {http://www.alfresco.org/model/dictionary/1.0}locale to JCR property type.
   at org.alfresco.jcr.dictionary.DataTypeMap.convertDataTypeToPropertyType(DataTypeMap.java:95)
   at org.alfresco.jcr.dictionary.PropertyDefinitionImpl.getRequiredType(PropertyDefinitionImpl.java:74)
   at org.alfresco.jcr.exporter.JCRSystemXMLExporter.startProperty(JCRSystemXMLExporter.java:298)
   at org.alfresco.repo.exporter.ChainedExporter.startProperty(ChainedExporter.java:230)
   at org.alfresco.repo.exporter.ExporterComponent$DefaultCrawler.walkNode(ExporterComponent.java:452)
   at org.alfresco.repo.exporter.ExporterComponent$DefaultCrawler.walkNode(ExporterComponent.java:539)
   at org.alfresco.repo.exporter.ExporterComponent$DefaultCrawler.export(ExporterComponent.java:285)
   at org.alfresco.repo.exporter.ExporterComponent.exportView(ExporterComponent.java:210)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
   at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:275)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy76.exportView(Unknown Source)
   at org.alfresco.jcr.session.SessionImpl.exportSystemView(SessionImpl.java:591)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.alfresco.jcr.util.JCRProxyFactory$SessionContextInvocationHandler.invoke(JCRProxyFactory.java:138)
   … 2 more
org.alfresco.error.AlfrescoRuntimeException: 06230002 Cannot map Alfresco data type {http://www.alfresco.org/model/dictionary/1.0}locale to JCR property type.
   at org.alfresco.jcr.dictionary.DataTypeMap.convertDataTypeToPropertyType(DataTypeMap.java:95)
   at org.alfresco.jcr.dictionary.PropertyDefinitionImpl.getRequiredType(PropertyDefinitionImpl.java:74)
   at org.alfresco.jcr.exporter.JCRSystemXMLExporter.startProperty(JCRSystemXMLExporter.java:298)
   at org.alfresco.repo.exporter.ChainedExporter.startProperty(ChainedExporter.java:230)
   at org.alfresco.repo.exporter.ExporterComponent$DefaultCrawler.walkNode(ExporterComponent.java:452)
   at org.alfresco.repo.exporter.ExporterComponent$DefaultCrawler.walkNode(ExporterComponent.java:539)
   at org.alfresco.repo.exporter.ExporterComponent$DefaultCrawler.export(ExporterComponent.java:285)
   at org.alfresco.repo.exporter.ExporterComponent.exportView(ExporterComponent.java:210)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
   at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:275)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy76.exportView(Unknown Source)
   at org.alfresco.jcr.session.SessionImpl.exportSystemView(SessionImpl.java:591)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.alfresco.jcr.util.JCRProxyFactory$SessionContextInvocationHandler.invoke(JCRProxyFactory.java:138)
   at $Proxy109.exportSystemView(Unknown Source)
   
This Exception might be related to http://forums.alfresco.com/en/viewtopic.php?f=28&t=5035 which also dealt with locale?
Should I post on Jira?

Thanks.
Stéphane

Outcomes