JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-6209

Referencing "exception" inside a groovy script should return null if there were no exception thrown

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 3.3 RC4
  • Fix Version/s: 3.3.1
  • Component/s: Modules: Scripting
  • Labels:
    • targeted-3.3.1
  • User impact:
    Medium
  • Log Output:
    Hide
    [05-02 11:16:37] ERROR DefaultMessagingExceptionStrategy [Thread-42]:
    ********************************************************************************
    Message : javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: exception for class: Script26 (org.mule.api.MuleRuntimeException). Message payload is of type: String
    Code : MULE_ERROR-29999
    --------------------------------------------------------------------------------
    Exception stack is:
    1. No such property: exception for class: Script26 (groovy.lang.MissingPropertyException)
      org.codehaus.groovy.runtime.ScriptBytecodeAdapter:50 (null)
    2. groovy.lang.MissingPropertyException: No such property: exception for class: Script26 (javax.script.ScriptException)
      org.codehaus.groovy.jsr223.GroovyScriptEngineImpl:323 (http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/script/ScriptException.html)
    3. javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: exception for class: Script26 (org.mule.api.MuleRuntimeException)
      org.mule.module.scripting.expression.AbstractScriptExpressionEvaluator:65 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MuleRuntimeException.html)
    4. javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: exception for class: Script26 (org.mule.api.MuleRuntimeException). Message payload is of type: String (org.mule.api.MessagingException)
      org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:35 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
    --------------------------------------------------------------------------------
    Root Exception stack trace:
    groovy.lang.MissingPropertyException: No such property: exception for class: Script26
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
    at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
        + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
    ********************************************************************************
    Show
    [05-02 11:16:37] ERROR DefaultMessagingExceptionStrategy [Thread-42]: ******************************************************************************** Message : javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: exception for class: Script26 (org.mule.api.MuleRuntimeException). Message payload is of type: String Code : MULE_ERROR-29999 -------------------------------------------------------------------------------- Exception stack is: 1. No such property: exception for class: Script26 (groovy.lang.MissingPropertyException)   org.codehaus.groovy.runtime.ScriptBytecodeAdapter:50 (null) 2. groovy.lang.MissingPropertyException: No such property: exception for class: Script26 (javax.script.ScriptException)   org.codehaus.groovy.jsr223.GroovyScriptEngineImpl:323 (http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/script/ScriptException.html) 3. javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: exception for class: Script26 (org.mule.api.MuleRuntimeException)   org.mule.module.scripting.expression.AbstractScriptExpressionEvaluator:65 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MuleRuntimeException.html) 4. javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: exception for class: Script26 (org.mule.api.MuleRuntimeException). Message payload is of type: String (org.mule.api.MessagingException)   org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:35 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: groovy.lang.MissingPropertyException: No such property: exception for class: Script26 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)     + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ********************************************************************************
  • Similar Issues:
    None

Description

According to http://www.mulesoft.org/documentation/display/MULECDEV/Improve+Groovy+Expression+Evaluator+Context referencing "exception" inside a groovy script should return null if there were no exception thrown, but is throwing NullPointerException.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds

CE Bamboo View RSS feed

People

  • Assignee:
    Pablo Kraan
    Reporter:
    Pablo Kraan
Vote (0)
Watch (0)

Dates

  • Created:
    02/May/12 09:17 AM
    Updated:
    27/Jul/12 05:42 PM
    Resolved:
    27/Jul/12 05:42 PM

Agile

  • Completed Sprint:
    Studio Sprint 1 ended 15/Feb/13
  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.