java.lang.NullPointerException: null

The OpenNMS Issue Tracker | Ronny Trommer | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    If you have a XLS file which doesn't match the required columns, the log just throws a NPE without giving an idea what the problem in the XLS file is: {code} 15:18:49.476 [qtp400905429-14 - /Network] WARN o.o.pris.driver.HttpServerDriver - null java.lang.NullPointerException: null at org.opennms.pris.xls.source.XlsSource.getInterfaceByRow(XlsSource.java:226) ~[opennms-pris.jar:na] at org.opennms.pris.xls.source.XlsSource.dump(XlsSource.java:98) ~[opennms-pris.jar:na] at org.opennms.pris.RequisitionProvider.generate(RequisitionProvider.java:150) ~[opennms-pris.jar:na] at org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:115) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [opennms-pris.jar:na] at org.eclipse.jetty.server.Server.handle(Server.java:365) [opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) [opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933) [opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995) [opennms-pris.jar:na] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) [opennms-pris.jar:na] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) [opennms-pris.jar:na] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [opennms-pris.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) [opennms-pris.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [opennms-pris.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [opennms-pris.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [opennms-pris.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] {code}

    The OpenNMS Issue Tracker | 3 years ago | Ronny Trommer
    java.lang.NullPointerException: null
  2. 0

    If you have a XLS file which doesn't match the required columns, the log just throws a NPE without giving an idea what the problem in the XLS file is: {code} 15:18:49.476 [qtp400905429-14 - /Network] WARN o.o.pris.driver.HttpServerDriver - null java.lang.NullPointerException: null at org.opennms.pris.xls.source.XlsSource.getInterfaceByRow(XlsSource.java:226) ~[opennms-pris.jar:na] at org.opennms.pris.xls.source.XlsSource.dump(XlsSource.java:98) ~[opennms-pris.jar:na] at org.opennms.pris.RequisitionProvider.generate(RequisitionProvider.java:150) ~[opennms-pris.jar:na] at org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:115) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [opennms-pris.jar:na] at org.eclipse.jetty.server.Server.handle(Server.java:365) [opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) [opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933) [opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995) [opennms-pris.jar:na] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) [opennms-pris.jar:na] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) [opennms-pris.jar:na] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [opennms-pris.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) [opennms-pris.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [opennms-pris.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [opennms-pris.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [opennms-pris.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] {code}

    The OpenNMS Issue Tracker | 3 years ago | Ronny Trommer
    java.lang.NullPointerException: null
  3. 0

    If there is no categoryMap property in requisition.properties, the OCS source dies with a NullPointerException: 16:25:58.017 [qtp638227191-12 - /ocs] DEBUG o.o.pris.driver.HttpServerDriver - Handling request for instance: ocs 16:25:58.019 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - Initialization OCS Inventory Client 16:25:58.019 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - Init parameters: host=http://10.200.200.89, login=admin 16:25:58.020 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - Using checksum value 4099 16:25:58.020 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - Including 1 tags in request 16:25:58.085 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GetComputersLogic - Prepare call web service from OCS server with offset 0 16:25:58.085 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - Create SOAP request 16:25:58.086 [qtp638227191-12 - /ocs] DEBUG o.o.o.i.c.r.logic.GeneralClientLogic - Create SOAP envelope 16:25:58.086 [qtp638227191-12 - /ocs] DEBUG o.o.o.i.c.r.logic.GeneralClientLogic - Create SOAP body 16:25:58.098 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - SOAP request created 16:25:58.126 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GetComputersLogic - Web service are already called from OCS server, parse response 16:25:58.131 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GetComputersLogic - Prepare call web service from OCS server with offset 1 16:25:58.131 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - Create SOAP request 16:25:58.131 [qtp638227191-12 - /ocs] DEBUG o.o.o.i.c.r.logic.GeneralClientLogic - Create SOAP envelope 16:25:58.131 [qtp638227191-12 - /ocs] DEBUG o.o.o.i.c.r.logic.GeneralClientLogic - Create SOAP body 16:25:58.139 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - SOAP request created 16:25:58.146 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GetComputersLogic - Web service are already called from OCS server, parse response 16:25:58.148 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GetComputersLogic - OCS Inventory Client provided 1 computers. 16:25:58.156 [qtp638227191-12 - /ocs] DEBUG org.opennms.pris.IpInterfaceHelper - Use any for: centos-ocs 10.200.200.89 16:25:58.160 [qtp638227191-12 - /ocs] WARN o.o.pris.driver.HttpServerDriver - null java.lang.NullPointerException: null at org.opennms.pris.IpInterfaceHelper.populateCategories(IpInterfaceHelper.java:212) ~[opennms-pris.jar:na] at org.opennms.pris.ocs.mapper.DefaultOcsComputerMapper.mapComputerToRequisitionNode(DefaultOcsComputerMapper.java:121) ~[opennms-pris.jar:na] at org.opennms.pris.ocs.mapper.DefaultOcsComputerMapper.map(DefaultOcsComputerMapper.java:78) ~[opennms-pris.jar:na] at org.opennms.pris.RequisitionProvider.generate(RequisitionProvider.java:155) ~[opennms-pris.jar:na] at org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:113) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.Server.handle(Server.java:365) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995) ~[opennms-pris.jar:na] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) ~[opennms-pris.jar:na] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) ~[opennms-pris.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) ~[opennms-pris.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) ~[opennms-pris.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) ~[opennms-pris.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) ~[opennms-pris.jar:na] at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]

    The OpenNMS Issue Tracker | 3 years ago | Jeff Gehlbach
    java.lang.NullPointerException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If there is no categoryMap property in requisition.properties, the OCS source dies with a NullPointerException: 16:25:58.017 [qtp638227191-12 - /ocs] DEBUG o.o.pris.driver.HttpServerDriver - Handling request for instance: ocs 16:25:58.019 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - Initialization OCS Inventory Client 16:25:58.019 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - Init parameters: host=http://10.200.200.89, login=admin 16:25:58.020 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - Using checksum value 4099 16:25:58.020 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - Including 1 tags in request 16:25:58.085 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GetComputersLogic - Prepare call web service from OCS server with offset 0 16:25:58.085 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - Create SOAP request 16:25:58.086 [qtp638227191-12 - /ocs] DEBUG o.o.o.i.c.r.logic.GeneralClientLogic - Create SOAP envelope 16:25:58.086 [qtp638227191-12 - /ocs] DEBUG o.o.o.i.c.r.logic.GeneralClientLogic - Create SOAP body 16:25:58.098 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - SOAP request created 16:25:58.126 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GetComputersLogic - Web service are already called from OCS server, parse response 16:25:58.131 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GetComputersLogic - Prepare call web service from OCS server with offset 1 16:25:58.131 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - Create SOAP request 16:25:58.131 [qtp638227191-12 - /ocs] DEBUG o.o.o.i.c.r.logic.GeneralClientLogic - Create SOAP envelope 16:25:58.131 [qtp638227191-12 - /ocs] DEBUG o.o.o.i.c.r.logic.GeneralClientLogic - Create SOAP body 16:25:58.139 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GeneralClientLogic - SOAP request created 16:25:58.146 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GetComputersLogic - Web service are already called from OCS server, parse response 16:25:58.148 [qtp638227191-12 - /ocs] INFO o.o.o.i.c.r.logic.GetComputersLogic - OCS Inventory Client provided 1 computers. 16:25:58.156 [qtp638227191-12 - /ocs] DEBUG org.opennms.pris.IpInterfaceHelper - Use any for: centos-ocs 10.200.200.89 16:25:58.160 [qtp638227191-12 - /ocs] WARN o.o.pris.driver.HttpServerDriver - null java.lang.NullPointerException: null at org.opennms.pris.IpInterfaceHelper.populateCategories(IpInterfaceHelper.java:212) ~[opennms-pris.jar:na] at org.opennms.pris.ocs.mapper.DefaultOcsComputerMapper.mapComputerToRequisitionNode(DefaultOcsComputerMapper.java:121) ~[opennms-pris.jar:na] at org.opennms.pris.ocs.mapper.DefaultOcsComputerMapper.map(DefaultOcsComputerMapper.java:78) ~[opennms-pris.jar:na] at org.opennms.pris.RequisitionProvider.generate(RequisitionProvider.java:155) ~[opennms-pris.jar:na] at org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:113) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.Server.handle(Server.java:365) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995) ~[opennms-pris.jar:na] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) ~[opennms-pris.jar:na] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) ~[opennms-pris.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) ~[opennms-pris.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) ~[opennms-pris.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) ~[opennms-pris.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) ~[opennms-pris.jar:na] at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]

    The OpenNMS Issue Tracker | 3 years ago | Jeff Gehlbach
    java.lang.NullPointerException: null
  6. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179

    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

      null

      at org.opennms.pris.xls.source.XlsSource.getInterfaceByRow()
    2. org.opennms.pris
      HttpServerDriver$1.handle
      1. org.opennms.pris.xls.source.XlsSource.getInterfaceByRow(XlsSource.java:226)[opennms-pris.jar:na]
      2. org.opennms.pris.xls.source.XlsSource.dump(XlsSource.java:98)[opennms-pris.jar:na]
      3. org.opennms.pris.RequisitionProvider.generate(RequisitionProvider.java:150)[opennms-pris.jar:na]
      4. org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:115)[opennms-pris.jar:na]
      4 frames
    3. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[opennms-pris.jar:na]
      2. org.eclipse.jetty.server.Server.handle(Server.java:365)[opennms-pris.jar:na]
      3. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486)[opennms-pris.jar:na]
      4. org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933)[opennms-pris.jar:na]
      5. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995)[opennms-pris.jar:na]
      6. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[opennms-pris.jar:na]
      7. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[opennms-pris.jar:na]
      8. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[opennms-pris.jar:na]
      8 frames
    4. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)[opennms-pris.jar:na]
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[opennms-pris.jar:na]
      2 frames
    5. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[opennms-pris.jar:na]
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[opennms-pris.jar:na]
      2 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)[na:1.7.0_51]
      1 frame