java.lang.IllegalArgumentException: Invalid IP address specified

The OpenNMS Issue Tracker | Ronny Trommer | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    If you have a invalid IP address in your XLS source you receive an exception in the log file like this: {code} 20:13:37.550 [qtp1191954120-15 - /VIP_VIP_Server] DEBUG o.o.pris.driver.HttpServerDriver - Handling request for instance: VIP_VIP_Server Warning: Property storage name for 5 is empty - setting to Root Entry 20:13:48.679 [qtp1191954120-15 - /VIP_VIP_Server] WARN o.o.pris.driver.HttpServerDriver - Invalid IP address specified java.lang.IllegalArgumentException: Invalid IP address specified at org.opennms.netmgt.provision.persist.requisition.RequisitionInterface.setIpAddr(RequisitionInterface.java:309) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.opennms.pris.xls.source.XlsSource.getInterfaceByRow(XlsSource.java:253) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.opennms.pris.xls.source.XlsSource.dump(XlsSource.java:123) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.opennms.pris.RequisitionProvider.generate(RequisitionProvider.java:151) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:113) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.Server.handle(Server.java:365) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: java.lang.IllegalArgumentException: Invalid IPAddress 10,160,193,111 at org.opennms.core.utils.InetAddressUtils.getInetAddress(InetAddressUtils.java:171) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.opennms.netmgt.provision.persist.requisition.RequisitionInterface.setIpAddr(RequisitionInterface.java:307) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] ... 17 common frames omitted {code} The error should be handled as error and should give you an hint where is the IP address invalid to be able to fix it. The error should be correctly logged for all sources in the same way.

    The OpenNMS Issue Tracker | 3 years ago | Ronny Trommer
    java.lang.IllegalArgumentException: Invalid IP address specified
  2. 0

    If you have a invalid IP address in your XLS source you receive an exception in the log file like this: {code} 20:13:37.550 [qtp1191954120-15 - /VIP_VIP_Server] DEBUG o.o.pris.driver.HttpServerDriver - Handling request for instance: VIP_VIP_Server Warning: Property storage name for 5 is empty - setting to Root Entry 20:13:48.679 [qtp1191954120-15 - /VIP_VIP_Server] WARN o.o.pris.driver.HttpServerDriver - Invalid IP address specified java.lang.IllegalArgumentException: Invalid IP address specified at org.opennms.netmgt.provision.persist.requisition.RequisitionInterface.setIpAddr(RequisitionInterface.java:309) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.opennms.pris.xls.source.XlsSource.getInterfaceByRow(XlsSource.java:253) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.opennms.pris.xls.source.XlsSource.dump(XlsSource.java:123) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.opennms.pris.RequisitionProvider.generate(RequisitionProvider.java:151) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:113) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.Server.handle(Server.java:365) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] Caused by: java.lang.IllegalArgumentException: Invalid IPAddress 10,160,193,111 at org.opennms.core.utils.InetAddressUtils.getInetAddress(InetAddressUtils.java:171) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] at org.opennms.netmgt.provision.persist.requisition.RequisitionInterface.setIpAddr(RequisitionInterface.java:307) ~[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na] ... 17 common frames omitted {code} The error should be handled as error and should give you an hint where is the IP address invalid to be able to fix it. The error should be correctly logged for all sources in the same way.

    The OpenNMS Issue Tracker | 3 years ago | Ronny Trommer
    java.lang.IllegalArgumentException: Invalid IP address specified
  3. 0

    OpenNMS / Mailing Lists

    sourceforge.net | 2 years ago
    javax.management.RuntimeMBeanException: org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [trapDaemonContext], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'trapDaemonContext' defined in URL [jar:file:/usr/share/opennms/lib/opennms-services-1.10.4.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daemon' defined in class path resource [META-INF/opennms/applicationContext-trapDaemon.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Invalid IPAddress 10.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [NMS-5584] After provisioning a node getting error after scan. - The OpenNMS Issue Tracker

    opennms.org | 1 year ago
    java.lang.IllegalArgumentException: Invalid IPAddress [B@3b92833d with length 20

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Invalid IPAddress 10,160,193,111

      at org.opennms.core.utils.InetAddressUtils.getInetAddress()
    2. org.opennms.core
      InetAddressUtils.getInetAddress
      1. org.opennms.core.utils.InetAddressUtils.getInetAddress(InetAddressUtils.java:171)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      1 frame
    3. org.opennms.netmgt
      RequisitionInterface.setIpAddr
      1. org.opennms.netmgt.provision.persist.requisition.RequisitionInterface.setIpAddr(RequisitionInterface.java:307)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      1 frame
    4. org.opennms.pris
      HttpServerDriver$1.handle
      1. org.opennms.pris.xls.source.XlsSource.getInterfaceByRow(XlsSource.java:253)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      2. org.opennms.pris.xls.source.XlsSource.dump(XlsSource.java:123)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      3. org.opennms.pris.RequisitionProvider.generate(RequisitionProvider.java:151)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      4. org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:113)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      4 frames
    5. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      2. org.eclipse.jetty.server.Server.handle(Server.java:365)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      3. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      4. org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      5. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      6. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      7. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      8. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      8 frames
    6. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      2 frames
    7. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[opennms-pris-1.0.4-SNAPSHOT-jar-with-dependencies.jar:na]
      2 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)[na:1.7.0_51]
      1 frame