Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-86391

java.lang.RuntimeException after launching the upgrade process when dxp-2-7110 is installed

    Details

    • Story Points:
      1

      Description

      Steps to reproduce:
      1)Patch your liferay-dxp-7.1.10-ga1 portal with dxp-2-7110
      2)Start the upgrade process (I have used the following command: java -jar com.liferay.portal.tools.db.upgrade.client.jar -j -Xmx10240m, but tested without the -j parameters as well, error is the same) exception is thrown as follows:

      c:\liferay\bundles\SNLT-111\liferay-dxp-7.1.10-ga1\tools\portal-tools-db-upgrade-client>java -jar com.liferay.portal.tools.db.upgrade.client.jar -j -Xmx10240m
      Loading jar:file:/C:/liferay/bundles/SNLT-111/liferay-dxp-7.1.10-ga1/tomcat-9.0.6/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
      Loading jar:file:/C:/liferay/bundles/SNLT-111/liferay-dxp-7.1.10-ga1/tomcat-9.0.6/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
      Loading jar:file:/C:/liferay/bundles/SNLT-111/liferay-dxp-7.1.10-ga1/tools/portal-tools-db-upgrade-client/com.liferay.portal.tools.db.upgrade.client.jar!/portal-upgrade.properties
      Loading file:/C:/liferay/bundles/SNLT-111/liferay-dxp-7.1.10-ga1/tools/portal-tools-db-upgrade-client/portal-upgrade-ext.properties
      Loading file:/C:/liferay/bundles/SNLT-111/liferay-dxp-7.1.10-ga1/tools/portal-tools-db-upgrade-client/portal-upgrade-database.properties
      java.lang.RuntimeException: java.lang.RuntimeException: Error initializing storage.
              at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:258)
              at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:195)
              at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:102)
              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.RuntimeException: Error initializing storage.
              at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:69)
              at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)
              at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:24)
              at com.liferay.portal.bootstrap.ModuleFrameworkImpl.initFramework(ModuleFrameworkImpl.java:287)
              at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.initFramework(ModuleFrameworkUtilAdapter.java:63)
              at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:213)
              ... 7 more
      Caused by: java.io.UTFDataFormatException: malformed input around byte 52
              at java.io.DataInputStream.readUTF(DataInputStream.java:634)
              at java.io.DataInputStream.readUTF(DataInputStream.java:564)
              at org.eclipse.osgi.container.ModuleDatabase$Persistence.readString(ModuleDatabase.java:1551)
              at org.eclipse.osgi.container.ModuleDatabase$Persistence.readModule(ModuleDatabase.java:1107)
              at org.eclipse.osgi.container.ModuleDatabase$Persistence.load(ModuleDatabase.java:1025)
              at org.eclipse.osgi.container.ModuleDatabase.load(ModuleDatabase.java:879)
              at org.eclipse.osgi.storage.Storage.<init>(Storage.java:147)
              at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:87)
              at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:67)
              ... 12 more
      

      Additional information: I have used the same type of DB which the client has (MySQL 5.7), faced another error, which was solved by downloading and applying the attached jar.
      mysql-connector-java-8.0.12.jar

      Issue reproduced with dxp-1-7110 as well.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                21 weeks, 5 days ago