Uploaded image for project: 'Magnolia GraphQL'
  1. Magnolia GraphQL
  2. MGNLGQL-29

Graphql-core module won't start if ContentTypeModelMapper resolution fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.0
    • None
    • None

    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:?]

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              jsimak Jaroslav Simak
              jsimak Jaroslav Simak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 0.25d
                    0.25d