Commiting a transaction giving warning - CML db already unlocked

17 views
Skip to first unread message

AnUj walia

unread,
Sep 29, 2016, 3:15:51 AM9/29/16
to NetconfX
Hi, 

I am trying to configure my netconf enabled device using netconfX. I am able to getCapabilities, perform edit operation on "Candidate" mode but while i am trying to commit the transaction using the below code
                                
                                NetconfLocalTransactionContext ctxt = (NetconfLocalTransactionContext) client.startTransaction();
Element editXml = XmlUtils.fromXmlFile("abc.xmll");
String xid = ctxt.getTransactionId();
client.editConfig("candidate", editXml, null, null, null, xid);
client.commitTransaction(ctxt);

Above code configures the device but results into a warning

 rpc : none
 warning : general-warning
 /unlock : CML db already unlocked

 and finally throws rpc exception below

ERROR com.centeredlogic.net.netconf.exception.NetconfException - Error creating NetconfException from XML; missing error-tag, error-type or errr-severity
java.lang.NullPointerException
at com.centeredlogic.net.netconf.Client.unwrapResponse(Client.java:885)
at com.centeredlogic.net.netconf.Client.send(Client.java:818)
at com.centeredlogic.net.netconf.Client.unlock(Client.java:446)
at com.centeredlogic.net.netconf.Client.commitTransaction(Client.java:700)

A.V.

unread,
Oct 3, 2016, 11:32:44 AM10/3/16
to NetconfX
This might be a function of your Netconf agent (on the device).
Since NetconfX works against multiple agents (and they are implemented slightly differently), we explicitly unlock the configuration after a transaction commit. Some agents don't seems to do that automatically.
It seems this causes an error on your agent - which seems to unlock the configs automatically after the commit.
Can you tell me which Netconf agent you are using?

AnUj walia

unread,
Oct 4, 2016, 3:02:13 AM10/4/16
to NetconfX
We are trying with Ipinfusion ZebOS 
Reply all
Reply to author
Forward
0 new messages