RE: Upgrading from Liferay 7.0 to 7.1 - Database Error

mitch hancock, modified 7 Years ago. New Member Posts: 11 Join Date: 2/26/19 Recent Posts
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.
thumbnail
Alberto Chaparro, modified 7 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
Hi Mitch,

Could you share the whole upgrade log file?

​​​​​​​Thanks.
mitch hancock, modified 7 Years ago. New Member Posts: 11 Join Date: 2/26/19 Recent Posts
Here is the upgrade.log

https://pastebin.com/rEExajnh

​​​​​​​thanks.
mitch hancock, modified 7 Years ago. New Member Posts: 11 Join Date: 2/26/19 Recent Posts
Any updates?
mitch hancock, modified 7 Years ago. New Member Posts: 11 Join Date: 2/26/19 Recent Posts
Guessing no updates :/
Teddy Kossoko, modified 5 Years ago. Junior Member Posts: 42 Join Date: 3/5/18 Recent Posts
Did you find a solution ? I'm facing the exact same issue and i use postgresql.