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

The "gulp watch" command does not deploy a theme

    Details

      Description

      The command "gulp watch" does not appear to work as of de-13.

      Steps to reproduce

      1. Install the theme generator.
      2. Create a test theme - "yo liferay-theme".
      3. Download the Porygon theme from the Marketplace and copy its source code into your test theme's src folder.
      4. Install de-13 or de-14 and start the app server.
      5. Run "gulp watch" from the test theme's project directory.

      Expected Result: The theme builds and is deployed to the app server.
      Actual Results: The theme builds but the bundle never starts and is never deployed. An exception is thrown in the logs.

      Exception

      20:40:04,633 INFO  [Thread-38][BaseAutoDeployListener:42] Copying themes for C:\Liferay\theme-generator\master-theme\.web_bundle_build
      20:40:04,707 INFO  [Thread-38][ThemeAutoDeployer:91] Modifying themes for C:\Liferay\theme-generator\master-theme\.web_bundle_build
      20:40:04,954 INFO  [Thread-38][ThemeAutoDeployer:99] Themes for C:\Liferay\theme-generator\master-theme\.web_bundle_build modified successfully
      20:40:04,954 INFO  [Thread-38][BaseAutoDeployListener:50] Themes for C:\Liferay\theme-generator\master-theme\.web_bundle_build copied successfully
      LogListener.logged threw a non-fatal unchecked exception as follows:
      java.lang.NullPointerException
              at com.liferay.portal.equinox.log.bridge.internal.PortalSynchronousLogListener._log(PortalSynchronousLogListener.java:91)
              at com.liferay.portal.equinox.log.bridge.internal.PortalSynchronousLogListener.logged(PortalSynchronousLogListener.java:76)
              at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.safeLogged(ExtendedLogReaderServiceFactory.java:88)
              at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.logPrivileged(ExtendedLogReaderServiceFactory.java:217)
              at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.log(ExtendedLogReaderServiceFactory.java:189)
              at org.eclipse.osgi.internal.log.LogServiceManager.bundleChanged(LogServiceManager.java:83)
              at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:905)
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
              at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
      20:40:06,266 WARN  [Thread-38][com_liferay_portal_osgi_web_wab_extender:103] [unknown_0.0.0 [526]] Error while creating extension
      java.lang.NullPointerException
              at com.liferay.portal.osgi.web.wab.extender.internal.event.EventUtil.sendEvent(EventUtil.java:145)
              at com.liferay.portal.osgi.web.wab.extender.internal.WebBundleDeployer.doStart(WebBundleDeployer.java:65)
              at com.liferay.portal.osgi.web.wab.extender.internal.WabFactory$WABExtension.start(WabFactory.java:158)
              at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)
              at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)
              at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
              at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:1)
              at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
              at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
              at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:905)
              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.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)
              at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)
              at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)
              at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)
              at org.eclipse.osgi.container.Module.publishEvent(Module.java:461)
              at org.eclipse.osgi.container.Module.start(Module.java:452)
              at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
              at org.apache.felix.gogo.command.Basic.start(Basic.java:729)
              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.gogo.runtime.Reflective.invoke(Reflective.java:137)
              at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
              at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
              at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
              at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
              at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
              at org.apache.felix.gogo.shell.Console.run(Console.java:62)
              at org.apache.felix.gogo.shell.Shell.console(Shell.java:203)
              at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128)
              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.gogo.runtime.Reflective.invoke(Reflective.java:137)
              at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
              at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
              at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
              at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
              at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
              at org.eclipse.equinox.console.telnet.TelnetConnection.run(TelnetConnection.java:94)
      LogListener.logged threw a non-fatal unchecked exception as follows:
      java.lang.NullPointerException
              at com.liferay.portal.equinox.log.bridge.internal.PortalSynchronousLogListener._log(PortalSynchronousLogListener.java:91)
      20:40:06,273 INFO  [Thread-38][BundleStartStopLogger:35] STARTED unknown_0.0.0 [526]
              at com.liferay.portal.equinox.log.bridge.internal.PortalSynchronousLogListener.logged(PortalSynchronousLogListener.java:76)
              at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.safeLogged(ExtendedLogReaderServiceFactory.java:88)
              at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.logPrivileged(ExtendedLogReaderServiceFactory.java:217)
              at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.log(ExtendedLogReaderServiceFactory.java:189)
              at org.eclipse.osgi.internal.log.LogServiceManager.bundleChanged(LogServiceManager.java:83)
              at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:905)
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
              at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
      LogListener.logged threw a non-fatal unchecked exception as follows:
      java.lang.NullPointerException
              at com.liferay.portal.equinox.log.bridge.internal.PortalSynchronousLogListener._log(PortalSynchronousLogListener.java:91)
              at com.liferay.portal.equinox.log.bridge.internal.PortalSynchronousLogListener.logged(PortalSynchronousLogListener.java:76)
              at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.safeLogged(ExtendedLogReaderServiceFactory.java:88)
              at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.logPrivileged(ExtendedLogReaderServiceFactory.java:217)
              at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.log(ExtendedLogReaderServiceFactory.java:189)
              at org.eclipse.osgi.internal.log.LogServiceManager.bundleChanged(LogServiceManager.java:83)
              at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:905)
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
              at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
      
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 16 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP21
                  7.0.0 DXP SP4
                  7.0.X EE
                  7.1.X
                  Master