Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Sandy Johnson
UndeclaredThrowableException Upgrading 6.0.6 to 6.1.1
15 luglio 2013 16.28
Risposta

Sandy Johnson

Punteggio: New Member

Messaggi: 2

Data di Iscrizione: 15 luglio 2013

Messaggi recenti

I am new to Liferay and my first assignment is to test and document how to upgrade our existing portal from 6.0.6 to 6.1.1. However, Liferay is throwing the following exception during the upgrade. As the log shows, we are using SQL Server 2008 R2. Information about the steps I performed is listed below. Any help you can provide would be greatly appreciated.

18:13:22,936 INFO [pool-2-thread-1][DialectDetector:71] Determine dialect for Microsoft SQL Server 10
18:13:23,014 INFO [pool-2-thread-1][DialectDetector:136] Found dialect com.liferay.portal.dao.orm.hibernate.SQLServer2008Dialect
Starting Liferay Portal Community Edition 6.1.1 CE GA2 (Paton / Build 6101 / July 31, 2012)
18:14:39,532 INFO [pool-2-thread-1][BaseDB:455] Database does not support case sensitive queries
18:14:40,421 INFO [pool-2-thread-1][UpgradeProcess:207] Upgrading com.liferay.portal.upgrade.UpgradeProcess_6_1_0
18:14:40,421 INFO [pool-2-thread-1][UpgradeProcess:207] Upgrading com.liferay.portal.upgrade.v6_1_0.UpgradeSchema
18:14:41,825 WARN [pool-2-thread-1][BaseDB:428] The index 'IX_5204C37B' is dependent on column 'active_'.: alter table User_ drop column active_;

18:14:42,122 INFO [pool-2-thread-1][UpgradeProcess:207] Upgrading com.liferay.portal.upgrade.v6_1_0.UpgradeUserName
18:14:43,650 INFO [pool-2-thread-1][UpgradeProcess:207] Upgrading com.liferay.portal.upgrade.v6_1_0.UpgradeAdminPortlets
18:14:43,728 ERROR [pool-2-thread-1][MainServlet:217] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.reflect.UndeclaredThrowableException
com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.reflect.UndeclaredThrowableException
at com.liferay.portal.events.StartupAction.run(StartupAction.java:58)
at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1306)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:214)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)

This same exception was reported in LPS-28393 a year ago for upgrading from 6.0.11 to 6.1.x. However, it was resolved very quickly so I’m assuming the fix must be in the 6.1.1-ce-ga2 version that I downloaded recently. (http://issues.liferay.com/browse/LPS-28393)

I believe that I’ve following the instructions at these 2 web sites.
http://www.liferay.com/community/wiki/-/wiki/Main/Upgrade+Instructions+from+6.0+to+6.1
http://www.liferay.com/es/documentation/liferay-portal/6.1/user-guide/-/ai/upgrading-lifer-5

The steps I performed are:
1. Uninstalled the existing Tomcat service.
2. Installed 32-bit Java7.
3. Updated the JAVA_Home, JRE_HOME and PATH environment variables.
4. Downloaded and unzipped liferay-portal-tomcat-6.1.1-ce-ga2-20120731132656558.
5. Removed the data folder from the new Liferay and replaced it with the existing version.
6. Copied the existing portal-ext.properties to the new Liferay. (The liferay.home property was not set so no changes were made.)
7. Deleted all Tomcat webapps folders except ROOT.
8. Updated the CATALINA_HOME environment variable.
9. Installed Liferay Tomcat as a Windows Service.
10. Configured the connection information in the new server.xml to match our requirements.
11. Copied the SQL Server JDBC Driver from the existing Tomcat lib\ext folder to the new one.
12. Started the portal service.
Sandy Johnson
RE: UndeclaredThrowableException Upgrading 6.0.6 to 6.1.1
19 luglio 2013 18.13
Risposta

Sandy Johnson

Punteggio: New Member

Messaggi: 2

Data di Iscrizione: 15 luglio 2013

Messaggi recenti

This was resolved by the suggestion at the end of this related thread:
https://www.liferay.com/community/forums/-/message_boards/message/20857380