java.lang.NullPointerException

XWiki.org JIRA | Evelina Petronela Vrabie | 9 years ago
  1. 0

    After starting jetty server in the console and accessing the xwiki in the browser, an error appears in the console: [INFO] Starting jetty 6.1H.4-beta ... 2007-07-26 22:20:24.519::INFO: jetty-6.1H.4-beta 2007-07-26 22:20:24.945::INFO: No Transaction manager found - if your webapp requires one, please configure one. 2007-07-26 22:20:27.692::INFO: Started SelectChannelConnector@0.0.0.0:8080 [INFO] Started Jetty Server 22:21:07,483 WARN btpool0-1 http://localhost:8080/xwiki/bin/view/Main/WebHome XWiki:getVersion:738 - Failed to retrieve XWiki's version from [/WEB-INF/version.properties], using the [version] property. java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) at com.xpn.xwiki.XWikiConfig.loadConfig(XWikiConfig.java:56) at com.xpn.xwiki.XWikiConfig.<init>(XWikiConfig.java:51) at com.xpn.xwiki.XWiki.getVersion(XWiki.java:734) at com.xpn.xwiki.api.XWiki.getVersion(XWiki.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:137) at org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:350) at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:180) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1238) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1199) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:490) at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1238) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1199) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:490) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1238) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1199) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:94) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:48) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:154) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) 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$CachedChain.doFilter(ServletHandler.java:1098) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) 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:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:406) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:295) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) 22:21:38,814 WARN btpool0-1 http://localhost:8080/xwiki/bin/import/XWiki/Import?editor=import&space=XWiki InterWiki:<init>:73 - Unable to read conf/intermap.txt 10:21:40.587 WARN - Invalid feed URL:

    XWiki.org JIRA | 9 years ago | Evelina Petronela Vrabie
    java.lang.NullPointerException
  2. 0

    openRawResource returns null

    GitHub | 3 years ago | RichardGuion
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Reading .properties file in java

    Stack Overflow | 3 years ago | Ashish Agarwal
    java.lang.NullPointerException
  5. 0

    Static initialization of properties files fails with ant build

    Stack Overflow | 5 years ago | Tarun
    java.lang.NullPointerException

  1. nasimk 5 times, last 3 months ago
  2. Justin 8 times, last 5 months ago
  3. Andreas Häber 1 times, last 5 months ago
15 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at java.util.Properties$LineReader.readLine()
  2. Java RT
    Properties.load
    1. java.util.Properties$LineReader.readLine(Properties.java:418)
    2. java.util.Properties.load0(Properties.java:337)
    3. java.util.Properties.load(Properties.java:325)
    3 frames
  3. com.xpn.xwiki
    XWiki.getVersion
    1. com.xpn.xwiki.XWikiConfig.loadConfig(XWikiConfig.java:56)
    2. com.xpn.xwiki.XWikiConfig.<init>(XWikiConfig.java:51)
    3. com.xpn.xwiki.XWiki.getVersion(XWiki.java:734)
    4. com.xpn.xwiki.api.XWiki.getVersion(XWiki.java:79)
    4 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  5. Apache Velocity
    SimpleNode.render
    1. org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:137)
    2. org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:350)
    3. org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:180)
    4. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
    5. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
    6. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
    7. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
    8. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
    8 frames
  6. com.xpn.xwiki
    XWiki.parseTemplate
    1. com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
    2. com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
    3. com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1238)
    4. com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1199)
    5. com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:490)
    5 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  8. Apache Velocity
    SimpleNode.render
    1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
    2. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
    3. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
    4. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
    5. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
    6. org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
    7. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
    8. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
    8 frames
  9. com.xpn.xwiki
    XWiki.parseTemplate
    1. com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
    2. com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
    3. com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1238)
    4. com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1199)
    5. com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:490)
    5 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  11. Apache Velocity
    SimpleNode.render
    1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
    2. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
    3. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
    4. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
    5. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
    6. org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
    7. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
    8. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
    8 frames
  12. com.xpn.xwiki
    XWikiAction.execute
    1. com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
    2. com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
    3. com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1238)
    4. com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1199)
    5. com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:94)
    6. com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:48)
    7. com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:154)
    7 frames
  13. struts
    ActionServlet.doGet
    1. org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    2. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    3. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    4. org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    4 frames
  14. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    2 frames
  15. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
    2 frames
  16. com.xpn.xwiki
    SetCharacterEncodingFilter.doFilter
    1. com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
    1 frame
  17. Jetty Server
    SelectChannelEndPoint.run
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
    2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
    3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
    6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:406)
    7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
    8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    10. org.mortbay.jetty.Server.handle(Server.java:295)
    11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
    12. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
    13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
    14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
    15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
    16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
    16 frames
  18. Jetty Util
    BoundedThreadPool$PoolThread.run
    1. org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
    1 frame