Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Discovery error - Script error in sensor: java.lang.IllegalArgumentException: pAddx is an integer, but not between 1 and 30! - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Discovery error - Script error in sensor: java.lang.IllegalArgumentException: pAddx is an integer, but not between 1 and 30!
KB0779049

Discovery error - Script error in sensor: java.lang.IllegalArgumentException: pAddx is an integer, but not between 1 and 30!


458 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

  • There is custom SNMP classifier developed for WAP device discovery. For some devices, the system is throwing below error.

Sensor error when processing SNMP - Identity: java.lang.IllegalArgumentException: pAddx is an integer, but not between 1 and 30!
undefined (sys_script_include.778011130a0a0b2500c4595ad1d1d768.script; line 32)

  • This article will demonstrate on the investigations and probable use cases, hence in future, if a similar error occurs then this can be one of the cause and worth trying to fix.

Cause

  • This is part of Problem - PRB1292098
  • The root cause is an entry 0.0.0.0/0 for the CI on dscy_route_interface table.

Resolution

  • In order to resolve this issue, kindly make below changes to the code in 'DiscoveryReconciler' script include :

From:

var net = new SncIPNetworkV4(eigr.dest_ip_network);
var routeInfo = {net: net, sysid: eigr.sys_id + ''};
exitRoutesByIface[iface].push(routeInfo);

To: (mainly wrapped the above code with an if condition to exclude 0.0.0.0/0 )

if(eigr.dest_ip_network != '0.0.0.0/0') {
var net = new SncIPNetworkV4(eigr.dest_ip_network);
var routeInfo = {net: net, sysid: eigr.sys_id + ''};
exitRoutesByIface[iface].push(routeInfo);}
  • NOTE - Kindly make the changes on sub production and test the use case multiple times before deploying it to production.

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.