<?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 Error in Hibernate with two new tables in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-in-hibernate-with-two-new-tables/m-p/238339#M191469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We need to create two new tables in the Alfresco DB in MySQL for an extension we are building. In then we need to save the Id of a Company and the Company Name (that is the&amp;nbsp; first table) and in another one the Id of the company and special invoice patterns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have created the two tables in the alfresco db and now we are trying to access them using hibernate, however when I start alfresco this is what I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;09:26:51,453 INFO [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]&lt;BR /&gt;09:26:55,687 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed&lt;BR /&gt;org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftsIndexerTrigger' defined in class path resource [alfresco/scheduled-jobs-context.xml]: Cannot create inner bean 'ftsIndexerJobDetail' of type [org.springframework.scheduling.quartz.JobDetailBean] while setting bean property 'jobDetail'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftsIndexerJobDetail' defined in class path resource [alfresco/scheduled-jobs-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.scheduling.quartz.JobDetailBean]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;Ljava/util/Set;&lt;BR /&gt;Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftsIndexerJobDetail' defined in class path resource [alfresco/scheduled-jobs-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.scheduling.quartz.JobDetailBean]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;Ljava/util/Set;&lt;BR /&gt;Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.scheduling.quartz.JobDetailBean]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;Ljava/util/Set;&lt;BR /&gt;Caused by: java.lang.NoSuchMethodError: org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;Ljava/util/Set;&lt;BR /&gt;at org.quartz.JobDetail.&amp;lt;init&amp;gt;(JobDetail.java:85)&lt;BR /&gt;at org.springframework.scheduling.quartz.JobDetailBean.&amp;lt;init&amp;gt;(JobDetailBean.java:45)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)&lt;BR /&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)&lt;BR /&gt;at java.lang.reflect.Constructor.newInstance(Constructor.java:513)&lt;BR /&gt;at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)&lt;BR /&gt;at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:756)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:721)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:384)&lt;BR /&gt;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:215)&lt;BR /&gt;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)&lt;BR /&gt;at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)&lt;BR /&gt;at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)&lt;BR /&gt;at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)&lt;BR /&gt;at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)&lt;BR /&gt;at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)&lt;BR /&gt;at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)&lt;BR /&gt;at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)&lt;BR /&gt;at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)&lt;BR /&gt;at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)&lt;BR /&gt;at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)&lt;BR /&gt;at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)&lt;BR /&gt;at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)&lt;BR /&gt;at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)&lt;BR /&gt;at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)&lt;BR /&gt;at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)&lt;BR /&gt;at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)&lt;BR /&gt;at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)&lt;BR /&gt;at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)&lt;BR /&gt;at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)&lt;BR /&gt;at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)&lt;BR /&gt;at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)&lt;BR /&gt;at org.apache.catalina.core.StandardService.start(StandardService.java:516)&lt;BR /&gt;at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)&lt;BR /&gt;at org.apache.catalina.startup.Catalina.start(Catalina.java:578)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt;at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)&lt;BR /&gt;at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont see exactly what the error is, any ideas or suggestions you might find??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here I pass you also the XML mapping files I have configured to get access to these tables :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NombreEmpresa.hbm.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "&lt;A href="http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" rel="nofollow noopener noreferrer"&gt;http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;hibernate-mapping&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;class name="org.alfresco.model.CifPatronesVO" table="patrones_cif"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;id name="CIF" column="CIF" type="string"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;generator class="assigned" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/id&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="patrones" column="patrones" type="string" not-null="true"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;lt;/hibernate-mapping&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and Patrones.hbm.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "&lt;A href="http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" rel="nofollow noopener noreferrer"&gt;http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;lt;hibernate-mapping&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;class name="org.alfresco.model.CifEmpresasVO" table="nombre_empresas"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;id name="CIF" column="CIF" type="string"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;generator class="assigned" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/id&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="nombre" column="nombre" type="string" not-null="true"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;lt;/hibernate-mapping&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea or suggestion will be much appreciated!!&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot in advance guys!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2009 15:41:58 GMT</pubDate>
    <dc:creator>jlabuelo</dc:creator>
    <dc:date>2009-09-30T15:41:58Z</dc:date>
    <item>
      <title>Error in Hibernate with two new tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-hibernate-with-two-new-tables/m-p/238339#M191469</link>
      <description>Hi thereWe need to create two new tables in the Alfresco DB in MySQL for an extension we are building. In then we need to save the Id of a Company and the Company Name (that is the&amp;nbsp; first table) and in another one the Id of the company and special invoice patterns.We have created the two tables in t</description>
      <pubDate>Wed, 30 Sep 2009 15:41:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-hibernate-with-two-new-tables/m-p/238339#M191469</guid>
      <dc:creator>jlabuelo</dc:creator>
      <dc:date>2009-09-30T15:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Hibernate with two new tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-hibernate-with-two-new-tables/m-p/238340#M191470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are trying to do something similar and are interested knowing how to access alfresco database directly to read and write in customized tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 15:44:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-hibernate-with-two-new-tables/m-p/238340#M191470</guid>
      <dc:creator>mrey</dc:creator>
      <dc:date>2009-09-30T15:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Hibernate with two new tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-hibernate-with-two-new-tables/m-p/238341#M191471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That particular error does not look like anything to do with your database.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 16:00:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-hibernate-with-two-new-tables/m-p/238341#M191471</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-09-30T16:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Hibernate with two new tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-hibernate-with-two-new-tables/m-p/238342#M191472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey thanks for the spot!!… when you mean "that particular error"… is it because you know what the error is related to&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; ?&amp;nbsp; if so would you mind pointing me where should I drive my review to??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 16:15:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-hibernate-with-two-new-tables/m-p/238342#M191472</guid>
      <dc:creator>jlabuelo</dc:creator>
      <dc:date>2009-09-30T16:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Hibernate with two new tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-hibernate-with-two-new-tables/m-p/238343#M191473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry to bother again, but I am quite stuck with this issue. If you mean it is not related to the way I am trying to access the DB in this configuration I created… any ideas of what it could be??… any directions from your side will be much appreciated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again :wink:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 15:07:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-hibernate-with-two-new-tables/m-p/238343#M191473</guid>
      <dc:creator>jlabuelo</dc:creator>
      <dc:date>2009-10-01T15:07:02Z</dc:date>
    </item>
  </channel>
</rss>

