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)