<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Running dbscript to upgrade from LF 6.2 to 7.2 with oracle db</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119398062" />
  <subtitle>Running dbscript to upgrade from LF 6.2 to 7.2 with oracle db</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119398062</id>
  <updated>2026-04-05T15:25:51Z</updated>
  <dc:date>2026-04-05T15:25:51Z</dc:date>
  <entry>
    <title>RE: Running dbscript to upgrade from LF 6.2 to 7.2 with oracle db</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119508241" />
    <author>
      <name>Alberto Chaparro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119508241</id>
    <updated>2020-06-29T20:42:25Z</updated>
    <published>2020-06-29T20:42:25Z</published>
    <summary type="html">Hi Shoaib,&lt;br /&gt;It seems that the portal instances map is not populated when the upgrade run. This is map is populated on startup before any upgrade so, is there any exception regarding this during the start up?</summary>
    <dc:creator>Alberto Chaparro</dc:creator>
    <dc:date>2020-06-29T20:42:25Z</dc:date>
  </entry>
  <entry>
    <title>Running dbscript to upgrade from LF 6.2 to 7.2 with oracle db</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119398061" />
    <author>
      <name>Shoaib D</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119398061</id>
    <updated>2020-06-15T11:02:17Z</updated>
    <published>2020-06-15T11:02:17Z</published>
    <summary type="html">While running db upgrade for liferay,&lt;br /&gt;INFO - Failed upgrade process com.liferay.knowledge.base.internal.upgrade.v1_1_0.UpgradeExpandoTable in 1 ms&lt;br /&gt;ERROR - Failed upgrade process for module com.liferay.knowledge.base.service&lt;br /&gt;com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.ArrayIndexOutOfBoundsException: 0&lt;br /&gt;    at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:101)&lt;br /&gt;    at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:137)&lt;br /&gt;    at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor$UpgradeInfosRunnable.run(UpgradeExecutor.java:141)&lt;br /&gt;    at com.liferay.portal.output.stream.container.internal.OutputStreamContainerFactoryTrackerImpl.runWithSwappedLog(OutputStreamContainerFactoryTrackerImpl.java:121)&lt;br /&gt;    at com.liferay.portal.upgrade.internal.executor.SwappedLogExecutor.execute(SwappedLogExecutor.java:47)&lt;br /&gt;    at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor.executeUpgradeInfos(UpgradeExecutor.java:96)&lt;br /&gt;    at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor.execute(UpgradeExecutor.java:84)&lt;br /&gt;    at com.liferay.portal.upgrade.internal.release.osgi.commands.ReleaseManagerOSGiCommands.executeAll(ReleaseManagerOSGiCommands.java:319)&lt;br /&gt;    at com.liferay.portal.upgrade.internal.release.osgi.commands.ReleaseManagerOSGiCommands.executeAll(ReleaseManagerOSGiCommands.java:179)&lt;br /&gt;    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br /&gt;    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;br /&gt;    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br /&gt;    at java.lang.reflect.Method.invoke(Method.java:498)&lt;br /&gt;    at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:139)&lt;br /&gt;    at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:91)&lt;br /&gt;    at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599)&lt;br /&gt;    at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526)&lt;br /&gt;    at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415)&lt;br /&gt;    at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416)&lt;br /&gt;    at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229)&lt;br /&gt;    at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59)&lt;br /&gt;    at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;br /&gt;    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;br /&gt;    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;br /&gt;    at java.lang.Thread.run(Thread.java:748)&lt;br /&gt;Caused by: java.lang.ArrayIndexOutOfBoundsException: 0&lt;br /&gt;    at com.liferay.portal.util.PortalInstances.getDefaultCompanyId(PortalInstances.java:207)&lt;br /&gt;    at com.liferay.portal.util.PortalImpl.getDefaultCompanyId(PortalImpl.java:2117)&lt;br /&gt;    at com.liferay.portal.kernel.util.PortalUtil.getDefaultCompanyId(PortalUtil.java:864)&lt;br /&gt;    at com.liferay.knowledge.base.internal.upgrade.v1_1_0.UpgradeExpandoTable.doUpgrade(UpgradeExpandoTable.java:33)&lt;br /&gt;    at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:96)&lt;br /&gt;    ... 24 more&lt;br /&gt;&lt;br /&gt;Please share inputs on how i can resolve this.</summary>
    <dc:creator>Shoaib D</dc:creator>
    <dc:date>2020-06-15T11:02:17Z</dc:date>
  </entry>
</feed>
