{"action":"created","issue":{"url":"https://api.github.com/repos/takezoe/gitbucket/issues/733","labels_url":"https://api.github.com/repos/takezoe/gitbucket/issues/733/labels{/name}","comments_url":"https://api.github.com/repos/takezoe/gitbucket/issues/733/comments","events_url":"https://api.github.com/repos/takezoe/gitbucket/issues/733/events","html_url":"https://github.com/takezoe/gitbucket/issues/733","id":71823709,"number":733,"title":"NullPointerException on MainPage after PC-Crash","user":{"login":"dernerv","id":1451736,"avatar_url":"https://avatars.githubusercontent.com/u/1451736?v=3","gravatar_id":"","url":"https://api.github.com/users/dernerv","html_url":"https://github.com/dernerv","followers_url":"https://api.github.com/users/dernerv/followers","following_url":"https://api.github.com/users/dernerv/following{/other_user}","gists_url":"https://api.github.com/users/dernerv/gists{/gist_id}","starred_url":"https://api.github.com/users/dernerv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dernerv/subscriptions","organizations_url":"https://api.github.com/users/dernerv/orgs","repos_url":"https://api.github.com/users/dernerv/repos","events_url":"https://api.github.com/users/dernerv/events{/privacy}","received_events_url":"https://api.github.com/users/dernerv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-29T09:17:07Z","updated_at":"2015-04-29T16:40:54Z","closed_at":null,"body":"After a PC-Crash, i got the following NullPointerException on the MainPage after Login.\r\nRepository sites are working and access them via git is also still possible.\r\n\r\norg.h2.jdbc.JdbcSQLException: Eingabe/Ausgabe: \"java.io.IOException: java.lang.NullPointerException\"; \"lob: null table: 58 id: 70\"\r\nIO Exception: \"java.io.IOException: java.lang.NullPointerException\"; \"lob: null table: 58 id: 70\" [90031-180]\r\n\tat org.h2.message.DbException.getJdbcSQLException(DbException.java:345)\r\n\tat org.h2.message.DbException.get(DbException.java:168)\r\n\tat org.h2.message.DbException.convertIOException(DbException.java:330)\r\n\tat org.h2.value.ValueLobDb.getString(ValueLobDb.java:302)\r\n\tat org.h2.jdbc.JdbcResultSet.getString(JdbcResultSet.java:285)\r\n\tat com.mchange.v2.c3p0.impl.NewProxyResultSet.getString(NewProxyResultSet.java:934)\r\n\tat scala.slick.driver.JdbcTypesComponent$JdbcTypes$StringJdbcType.getValue(JdbcTypesComponent.scala:203)\r\n\tat scala.slick.driver.JdbcTypesComponent$JdbcTypes$StringJdbcType.getValue(JdbcTypesComponent.scala:200)\r\n\tat scala.slick.jdbc.SpecializedJdbcResultConverter$$anon$2.read(SpecializedJdbcResultConverters.scala:45)\r\n\tat scala.slick.jdbc.SpecializedJdbcResultConverter$$anon$2.read(SpecializedJdbcResultConverters.scala:43)\r\n\tat scala.slick.relational.ProductResultConverter.read(ResultConverter.scala:56)\r\n\tat scala.slick.relational.ProductResultConverter.read(ResultConverter.scala:46)\r\n\tat scala.slick.relational.TypeMappingResultConverter.read(ResultConverter.scala:125)\r\n\tat scala.slick.driver.JdbcInvokerComponent$QueryInvoker.extractValue(JdbcInvokerComponent.scala:42)\r\n\tat scala.slick.jdbc.StatementInvoker$$anon$1.extractValue(StatementInvoker.scala:63)\r\n\tat scala.slick.jdbc.PositionedResultIterator.fetchNext(PositionedResult.scala:176)\r\n\tat scala.slick.util.ReadAheadIterator$class.scala$slick$util$ReadAheadIterator$$update(ReadAheadIterator.scala:34)\r\n\tat scala.slick.util.ReadAheadIterator$class.hasNext(ReadAheadIterator.scala:40)\r\n\tat scala.slick.jdbc.PositionedResultIterator.hasNext(PositionedResult.scala:167)\r\n\tat scala.collection.Iterator$class.foreach(Iterator.scala:750)\r\n\tat scala.slick.jdbc.PositionedResultIterator.foreach(PositionedResult.scala:167)\r\n\tat scala.slick.jdbc.Invoker$class.foreach(Invoker.scala:65)\r\n\tat scala.slick.jdbc.StatementInvoker.foreach(StatementInvoker.scala:16)\r\n\tat scala.slick.jdbc.Invoker$class.build(Invoker.scala:47)\r\n\tat scala.slick.jdbc.StatementInvoker.build(StatementInvoker.scala:16)\r\n\tat scala.slick.jdbc.Invoker$class.list(Invoker.scala:39)\r\n\tat scala.slick.jdbc.StatementInvoker.list(StatementInvoker.scala:16)\r\n\tat gitbucket.core.service.ActivityService$class.getRecentActivitiesByOwners(ActivityService.scala:41)\r\n\tat gitbucket.core.controller.IndexController.getRecentActivitiesByOwners(IndexController.scala:14)\r\n\tat gitbucket.core.controller.IndexControllerBase$$anonfun$2.apply(IndexController.scala:42)\r\n\tat org.scalatra.ScalatraBase$class.org$scalatra$ScalatraBase$$liftAction(ScalatraBase.scala:270)\r\n\tat org.scalatra.ScalatraBase$$anonfun$invoke$1.apply(ScalatraBase.scala:265)\r\n\tat org.scalatra.ScalatraBase$$anonfun$invoke$1.apply(ScalatraBase.scala:265)\r\n\tat org.scalatra.ApiFormats$class.withRouteMultiParams(ApiFormats.scala:182)\r\n\tat gitbucket.core.controller.ControllerBase.withRouteMultiParams(ControllerBase.scala:27)\r\n\tat org.scalatra.ScalatraBase$class.invoke(ScalatraBase.scala:264)\r\n\tat gitbucket.core.controller.ControllerBase.org$scalatra$json$JsonSupport$$super$invoke(ControllerBase.scala:27)\r\n\tat org.scalatra.json.JsonSupport$$anonfun$invoke$1.apply(JsonSupport.scala:88)\r\n\tat org.scalatra.json.JsonSupport$$anonfun$invoke$1.apply(JsonSupport.scala:82)\r\n\tat org.scalatra.ApiFormats$class.withRouteMultiParams(ApiFormats.scala:182)\r\n\tat gitbucket.core.controller.ControllerBase.withRouteMultiParams(ControllerBase.scala:27)\r\n\tat org.scalatra.json.JsonSupport$class.invoke(JsonSupport.scala:82)\r\n\tat gitbucket.core.controller.ControllerBase.invoke(ControllerBase.scala:27)\r\n\tat org.scalatra.ScalatraBase$$anonfun$runRoutes$1$$anonfun$apply$8.apply(ScalatraBase.scala:240)\r\n\tat org.scalatra.ScalatraBase$$anonfun$runRoutes$1$$anonfun$apply$8.apply(ScalatraBase.scala:238)\r\n\tat scala.Option.flatMap(Option.scala:171)\r\n\tat org.scalatra.ScalatraBase$$anonfun$runRoutes$1.apply(ScalatraBase.scala:238)\r\n\tat org.scalatra.ScalatraBase$$anonfun$runRoutes$1.apply(ScalatraBase.scala:237)\r\n\tat scala.collection.immutable.Stream.flatMap(Stream.scala:493)\r\n\tat org.scalatra.ScalatraBase$class.runRoutes(ScalatraBase.scala:237)\r\n\tat gitbucket.core.controller.ControllerBase.runRoutes(ControllerBase.scala:27)\r\n\tat org.scalatra.ScalatraBase$class.runActions$1(ScalatraBase.scala:163)\r\n\tat org.scalatra.ScalatraBase$$anonfun$executeRoutes$1.apply$mcV$sp(ScalatraBase.scala:175)\r\n\tat org.scalatra.ScalatraBase$$anonfun$executeRoutes$1.apply(ScalatraBase.scala:175)\r\n\tat org.scalatra.ScalatraBase$$anonfun$executeRoutes$1.apply(ScalatraBase.scala:175)\r\n\tat org.scalatra.ScalatraBase$class.org$scalatra$ScalatraBase$$cradleHalt(ScalatraBase.scala:193)\r\n\tat org.scalatra.ScalatraBase$class.executeRoutes(ScalatraBase.scala:175)\r\n\tat gitbucket.core.controller.ControllerBase.executeRoutes(ControllerBase.scala:27)\r\n\tat org.scalatra.ScalatraBase$$anonfun$handle$1.apply$mcV$sp(ScalatraBase.scala:113)\r\n\tat org.scalatra.ScalatraBase$$anonfun$handle$1.apply(ScalatraBase.scala:113)\r\n\tat org.scalatra.ScalatraBase$$anonfun$handle$1.apply(ScalatraBase.scala:113)\r\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)\r\n\tat org.scalatra.DynamicScope$class.withResponse(DynamicScope.scala:80)\r\n\tat gitbucket.core.controller.ControllerBase.withResponse(ControllerBase.scala:27)\r\n\tat org.scalatra.DynamicScope$$anonfun$withRequestResponse$1.apply(DynamicScope.scala:60)\r\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)\r\n\tat org.scalatra.DynamicScope$class.withRequest(DynamicScope.scala:71)\r\n\tat gitbucket.core.controller.ControllerBase.withRequest(ControllerBase.scala:27)\r\n\tat org.scalatra.DynamicScope$class.withRequestResponse(DynamicScope.scala:59)\r\n\tat gitbucket.core.controller.ControllerBase.withRequestResponse(ControllerBase.scala:27)\r\n\tat org.scalatra.ScalatraBase$class.handle(ScalatraBase.scala:111)\r\n\tat gitbucket.core.controller.ControllerBase.org$scalatra$servlet$ServletBase$$super$handle(ControllerBase.scala:27)\r\n\tat org.scalatra.servlet.ServletBase$class.handle(ServletBase.scala:43)\r\n\tat gitbucket.core.controller.ControllerBase.org$scalatra$FlashMapSupport$$super$handle(ControllerBase.scala:27)\r\n\tat org.scalatra.FlashMapSupport$$anonfun$handle$1.apply$mcV$sp(flashMap.scala:162)\r\n\tat org.scalatra.FlashMapSupport$$anonfun$handle$1.apply(flashMap.scala:136)\r\n\tat org.scalatra.FlashMapSupport$$anonfun$handle$1.apply(flashMap.scala:136)\r\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)\r\n\tat org.scalatra.DynamicScope$class.withRequest(DynamicScope.scala:71)\r\n\tat gitbucket.core.controller.ControllerBase.withRequest(ControllerBase.scala:27)\r\n\tat org.scalatra.FlashMapSupport$class.handle(flashMap.scala:136)\r\n\tat gitbucket.core.controller.ControllerBase.handle(ControllerBase.scala:27)\r\n\tat org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply$mcV$sp(ScalatraFilter.scala:33)\r\n\tat org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply(ScalatraFilter.scala:33)\r\n\tat org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply(ScalatraFilter.scala:33)\r\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)\r\n\tat org.scalatra.ScalatraFilter$class.doFilter(ScalatraFilter.scala:32)\r\n\tat gitbucket.core.controller.ControllerBase.doFilter(ControllerBase.scala:64)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1484)\r\n\tat org.scalatra.ScalatraFilter$$anonfun$1.apply$mcV$sp(ScalatraFilter.scala:71)\r\n\tat org.scalatra.ScalatraFilter$$anonfun$1.apply(ScalatraFilter.scala:71)\r\n\tat org.scalatra.ScalatraFilter$$anonfun$1.apply(ScalatraFilter.scala:71)\r\n\tat org.scalatra.ScalatraBase$$anonfun$2$$anonfun$apply$4.apply(ScalatraBase.scala:166)\r\n\tat scala.Option.getOrElse(Option.scala:121)\r\n\tat org.scalatra.ScalatraBase$$anonfun$2.apply(ScalatraBase.scala:166)\r\n\tat scala.Option.getOrElse(Option.scala:121)\r\n\tat org.scalatra.ScalatraBase$class.runActions$1(ScalatraBase.scala:165)\r\n\tat org.scalatra.ScalatraBase$$anonfun$executeRoutes$1.apply$mcV$sp(ScalatraBase.scala:175)\r\n\tat org.scalatra.ScalatraBase$$anonfun$executeRoutes$1.apply(ScalatraBase.scala:175)\r\n\tat org.scalatra.ScalatraBase$$anonfun$executeRoutes$1.apply(ScalatraBase.scala:175)\r\n\tat org.scalatra.ScalatraBase$class.org$scalatra$ScalatraBase$$cradleHalt(ScalatraBase.scala:193)\r\n\tat org.scalatra.ScalatraBase$class.executeRoutes(ScalatraBase.scala:175)\r\n\tat gitbucket.core.controller.ControllerBase.executeRoutes(ControllerBase.scala:27)\r\n\tat org.scalatra.ScalatraBase$$anonfun$handle$1.apply$mcV$sp(ScalatraBase.scala:113)\r\n\tat org.scalatra.ScalatraBase$$anonfun$handle$1.apply(ScalatraBase.scala:113)\r\n\tat org.scalatra.ScalatraBase$$anonfun$handle$1.apply(ScalatraBase.scala:113)\r\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)\r\n\tat org.scalatra.DynamicScope$class.withResponse(DynamicScope.scala:80)\r\n\tat gitbucket.core.controller.ControllerBase.withResponse(ControllerBase.scala:27)\r\n\tat org.scalatra.DynamicScope$$anonfun$withRequestResponse$1.apply(DynamicScope.scala:60)\r\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)\r\n\tat org.scalatra.DynamicScope$class.withRequest(DynamicScope.scala:71)\r\n\tat gitbucket.core.controller.ControllerBase.withRequest(ControllerBase.scala:27)\r\n\tat org.scalatra.DynamicScope$class.withRequestResponse(DynamicScope.scala:59)\r\n\tat gitbucket.core.controller.ControllerBase.withRequestResponse(ControllerBase.scala:27)\r\n\tat org.scalatra.ScalatraBase$class.handle(ScalatraBase.scala:111)\r\n\tat gitbucket.core.controller.ControllerBase.org$scalatra$servlet$ServletBase$$super$handle(ControllerBase.scala:27)\r\n\tat org.scalatra.servlet.ServletBase$class.handle(ServletBase.scala:43)\r\n\tat gitbucket.core.controller.ControllerBase.org$scalatra$FlashMapSupport$$super$handle(ControllerBase.scala:27)\r\n\tat org.scalatra.FlashMapSupport$$anonfun$handle$1.apply$mcV$sp(flashMap.scala:162)\r\n\tat org.scalatra.FlashMapSupport$$anonfun$handle$1.apply(flashMap.scala:136)\r\n\tat org.scalatra.FlashMapSupport$$anonfun$handle$1.apply(flashMap.scala:136)\r\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)\r\n\tat org.scalatra.DynamicScope$class.withRequest(DynamicScope.scala:71)\r\n\tat gitbucket.core.controller.ControllerBase.withRequest(ControllerBase.scala:27)\r\n\tat org.scalatra.FlashMapSupport$class.handle(flashMap.scala:136)\r\n\tat gitbucket.core.controller.ControllerBase.handle(ControllerBase.scala:27)\r\n\tat org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply$mcV$sp(ScalatraFilter.scala:33)\r\n\tat org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply(ScalatraFilter.scala:33)\r\n\tat org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply(ScalatraFilter.scala:33)\r\n\tat scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)\r\n\tat org.scalatra.ScalatraFilter$class.doFilter(ScalatraFilter.scala:32)\r\n\tat gitbucket.core.controller.ControllerBase.doFilter(ControllerBase.scala:64)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1484)\r\n\tat gitbucket.core.servlet.TransactionFilter$$anonfun$doFilter$1.apply(TransactionFilter.scala:30)\r\n\tat gitbucket.core.servlet.TransactionFilter$$anonfun$doFilter$1.apply(TransactionFilter.scala:27)\r\n\tat scala.slick.backend.DatabaseComponent$DatabaseDef$$anonfun$withTransaction$1$$anonfun$apply$1.apply(DatabaseComponent.scala:54)\r\n\tat scala.slick.jdbc.JdbcBackend$BaseSession.withTransaction(JdbcBackend.scala:426)\r\n\tat scala.slick.backend.DatabaseComponent$DatabaseDef$$anonfun$withTransaction$1.apply(DatabaseComponent.scala:54)\r\n\tat scala.slick.backend.DatabaseComponent$DatabaseDef$$anonfun$withTransaction$1.apply(DatabaseComponent.scala:54)\r\n\tat scala.slick.backend.DatabaseComponent$DatabaseDef$class.withSession(DatabaseComponent.scala:34)\r\n\tat scala.slick.jdbc.JdbcBackend$DatabaseFactoryDef$$anon$3.withSession(JdbcBackend.scala:46)\r\n\tat scala.slick.backend.DatabaseComponent$DatabaseDef$class.withTransaction(DatabaseComponent.scala:54)\r\n\tat scala.slick.jdbc.JdbcBackend$DatabaseFactoryDef$$anon$3.withTransaction(JdbcBackend.scala:46)\r\n\tat gitbucket.core.servlet.TransactionFilter.doFilter(TransactionFilter.scala:27)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:370)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)\r\n\tat org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)\r\n\tat org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)\r\n\tat org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)\r\n\tat java.lang.Thread.run(Unknown Source)\r\nCaused by: java.io.IOException: java.lang.NullPointerException\r\n\tat org.h2.message.DbException.convertToIOException(DbException.java:364)\r\n\tat org.h2.util.IOUtils.copyAndCloseInput(IOUtils.java:213)\r\n\tat org.h2.util.IOUtils.readStringAndClose(IOUtils.java:307)\r\n\tat org.h2.value.ValueLobDb.getString(ValueLobDb.java:292)\r\n\t... 164 more\r\nCaused by: java.lang.NullPointerException\r\n\tat org.h2.mvstore.StreamStore$Stream.nextBuffer(StreamStore.java:453)\r\n\tat org.h2.mvstore.StreamStore$Stream.read(StreamStore.java:414)\r\n\tat sun.nio.cs.StreamDecoder.readBytes(Unknown Source)\r\n\tat sun.nio.cs.StreamDecoder.implRead(Unknown Source)\r\n\tat sun.nio.cs.StreamDecoder.read(Unknown Source)\r\n\tat java.io.InputStreamReader.read(Unknown Source)\r\n\tat java.io.BufferedReader.fill(Unknown Source)\r\n\tat java.io.BufferedReader.read1(Unknown Source)\r\n\tat java.io.BufferedReader.read(Unknown Source)\r\n\tat org.h2.util.IOUtils.copyAndCloseInput(IOUtils.java:200)\r\n\t... 166 more"},"comment":{"url":"https://api.github.com/repos/takezoe/gitbucket/issues/comments/97497166","html_url":"https://github.com/takezoe/gitbucket/issues/733#issuecomment-97497166","issue_url":"https://api.github.com/repos/takezoe/gitbucket/issues/733","id":97497166,"user":{"login":"takezoe","id":1094760,"avatar_url":"https://avatars.githubusercontent.com/u/1094760?v=3","gravatar_id":"","url":"https://api.github.com/users/takezoe","html_url":"https://github.com/takezoe","followers_url":"https://api.github.com/users/takezoe/followers","following_url":"https://api.github.com/users/takezoe/following{/other_user}","gists_url":"https://api.github.com/users/takezoe/gists{/gist_id}","starred_url":"https://api.github.com/users/takezoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takezoe/subscriptions","organizations_url":"https://api.github.com/users/takezoe/orgs","repos_url":"https://api.github.com/users/takezoe/repos","events_url":"https://api.github.com/users/takezoe/events{/privacy}","received_events_url":"https://api.github.com/users/takezoe/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T16:40:53Z","updated_at":"2015-04-29T16:40:53Z","body":"It seems H2 data is broken. The recover tool might help you.\r\nhttp://www.h2database.com/html/advanced.html#using_recover_tool"}}