Details

      Description

      Reproduction steps:

      1. Create a service wrapper module to customize a service which is in a standalone module, e.g. use WikiPageLocalServiceWrapper

      You can used the attached testwikipageservicewrapper.jar.
      I created it using BLADE with two simple steps:
      a)

      blade create -t servicewrapper -p com.liferay.test.service -c TestWikiPageServiceWrapper -s com.liferay.wiki.service.WikiPageLocalServiceWrapper TestWikiPageServiceWrapper
      

      b)
      Extend the build.gradle file with the dependency:

      compile group: "com.liferay", name: "com.liferay.wiki.api", version: "default"
      

      2. Deploy it to a running bundle, everything is OK so far
      3. Restart the bundle

      Result:

      08:15:24,340 ERROR [localhost-startStop-1][ServiceWrapperRegistry:77] Unable to get service bag for class com.liferay.test.service.TestWikiPageServiceWrapper
      java.lang.NullPointerException
              at com.liferay.portal.deploy.hot.ServiceWrapperRegistry$ServiceWrapperServiceTrackerCustomizer._getServiceBag(ServiceWrapperRegistry.java:145)
              at com.liferay.portal.deploy.hot.ServiceWrapperRegistry$ServiceWrapperServiceTrackerCustomizer.addingService(ServiceWrapperRegistry.java:74)
              at com.liferay.portal.deploy.hot.ServiceWrapperRegistry$ServiceWrapperServiceTrackerCustomizer.addingService(ServiceWrapperRegistry.java:61)
              at com.liferay.registry.internal.ServiceTrackerCustomizerAdapter.addingService(ServiceTrackerCustomizerAdapter.java:35)
              at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 14 weeks, 1 day ago

                Packages

                Version Package