Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2262

When throwing an application exception in a method that is annotated with NOT_SUPPORTED it should not wrap the application Exception.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Hide

      run attached code (based on the EJB3 tutorial)
      set JBOSS_HOME first
      ant
      run up eap
      ant run
      observe ERROR [STDERR] javax.ejb.EJBException: org.jboss.tutorial.stateless.bean.MyException: Alert! Alert! in EAP log

      Show
      run attached code (based on the EJB3 tutorial) set JBOSS_HOME first ant run up eap ant run observe ERROR [STDERR] javax.ejb.EJBException: org.jboss.tutorial.stateless.bean.MyException: Alert! Alert! in EAP log

      When throwing an application exception in a method that is annotated with NOT_SUPPORTED it should not wrap the application Exception.
      What currently happen is that it is wrapped in an EJBException instead of being thrown un-wrapped.

      See Table 14 p361. of jsr-220 spec

      This has been tested on EAP 5.1.0

              rhn-engineering-cdewolf Carlo de Wolf
              rhn-support-sappleton Shaun Appleton
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: