Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Migrating db from liferay-portal-6.1.2-ce-ga3 to liferay-ce-portal-7.0
I have followed two step way(6.1->6.2->7.0).
1. Successfully migrated database from 6.1 to 6.2.
2. Now I am trying to migrate from liferay-portal-6.2 ce g2 to liferay-portal-7.0 ce ga5, getting the following exception.
The migration steps are executed form the following link
https://dev.liferay.com/discover/deployment/-/knowledge_base/7-0/running-the-upgrade-process#configuring-the-core-upgrade
Please help me.
07:26:42,038 INFO [main][UpgradeProcess:99] Completed upgrade
process com.liferay.portal.upgrade.UpgradeProcess_7_0_0 in
248216ms
com.liferay.portal.kernel.upgrade.UpgradeException:
com.liferay.portal.kernel.upgrade.UpgradeException:
java.lang.NullPointerException
at
com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:93)
at
com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:175)
at
com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:143)
at
com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:125)
at
com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:164)
at
com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:81)
at
com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:153)
at
com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
com.liferay.portal.tools.db.upgrade.client.DBUpgraderLauncher.main(DBUpgraderLauncher.java:55)
Caused by: com.liferay.portal.kernel.upgrade.UpgradeException:
java.lang.NullPointerException
at
com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:93)
at
com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:117)
at
com.liferay.portal.upgrade.UpgradeProcess_7_0_0.doUpgrade(UpgradeProcess_7_0_0.java:72)
at
com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:90)
... 12 more
Caused by: java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:78)
at
java.io.InputStreamReader.<init>(InputStreamReader.java:72)
at
com.liferay.portal.kernel.upgrade.UpgradeProcess.getIndexesSQL(UpgradeProcess.java:463)
at
com.liferay.portal.kernel.upgrade.UpgradeProcess.alter(UpgradeProcess.java:409)
at
com.liferay.portal.upgrade.v7_0_0.UpgradeAddress.doUpgrade(UpgradeAddress.java:27)
at
com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:90)
... 15 more
Attachments:
Hi Venkat,
A liferay 7.0 ce ga7 is now released since the 22 may 2018 : https://community.liferay.com/blogs/-/blogs/liferay-portal-7-0-ce-ga7-release/.
It could include some improvements especially on the upgrade process
jar, could you give a it a try ?
Another possibility is to try directly the latest version 7.1
ce : https://www.liferay.com/fr/downloads-community
Best regards,
David.
Hi Venkat,
If you take a look at the code, it is failing here:
And that's fragment of code is destined for modules. However the upgrade which is running belongs to the portal (UpgradeAddress) so there is a problem with this check
Please, verify that you have configured the upgrade tool properly before running the upgrade.
I hope it helps.