Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. nxshell - problem with session EventProcessingPolicy methods

nxshell - problem with session EventProcessingPolicy methods

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 43.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    S
    suphu
    wrote on last edited by
    #1

    Hi, I am coding in python using nxshell 2.2.8 and having problems retrieving Event Processing Policies

        epp = session.getEventProcessingPolicy()
            at java.util.Objects.requireNonNull(Objects.java:203)
            at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
            at java.util.Arrays.asList(Arrays.java:3800)
            at org.netxms.client.events.EventProcessingPolicyRule.<init>(EventProcessingPolicyRule.java:135)
            at org.netxms.client.NXCSession.getEventProcessingPolicyInternal(NXCSession.java:5897)
            at org.netxms.client.NXCSession.getEventProcessingPolicy(NXCSession.java:5912)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
    java.lang.NullPointerException: java.lang.NullPointerException

        epp = session.openEventProcessingPolicy()
            at java.util.Objects.requireNonNull(Objects.java:203)
            at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
            at java.util.Arrays.asList(Arrays.java:3800)
            at org.netxms.client.events.EventProcessingPolicyRule.<init>(EventProcessingPolicyRule.java:135)
            at org.netxms.client.NXCSession.getEventProcessingPolicyInternal(NXCSession.java:5897)
            at org.netxms.client.NXCSession.openEventProcessingPolicy(NXCSession.java:5926)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
    java.lang.NullPointerException: java.lang.NullPointerException

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi,

      I cannot reproduce this issue. Could be packaging error. How do you run nxshell and what package you are using?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • S
        S
        suphu
        wrote on last edited by
        #3

        From Windows 2016 Server where I have NetXMS installed.
        C:\NetXMS\bin\nxshell.exe -u <myUserName> -P <myPassword>

        1 Reply Last reply
        0
        • S
          S
          suphu
          wrote on last edited by
          #4

          Found the problem. 
          I downloaded nxshell-2.2.8.jar and replaced C:\NetXMS\lib\nxshell.jar
          Works Great!
          Thanks.

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups