org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cenqua.crucible.hibernate.DBControlFactoryImpl]: Constructor threw exception; nested exception is com.cenqua.crucible.hibernate.CruD BException: Problem upgrading with script /data/tsbuild/crucible/fecru-2.0.0/sql/HSQL/upgrade/upgrade_33.sql: SQL script error on line 47: "insert into cru_frx_comment (select cru_comment, cru_frx_id from cru_revision_comment where cru_line_range is null);" (Violation of unique constraint SYS_PK_643: duplicate value(s) for column(s) CRU_COMMENT_ID), please contact http://www.atlassian.com/support/

Atlassian JIRA | E Dueck | 7 years ago
  1. 0

    Originally, I tried to upgrade directly from our currently installed version of Crucible, 1.6.2.1, to the latest and greatest, 2.2.1. Because that failed, while executing sql upgrade scripts, I tried to upgrade in smaller steps. So I then upgraded (the original, backed up) version 1.6.2.1 to 1.6.3, which was fine (and did not involve any db upgrade script, according to fisheye.out). I continued and upgraded from 1.6.3 directly to 1.6.6, which was fine, too. Again, no sql upgrade scripts run in that step, either. In the next step, from 1.6.6 to 2.0.0, crucible exited during the sql upgrade process. The fisheye.out starts like this: {noformat} INFO - FishEye/Crucible 2.0.0 (build-410), Built on 2009-06-29 INFO - FishEye: Commercial License registered to TradingScreen Inc. Japan. () INFO - Periodic polling for software updates is disabled. INFO - Starting plugin system... INFO - Starting database... INFO - Upgrading DB from version 29 using /data/tsbuild/crucible/fecru-2.0.0/sql/HSQL/upgrade/upgrade_29.sql INFO - Upgrading DB from version 30 using /data/tsbuild/crucible/fecru-2.0.0/sql/HSQL/upgrade/upgrade_30.sql INFO - Upgrading DB from version 31 using /data/tsbuild/crucible/fecru-2.0.0/sql/HSQL/upgrade/upgrade_31.sql INFO - Upgrading DB from version 32 using /data/tsbuild/crucible/fecru-2.0.0/sql/HSQL/upgrade/upgrade_32.sql INFO - Upgrading DB from version 33 using /data/tsbuild/crucible/fecru-2.0.0/sql/HSQL/upgrade/upgrade_33.sql ERROR - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbControlFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cenqua.crucible.hibernate.DBControlFactoryImpl]: Constructor threw exception; nested exception is com.cenqua.crucible.hibernate.CruD BException: Problem upgrading with script /data/tsbuild/crucible/fecru-2.0.0/sql/HSQL/upgrade/upgrade_33.sql: SQL script error on line 47: "insert into cru_frx_comment (select cru_comment, cru_frx_id from cru_revision_comment where cru_line_range is null);" (Violation of unique constraint SYS_PK_643: duplicate value(s) for column(s) CRU_COMMENT_ID), please contact http://www.atlassian.com/support/ at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254) {noformat} The full output is attached to this JIRA issue.

    Atlassian JIRA | 7 years ago | E Dueck
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cenqua.crucible.hibernate.DBControlFactoryImpl]: Constructor threw exception; nested exception is com.cenqua.crucible.hibernate.CruD BException: Problem upgrading with script /data/tsbuild/crucible/fecru-2.0.0/sql/HSQL/upgrade/upgrade_33.sql: SQL script error on line 47: "insert into cru_frx_comment (select cru_comment, cru_frx_id from cru_revision_comment where cru_line_range is null);" (Violation of unique constraint SYS_PK_643: duplicate value(s) for column(s) CRU_COMMENT_ID), please contact http://www.atlassian.com/support/
  2. 0

    Why is the exception displayd on the screen instead of the error page?

    Stack Overflow | 5 years ago | dov.amir
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.ewave.meuhedet.view.melaketViewHandlers.MelaketViewHandler]: Constructor threw exception; nested exception is java.lang.NullPointerException
  3. 0

    Failed to test lily with the command launch-test-lily

    Stack Overflow | 3 years ago | Jonny Young
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.lilyproject.server.modules.general.HadoopConfigurationFactoryImpl]: Constructor threw exception; nested exception is org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for after 10 tries.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ActiveMQ: Access secured broker from webconsole

    Stack Overflow | 3 years ago | rethab
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.activemq.web.QueueBrowseQuery]: Constructor threw exception; nested exception is javax.jms.JMSSecurityException: Unable to authenticate transport without SSL certificate.
  6. 0

    OpenNMS / Mailing Lists

    sourceforge.net | 1 year ago
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'init-capsdConfig-factory' defined in class path resource [META-INF/opennms/applicationContext-commonConfigs.xml]: Invocation of init method failed; nested exception is org.exolab.castor.xml.MarshalException: unable to find FieldDescriptor for 'service' in ClassDescriptor of capsd-configuration{File: [not available]; line: 194; column: 74}

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.beans.BeanInstantiationException

      Could not instantiate bean class [com.cenqua.crucible.hibernate.DBControlFactoryImpl]: Constructor threw exception; nested exception is com.cenqua.crucible.hibernate.CruD BException: Problem upgrading with script /data/tsbuild/crucible/fecru-2.0.0/sql/HSQL/upgrade/upgrade_33.sql: SQL script error on line 47: "insert into cru_frx_comment (select cru_comment, cru_frx_id from cru_revision_comment where cru_line_range is null);" (Violation of unique constraint SYS_PK_643: duplicate value(s) for column(s) CRU_COMMENT_ID), please contact http://www.atlassian.com/support/

      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor()
    2. Spring Beans
      ConstructorResolver.autowireConstructor
      1. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
      1 frame