NPE at Client.setup

40 views
Skip to first unread message

Carl Roberts

unread,
Apr 18, 2012, 12:35:07 AM4/18/12
to NetconfX
Hi, I am trying to connect to a device and I am getting this NPE:

Apr 18, 2012 12:32:57 AM com.centeredlogic.util.CLThread run
INFO: Starting thread - NotificationStreamPinger-192.168.85.128;
transferring control to runnable ..
Apr 18, 2012 12:32:58 AM
com.centeredlogic.net.netconf.transport.ssh.SshConnection <init>
INFO: Connected to: 192.168.85.128:2022 using Key authentication
Exception in thread "main" java.lang.NullPointerException
at
com.centeredlogic.net.netconf.NotificationStream.processGetStreamsResponse(NotificationStream.java:
225)
at com.centeredlogic.net.netconf.Client.loadDeviceCaps(Client.java:
151)
at com.centeredlogic.net.netconf.Client.setup(Client.java:133)
at netconfxtest.NetConfXTest.main(NetConfXTest.java:30)

Any hints as to what may be wrong?

Subramaniam Aiylam

unread,
Apr 18, 2012, 1:57:54 PM4/18/12
to netc...@googlegroups.com
It is possible your NETCONF server is not set up to handle notifications, Set up a breakpoint in the processGetStreamsResponse() and check the XML returned.
--

Subramaniam Aiylam ("A.V.")

Centered Logic, LLC

Web: http://www.centeredlogic.com

Email: a...@centeredlogic.com

Gmail: aiyl...@gmail.com

Phone: 508-735-7777


Reply all
Reply to author
Forward
0 new messages