Bug 1253597 - [GSS](6.4.x) Exceptions of lifecycle methods for session beans are suppresses without any message
Summary: [GSS](6.4.x) Exceptions of lifecycle methods for session beans are suppresses...
Keywords:
Status: CLOSED DUPLICATE of bug 1207240
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: CDI/Weld, EJB
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: wfink
QA Contact: Matous Jobanek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-14 08:23 UTC by wfink
Modified: 2019-07-11 09:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-14 08:34:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-2281 0 Major Resolved Exception from lifecycle callback interceptor method intercepting a session bean gets suppressed without log message 2015-08-14 08:35:06 UTC

Description wfink 2015-08-14 08:23:58 UTC
Description of problem:
If a lifecycle method of EJB's throw an Exception it is expected that this will be logged and the invocation fail.
This works correct if there is no CDI involved in this deployment.
If a beans.xml is added the Exception is swallowed and the instance might work not correct.



How reproducible:
----- Class ----
@Singleton
@Startup
public class StartupSingletonBean {
  private static final Logger log = Logger.getLogger(StartupSingletonBean.class);

  @PostConstruct
  private void postConstruct() {
    log.info("StartupSingleton is started. Resource 'myString' is '" + myString + "'");
    throw new RuntimeException("THIS IS A TEST");
  }
}



Steps to Reproduce:
1. If the application does not contain a beans.xml the Exception is logged and the Bean is not created.
2. If the application contains a beans.xml the weld deployment is activated and the Exception is swallowed.

Comment 1 wfink 2015-08-14 08:34:59 UTC

*** This bug has been marked as a duplicate of bug 1207240 ***


Note You need to log in before you can comment on or make changes to this bug.