Bug 1198186
| Summary: | [GSS] (6.4.z) JBoss does not log stack trace of an exception | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Tom Ross <tom.ross> |
| Component: | Domain Management | Assignee: | Tomas Hofman <thofman> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Simka <msimka> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.3.2 | CC: | bmaxwell, cdewolf, dandread, istudens, jawilson, jmartisk, thofman |
| Target Milestone: | CR1 | ||
| Target Release: | EAP 6.4.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-17 10:36:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1231259 | ||
|
Description
Tom Ross
2015-03-03 14:15:00 UTC
Created upstream issue: https://issues.jboss.org/browse/WFCORE-587 Reporting message was left as it was - it's supposed to go to a client and Brian doesn't want it to contain stack traces. Instead, the message is additionally logged in server log, this time with a stack trace. Fixed PR: https://github.com/jbossas/jboss-eap/pull/2400 Noticed there was an extra commit in the original one. I'm sorry for not having automated test for this issue. I consulted with Martin Simka, and we concluded that byteman rule could be an appropriate way of reproducing this.
So, the recipe for reproducer is following:
1) Start EAP.
2) Install byteman:
bminstall.sh -b -Dorg.jboss.byteman.transform.all {EAP_process_ID}
2) Load following byteman rule:
RULE break result handler
CLASS org.jboss.as.controller.OperationContext$ResultHandler$1
METHOD handleResult
AT EXIT
IF true
DO traceln("breaking at " + java.util.Arrays.toString(Thread.currentThread().getStackTrace()));
throw new java.lang.RuntimeException("test exception")
ENDRULE
with command:
bmsubmit.sh -l file_with_byteman_rule.btm
3) Within couple of seconds, following error message should be printed in standard output as well as in server.log, together with its' stack trace.
10:20:57,347 ERROR [org.jboss.as.controller.management-operation] (DeploymentSca
nner-threads - 1) JBAS014781: Step handler org.jboss.as.controller.ModelControll
erImpl$DefaultPrepareStepHandler@796dcbb9 for operation {"operation" => "read-ch
ildren-resources","address" => [],"child-type" => "deployment","include-runtime"
=> undefined,"recursive" => undefined,"recursive-depth" => undefined,"proxies"
=> undefined,"include-defaults" => undefined} at address [] failed handling oper
ation rollback -- java.lang.RuntimeException: test exception: java.lang.RuntimeE
xception: test exception
...
The message should be repeated every couple of seconds, since it's triggered by deployment scanner in this case. When using the EAP version before the fix, no error message appears at all.
Verified in EAP 6.4.3.CR1. Retroactively bulk-closing issues from released EAP 6.4 cummulative patches. Retroactively bulk-closing issues from released EAP 6.4 cummulative patches. |