Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-2524

a warning message shoud be shown when a metadata is named 'ID' (or any other reserved words)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 23
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Documents

      Description

      otherwise we get errors like these:

      2015-04-01 10:57:17,388 ERROR [Dev Bundles Loader] [org.apache.geronimo.connector.outbound.MCFConnectionInterceptor] Error occurred creating ManagedConnection for handle: nullManagedConnectionInfo: org.apache.geronimo.connector.outbound.ManagedConnectionInfo@18b52140. mc: null]
      org.nuxeo.ecm.core.storage.StorageException: Error initializing schema 'CWF' for composite type 'CMSWorkFlow'
      	at org.nuxeo.ecm.core.storage.sql.Model.initDocTypeOrMixinModel(Model.java:1255)
      	at org.nuxeo.ecm.core.storage.sql.Model.initModels(Model.java:1174)
      	at org.nuxeo.ecm.core.storage.sql.Model.<init>(Model.java:486)
      	at org.nuxeo.ecm.core.storage.sql.RepositoryImpl.initRepository(RepositoryImpl.java:308)
      	at org.nuxeo.ecm.core.storage.sql.RepositoryImpl.getConnection(RepositoryImpl.java:292)
      	at org.nuxeo.ecm.core.storage.sql.ra.ManagedConnectionFactoryImpl.initialize(ManagedConnectionFactoryImpl.java:284)
      	at org.nuxeo.ecm.core.storage.sql.ra.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:179)
      	at org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection(MCFConnectionInterceptor.java:49)
      	at org.apache.geronimo.connector.outbound.XAResourceInsertionInterceptor.getConnection(XAResourceInsertionInterceptor.java:41)
      	at org.apache.geronimo.connector.outbound.SinglePoolMatchAllConnectionInterceptor.internalGetConnection(SinglePoolMatchAllConnectionInterceptor.java:88)
      	at org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java:80)
      	at org.apache.geronimo.connector.outbound.ThreadLocalCachingConnectionInterceptor.getConnection(ThreadLocalCachingConnectionInterceptor.java:70)
      	at org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.java:49)
      	at org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:101)
      	at org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(ConnectionHandleInterceptor.java:43)
      	at org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
      	at org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.getConnection(ConnectionTrackingInterceptor.java:66)
      	at org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:77)
      	at org.nuxeo.runtime.jtajca.NuxeoContainer$ConnectionManagerWrapper.allocateConnection(NuxeoContainer.java:906)
      	at org.nuxeo.ecm.core.storage.sql.ra.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:100)
      	at org.nuxeo.ecm.core.storage.sql.ra.ConnectionFactoryImpl.getSession(ConnectionFactoryImpl.java:166)
      	at org.nuxeo.ecm.core.repository.RepositoryService.getSession(RepositoryService.java:233)
      	at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:119)
      	at org.nuxeo.ecm.core.api.local.LocalSession.connect(LocalSession.java:85)
      	at org.nuxeo.ecm.core.api.CoreInstance.acquireCoreSession(CoreInstance.java:185)
      	at org.nuxeo.ecm.core.api.CoreInstance.openCoreSession(CoreInstance.java:179)
      	at org.nuxeo.ecm.core.api.CoreInstance.openCoreSession(CoreInstance.java:82)
      	at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:131)
      	at org.nuxeo.ecm.platform.routing.core.listener.RouteModelsReloader.handleEvent(RouteModelsReloader.java:67)
      	at org.nuxeo.runtime.services.event.EventService.sendEvent(EventService.java:140)
      	at org.nuxeo.runtime.services.event.EventService.sendEvent(EventService.java:107)
      	at org.nuxeo.runtime.reload.ReloadComponent.reload(ReloadComponent.java:84)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.nuxeo.runtime.tomcat.dev.ReloadServiceInvoker.reload(ReloadServiceInvoker.java:147)
      	at org.nuxeo.runtime.tomcat.dev.ReloadServiceInvoker.hotDeployBundles(ReloadServiceInvoker.java:109)
      	at org.nuxeo.runtime.tomcat.dev.DevFrameworkBootstrap.reloadDevBundles(DevFrameworkBootstrap.java:190)
      	at org.nuxeo.runtime.tomcat.dev.DevFrameworkBootstrap.loadDevBundles(DevFrameworkBootstrap.java:156)
      	at org.nuxeo.runtime.tomcat.dev.DevFrameworkBootstrap$1.run(DevFrameworkBootstrap.java:96)
      	at java.util.TimerThread.mainLoop(Timer.java:555)
      	at java.util.TimerThread.run(Timer.java:505)
      Caused by: org.nuxeo.ecm.core.storage.StorageException: A property cannot be named 'ID' because this is a reserved name, in type: CWF
      	at org.nuxeo.ecm.core.storage.sql.Model.initComplexTypeModel(Model.java:1625)
      	at org.nuxeo.ecm.core.storage.sql.Model.initSchemaModel(Model.java:1469)
      	at org.nuxeo.ecm.core.storage.sql.Model.initDocTypeOrMixinModel(Model.java:1253)
      	... 42 more
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: