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

Commerce LPKG activation throws "Error reading bundle content"

Details

    Description

      Steps to reproduce:

      1. Build DXP release bundle
      2. Add DXP and Commerce license xml files to a DXP release bundle
      3. Start DXP and wait for full startup and full Commerce activation
      4. Shutdown and Restart DXP server few times

      Expected Result:
      Commerce LPKG bundles start and restart without error.

      Actual Result:
      Restarting server few times throw WARNs "Unable to install bundle webbundle:"

       WARN  [main][PortalLicenseEnterpriseAppGateKeeper:336] Unable to install bundle webbundle:/Liferay+Commerce+-+Liferay+Commerce+-+Impl-1.0.0/minium-theme.war?Bundle-Version=5.0.0&Web-ContextPath=/minium-theme&protocol=lpkg
      org.osgi.framework.BundleException: Error reading bundle content.
              at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:149)
              at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:139)
              at com.liferay.portal.license.enterprise.app.internal.PortalLicenseEnterpriseAppGateKeeper._installBundles(PortalLicenseEnterpriseAppGateKeeper.java:323)
              at com.liferay.portal.license.enterprise.app.internal.PortalLicenseEnterpriseAppGateKeeper.setLicenseManager(PortalLicenseEnterpriseAppGateKeeper.java:148)
              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 org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228)
              at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41)
              at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664)
              at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510)
              at org.apache.felix.scr.impl.inject.methods.BindMethod.invoke(BindMethod.java:42)
              at org.apache.felix.scr.impl.manager.DependencyManager.doInvokeBindMethod(DependencyManager.java:1813)
              at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:1788)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.invokeBindMethod(SingleComponentManager.java:436)
              at org.apache.felix.scr.impl.manager.DependencyManager$SingleDynamicCustomizer.addedService(DependencyManager.java:811)
              at org.apache.felix.scr.impl.manager.DependencyManager$SingleDynamicCustomizer.addedService(DependencyManager.java:775)
              at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1216)
              at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1137)
              at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:944)
              at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:880)
              at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1168)
              at org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:125)
              at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:891)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:804)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:228)
              at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:469)
              at com.liferay.portal.bootstrap.ModuleFrameworkImpl._registerService(ModuleFrameworkImpl.java:1566)
              at com.liferay.portal.bootstrap.ModuleFrameworkImpl.lambda$_registerApplicationContext$4(ModuleFrameworkImpl.java:1519)
              at java.util.Iterator.forEachRemaining(Iterator.java:116)
              at com.liferay.portal.bootstrap.ModuleFrameworkImpl._registerApplicationContext(ModuleFrameworkImpl.java:1500)
              at com.liferay.portal.bootstrap.ModuleFrameworkImpl.registerContext(ModuleFrameworkImpl.java:321)
              at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.registerContext(ModuleFrameworkUtilAdapter.java:72)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:369)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4716)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5177)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1830)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
              at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
              at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
              at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
              at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
              at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
              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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
      Caused by: java.net.MalformedURLException: unknown protocol: webbundle
              at java.net.URL.<init>(URL.java:617)
              at java.net.URL.<init>(URL.java:507)
              at java.net.URL.<init>(URL.java:456)
              at org.eclipse.osgi.storage.Storage.createURL(Storage.java:600)
              at org.eclipse.osgi.storage.Storage.getContentConnection(Storage.java:580)
              at org.eclipse.osgi.storage.Storage.getContentConnection(Storage.java:550)
              at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:145)
              ... 77 more 

      No functional impact found. Minium theme still working after this warning is thrown.

      Attachments

        Issue Links

          Activity

            People

              koor.gai Koor Gai (Inactive)
              koor.gai Koor Gai (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Matthew Tambara Matthew Tambara (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 35 weeks, 1 day ago

                Packages

                  Version Package
                  7.1.10 DXP FP23
                  7.1.10.6 SP6
                  7.1.X
                  7.3.7 CE GA8
                  7.3.10 DXP FP2
                  7.3.X