Bug 911065
Summary: | Show error message instead of NPE | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Jitka Kozana <jkudrnac> |
Component: | Clustering | Assignee: | Paul Ferraro <paul.ferraro> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.1.0 | CC: | jkudrnac, rsvoboda |
Target Milestone: | ER3 | ||
Target Release: | EAP 6.1.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 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: |
Description
Jitka Kozana
2013-02-14 10:03:45 UTC
The client should not see the NPE, but some sort of error message: EJB not started yet or similar. Where is "org.jboss.test.singletonservice.ServiceAccessBean"? I'm not sure this test is setup correctly. Service.getValue() should never be called on a service that is not started. ServiceAccessBean is used by a standalone client to access the service. The bean code is basically the same as this EJB in this quickstart: https://github.com/jboss-jdf/jboss-as-quickstart/blob/master/cluster-ha-singleton/service/src/main/java/org/jboss/as/quickstarts/cluster/hasingleton/service/ejb/ServiceAccessBean.java The method ServiceController<?> getService(ServiceName serviceName) returns service regardless of its state. The state is not checked. So if the ServiceAccessBean should therefore check the state of the service, to prevent this NPE, then this should be documented. And the quickstart changed too. If the service is not started, the correct response for SingletonService.getValue() is an IllegalStateException. Verified during 6.1.0.ER3 testing cycle. |