Export or Import fails with a java.lang.ClassNotFoundException

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

You are either trying to perform an export from an older version or import to a newer version but always fails with a java.lang.ClassNotFoundException This most of the time happens with import.

The atlassian-bamboo.log shows the following:

2013-08-27 14:26:42,541 ERROR [qtp1894688899-130] [Export] java.lang.IllegalStateException: Unexpected reflection exception - java.lang.ClassNotFoundException: com.atlassian.bamboo.build.DefaultBuild
java.lang.IllegalStateException: Unexpected reflection exception - java.lang.ClassNotFoundException: com.atlassian.bamboo.build.DefaultBuild
	at org.springframework.util.ReflectionUtils.handleReflectionException(ReflectionUtils.java:136)
	at com.atlassian.bamboo.security.acegi.acls.HibernateObjectIdentityImpl.<init>(HibernateObjectIdentityImpl.java:81)
	at com.atlassian.bamboo.security.acegi.acls.HibernateObjectIdentityUserType.nullSafeGet(HibernateObjectIdentityUserType.java:95)
	at net.sf.hibernate.type.CompositeCustomType.nullSafeGet(CompositeCustomType.java:170)
	at net.sf.hibernate.type.AbstractType.hydrate(AbstractType.java:67)
	at net.sf.hibernate.loader.Loader.hydrate(Loader.java:690)
	at net.sf.hibernate.loader.Loader.loadFromResultSet(Loader.java:631)
	at net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:590)
	at net.sf.hibernate.loader.Loader.getRow(Loader.java:505)
	at net.sf.hibernate.loader.Loader.getRowFromResultSet(Loader.java:218)
	at net.sf.hibernate.loader.Loader.doQuery(Loader.java:285)
	at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138)
	at net.sf.hibernate.loader.Loader.doList(Loader.java:1063)
	at net.sf.hibernate.loader.Loader.list(Loader.java:1048)
	at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854)
	at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1556)
	at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:49)
	at com.atlassian.hibernate.HibernateObjectDao$2.doInHibernate(HibernateObjectDao.java:97)
	at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
	at org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:341)
	at com.atlassian.hibernate.HibernateObjectDao.findAllSorted(HibernateObjectDao.java:90)
	at com.atlassian.hibernate.HibernateObjectDao.findAll(HibernateObjectDao.java:78)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)

原因

It looks like your database contains some leftover data from previous upgrades that needs to be cleaned.

ソリューション

 Shutdown Bamboo and run the query below to fix the issue and then restart your instance before attempting to import/export

delete from ACL_ENTRY where ACL_OBJECT_IDENTITY in (select ID from ACL_OBJECT_IDENTITY where OBJECT_ID_CLASS = 'com.atlassian.bamboo.build.DefaultBuild');
delete from ACL_OBJECT_IDENTITY where OBJECT_ID_CLASS = 'com.atlassian.bamboo.build.DefaultBuild';
最終更新日 2013 年 9 月 5 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.