Bug 779936 (SOA-2295)

Summary: Incorrectly configured Modeshape repositories should be detected and reported
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Jiri Pechanec <jpechane>
Component: EDSAssignee: Default User <jbpapp-maint>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0.ER1   
Target Milestone: ---   
Target Release: FUTURE   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-2295
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-04 01:24:24 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:
Bug Depends On:    
Bug Blocks: 780017    

Description Jiri Pechanec 2010-09-10 08:25:50 UTC
project_key: SOA

If somebody makes an error in Modeshape configuration file then it is very difficult to detect the problem.
I created a repository that was referencing to undefined source (typo)

1) Modeshape service is deployed without any issues reported
2) When I tried to access the repo I got exception without any information
10:10:24,411 WARN  [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.modeshape.graph.connector.RepositorySourceException)
3) And when I tried too look at Modeshape using console, then the log is filled with
10:12:37,006 ERROR [modeshape] Exception invoking getRepositoryVersion
java.lang.reflect.UndeclaredThrowableException: Failed to invoke method 'getRepositoryVersion' on component 'ModeShapeEngine' with parameters [SimpleMetaType:java.lang.String:repository-test].

and there is no repository shown in the console - even those properly configured and accessible are missing.

The system should detect incorrect situation preferably during the deployment and report details about the problem so administrator can fix it.

Comment 1 Van Halbert 2010-09-14 15:04:10 UTC
Link: Added: This issue depends MODE-897


Comment 2 Van Halbert 2010-10-04 01:24:24 UTC
ModeShape has added logic to check for and report incorrectly configured repository.   This will be available to the ER3 build.

Comment 3 Van Halbert 2010-10-06 15:00:52 UTC
Link: Added: This issue is a dependency of SOA-2378