Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1777

Inconsistent stack height error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 1.0
    • 1.1-beta-1
    • class generator
    • None
    • Mac OSX Panther 10.3.9, java version "1.4.2_12"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-270)
      Java HotSpot(TM) Client VM (build 1.4.2-70, mixed mode)

    Description

      Case is using Groovlets with Jetty 6.1.1 -

      This runs without error:

      html.html{
      head

      { title 'Avail Test' }
      body {
      h1 "Hello ${name}"
      }
      }

      To get the error Add the session object in :

      html.html{
      head { title 'Avail Test' }

      body {
      h1 "Hello ${name}"
      }
      }
      session.counter = session.counter + 1

      And expection is experienced :

      27519 [btpool0-4] ERROR org.mortbay.log - Error for /avail/hello.groovy
      java.lang.VerifyError: (class: session, method: run signature: ()Ljava/lang/Object Inconsistent stack height 2 != 0
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:141)
      at hello.class$(hello.groovy)
      at hello.run(hello.groovy:12)
      at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:378)
      at groovy.servlet.GroovyServlet$1.call(GroovyServlet.java:135)
      at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:149)
      at groovy.servlet.GroovyServlet.service(GroovyServlet.java:144)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      at org.mortbay.jetty.Server.handle(Server.java:285)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            babelex Al
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: