"rhq.ear/rhq-core-domain-ejb3.jar#rhqpu" resource unavailable in JBoss ON
Environment
- Red Hat JBoss Operations Network (ON) 3.2.0, 3.3.3
- JBoss ON Server is not restarted for a longer time period (~ 2 days)
Issue
-
ERRORs in server.log:
... ERROR [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 717) JBAS014612: Operation ("read-resource") failed - address: ([ {"deployment" => "rhq.ear"}, {"subdeployment" => "rhq-core-domain-ejb3.jar"}, {"subsystem" => "jpa"}, {"hibernate-persistence-unit" => "rhq.ear/rhq-core-domain-ejb3.jar#rhqpu"} ]): java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:658) [rt.jar:1.7.0_17] at org.jboss.as.controller.PathElement.<init>(PathElement.java:103) [jboss-as-controller-7.2.1.F ... -
rhq.ear/rhq-core-domain-ejb3.jar#rhqpu resource unavailable
Resolution
This issue is resolved in JBoss ON 3.3 Update-05.
To workaround the issue, one of the following options will stop the error message from being logged in the server.log file:
- Ignore the error as it will not cause any other issues and only impacts the reporting of availability on the inactive resource;
- Disable the
rhq.ear/rhq-core-domain-ejb3.jar#rhqpuresource so it's availability is not collected; - Have JBoss ON Server regularly restarted.
Root Cause
This error will happen when rhq.ear/rhq-core-domain-ejb3.jar#rhqpu resource (bean) is not active for a longer time period. In that case, this bean will be passivated and as such it's availability will be considered as DOWN although it is really UP.
This issue was captured as This content is not included.Red Hat Bugzilla 1028468.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.