nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Lim <Keith....@ds-iq.com>
Subject RE: Starting Nifi encounters "unexpected error"
Date Wed, 04 May 2016 20:51:46 GMT
Thanks Matt, the below is when I browsed to loca nifi url.  In the last working session of
nifi, I was configuring an ExecuteSql processor before it blue-d screen.  Could it have got
into a bad state?   How do I get out of it?

Thanks,
Keith


This is from nifi-app.log
2016-05-04 13:43:13,198 INFO [NiFi Web Server-69] c.s.j.s.i.application.WebApplicationImpl
Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
2016-05-04 13:43:13,839 WARN [NiFi Web Server-22] org.eclipse.jetty.servlet.ServletHandler
/nifi-api/controller/authorities
java.lang.NullPointerException: null
                at org.apache.nifi.web.security.anonymous.NiFiAnonymousUserFilter.createAuthentication(NiFiAnonymousUserFilter.java:58)
~[nifi-web-security-0.6.0.jar:0.6.0]
                at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:97)
~[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
                at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
~[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
                at org.apache.nifi.web.security.node.NodeAuthorizedUserFilter.doFilter(NodeAuthorizedUserFilter.java:112)
~[nifi-web-security-0.6.0.jar:0.6.0]
                at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
~[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
                at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
~[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
                at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
~[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
                at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
                at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
~[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.apache.nifi.web.filter.ThreadLocalFilter.doFilter(ThreadLocalFilter.java:38)
~[classes/:na]
                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
~[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.apache.nifi.web.filter.TimerFilter.doFilter(TimerFilter.java:52) ~[classes/:na]
                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
~[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
[jetty-security-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.Server.handle(Server.java:499) [jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) [jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
[jetty-io-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
                at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]
2016-05-04 13:43:13,839 WARN [NiFi Web Server-21] org.eclipse.jetty.servlet.ServletHandler
/nifi-api/controller/identity
java.lang.NullPointerException: null
                at org.apache.nifi.web.security.anonymous.NiFiAnonymousUserFilter.createAuthentication(NiFiAnonymousUserFilter.java:58)
~[nifi-web-security-0.6.0.jar:0.6.0]
                at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:97)
~[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
                at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
~[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
                at org.apache.nifi.web.security.node.NodeAuthorizedUserFilter.doFilter(NodeAuthorizedUserFilter.java:112)
~[nifi-web-security-0.6.0.jar:0.6.0]
                at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
~[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
                at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
~[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
                at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
~[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
                at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
                at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
~[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.apache.nifi.web.filter.ThreadLocalFilter.doFilter(ThreadLocalFilter.java:38)
~[classes/:na]
                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
~[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.apache.nifi.web.filter.TimerFilter.doFilter(TimerFilter.java:52) ~[classes/:na]
                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
~[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
[jetty-security-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.Server.handle(Server.java:499) [jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) [jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
[jetty-io-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
                at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
                at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]

This is from nifi-user.log
2016-05-04 13:43:13,774 INFO [NiFi Web Server-69] org.apache.nifi.web.filter.RequestLogger
Attempting request for (<no user found>) POST http://localhost:8080/nifi-api/access/kerberos
(source ip: 127.0.0.1)
2016-05-04 13:43:13,819 INFO [NiFi Web Server-69] o.a.n.w.a.c.IllegalStateExceptionMapper
java.lang.IllegalStateException: Access tokens are only issued over HTTPS.. Returning Conflict
response.


From: Matt Gilman [mailto:matt.c.gilman@gmail.com]
Sent: Wednesday, May 4, 2016 1:22 PM
To: users@nifi.apache.org
Subject: Re: Starting Nifi encounters "unexpected error"

Keith,

Were there any errors in any of the log's (nifi-app.log or nifi-user.log) before shutdown
or during start up. I'm not 100% sure what version your running but it appears it's having
trouble loading the Anonymous user. This user is created during startup, stored in the users
database, and should always be available. Any additional errors or details would be helpful.
Thanks.

Matt

On Wed, May 4, 2016 at 4:05 PM, Keith Lim <Keith.Lim@ds-iq.com<mailto:Keith.Lim@ds-iq.com>>
wrote:
My windows machine blue-d screen and after reboot I restarted nifi only to get the following
error when I browse to nifi (http://localhost:8080/nifi/)
I can do the long route or cleaning up the nifi folder and rebuilding it, but want to know
if there is a surgical way to remove this issue.

Thanks,
Keith

An unexpected error has occurred
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 500 Server Error</title> </head> <body><h2>HTTP
ERROR 500</h2> <p>Problem accessing /nifi-api/controller/authorities. Reason:
<pre> Server Error</pre></p><h3>Caused by:</h3><pre>java.lang.NullPointerException
at org.apache.nifi.web.security.anonymous.NiFiAnonymousUserFilter.createAuthentication(NiFiAnonymousUserFilter.java:58)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:97)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at org.apache.nifi.web.security.node.NodeAuthorizedUserFilter.doFilter(NodeAuthorizedUserFilter.java:112)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176) at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.apache.nifi.web.filter.ThreadLocalFilter.doFilter(ThreadLocalFilter.java:38) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.apache.nifi.web.filter.TimerFilter.doFilter(TimerFilter.java:52) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:745)
</pre> <hr><i><small>Powered by Jetty://</small></i><hr/>
</body> </html>



Mime
View raw message