Bug 780017 (SOA-2378)

Summary: ModeShape federation connector should gracefully fail when improperly configured
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.ER2CC: jpechane
Target Milestone: ---   
Target Release: 5.1.0.ER3   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-2378
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-06 10:23:46 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: 779936    
Bug Blocks:    

Description Jiri Pechanec 2010-10-06 10:10:09 UTC
project_key: SOA

It is difficult to properly configure fedartion connector as it does not properly handle errors in configurations. Whenever there is an error in projection rules, missing sourc node etc. it just throws an exception
null
org.modeshape.graph.search.SearchEngineIndexer.indexSubgraph(SearchEngineIndexer.java:278) 
at org.modeshape.graph.search.SearchEngineIndexer.index(SearchEngineIndexer.java:229) 
at org.modeshape.graph.search.SearchEngineIndexer.index(SearchEngineIndexer.java:137) 
at org.modeshape.jcr.RepositoryQueryManager$SelfContained.reindexContent(RepositoryQueryManager.java:397) 
at org.modeshape.jcr.RepositoryQueryManager$SelfContained.<init>(RepositoryQueryManager.java:341) 
at org.modeshape.jcr.JcrRepository.<init>(JcrRepository.java:648) 
at org.modeshape.jcr.JcrEngine.doCreateJcrRepository(JcrEngine.java:305) 
at org.modeshape.jcr.JcrEngine.getRepository(JcrEngine.java:210) 
at org.jboss.soa.modeshape.jcr.client.RepositoryReferenceFactory.getStandaloneRepository(RepositoryReferenceFactory.java:54) 
at org.jboss.soa.modeshape.jcr.client.RepositoryReferenceFactory.getRepository(RepositoryReferenceFactory.java:32) 
at org.jboss.soa.modeshape.qa.tests.FederatedConnectorTest.createRecord(FederatedConnectorTest.java:48) 
23 lines not shown

The connector should validate the settings and report the error details.

Comment 1 Van Halbert 2010-10-06 14:57:54 UTC
This is the fix that went in on Sept 27 and didn't make it into ER2, but should be there in ER3.

Comment 2 Van Halbert 2010-10-06 14:57:54 UTC
Link: Added: This issue depends MODE-897


Comment 3 Van Halbert 2010-10-06 15:00:52 UTC
Link: Added: This issue depends SOA-2295


Comment 4 Van Halbert 2010-10-06 15:01:39 UTC
This fix was committed on Sept 27(see links) and didn't make it into ER2, but should be in ER3

Comment 5 Jiri Pechanec 2010-10-26 11:18:51 UTC
Will verify in ER4 due to bug when errors are reported only if both warning and errors are present

Comment 6 Jiri Pechanec 2011-01-06 10:21:49 UTC
Verified in ER6