[ 
https://issues.apache.org/jira/browse/NIFI-9530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17468693#comment-17468693
 ] 

David Handermann commented on NIFI-9530:
----------------------------------------

Thanks for reporting this issue [~comtef].  It appears that the problem was 
introduced in NiFi 1.15.2 as a result of bringing in some changes for 
NIFI-9491, which excluded commons-logging in many places.  Those changes ended 
up bringing in an unintentional dependency on 
google-cloud-pubsublite-1.3.0.jar, which referenced newer versions of the 
underlying GRPC libraries, causing the runtime class conflict.  This should be 
working as expected on the current main branch with additional changes part of 
NIFI-9304, so adjustments to the patch release version still need to be 
evaluated.

> ConsumeGCPubSub not working in Nifi 1.15.2
> ------------------------------------------
>
>                 Key: NIFI-9530
>                 URL: https://issues.apache.org/jira/browse/NIFI-9530
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.15.2
>            Reporter: Fabien Comte
>            Priority: Blocker
>              Labels: GCP, pubsub
>
> After upgrading to Nifi 1.15.2 processor ConsumeGCPubSub fails with the 
> following error :
> {noformat}
> ConsumeGCPubSub[id=25584328-017e-1000-1436-ae76db147150] Failed to properly 
> initialize Processor. If still scheduled to run, NiFi will attempt to 
> initialize and run the Processor again after the 'Administrative Yield 
> Duration' has elapsed. Failure is due to java.lang.NoClassDefFoundError: 
> io/grpc/internal/ManagedChannelImplBuilder$ChannelBuilderDefaultPortProvider: 
> java.lang.ClassNotFoundException: 
> io.grpc.internal.ManagedChannelImplBuilder$ChannelBuilderDefaultPortProvider
> ↳ causes: java.lang.NoClassDefFoundError: 
> io/grpc/internal/ManagedChannelImplBuilder$ChannelBuilderDefaultPortProvider{noformat}
> Processor was working successfully in previous versions (1.13.2 / 1.14.0 / 
> 1.15.0 / 1.15.1)
> Steps to reproduce :
>  * Launch Nifi 1.15.2
>  ** Used docker : docker run --name nifi -p 8443:8443 -d apache/nifi:1.15.2
>  * Connect to Nifi instance
>  * Create a processor ConsumeGCPubSub and configure it with minimal settings
>  ** Credentials Provider Service
>  ** Project and suscription
>  * Link it to another created processor (used DebugFlow)
>  * Start processors



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to