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

FrameworkEvent ERROR occurs during upgrade on Weblogic

    Description

    Steps to Reproduce:

    1. Import the attached database dump.
    2. Build Weblogic bundle.
    3. Upgrade the imported database by executing upgrade client tool.

    Expected Result:
    Upgrade completed without error.

    Actual Result:
    Below error occurred during upgrade:

    2021-03-31 05:12:08.471 ERROR [Framework Event Dispatcher: Equinox Container: a0ae41d1-4d42-45eb-92b8-6f41e2fadbde][Framework:93] FrameworkEvent ERROR 
    java.lang.NoSuchMethodError: org.apache.log4j.helpers.OptionConverter.convertLevel(Ljava/lang/String;Lorg/apache/logging/log4j/Level;)Lorg/apache/logging/log4j/Level;
    	at org.apache.log4j.xml.XmlConfiguration.parseLevel(XmlConfiguration.java:647) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.lambda$parseChildrenOfLoggerElement$4(XmlConfiguration.java:564) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.forEachElement(XmlConfiguration.java:761) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.parseChildrenOfLoggerElement(XmlConfiguration.java:549) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.parseCategory(XmlConfiguration.java:531) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.lambda$parse$6(XmlConfiguration.java:721) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.forEachElement(XmlConfiguration.java:761) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.parse(XmlConfiguration.java:718) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.doConfigure(XmlConfiguration.java:167) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.doConfigure(XmlConfiguration.java:142) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.config.Log4j1Configuration.initialize(Log4j1Configuration.java:59) ~[log4j-1.2-api.jar:2.14.1]
    	at com.liferay.petra.log4j.internal.CentralizedConfiguration.addConfiguration(CentralizedConfiguration.java:52) ~[com.liferay.petra.log4j.jar:?]
    	at com.liferay.petra.log4j.internal.Log4jConfigUtil.configureLog4J(Log4jConfigUtil.java:137) ~[com.liferay.petra.log4j.jar:?]
    	at com.liferay.petra.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:87) ~[com.liferay.petra.log4j.jar:?]
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator._configureLog4j(Log4jExtenderBundleActivator.java:72) ~[?:?]
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator.access$000(Log4jExtenderBundleActivator.java:40) ~[?:?]
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator$1.addingBundle(Log4jExtenderBundleActivator.java:49) ~[?:?]
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator$1.addingBundle(Log4jExtenderBundleActivator.java:45) ~[?:?]
    	at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:475) ~[org.eclipse.osgi.jar:?]
    	at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1) ~[org.eclipse.osgi.jar:?]
    	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) ~[org.eclipse.osgi.jar:?]
    	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) ~[org.eclipse.osgi.jar:?]
    	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:230) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:137) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:129) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:191) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:746) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:538) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:484) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer.refresh(ModuleContainer.java:1028) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1409) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [org.eclipse.osgi.jar:?]
    2021-03-31 05:12:19.473 ERROR [Framework Event Dispatcher: Equinox Container: a0ae41d1-4d42-45eb-92b8-6f41e2fadbde][Framework:93] FrameworkEvent ERROR 
    java.lang.NoSuchMethodError: org.apache.log4j.helpers.OptionConverter.convertLevel(Ljava/lang/String;Lorg/apache/logging/log4j/Level;)Lorg/apache/logging/log4j/Level;
    	at org.apache.log4j.xml.XmlConfiguration.parseLevel(XmlConfiguration.java:647) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.lambda$parseChildrenOfLoggerElement$4(XmlConfiguration.java:564) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.forEachElement(XmlConfiguration.java:761) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.parseChildrenOfLoggerElement(XmlConfiguration.java:549) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.parseCategory(XmlConfiguration.java:531) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.lambda$parse$6(XmlConfiguration.java:721) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.forEachElement(XmlConfiguration.java:761) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.parse(XmlConfiguration.java:718) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.doConfigure(XmlConfiguration.java:167) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.doConfigure(XmlConfiguration.java:142) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.config.Log4j1Configuration.initialize(Log4j1Configuration.java:59) ~[log4j-1.2-api.jar:2.14.1]
    	at com.liferay.petra.log4j.internal.CentralizedConfiguration.addConfiguration(CentralizedConfiguration.java:52) ~[com.liferay.petra.log4j.jar:?]
    	at com.liferay.petra.log4j.internal.Log4jConfigUtil.configureLog4J(Log4jConfigUtil.java:137) ~[com.liferay.petra.log4j.jar:?]
    	at com.liferay.petra.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:87) ~[com.liferay.petra.log4j.jar:?]
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator._configureLog4j(Log4jExtenderBundleActivator.java:72) ~[?:?]
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator.access$000(Log4jExtenderBundleActivator.java:40) ~[?:?]
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator$1.addingBundle(Log4jExtenderBundleActivator.java:49) ~[?:?]
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator$1.addingBundle(Log4jExtenderBundleActivator.java:45) ~[?:?]
    	at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:475) ~[org.eclipse.osgi.jar:?]
    	at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1) ~[org.eclipse.osgi.jar:?]
    	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) ~[org.eclipse.osgi.jar:?]
    	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) ~[org.eclipse.osgi.jar:?]
    	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:230) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:137) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:129) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:191) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.Module.doStart(Module.java:578) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.Module.start(Module.java:449) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [org.eclipse.osgi.jar:?]
    2021-03-31 05:12:19.503 ERROR [Framework Event Dispatcher: Equinox Container: a0ae41d1-4d42-45eb-92b8-6f41e2fadbde][Framework:93] FrameworkEvent ERROR 
    java.lang.NoSuchMethodError: org.apache.log4j.helpers.OptionConverter.convertLevel(Ljava/lang/String;Lorg/apache/logging/log4j/Level;)Lorg/apache/logging/log4j/Level;
    	at org.apache.log4j.xml.XmlConfiguration.parseLevel(XmlConfiguration.java:647) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.lambda$parseChildrenOfLoggerElement$4(XmlConfiguration.java:564) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.forEachElement(XmlConfiguration.java:761) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.parseChildrenOfLoggerElement(XmlConfiguration.java:549) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.parseCategory(XmlConfiguration.java:531) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.lambda$parse$6(XmlConfiguration.java:721) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.forEachElement(XmlConfiguration.java:761) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.parse(XmlConfiguration.java:718) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.doConfigure(XmlConfiguration.java:167) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.xml.XmlConfiguration.doConfigure(XmlConfiguration.java:142) ~[log4j-1.2-api.jar:2.14.1]
    	at org.apache.log4j.config.Log4j1Configuration.initialize(Log4j1Configuration.java:59) ~[log4j-1.2-api.jar:2.14.1]
    	at com.liferay.petra.log4j.internal.CentralizedConfiguration.addConfiguration(CentralizedConfiguration.java:52) ~[com.liferay.petra.log4j.jar:?]
    	at com.liferay.petra.log4j.internal.Log4jConfigUtil.configureLog4J(Log4jConfigUtil.java:137) ~[com.liferay.petra.log4j.jar:?]
    	at com.liferay.petra.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:87) ~[com.liferay.petra.log4j.jar:?]
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator._configureLog4j(Log4jExtenderBundleActivator.java:72) ~[?:?]
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator.access$000(Log4jExtenderBundleActivator.java:40) ~[?:?]
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator$1.addingBundle(Log4jExtenderBundleActivator.java:49) ~[?:?]
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator$1.addingBundle(Log4jExtenderBundleActivator.java:45) ~[?:?]
    	at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:475) ~[org.eclipse.osgi.jar:?]
    	at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1) ~[org.eclipse.osgi.jar:?]
    	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) ~[org.eclipse.osgi.jar:?]
    	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) ~[org.eclipse.osgi.jar:?]
    	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:230) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:137) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:129) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:191) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.Module.start(Module.java:467) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) ~[org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [org.eclipse.osgi.jar:?]
    	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [org.eclipse.osgi.jar:?]
    

    Reproduced on:
    Weblogic 12.2 + MySQL 5.7. Portal master DXP GIT ID: de28124dfde97c9a709ce440ca1d3965d42fa0f0.

    Found this issue from upgrade functional tests´╝Ť
    https://testray.liferay.com/home/-/testray/case_results/1522417304

      Attachments

        Activity

          People

          Assignee:
          summer.zhang Summer Zhang
          Reporter:
          summer.zhang Summer Zhang
          Participants of an Issue:
          Recent user:
          Rafaela Nascimento
          Engineering Assignee:
          Hai Yu
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Dates

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

              Packages

              Version Package
              7.1.X
              7.2.X
              7.3.X
              7.4.0 CE GA1
              Master