Uploaded image for project: 'PUBLIC - Liferay Portal Web Content Experience'
  1. PUBLIC - Liferay Portal Web Content Experience
  2. WCM-368

Stopping OSGI bundle for Audience Targeting triggers error

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 1.X, 2.x
    • Fix Version/s: 1.X
    • Component/s: Infrastructure
    • Labels:

      Description

      Steps to reproduce:

      1. Set in portal-ext:
        module.framework.properties.osgi.console=11311
      2. Start a Liferay 6.2 SP10 bundle
      3. Download Audience Targeting from Marketplace and deploy it
      4. In LIFERAY_HOME/data/osgi/ create a modules directory and copy the *.jar files from Audience Targeting EE.lpkg into that
      5. Restart the portal
      6. Connect to the osgi telnet console on localhost 11311
      7. List bundles by typing into the console:
        lb
      8. Stop an arbitrary bundle from audience targeting by typing into the console
        stop $bundleId

      RESULT: Error occurs during undeploy process. The error message:

      11:13:12,562 INFO  [fileinstall-/home/hans/redtree/idewe/runtimes/liferay-portal/data/osgi/modules][HookHotDeployListener:952] Hook for liferay-idewe-service-group-rule was unregistered
      Mar 10, 2015 11:13:12 AM org.apache.catalina.core.ApplicationContext log
      INFO: Closing Spring root WebApplicationContext
      11:13:12,563 INFO  [fileinstall-/home/hans/redtree/idewe/runtimes/liferay-portal/data/osgi/modules][PluginPackageUtil:1016] Reading plugin package for liferay-idewe-service-group-rule
      11:13:12,565 ERROR [com.liferay.portal.log.bridge.internal.LogBridge@3aeeb642][org_eclipse_osgi:75] An unexpected runtime error has occurred.
      java.lang.IllegalStateException: BundleContext is no longer valid
              at org.eclipse.osgi.framework.internal.core.BundleContextImpl.checkValid(BundleContextImpl.java:931)
              at org.eclipse.osgi.framework.internal.core.BundleContextImpl.ungetService(BundleContextImpl.java:634)
              at com.liferay.content.targeting.deploy.hot.extender.internal.activator.HotDeployTrackerComponent$ServletContextTrackerCustomizer.removedService(HotDeployTrackerComponent.java:214)
              at com.liferay.content.targeting.deploy.hot.extender.internal.activator.HotDeployTrackerComponent$ServletContextTrackerCustomizer.removedService(HotDeployTrackerComponent.java:1)
              at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:956)
              at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1)
              at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)
              at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:902)
              at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
              at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
              at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:225)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.unregisterServices(ServiceRegistry.java:635)
              at org.eclipse.osgi.framework.internal.core.BundleContextImpl.close(BundleContextImpl.java:88)
              at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:514)
              at org.eclipse.osgi.framework.internal.core.AbstractBundle.stop(AbstractBundle.java:465)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  1.X