groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class Script1. Reason: java.lang.ClassCastException: Script1 cannot be cast to groovy.lang.GroovyObject

Eclipse Bugzilla | rtdigenielogiciel_gdc | 2 years ago
  1. 0

    Bug 445775 – Since migrate to 3.2, I can't execute system groovy build step and console script neither

    eclipse.org | 12 months ago
    groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class Script1. Reason: java.lang.ClassCastException: Script1 cannot be cast to groovy.lang.GroovyObject
  2. 0

    Since migrate to 3.2, I can't execute system groovy build step and console script neither

    Eclipse Bugzilla | 2 years ago | rtdigenielogiciel_gdc
    groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class Script1. Reason: java.lang.ClassCastException: Script1 cannot be cast to groovy.lang.GroovyObject
  3. 0

    Eclipse Community Forums: Hudson » Execute system Groovy script not working with Hudson 3.0

    eclipse.org | 1 month ago
    groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class Script1. Reason: java.lang.ClassCastException: Script1 cannot be cast to groovy.lang.GroovyObject
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Eclipse Community Forums: Hudson » Execute system Groovy script not working with Hudson 3.0

    eclipse.org | 7 months ago
    groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class Script1. Reason: java.lang.ClassCastException: Script1 cannot be cast to groovy.lang.GroovyObject
  6. 0

    Weird maven-invoker-plugin exception: java.lang.ClassCastException: Script1 cannot be cast to groovy.lang.GroovyObject

    Stack Overflow | 6 months ago | carlspring
    groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class Script1. Reason: java.lang.ClassCastException: Script1 cannot be cast to groovy.lang.GroovyObject

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      Script1 cannot be cast to groovy.lang.GroovyObject

      at org.codehaus.groovy.runtime.InvokerHelper.createScript()
    2. Groovy
      GroovyShell.evaluate
      1. org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:408)
      2. groovy.lang.GroovyShell.parse(GroovyShell.java:743)
      3. groovy.lang.GroovyShell.evaluate(GroovyShell.java:578)
      4. groovy.lang.GroovyShell.evaluate(GroovyShell.java:618)
      5. groovy.lang.GroovyShell.evaluate(GroovyShell.java:589)
      5 frames
    3. Groovy Support Plugin
      GroovyScriptSupport.evaluate
      1. org.hudsonci.plugins.groovy.GroovyScriptSupport.evaluate(GroovyScriptSupport.java:97)
      1 frame
    4. Hudson
      RemotingDiagnostics$Script.call
      1. hudson.util.RemotingDiagnostics$Script.call(RemotingDiagnostics.java:156)
      2. hudson.util.RemotingDiagnostics$Script.call(RemotingDiagnostics.java:115)
      2 frames
    5. Hudson :: Remoting Layer
      LocalChannel.call
      1. hudson.remoting.LocalChannel.call(LocalChannel.java:38)
      1 frame
    6. Hudson
      Hudson.doScript
      1. hudson.util.RemotingDiagnostics.executeScript(RemotingDiagnostics.java:112)
      2. hudson.model.Hudson.doScript(Hudson.java:3574)
      3. hudson.model.Hudson.doScript(Hudson.java:3549)
      3 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    8. Stapler
      Stapler.service
      1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:274)
      2. org.kohsuke.stapler.Function.bindAndInvoke(Function.java:141)
      3. org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:80)
      4. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:95)
      5. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)
      6. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:566)
      7. org.kohsuke.stapler.Stapler.invoke(Stapler.java:651)
      8. org.kohsuke.stapler.Stapler.invoke(Stapler.java:482)
      9. org.kohsuke.stapler.Stapler.service(Stapler.java:153)
      9 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      1 frame
    10. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
      2. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
      2 frames
    11. Hudson
      PluginServletFilter$1.doFilter
      1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:86)
      1 frame
    12. Hudson :: Service
      ServletRegistrationFilterAdapter.doFilter
      1. org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:162)
      2. org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:134)
      2 frames
    13. Hudson
      PluginServletFilter$1.doFilter
      1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:89)
      1 frame
    14. Hudson :: Service
      ServletRegistrationFilterAdapter.doFilter
      1. org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:162)
      2. org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:134)
      2 frames
    15. Hudson
      PluginServletFilter.doFilter
      1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:89)
      2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:78)
      2 frames
    16. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      1 frame
    17. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:81)
      2. hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:47)
      3. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      3 frames
    18. Spring Security
      ExceptionTranslationFilter.doFilter
      1. org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
      1 frame
    19. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      1 frame
    20. Spring Security
      AnonymousAuthenticationFilter.doFilter
      1. org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
      1 frame
    21. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      1 frame
    22. Spring Security
      RememberMeAuthenticationFilter.doFilter
      1. org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
      1 frame
    23. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      1 frame
    24. Spring Security
      AbstractAuthenticationProcessingFilter.doFilter
      1. org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
      1 frame
    25. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      1 frame
    26. Spring Security
      BasicAuthenticationFilter.doFilter
      1. org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
      1 frame
    27. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      1 frame
    28. Spring Security
      SecurityContextPersistenceFilter.doFilter
      1. org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
      1 frame
    29. Hudson
      HudsonFilter.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      2. hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:73)
      3. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:157)
      3 frames
    30. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      1 frame
    31. Hudson
      CharacterEncodingFilter.doFilter
      1. hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)
      1 frame
    32. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      11. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      12. org.eclipse.jetty.server.Server.handle(Server.java:497)
      13. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
      14. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      15. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
      16. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      17. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      17 frames
    33. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)
      1 frame