From commits-return-37390-archive-asf-public=cust-asf.ponee.io@nifi.apache.org Fri Jan 26 19:26:06 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 22692180657 for ; Fri, 26 Jan 2018 19:26:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 10C76160C3E; Fri, 26 Jan 2018 18:26:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 32FB3160C2E for ; Fri, 26 Jan 2018 19:26:05 +0100 (CET) Received: (qmail 54712 invoked by uid 500); 26 Jan 2018 18:26:04 -0000 Mailing-List: contact commits-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list commits@nifi.apache.org Received: (qmail 54703 invoked by uid 99); 26 Jan 2018 18:26:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jan 2018 18:26:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id F0FCB1A1539 for ; Fri, 26 Jan 2018 18:26:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -102.311 X-Spam-Level: X-Spam-Status: No, score=-102.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 9VzLrbMCkaNw for ; Fri, 26 Jan 2018 18:26:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A17BE60D90 for ; Fri, 26 Jan 2018 18:26:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DFD5EE25EA for ; Fri, 26 Jan 2018 18:26:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4CAF62410E for ; Fri, 26 Jan 2018 18:26:00 +0000 (UTC) Date: Fri, 26 Jan 2018 18:26:00 +0000 (UTC) From: "Aldrin Piri (JIRA)" To: commits@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MINIFI-431) C2 - Exception while agent tries to pull the config MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MINIFI-431?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1634= 1391#comment-16341391 ]=20 Aldrin Piri commented on MINIFI-431: ------------------------------------ Trying to probe a bit further but it seems like a version of docker or anot= her plugin is=C2=A0the culprit.=C2=A0 Prior releases additionally now exhib= it failures, even 0.3.0 which was verified for MINIFI-416.=C2=A0=C2=A0 > C2 - Exception while agent tries to pull the config > --------------------------------------------------- > > Key: MINIFI-431 > URL: https://issues.apache.org/jira/browse/MINIFI-431 > Project: Apache NiFi MiNiFi > Issue Type: Bug > Components: Command and Control > Affects Versions: 0.4.0 > Reporter: Pierre Villard > Assignee: Aldrin Piri > Priority: Blocker > Fix For: 0.5.0 > > Attachments: bootstrap.conf, minifi-c2-context.xml > > > My setup: > MiNiFi Java agent - 0.4.0 > C2 server - 0.4.0 > On agent's side: > {code:java} > nifi.minifi.notifier.ingestors=3Dorg.apache.nifi.minifi.bootstrap.configu= ration.ingestors.PullHttpChangeIngestor > # Hostname on which to pull configurations from > nifi.minifi.notifier.ingestors.pull.http.hostname=3Dlocalhost > # Port on which to pull configurations from > nifi.minifi.notifier.ingestors.pull.http.port=3D10080 > # Path to pull configurations from > nifi.minifi.notifier.ingestors.pull.http.path=3D/c2/config > # Query string to pull configurations with > nifi.minifi.notifier.ingestors.pull.http.query=3Dclass=3Dhadoop-agents > # Period on which to pull configurations from, defaults to 5 minutes if c= ommented out > nifi.minifi.notifier.ingestors.pull.http.period.ms=3D60000 > {code} > =C2=A0 > I kept everything default on C2's side. I just put my workflow into: > {code:java} > ./files/hadoop-agents/config.text.yml.v1 > {code} > =C2=A0 > Here is the exception I get when the agent tries to pull the config: > {code:java} > Jan 24, 2018 8:45:03 PM com.sun.jersey.spi.spring.container.servlet.Sprin= gServlet getContext > INFO: Using default applicationContext > Jan 24, 2018 8:45:03 PM com.sun.jersey.spi.spring.container.SpringCompone= ntProviderFactory registerSpringBeans > INFO: Registering Spring bean, configService, of type org.apache.nifi.min= ifi.c2.service.ConfigService as a root resource class > Jan 24, 2018 8:45:03 PM com.sun.jersey.server.impl.application.WebApplica= tionImpl _initiate > INFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:= 25 AM' > 2018-01-24 20:45:04,397 DEBUG [qtp1018298342-12] o.a.n.m.c.s.a.C2Anonymou= sAuthenticationFilter Populated SecurityContextHolder with anonymous token:= 'org.apache.nifi.minifi.c2.security.authentication.C2AuthenticationToken@5= 2a3d06d: Principal: anonymous; Credentials: [PROTECTED]; Authenticated: tru= e; Details: null; Granted Authorities: ROLE_ANONYMOUS' > 2018-01-24 20:45:04,403 WARN [qtp1018298342-12] org.eclipse.jetty.server.= HttpChannel /c2/config > java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang= /String;)Ljavax/ws/rs/core/UriBuilder; > =C2=A0=C2=A0 =C2=A0at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java= :120) > =C2=A0=C2=A0 =C2=A0at com.sun.jersey.spi.container.servlet.ServletContain= er.service(ServletContainer.java:669) > =C2=A0=C2=A0 =C2=A0at javax.servlet.http.HttpServlet.service(HttpServlet.= java:790) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.servlet.ServletHolder.handle(Serv= letHolder.java:841) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.servlet.ServletHandler$CachedChai= n.doFilter(ServletHandler.java:1634) > =C2=A0=C2=A0 =C2=A0at org.springframework.security.web.FilterChainProxy$V= irtualFilterChain.doFilter(FilterChainProxy.java:316) > =C2=A0=C2=A0 =C2=A0at org.springframework.security.web.access.intercept.F= ilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126) > =C2=A0=C2=A0 =C2=A0at org.springframework.security.web.access.intercept.F= ilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90) > =C2=A0=C2=A0 =C2=A0at org.springframework.security.web.FilterChainProxy$V= irtualFilterChain.doFilter(FilterChainProxy.java:330) > =C2=A0=C2=A0 =C2=A0at org.springframework.security.web.session.SessionMan= agementFilter.doFilter(SessionManagementFilter.java:122) > =C2=A0=C2=A0 =C2=A0at org.springframework.security.web.FilterChainProxy$V= irtualFilterChain.doFilter(FilterChainProxy.java:330) > =C2=A0=C2=A0 =C2=A0at org.springframework.security.web.authentication.Ano= nymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) > =C2=A0=C2=A0 =C2=A0at org.springframework.security.web.FilterChainProxy$V= irtualFilterChain.doFilter(FilterChainProxy.java:330) > =C2=A0=C2=A0 =C2=A0at org.apache.nifi.minifi.c2.security.authentication.X= 509AuthenticationFilter.doFilter(X509AuthenticationFilter.java:43) > =C2=A0=C2=A0 =C2=A0at org.springframework.security.web.FilterChainProxy$V= irtualFilterChain.doFilter(FilterChainProxy.java:330) > =C2=A0=C2=A0 =C2=A0at org.springframework.security.web.FilterChainProxy.d= oFilterInternal(FilterChainProxy.java:213) > =C2=A0=C2=A0 =C2=A0at org.springframework.security.web.FilterChainProxy.d= oFilter(FilterChainProxy.java:176) > =C2=A0=C2=A0 =C2=A0at org.springframework.web.filter.DelegatingFilterProx= y.invokeDelegate(DelegatingFilterProxy.java:346) > =C2=A0=C2=A0 =C2=A0at org.springframework.web.filter.DelegatingFilterProx= y.doFilter(DelegatingFilterProxy.java:262) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.servlet.ServletHandler$CachedChai= n.doFilter(ServletHandler.java:1613) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.servlet.ServletHandler.doHandle(S= ervletHandler.java:541) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.handler.ScopedHandler.hand= le(ScopedHandler.java:143) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.security.SecurityHandler.handle(S= ecurityHandler.java:548) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.handler.HandlerWrapper.han= dle(HandlerWrapper.java:132) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.handler.ScopedHandler.next= Handle(ScopedHandler.java:190) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.session.SessionHandler.doH= andle(SessionHandler.java:1593) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.handler.ScopedHandler.next= Handle(ScopedHandler.java:188) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.handler.ContextHandler.doH= andle(ContextHandler.java:1239) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.handler.ScopedHandler.next= Scope(ScopedHandler.java:168) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.servlet.ServletHandler.doScope(Se= rvletHandler.java:481) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.session.SessionHandler.doS= cope(SessionHandler.java:1562) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.handler.ScopedHandler.next= Scope(ScopedHandler.java:166) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.handler.ContextHandler.doS= cope(ContextHandler.java:1141) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.handler.ScopedHandler.hand= le(ScopedHandler.java:141) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.handler.HandlerCollection.= handle(HandlerCollection.java:118) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.handler.HandlerWrapper.han= dle(HandlerWrapper.java:132) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.Server.handle(Server.java:= 564) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.HttpChannel.handle(HttpCha= nnel.java:320) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.server.HttpConnection.onFillable(= HttpConnection.java:251) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.io.AbstractConnection$ReadCallbac= k.succeeded(AbstractConnection.java:279) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.io.FillInterest.fillable(FillInte= rest.java:110) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelE= ndPoint.java:124) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.util.thread.Invocable.invokePrefe= rred(Invocable.java:122) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.util.thread.strategy.ExecutingExe= cutionStrategy.invoke(ExecutingExecutionStrategy.java:58) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.util.thread.strategy.ExecuteProdu= ceConsume.produceConsume(ExecuteProduceConsume.java:201) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.util.thread.strategy.ExecuteProdu= ceConsume.produce(ExecuteProduceConsume.java:97) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.util.thread.QueuedThreadPool.runJ= ob(QueuedThreadPool.java:672) > =C2=A0=C2=A0 =C2=A0at org.eclipse.jetty.util.thread.QueuedThreadPool$2.ru= n(QueuedThreadPool.java:590) > =C2=A0=C2=A0 =C2=A0at java.lang.Thread.run(Thread.java:745){code} > =C2=A0 > Did I miss something in the configuration? > Could it be a dependency collision somewhere in the last version with the= new dependencies to the registry? -- This message was sent by Atlassian JIRA (v7.6.3#76005)