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: Upgrading from Liferay 7.0 to 7.1 - Database Error
Hi,
I am attempting to upgrade our liferay from version 7.0 to 7.1
I am receiving the following error:
Exception in thread "main" java.lang.reflect.InvocationTargetException
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: java.lang.NoSuchFieldError: MARIADB
at com.liferay.portal.dao.db.MariaDBDBFactory.getDBType(MariaDBDBFactory.java:33)
at com.liferay.portal.dao.db.DBManagerImpl.<init>(DBManagerImpl.java:68)
at com.liferay.portal.util.InitUtil.init(InitUtil.java:175)
at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:213)
at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:202)
at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:97)
The strange part is that I am specifying MySQL in the database-properties.
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.password=pass
jdbc.default.url=jdbc:mysql://localhost/liferay_test?characterEncoding=UTF-8&dontTrackOpenResources=true&holdResultsOpenOverStatementClose=true&useFastDateParsing=false&useUnicode=true
jdbc.default.username=user
server-properties:
dir=C:\Users\Mitch\Documents\process-portal\com-test\bundles
extra.lib.dirs=/bin
global.lib.dir=/lib
portal.dir=/webapps/ROOT
server.detector.server.id=tomcat
exe properties:
liferay.home=C:/Users/Mitch/Documents/process-portal/com-test/bundles
module.framework.base.dir=C:/Users/Mitch/Documents/process-portal/com-test/bundles/osgi
Any help is appreciated.
I am attempting to upgrade our liferay from version 7.0 to 7.1
I am receiving the following error:
Exception in thread "main" java.lang.reflect.InvocationTargetException
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: java.lang.NoSuchFieldError: MARIADB
at com.liferay.portal.dao.db.MariaDBDBFactory.getDBType(MariaDBDBFactory.java:33)
at com.liferay.portal.dao.db.DBManagerImpl.<init>(DBManagerImpl.java:68)
at com.liferay.portal.util.InitUtil.init(InitUtil.java:175)
at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:213)
at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:202)
at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:97)
The strange part is that I am specifying MySQL in the database-properties.
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.password=pass
jdbc.default.url=jdbc:mysql://localhost/liferay_test?characterEncoding=UTF-8&dontTrackOpenResources=true&holdResultsOpenOverStatementClose=true&useFastDateParsing=false&useUnicode=true
jdbc.default.username=user
server-properties:
dir=C:\Users\Mitch\Documents\process-portal\com-test\bundles
extra.lib.dirs=/bin
global.lib.dir=/lib
portal.dir=/webapps/ROOT
server.detector.server.id=tomcat
exe properties:
liferay.home=C:/Users/Mitch/Documents/process-portal/com-test/bundles
module.framework.base.dir=C:/Users/Mitch/Documents/process-portal/com-test/bundles/osgi
Any help is appreciated.
Hi Mitch,
Could you share the whole upgrade log file?
Thanks.
Could you share the whole upgrade log file?
Thanks.
Any updates?
Guessing no updates :/
Did you find a solution ? I'm facing the exact same issue and i use postgresql.