Bug 779936 (SOA-2295) - Incorrectly configured Modeshape repositories should be detected and reported
Summary: Incorrectly configured Modeshape repositories should be detected and reported
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-2295
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: EDS
Version: 5.1.0.ER1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: FUTURE
Assignee: Default User
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks: SOA-2378
TreeView+ depends on / blocked
 
Reported: 2010-09-10 08:25 UTC by Jiri Pechanec
Modified: 2010-10-06 15:00 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-04 01:24:24 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-2295 0 None None None Never

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



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