You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/03/02 21:35:00 UTC

[jira] [Work logged] (BEAM-10632) checkerframework @Nullable annotation causes NPE when used with Schema Inference

     [ https://issues.apache.org/jira/browse/BEAM-10632?focusedWorklogId=560147&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-560147 ]

ASF GitHub Bot logged work on BEAM-10632:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Mar/21 21:34
            Start Date: 02/Mar/21 21:34
    Worklog Time Spent: 10m 
      Work Description: TheNeuralBit commented on pull request #14107:
URL: https://github.com/apache/beam/pull/14107#issuecomment-789235077


   Run Java_Examples_Dataflow_Java11 PreCommit


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 560147)
    Time Spent: 1h  (was: 50m)

> checkerframework @Nullable annotation causes NPE when used with Schema Inference
> --------------------------------------------------------------------------------
>
>                 Key: BEAM-10632
>                 URL: https://issues.apache.org/jira/browse/BEAM-10632
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>            Reporter: Brian Hulette
>            Assignee: Kenneth Knowles
>            Priority: P2
>              Labels: Clarified, Done, stale-P2
>             Fix For: 2.26.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> {code:java}
> Caused by: java.lang.NullPointerException
> 	at sun.reflect.annotation.TypeAnnotationParser.mapTypeAnnotations(TypeAnnotationParser.java:356)
> 	at sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl.<init>(AnnotatedTypeFactory.java:139)
> 	at sun.reflect.annotation.AnnotatedTypeFactory.buildAnnotatedType(AnnotatedTypeFactory.java:65)
> 	at sun.reflect.annotation.TypeAnnotationParser.buildAnnotatedType(TypeAnnotationParser.java:79)
> 	at java.lang.reflect.Executable.getAnnotatedReturnType0(Executable.java:633)
> 	at java.lang.reflect.Method.getAnnotatedReturnType(Method.java:648)
> 	at org.apache.beam.sdk.schemas.FieldValueTypeInformation.hasNullableReturnType(FieldValueTypeInformation.java:173)
> 	at org.apache.beam.sdk.schemas.FieldValueTypeInformation.forGetter(FieldValueTypeInformation.java:132)
> 	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
> 	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
> 	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
> 	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
> 	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
> 	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
> 	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1383)
> 	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
> 	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
> 	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
> 	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> 	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
> 	at org.apache.beam.sdk.schemas.AutoValueSchema$AbstractGetterTypeSupplier.get(AutoValueSchema.java:62)
> 	at org.apache.beam.sdk.schemas.utils.StaticSchemaInference.schemaFromClass(StaticSchemaInference.java:88)
> 	at org.apache.beam.sdk.schemas.utils.JavaBeanUtils.schemaFromJavaBeanClass(JavaBeanUtils.java:65)
> 	at org.apache.beam.sdk.schemas.AutoValueSchema.schemaFor(AutoValueSchema.java:117)
> 	at org.apache.beam.sdk.schemas.annotations.DefaultSchema$DefaultSchemaProvider.schemaFor(DefaultSchema.java:130)
> {code}
> CC: [~kenn] [~reuvenlax]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)