chukwa-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillermo Pérez <bi...@tuenti.com>
Subject HICC NullPointerException when generating workspace views
Date Thu, 18 Feb 2010 16:56:06 GMT
I'm having a NullPointerException on Hicc. When I visit the place with
a browser, all requests related with the workspace show the same
error.

Any clue on this? I have created the mysql database and configured it
in the conf/jdbc.conf and followed the instructions of the
documentation.

Thanks in advance!


# ./bin/hicc.sh start
2010-02-18 17:43:20.317::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2010-02-18 17:43:20.400::INFO:  jetty-6.1.11
2010-02-18 17:43:20.702::INFO:  Extract
jar:file:/root/stats/build/chukwa-0.3.0/webapps/hicc.war!/ to
/tmp/Jetty_0_0_0_0_8080_hicc.war__hicc__81o0nl/webapp
Feb 18, 2010 5:43:21 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  org.apache.hadoop.chukwa.rest.actions
Feb 18, 2010 5:43:21 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Root resource classes found:
  class org.apache.hadoop.chukwa.rest.actions.ClusterHadoopRpcResource
  class org.apache.hadoop.chukwa.rest.actions.ClusterSystemMetricsResource
  class org.apache.hadoop.chukwa.rest.actions.DfsDataNodeResource
  class org.apache.hadoop.chukwa.rest.actions.SystemMetricsResource
  class org.apache.hadoop.chukwa.rest.actions.HadoopRpcResource
  class org.apache.hadoop.chukwa.rest.actions.MrJobResource
  class org.apache.hadoop.chukwa.rest.actions.ClientTraceResource
  class org.apache.hadoop.chukwa.rest.actions.MrJobConfResource
  class org.apache.hadoop.chukwa.rest.actions.DfsFsNameSystemResource
  class org.apache.hadoop.chukwa.rest.actions.HadoopJvmResource
  class org.apache.hadoop.chukwa.rest.actions.ClusterDiskResource
  class org.apache.hadoop.chukwa.rest.actions.DfsNameNodeResource
  class org.apache.hadoop.chukwa.rest.actions.DfsThroughputResource
  class org.apache.hadoop.chukwa.rest.actions.MrTaskResource
  class org.apache.hadoop.chukwa.rest.actions.DiskResource
Feb 18, 2010 5:43:21 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Provider classes found:
Feb 18, 2010 5:43:21 PM
com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.0-ea
04/30/2009 06:59 PM'
2010-02-18 17:43:21.06::INFO:  Extract
jar:file:/root/stats/build/chukwa-0.3.0/webapps/chukwa.war!/ to
/tmp/Jetty_0_0_0_0_8080_chukwa.war__chukwa__rb4zih/webapp
Feb 18, 2010 5:43:22 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  org.apache.hadoop.chukwa.rest.actions
Feb 18, 2010 5:43:22 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Root resource classes found:
  class org.apache.hadoop.chukwa.rest.actions.MrJobResource
  class org.apache.hadoop.chukwa.rest.actions.DfsFsNameSystemResource
  class org.apache.hadoop.chukwa.rest.actions.DfsNameNodeResource
  class org.apache.hadoop.chukwa.rest.actions.DiskResource
  class org.apache.hadoop.chukwa.rest.actions.ClusterHadoopRpcResource
  class org.apache.hadoop.chukwa.rest.actions.ClientTraceResource
  class org.apache.hadoop.chukwa.rest.actions.MrTaskResource
  class org.apache.hadoop.chukwa.rest.actions.DfsDataNodeResource
  class org.apache.hadoop.chukwa.rest.actions.DfsThroughputResource
  class org.apache.hadoop.chukwa.rest.actions.MrJobConfResource
  class org.apache.hadoop.chukwa.rest.actions.HadoopJvmResource
  class org.apache.hadoop.chukwa.rest.actions.HadoopRpcResource
  class org.apache.hadoop.chukwa.rest.actions.SystemMetricsResource
  class org.apache.hadoop.chukwa.rest.actions.ClusterDiskResource
  class org.apache.hadoop.chukwa.rest.actions.ClusterSystemMetricsResource
Feb 18, 2010 5:43:22 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Provider classes found:
Feb 18, 2010 5:43:22 PM
com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.0-ea
04/30/2009 06:59 PM'
2010-02-18 17:43:23.087::INFO:  Opened /tmp/chukwa/log/2010_02_18.request.log
2010-02-18 17:43:23.098::INFO:  Started SelectChannelConnector@0.0.0.0:8080
2010-02-18 17:44:49.798::WARN:  /hicc/Workspace
java.lang.NullPointerException
	at org.apache.hadoop.chukwa.hicc.Workspace.genViewCache(Workspace.java:226)
	at org.apache.hadoop.chukwa.hicc.Workspace.getViewsList(Workspace.java:157)
	at org.apache.hadoop.chukwa.hicc.Workspace.doGet(Workspace.java:45)
	at org.apache.hadoop.chukwa.hicc.Workspace.doPost(Workspace.java:69)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
2010-02-18 17:44:49.854::WARN:  /hicc/Workspace
java.lang.NullPointerException
	at org.apache.hadoop.chukwa.hicc.Workspace.genViewCache(Workspace.java:226)
	at org.apache.hadoop.chukwa.hicc.Workspace.getView(Workspace.java:167)
	at org.apache.hadoop.chukwa.hicc.Workspace.doGet(Workspace.java:48)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
java.io.FileNotFoundException: null/views/workspace_view_list.cache
(No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:137)
	at java.io.FileReader.<init>(FileReader.java:72)
	at org.apache.hadoop.chukwa.hicc.Views.getContents(Views.java:38)
	at org.apache.hadoop.chukwa.hicc.Views.<init>(Views.java:62)
	at org.apache.hadoop.chukwa.hicc.ViewsTag.<init>(ViewsTag.java:32)
	at org.apache.jsp.jsp.workspace.manage_005fview_jsp._jspx_meth_my_findViews_0(org.apache.jsp.jsp.workspace.manage_005fview_jsp:135)
	at org.apache.jsp.jsp.workspace.manage_005fview_jsp._jspService(org.apache.jsp.jsp.workspace.manage_005fview_jsp:114)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
2010-02-18 17:44:50.388::WARN:  /hicc/jsp/workspace/manage_view.jsp
java.lang.NullPointerException
	at org.apache.hadoop.chukwa.hicc.Views.length(Views.java:130)
	at org.apache.hadoop.chukwa.hicc.ViewsTag.doTag(ViewsTag.java:35)
	at org.apache.jsp.jsp.workspace.manage_005fview_jsp._jspx_meth_my_findViews_0(org.apache.jsp.jsp.workspace.manage_005fview_jsp:141)
	at org.apache.jsp.jsp.workspace.manage_005fview_jsp._jspService(org.apache.jsp.jsp.workspace.manage_005fview_jsp:114)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)


-- 
Guille -ℬḭṩḩø- <bisho@tuenti.com>
:wq

Mime
View raw message