Bug 1154121 - Error JBAS014613: Operation ("read-resource") with JON
Summary: Error JBAS014613: Operation ("read-resource") with JON
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Domain Management
Version: 6.2.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: DR7
: EAP 6.4.0
Assignee: Brian Stansberry
QA Contact: Petr Kremensky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-17 15:32 UTC by gbonocor
Modified: 2019-08-19 12:41 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFCORE-184 0 Major Resolved Handle external requests during boot with a failure that indicates non-readiness 2019-06-17 13:33:10 UTC

Description gbonocor 2014-10-17 15:32:11 UTC
Description of problem:
Error in server.log file after clean install and server start:

10:49:46,987 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS014612: Operation ("read-resource") failed - address: ([("subsystem" => "web")]) - failure description: "JBAS014807: Management resource '[(\"subsystem\" => \"web\")]' not found"

The errors are looping all the EAP subsystems

Version-Release number of selected component (if applicable):
JON 3.3 DR01

How reproducible:


Steps to Reproduce:
1. Install and start JON
2.
3.

Actual results:
Errors in server.log after clean install/start.

Expected results:
Should be zero silent errors in server.log

See also https://bugzilla.redhat.com/show_bug.cgi?id=1127356

Comment 1 Brian Stansberry 2014-10-17 16:06:06 UTC
What's happening here is the exception handling logic during operation execution needs better discrimination of internal requests vs external requests. During boot it writes things in the server log that it would not at other times because if they occurred as part of boot they would be critical and would need to be logged. For example, some boot step expecting to be able to read /subsystem=web and failing to do so would almost certainly be something that needs to be logged. But an external caller coming in in the middle of boot and trying to read it before it's created is not a problem to the server and should not be logged.

Perhaps better than using the knowledge of the caller type in the exception handling is to use it to avoid executing the operation at all and return to the client a NoSuchResource failure message (for the root resource). The standard practice for clients likely to have a race where they invoke an op against a still-booting server[1] is to read the 'server-state' attribute on the root resource, ignoring failures and retrying until it returns 'RUNNING' or a timeout occurs. Responding with the NoSuchResource failure would work fine with that approach.


[1] e.g. the Arquillian containers and EAP's own testsuite fixtures

Comment 3 gbonocor 2014-10-24 14:32:26 UTC
The customer asked me if there is a possibility to get this fix in EAP 6.2....

Comment 5 Petr Kremensky 2014-11-18 14:27:06 UTC
Remote management operations during server boot now fails with JBAS013493.
eg.
/host=master:reload
/host=master:read-resource
fails unless Host controller is booted. 

Verified on EAP 6.4.0.DR10.


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