You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/12/13 15:18:45 UTC

[GitHub] [camel-quarkus] aldettinger opened a new issue #3382: protobuf: Missing method "getName" when using contentTypeFormat=json in native mode

aldettinger opened a new issue #3382:
URL: https://github.com/apache/camel-quarkus/issues/3382


   When using contentTypeFormat=json in native mode, we end up with the exception below:
   
   ```
   : java.lang.RuntimeException: Generated message class "org.apache.camel.quarkus.component.protobuf.it.model.AddressBookProtos$Person$Builder" missing method "getName".
       at com.google.protobuf.GeneratedMessageV3.getMethodOrDie(GeneratedMessageV3.java:1847)
       at com.google.protobuf.GeneratedMessageV3.access$1000(GeneratedMessageV3.java:79)
       at com.google.protobuf.GeneratedMessageV3$FieldAccessorTable$SingularFieldAccessor$ReflectionInvoker.<init>(GeneratedMessageV3.java:2177)
       at com.google.protobuf.GeneratedMessageV3$FieldAccessorTable$SingularFieldAccessor.<init>(GeneratedMessageV3.java:2248)
       at com.google.protobuf.GeneratedMessageV3$FieldAccessorTable$SingularStringFieldAccessor.<init>(GeneratedMessageV3.java:2916)
       at com.google.protobuf.GeneratedMessageV3$FieldAccessorTable.ensureFieldAccessorsInitialized(GeneratedMessageV3.java:1977)
       at org.apache.camel.quarkus.component.protobuf.it.model.AddressBookProtos$Person.internalGetFieldAccessorTable(AddressBookProtos.java:262)
       at com.google.protobuf.GeneratedMessageV3.getDescriptorForType(GeneratedMessageV3.java:133)
       at com.google.protobuf.util.JsonFormat$PrinterImpl.print(JsonFormat.java:764)
       at com.google.protobuf.util.JsonFormat$Printer.appendTo(JsonFormat.java:372)
       at com.google.protobuf.util.JsonFormat$Printer.print(JsonFormat.java:382)
       at org.apache.camel.dataformat.protobuf.ProtobufDataFormat.marshal(ProtobufDataFormat.java:138)
       at org.apache.camel.support.processor.MarshalProcessor.process(MarshalProcessor.java:64)
       at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:469)
       at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:187)
       at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:64)
       at org.apache.camel.processor.Pipeline.process(Pipeline.java:184)
       at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:398)
       at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:96)
       at org.apache.camel.impl.engine.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:217)
       at org.apache.camel.impl.engine.SharedCamelInternalProcessor$1.process(SharedCamelInternalProcessor.java:111)
       at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83)
       at org.apache.camel.impl.engine.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:108)
       at org.apache.camel.support.cache.DefaultProducerCache.send(DefaultProducerCache.java:190)
       at org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:176)
       at org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:172)
       at org.apache.camel.impl.engine.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:413)
       at org.apache.camel.quarkus.component.protobuf.it.ProtobufResource.jsonProtobufMarshal(ProtobufResource.java:67)
       at org.apache.camel.quarkus.component.protobuf.it.ProtobufResource_ClientProxy.jsonProtobufMarshal(Unknown Source)
       at java.lang.reflect.Method.invoke(Method.java:566)
       at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:170)
       at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:130)
       at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:660)
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] aldettinger closed issue #3382: protobuf: Missing method "getName" when using contentTypeFormat=json in native mode

Posted by GitBox <gi...@apache.org>.
aldettinger closed issue #3382:
URL: https://github.com/apache/camel-quarkus/issues/3382


   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

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