org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRealVelocityParameters' in class com.onresolve.jira.groovy.GroovyCustomField threw exception groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method $Proxy79#hasPermission. Cannot resolve which method to invoke for [class java.lang.Integer, null] due to overlapping prototypes between: [int, interface com.atlassian.crowd.embedded.api.User] [int, interface com.atlassian.jira.user.ApplicationUser] at com.onresolve.jira.groovy.groovyrunner:scripted-field/templates/customfield/view-scriptedfield.vm[line 3, column 59]

JIRA | Christian Wurbs | 3 years ago
  1. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-273].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}CustomFields rendering fails for anonymous access. {quote} An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRealVelocityParameters' in class com.onresolve.jira.groovy.GroovyCustomField threw exception groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method $Proxy79#hasPermission. Cannot resolve which method to invoke for [class java.lang.Integer, null] due to overlapping prototypes between: [int, interface com.atlassian.crowd.embedded.api.User] [int, interface com.atlassian.jira.user.ApplicationUser] at com.onresolve.jira.groovy.groovyrunner:scripted-field/templates/customfield/view-scriptedfield.vm[line 3, column 59] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:155) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at {quote} The problematic part seems to be: https://bitbucket.org/jamieechlin/scriptrunner-public/src/f37f6c2d74aa/src/main/groovy/com/onresolve/jira/groovy/GroovyCustomField.groovy#cl-295

    JIRA | 3 years ago | Christian Wurbs
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRealVelocityParameters' in class com.onresolve.jira.groovy.GroovyCustomField threw exception groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method $Proxy79#hasPermission. Cannot resolve which method to invoke for [class java.lang.Integer, null] due to overlapping prototypes between: [int, interface com.atlassian.crowd.embedded.api.User] [int, interface com.atlassian.jira.user.ApplicationUser] at com.onresolve.jira.groovy.groovyrunner:scripted-field/templates/customfield/view-scriptedfield.vm[line 3, column 59]
  2. 0

    Getting error Failed to generate HTML Report by use of ReportNG with Maven.

    Google Groups | 4 years ago | Omkar Khatavkar
    org.uncommons.reportng.ReportNGException: Failed generating HTML report.
  3. 0

    We noticed that our confluence failed to come up that the application had crashed. Here's what we had in the log files: 2006-11-03 10:44:51,416 ERROR [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/users/viewuserprofile.vm' org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getSpace' in class com.atlassian.confluence.user.actions.ViewUserProfileAction threw exception class java.lang.NullPointerException : null at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:188) at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:226) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207) .................... at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) caused by: java.lang.NullPointerException at com.atlassian.confluence.user.actions.AbstractUserProfileAction.getPersonalSpaceKey(AbstractUserProfileAction.java:425) at com.atlassian.confluence.user.actions.AbstractUserProfileAction.getSpace(AbstractUserProfileAction.java:420) at sun.reflect.GeneratedMethodAccessor2403.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ........................... at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-11-03 10:44:51,428 ERROR [opensymphony.webwork.dispatcher.ServletDispatcher] serviceAction Could not execute action org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getSpace' in class com.atlassian.confluence.user.actions.ViewUserProfileAction threw exception class java.lang.NullPointerException : null at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:188) at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:226) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207) at org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:337) at org.apache.velocity.runtime.parser.node.ASTNotNode.evaluate(ASTNotNode.java:85) ................................. at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) caused by: java.lang.NullPointerException at com.atlassian.confluence.user.actions.AbstractUserProfileAction.getPersonalSpaceKey(AbstractUserProfileAction.java:425) at com.atlassian.confluence.user.actions.AbstractUserProfileAction.getSpace(AbstractUserProfileAction.java:420) at sun.reflect.GeneratedMethodAccessor2403.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:154) ..................................... at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-11-03 10:44:51,434 ERROR [[Catalina].[localhost].[/wiki].[action]] invoke Servlet.service() for servlet action threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) ......................................... at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-11-03 10:44:51,438 WARN [confluence.servlet.simpledisplay.SimpleDisplayServlet] doGet Error while parsing path /~Unknown java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) ................................... at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-11-03 10:44:51,442 ERROR [[Catalina].[localhost].[/wiki].[simple-display]] invoke Servlet.service() for servlet simple-display threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) ..................................... at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)

    Atlassian JIRA | 1 decade ago | Sudhakar Ramasamy
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getSpace' in class com.atlassian.confluence.user.actions.ViewUserProfileAction threw exception class java.lang.NullPointerException : null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h2. Problem description This error occurs for new installations of 4.0.3 where, in the setup wizard, the user has opted to install the demo space. And under certain circumstances which the error is caused by a malformed row in the table *bodycontent*. *However it is not fixed on upgrade, the error remains.* Here are the steps that you can take to reproduce this bug : # Install a clean instance of Confluence 4.0.3. (Installed by following the setup wizard, and set user management to 'Manage Users and Groups within Confluence') # Access {{Browse>Space Directory}} and there will be an error. The stack trace is as follows : {code} org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getBodyAsString' in class com.atlassian.confluence.spaces.SpaceDescription$$EnhancerByCGLIB$$f653be5e threw exception java.lang.UnsupportedOperationException: The body of this ContentEntityObject ('') was 'BodyType:XHTML' but was expected to be 'BodyType:WIKI' at /templates/spacedirectory.vm[line 62, column 71] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) ... Caused by: java.lang.UnsupportedOperationException: The body of this ContentEntityObject ('') was 'BodyType:XHTML' but was expected to be 'BodyType:WIKI' at com.atlassian.confluence.core.ContentEntityObject.getBodyContent(ContentEntityObject.java:169) at com.atlassian.confluence.core.ContentEntityObject.getBodyAsString(ContentEntityObject.java:206) at com.atlassian.confluence.core.ContentEntityObject$$FastClassByCGLIB$$96df24d5.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108) at com.atlassian.confluence.spaces.SpaceDescription$$EnhancerByCGLIB$$f653be5e.getBodyAsString(<generated>) ... 197 more {code} h2.Workaround # Open this URL in your browser: <Confluence-URL>/admin/force-upgrade.action # Select *changeSpaceDescriptionsBodyTypeUpgradeTask* in the Upgrade task to run dropdown list. # Choose Force Upgrade. Hope This helps!

    Atlassian JIRA | 5 years ago | Carlos Alberto Feijo Schedler [Atlassian]
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getBodyAsString' in class com.atlassian.confluence.spaces.SpaceDescription$$EnhancerByCGLIB$$f653be5e threw exception java.lang.UnsupportedOperationException: The body of this ContentEntityObject ('') was 'BodyType:XHTML' but was expected to be 'BodyType:WIKI' at /templates/spacedirectory.vm[line 62, column 71]
  6. 0

    We noticed that our confluence failed to come up that the application had crashed. Here's what we had in the log files: 2006-11-03 10:44:51,416 ERROR [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/users/viewuserprofile.vm' org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getSpace' in class com.atlassian.confluence.user.actions.ViewUserProfileAction threw exception class java.lang.NullPointerException : null at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:188) at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:226) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207) .................... at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) caused by: java.lang.NullPointerException at com.atlassian.confluence.user.actions.AbstractUserProfileAction.getPersonalSpaceKey(AbstractUserProfileAction.java:425) at com.atlassian.confluence.user.actions.AbstractUserProfileAction.getSpace(AbstractUserProfileAction.java:420) at sun.reflect.GeneratedMethodAccessor2403.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ........................... at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-11-03 10:44:51,428 ERROR [opensymphony.webwork.dispatcher.ServletDispatcher] serviceAction Could not execute action org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getSpace' in class com.atlassian.confluence.user.actions.ViewUserProfileAction threw exception class java.lang.NullPointerException : null at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:188) at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:226) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207) at org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:337) at org.apache.velocity.runtime.parser.node.ASTNotNode.evaluate(ASTNotNode.java:85) ................................. at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) caused by: java.lang.NullPointerException at com.atlassian.confluence.user.actions.AbstractUserProfileAction.getPersonalSpaceKey(AbstractUserProfileAction.java:425) at com.atlassian.confluence.user.actions.AbstractUserProfileAction.getSpace(AbstractUserProfileAction.java:420) at sun.reflect.GeneratedMethodAccessor2403.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:154) ..................................... at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-11-03 10:44:51,434 ERROR [[Catalina].[localhost].[/wiki].[action]] invoke Servlet.service() for servlet action threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) ......................................... at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-11-03 10:44:51,438 WARN [confluence.servlet.simpledisplay.SimpleDisplayServlet] doGet Error while parsing path /~Unknown java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) ................................... at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-11-03 10:44:51,442 ERROR [[Catalina].[localhost].[/wiki].[simple-display]] invoke Servlet.service() for servlet simple-display threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) ..................................... at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)

    Atlassian JIRA | 1 decade ago | Sudhakar Ramasamy
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getSpace' in class com.atlassian.confluence.user.actions.ViewUserProfileAction threw exception class java.lang.NullPointerException : null

    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. org.apache.velocity.exception.MethodInvocationException

      Invocation of method 'getRealVelocityParameters' in class com.onresolve.jira.groovy.GroovyCustomField threw exception groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method $Proxy79#hasPermission. Cannot resolve which method to invoke for [class java.lang.Integer, null] due to overlapping prototypes between: [int, interface com.atlassian.crowd.embedded.api.User] [int, interface com.atlassian.jira.user.ApplicationUser] at com.onresolve.jira.groovy.groovyrunner:scripted-field/templates/customfield/view-scriptedfield.vm[line 3, column 59]

      at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException()
    2. Apache Velocity
      ASTReference.execute
      1. org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
      2. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
      3. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
      4. org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507)
      5. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:155)
      6. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
      6 frames