[MGNLGQL-29] Graphql-core module won't start if ContentTypeModelMapper resolution fails Created: 24/Jun/20 Updated: 24/Jul/20 Resolved: 02/Jul/20 |
|
| Status: | Closed |
| Project: | Magnolia GraphQL |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.0 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Jaroslav Simak | Assignee: | Jaroslav Simak |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 0.25d | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Epic Link: | GraphQL Phase 1 |
| Sprint: | HL & LD 6, HL & LD 7 |
| Story Points: | 1 |
| Description |
|
ContentTypeGraphQLDefinitionProvider should fail gracefully when mapper throws an exception and not fail the startup phase of the graphql-core module. 2020-06-24 12:39:32,396 ERROR info.magnolia.module.ModuleManagerImpl : Can't start module graphql-core info.magnolia.config.registry.Registry$NoSuchDefinitionException: character at info.magnolia.config.registry.AbstractRegistry.getProvider(AbstractRegistry.java:127) ~[magnolia-configuration-6.2.2-SNAPSHOT.jar:?] at info.magnolia.graphql.jcr.contenttype.mapper.JcrContentTypeModelMapper$JcrContentTypePropertyMapper.getReferencedContentTypeDefinition(JcrContentTypeModelMapper.java:250) ~[magnolia-graphql-jcr-1.0-SNAPSHOT.jar:?] at info.magnolia.graphql.jcr.contenttype.mapper.JcrContentTypeModelMapper$JcrContentTypePropertyMapper.resolveDataFetcher(JcrContentTypeModelMapper.java:215) ~[magnolia-graphql-jcr-1.0-SNAPSHOT.jar:?] at info.magnolia.graphql.jcr.contenttype.mapper.JcrContentTypeModelMapper$JcrContentTypePropertyMapper.map(JcrContentTypeModelMapper.java:170) ~[magnolia-graphql-jcr-1.0-SNAPSHOT.jar:?] at info.magnolia.graphql.jcr.contenttype.mapper.JcrContentTypeModelMapper$JcrContentTypePropertyMapper.access$000(JcrContentTypeModelMapper.java:157) ~[magnolia-graphql-jcr-1.0-SNAPSHOT.jar:?] at info.magnolia.graphql.jcr.contenttype.mapper.JcrContentTypeModelMapper.lambda$toFieldDefinitions$0(JcrContentTypeModelMapper.java:153) ~[magnolia-graphql-jcr-1.0-SNAPSHOT.jar:?] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_222] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0_222] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_222] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_222] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_222] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_222] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) ~[?:1.8.0_222] at info.magnolia.graphql.jcr.contenttype.mapper.JcrContentTypeModelMapper.toFieldDefinitions(JcrContentTypeModelMapper.java:154) ~[magnolia-graphql-jcr-1.0-SNAPSHOT.jar:?] at info.magnolia.graphql.jcr.contenttype.mapper.JcrContentTypeModelMapper.objectType(JcrContentTypeModelMapper.java:81) ~[magnolia-graphql-jcr-1.0-SNAPSHOT.jar:?] at info.magnolia.graphql.core.contenttype.registry.ContentTypeGraphQLDefinitionProvider.toObjectTypes(ContentTypeGraphQLDefinitionProvider.java:124) ~[magnolia-graphql-core-1.0-SNAPSHOT.jar:?] at info.magnolia.graphql.core.contenttype.registry.ContentTypeGraphQLDefinitionProvider.<init>(ContentTypeGraphQLDefinitionProvider.java:76) ~[magnolia-graphql-core-1.0-SNAPSHOT.jar:?] at info.magnolia.graphql.core.GraphQLCoreModule.lambda$start$0(GraphQLCoreModule.java:73) ~[magnolia-graphql-core-1.0-SNAPSHOT.jar:?] |