You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
io.grpc.MethodDescriptor.getSchemaDescriptor() is nullable and not of a guaranteed type. It would be nice to rid the NPE here for a debug log message.
java.lang.NullPointerException: null
at com.linecorp.armeria.server.grpc.GrpcDocServicePlugin.lambda$generateSpecification$1(GrpcDocServicePlugin.java:154) ~[armeria-grpc-0.83.0.jar:?]
at java.util.HashMap.computeIfAbsent(HashMap.java:1127) ~[?:1.8.0_181]
at com.linecorp.armeria.server.grpc.GrpcDocServicePlugin.generateSpecification(GrpcDocServicePlugin.java:150) ~[armeria-grpc-0.83.0.jar:?]
at com.linecorp.armeria.server.docs.DocService.lambda$generate$3(DocService.java:173) ~[armeria-0.83.0.jar:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_181]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0_181]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_181]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_181]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_181]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_181]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0_181]
at com.linecorp.armeria.server.docs.DocService.generate(DocService.java:175) ~[armeria-0.83.0.jar:?]
at com.linecorp.armeria.server.docs.DocService.access$100(DocService.java:80) ~[armeria-0.83.0.jar:?]
at com.linecorp.armeria.server.docs.DocService$1.serverStarting(DocService.java:159) ~[armeria-0.83.0.jar:?]
at com.linecorp.armeria.server.Server$ServerStartStopSupport.notifyStarting(Server.java:473) ~[armeria-0.83.0.jar:?]
at com.linecorp.armeria.server.Server$ServerStartStopSupport.notifyStarting(Server.java:266) ~[armeria-0.83.0.jar:?]
at com.linecorp.armeria.common.util.StartStopSupport.notifyListeners(StartStopSupport.java:342) ~[armeria-0.83.0.jar:?]
at com.linecorp.armeria.common.util.StartStopSupport.lambda$start$3(StartStopSupport.java:171) ~[armeria-0.83.0.jar:?]
at io.netty.util.concurrent.GlobalEventExecutor$TaskRunner.run(GlobalEventExecutor.java:248) [netty-common-4.1.34.Final.jar:4.1.34.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.34.Final.jar:4.1.34.Final]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
The text was updated successfully, but these errors were encountered:
Motivation:
While `GrpcDocServicePlugin` scans the gRPC services to retrieve their
`ServiceDescriptor`s, a `NullPointerException` can occurs in some
services.
Modifications:
- Skip the service whose `getServiceDescriptor()` and
`getSchemaDesciptor()` return `null`.
- Skip the service whose `getSchemaDescriptor()` returns a descriptor
that's not a `ProtoFileDescriptorSupplier`.
Result:
- No more NPE
- Fixesline#1705
Motivation:
While `GrpcDocServicePlugin` scans the gRPC services to retrieve their
`ServiceDescriptor`s, a `NullPointerException` can occur in some
services.
Modifications:
- Skip the service whose `getServiceDescriptor()` and
`getSchemaDesciptor()` return `null`.
- Skip the service whose `getSchemaDescriptor()` returns a descriptor
that's not a `ProtoFileDescriptorSupplier`.
Result:
- No more NPE
- Fixes#1705
Motivation:
While `GrpcDocServicePlugin` scans the gRPC services to retrieve their
`ServiceDescriptor`s, a `NullPointerException` can occur in some
services.
Modifications:
- Skip the service whose `getServiceDescriptor()` and
`getSchemaDesciptor()` return `null`.
- Skip the service whose `getSchemaDescriptor()` returns a descriptor
that's not a `ProtoFileDescriptorSupplier`.
Result:
- No more NPE
- Fixesline#1705
io.grpc.MethodDescriptor.getSchemaDescriptor() is nullable and not of a guaranteed type. It would be nice to rid the NPE here for a debug log message.
The text was updated successfully, but these errors were encountered: