Uploaded image for project: 'Commons Sandbox'
  1. Commons Sandbox
  2. SANDBOX-111

[javaflow] JavaFlow throws VerifyError when using .class in code

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Component/s: Javaflow
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Bugzilla Id:
      30406

      Description

      This code causes an error:
      QueryByCriteria query = new QueryByCriteria(Account.class, new Criteria());

      While this code works fine:
      QueryByCriteria query = new
      QueryByCriteria(Class.forName("com.bizzdesign.persistence.risks.Account"), new
      Criteria());

      The stack trace:
      13:10:26.216 WARN!! Error for /risks/editAccount.jfdo
      java.lang.VerifyError: (class:
      org/apache/cocoon/samples/flow/java/CalculatorFlow, method: doEditAccount
      signature: ()V) Unable to pop operand off an empty stack
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
      at java.lang.Class.privateGetPublicMethods(Class.java:1770)
      at java.lang.Class.getMethods(Class.java:824)
      at
      org.apache.cocoon.components.flow.java.JavaInterpreter.initialize(JavaInterpreter.java:96)
      at
      org.apache.cocoon.components.flow.java.JavaInterpreter.callFunction(JavaInterpreter.java:130)
      at
      org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:130)
      at
      org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)
      at
      org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
      at
      org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
      at
      org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)
      at
      org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
      at
      org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)
      at
      org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)
      at
      org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)
      at
      org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:103)
      at
      org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)
      at
      org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
      at
      org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
      at
      org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)
      at
      org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
      at
      org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)
      at
      org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)
      at
      org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)
      at org.apache.cocoon.Cocoon.process(Cocoon.java:639)
      at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1098)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
      at
      org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
      at
      org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
      at org.mortbay.http.HttpServer.service(HttpServer.java:879)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              b.molenkamp@bizzdesign.nl Bart Molenkamp

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment