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

Exception occurred when execute the groovy script

Details

    • 6
    • 5
    • Regression Bug

    Description

      Steps to reproduce:

      1. Start portal and login as test user.
      2. Admin > Control Panel > Server Administration > Script.
      3. Select groovy, and input System.out.println("test");
      4. Click execute button.

      Expected result:
      Script could be executed without exception.

      Actual result:
      Class not found exception occurred in console.

      Caused by: java.lang.NoClassDefFoundError: antlr/collections/AST
      	at org.codehaus.groovy.antlr.AntlrParserPluginFactory.createParserPlugin(AntlrParserPluginFactory.java:27)
      	at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:234)
      	at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:162)
      	at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:912)
      	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:574)
      	at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:550)
      	at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:527)
      	at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279)
      	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258)
      	at groovy.lang.GroovyShell.parseClass(GroovyShell.java:613)
      	at groovy.lang.GroovyShell.parse(GroovyShell.java:625)
      	at groovy.lang.GroovyShell.parse(GroovyShell.java:652)
      	at groovy.lang.GroovyShell.parse(GroovyShell.java:643)
      	at com.liferay.portal.scripting.groovy.internal.GroovyExecutor.eval(GroovyExecutor.java:64)
      	at com.liferay.portal.scripting.ScriptingImpl.eval(ScriptingImpl.java:111)
      	at com.liferay.portal.scripting.ScriptingImpl.exec(ScriptingImpl.java:132)
      	at com.liferay.portal.kernel.scripting.ScriptingUtil.exec(ScriptingUtil.java:91)
      	at com.liferay.portlet.admin.action.EditServerAction.runScript(EditServerAction.java:454)
      	at com.liferay.portlet.admin.action.EditServerAction.processAction(EditServerAction.java:187)
      	at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:163)
      	at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:216)
      	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:71)
      	at com.liferay.portlet.CheckboxParametersPortletFilter.doFilter(CheckboxParametersPortletFilter.java:56)
      	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:68)
      	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
      	at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:540)
      	at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:571)
      	at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:328)
      	at com.liferay.portlet.MonitoringPortlet.processAction(MonitoringPortlet.java:187)
      	at com.liferay.portlet.PortletContainerImpl._doProcessAction(PortletContainerImpl.java:415)
      

      Attachments

        Activity

          People

            miguel.pastor Miguel Ángel Pastor Olivar (Inactive)
            hong.zhao Hong Zhao (Inactive)
            Marta Elicegui Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 37 weeks, 4 days ago

              Packages

                Version Package
                7.0.0 M6