[7888] Error with duplicator-server-side

Hello. Upon upgrading from 7601 to 7888 TeamCity would not work.

The problem seems to be related to the duplicator-server-side.jar library,
and as a temporary fix, I've moved it out from the lib directory (no idea
what problems this may cause, but TeamCity started correctly now).

I'm using SQLServer 2008 as data store, and the localhost.%date%.log file
said this:

SEVERE: Exception sending context initialized event to listener instance
of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'DuplicatesMessageProcessorFactory' defined in URL
:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class
:
Constructor threw exception; nested exception is
org.springframework.jdbc.UncategorizedSQLException: ConnectionCallback;
uncategorized SQLException for SQL []; SQL state ; error code
; The object 'PK__duplicat__2C6A6E907C6F7215' is dependent on column
'FRAGMENT_ID'.; nested exception is java.sql.SQLException: The object
'PK__duplicat__2C6A6E907C6F7215' is dependent on column 'FRAGMENT_ID'.
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:243)
... many more
Caused by: org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class
:
Constructor threw exception; nested exception is
org.springframework.jdbc.UncategorizedSQLException: ConnectionCallback;
uncategorized SQLException for SQL []; SQL state ; error code
; The object 'PK__duplicat__2C6A6E907C6F7215' is dependent on column
'FRAGMENT_ID'.; nested exception is java.sql.SQLException: The object
'PK__duplicat__2C6A6E907C6F7215' is dependent on column 'FRAGMENT_ID'.
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:99)
... many more
Caused by: org.springframework.jdbc.UncategorizedSQLException:
ConnectionCallback; uncategorized SQLException for SQL []; SQL state
; error code ; The object 'PK__duplicat__2C6A6E907C6F7215' is
dependent on column 'FRAGMENT_ID'.; nested exception is
java.sql.SQLException: The object 'PK__duplicat__2C6A6E907C6F7215' is
dependent on column 'FRAGMENT_ID'.
at
org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:124)
... many more
Caused by: java.sql.SQLException: The object
'PK__duplicat__2C6A6E907C6F7215' is dependent on column 'FRAGMENT_ID'.
at
net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
... many more
Oct 29, 2008 7:52:54 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext

Any ideas? Was the database incorrectly upgraded?

Regards,
Pablo

--


Dance a tango at your child's wedding.
-- Mom's Hint #274

Pablo Montilla
www.odyssey.com.uy

1 comment
Comment actions Permalink

I suppose this is caused by recent duplicate schema changes. Duplicate
and inspection plugins migration is not completely covered by our
database-specific integration tests.

Please try removing this column and corresponding constraint (PK) manually.

Pablo Montilla wrote:

Hello. Upon upgrading from 7601 to 7888 TeamCity would not work.

The problem seems to be related to the duplicator-server-side.jar
library, and as a temporary fix, I've moved it out from the lib
directory (no idea what problems this may cause, but TeamCity started
correctly now).

I'm using SQLServer 2008 as data store, and the localhost.%date%.log
file said this:

SEVERE: Exception sending context initialized event to listener instance
of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'DuplicatesMessageProcessorFactory' defined in URL
:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class
:
Constructor threw exception; nested exception is
org.springframework.jdbc.UncategorizedSQLException: ConnectionCallback;
uncategorized SQLException for SQL []; SQL state ; error code
; The object 'PK__duplicat__2C6A6E907C6F7215' is dependent on
column 'FRAGMENT_ID'.; nested exception is java.sql.SQLException: The
object 'PK__duplicat__2C6A6E907C6F7215' is dependent on column
'FRAGMENT_ID'.
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:243)

... many more
Caused by: org.springframework.beans.BeanInstantiationException: Could
not instantiate bean class
:
Constructor threw exception; nested exception is
org.springframework.jdbc.UncategorizedSQLException: ConnectionCallback;
uncategorized SQLException for SQL []; SQL state ; error code
; The object 'PK__duplicat__2C6A6E907C6F7215' is dependent on
column 'FRAGMENT_ID'.; nested exception is java.sql.SQLException: The
object 'PK__duplicat__2C6A6E907C6F7215' is dependent on column
'FRAGMENT_ID'.
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:99)
... many more
Caused by: org.springframework.jdbc.UncategorizedSQLException:
ConnectionCallback; uncategorized SQLException for SQL []; SQL state
; error code ; The object 'PK__duplicat__2C6A6E907C6F7215'
is dependent on column 'FRAGMENT_ID'.; nested exception is
java.sql.SQLException: The object 'PK__duplicat__2C6A6E907C6F7215' is
dependent on column 'FRAGMENT_ID'.
at
org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:124)

... many more
Caused by: java.sql.SQLException: The object
'PK__duplicat__2C6A6E907C6F7215' is dependent on column 'FRAGMENT_ID'.
at
net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)

... many more
Oct 29, 2008 7:52:54 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext

Any ideas? Was the database incorrectly upgraded?

Regards,
Pablo

0

Please sign in to leave a comment.