<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: stacktrace when initializing directory with autoincrementIdField set to true with Nuxeo 5.6 in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/stacktrace-when-initializing-directory-with-autoincrementidfield/m-p/326910#M13911</link>
    <description>&lt;P&gt;Autoincremented values are designed to be generated by the database and our CSV loading code doesn't expect someone to fill them by hand. I understand your need but it's unsupported at the moment. Also you would need some logic to tell the database what id to use for the next insertion after all the CSV has been loaded and we don't have that either.&lt;/P&gt;
&lt;P&gt;You may open a JIRA for enhancement. In the meantime you won't be able to use CSV files to load such tables, you'll need to have a DBA do it.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Aug 2012 12:04:28 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2012-08-02T12:04:28Z</dc:date>
    <item>
      <title>stacktrace when initializing directory with autoincrementIdField set to true with Nuxeo 5.6</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/stacktrace-when-initializing-directory-with-autoincrementidfield/m-p/326909#M13910</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I configured a directory with property autoincrementIdField set to true :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;directory name="category"&amp;gt;
      &amp;lt;schema&amp;gt;schemacategory&amp;lt;/schema&amp;gt;
      &amp;lt;dataSource&amp;gt;java:/nxsqldirectory&amp;lt;/dataSource&amp;gt;
      &amp;lt;cacheTimeout&amp;gt;3600&amp;lt;/cacheTimeout&amp;gt;
      &amp;lt;cacheMaxSize&amp;gt;1000&amp;lt;/cacheMaxSize&amp;gt;
      &amp;lt;table&amp;gt;category&amp;lt;/table&amp;gt;
      &amp;lt;idField&amp;gt;id&amp;lt;/idField&amp;gt;
      &amp;lt;autoincrementIdField&amp;gt;true&amp;lt;/autoincrementIdField&amp;gt;
      &amp;lt;dataFile&amp;gt;directories/category.csv&amp;lt;/dataFile&amp;gt;
      &amp;lt;createTablePolicy&amp;gt;always&amp;lt;/createTablePolicy&amp;gt;
    &amp;lt;/directory&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;CSV file category.csv looks like this :&lt;/P&gt;
&lt;PRE&gt;
id,label, obsolete, parent
1,"Category 1","0",0
2,"Category 2","0",0
3,"Category 3","0",0
&lt;/PRE&gt;
&lt;P&gt;when I start Nuxeo i get the following stacktrace :&lt;/P&gt;
&lt;PRE&gt;
2012-08-02 09:50:38,416 ERROR [org.nuxeo.ecm.directory.DirectoryServiceImpl] unrecognized column type: AUTOINC, values: [0: 1, 1: LM France, 2: 0, 3: 0]
org.nuxeo.ecm.directory.DirectoryException: unrecognized column type: AUTOINC, values: [0: 1, 1: Category 1, 2: 0, 3: 0]
        at org.nuxeo.ecm.directory.sql.SQLHelper.loadData(SQLHelper.java:398)
        at org.nuxeo.ecm.directory.sql.SQLHelper.setupTable(SQLHelper.java:127)
        at org.nuxeo.ecm.directory.sql.SQLDirectory.&lt;INIT&gt;(SQLDirectory.java:156)
        at org.nuxeo.ecm.directory.sql.SQLDirectoryProxy.getDirectory(SQLDirectoryProxy.java:49)
        at org.nuxeo.ecm.directory.sql.SQLDirectoryProxy.getName(SQLDirectoryProxy.java:61)
        at org.nuxeo.ecm.directory.DirectoryServiceImpl.applicationStarted(DirectoryServiceImpl.java:64)
        at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.notifyApplicationStarted(RegistrationInfoImpl.java:332)
        at org.nuxeo.runtime.osgi.OSGiRuntimeService.notifyComponentsOnStarted(OSGiRuntimeService.java:469)
        at org.nuxeo.runtime.osgi.OSGiRuntimeService.fireApplicationStarted(OSGiRuntimeService.java:508)
        at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:518)
        at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:239)
        at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:220)
        at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.nuxeo.osgi.application.FrameworkBootstrap.start(FrameworkBootstrap.java:135)
        at org.nuxeo.runtime.tomcat.NuxeoLauncher.handleEvent(NuxeoLauncher.java:117)
        at org.nuxeo.runtime.tomcat.NuxeoLauncher.lifecycleEvent(NuxeoLauncher.java:88)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4700)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
&lt;/INIT&gt;&lt;/PRE&gt;
&lt;P&gt;Should I change something in my CSV file ?
I am using PostgreSQL 8.4.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2012 10:58:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/stacktrace-when-initializing-directory-with-autoincrementidfield/m-p/326909#M13910</guid>
      <dc:creator>Vincent_Dutat</dc:creator>
      <dc:date>2012-08-02T10:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: stacktrace when initializing directory with autoincrementIdField set to true with Nuxeo 5.6</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/stacktrace-when-initializing-directory-with-autoincrementidfield/m-p/326910#M13911</link>
      <description>&lt;P&gt;Autoincremented values are designed to be generated by the database and our CSV loading code doesn't expect someone to fill them by hand. I understand your need but it's unsupported at the moment. Also you would need some logic to tell the database what id to use for the next insertion after all the CSV has been loaded and we don't have that either.&lt;/P&gt;
&lt;P&gt;You may open a JIRA for enhancement. In the meantime you won't be able to use CSV files to load such tables, you'll need to have a DBA do it.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2012 12:04:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/stacktrace-when-initializing-directory-with-autoincrementidfield/m-p/326910#M13911</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-08-02T12:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: stacktrace when initializing directory with autoincrementIdField set to true with Nuxeo 5.6</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/stacktrace-when-initializing-directory-with-autoincrementidfield/m-p/326911#M13912</link>
      <description>&lt;P&gt;OK thanks. FIY i am currently upgrading our apps from 5.4.2 to 5.6 and it seems it was not a problem in 5.4.2.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2012 12:33:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/stacktrace-when-initializing-directory-with-autoincrementidfield/m-p/326911#M13912</guid>
      <dc:creator>Vincent_Dutat</dc:creator>
      <dc:date>2012-08-02T12:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: stacktrace when initializing directory with autoincrementIdField set to true with Nuxeo 5.6</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/stacktrace-when-initializing-directory-with-autoincrementidfield/m-p/326912#M13913</link>
      <description>&lt;P&gt;I will disable the auto-increment, that will do the trick for a while.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2012 12:35:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/stacktrace-when-initializing-directory-with-autoincrementidfield/m-p/326912#M13913</guid>
      <dc:creator>Vincent_Dutat</dc:creator>
      <dc:date>2012-08-02T12:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: stacktrace when initializing directory with autoincrementIdField set to true with Nuxeo 5.6</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/stacktrace-when-initializing-directory-with-autoincrementidfield/m-p/326913#M13914</link>
      <description>&lt;P&gt;Autoincrement was mostly broken before Nuxeo 5.5. Please read the [NXP-7124](https&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2012 12:41:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/stacktrace-when-initializing-directory-with-autoincrementidfield/m-p/326913#M13914</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-08-02T12:41:32Z</dc:date>
    </item>
  </channel>
</rss>

