Issue : TransactionContext Failing while commit - NetconfX 2.1 Library - Netconf Device

23 views
Skip to first unread message

A

unread,
May 4, 2017, 6:26:24 AM5/4/17
to NetconfX

Hi,


I am using NetconfX 2.1 to commit multiple payload in my device. I have used the below code :


Properties properties = new Properties();

properties.put("host", managementAddress);

properties.put("socketTimeout", "30000");

properties.put("port", port);

properties.put("username", username);

properties.put("password", password);

Client client = new Client();

client.setup(properties);

NetconfLocalTransactionContext ctxt = (NetconfLocalTransactionContext) client.startTransaction();

String xid = ctxt.getTransactionId();

client.editConfig("candidate", file1xml, null, null, null, xid);

Thread.sleep(10000);

client.editConfig("candidate", file2xml, null, null, null, xid);

client.commitTransaction(ctxt);


I am getting the below error as a response
-----------------------------------------

Error occured while cmmiting the txncom.centeredlogic.net.netconf.exception.NetconfException: Error code: InUseError type: applicationError Message: config lockedError info: <?xml version="1.0" encoding="UTF-8"?>
<error-info xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <error-number xmlns="http://netconfcentral.org/ns/yuma-ncx">301</error-number>
</error-info>Path: /nc:rpc/nc:edit-config/nc:config
2017-05-04 11:17:54

------------------------------

Any idea where I am wrong ?

regards
A

A.V.

unread,
Aug 14, 2017, 12:24:15 PM8/14/17
to NetconfX
NetconfX 2.1 is not supported any longer.
To obtain the latest evaluation version, please visit:

Reply all
Reply to author
Forward
0 new messages