Software Development Kit (SDK) and API Discussions

Malformed XML exception

tekaravind
3,102 Views

ONTAP version is 7.3.1,
SDK- Java-manage-ontap-sdk-3.0

 

Below is the exception on invoking "volume-list-info" command:-

netapp.manage.NaProtocolException: Malformed XML
at netapp.manage.NaServer.invokeElem(NaServer.java:549)
Caused by: org.xml.sax.SAXParseException: Expected "</mirror-status>" to terminate element starting on line 3.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)

 

Please suggest if there is any workaround for this issue.

 

Thanks

2 REPLIES 2

rkiran
3,102 Views

Hi Aravind,

Not sure if SAX XML parser is seeing additional < or > characters in volume-list-info response data. Could you please take the raw xml output of

volume-list-info command using apitest utility with -X option to check whether XML respose contains any additional < or > characters.

Thanks.

kaushikc
3,102 Views

Hi,

even I am getting similar kinna issue ..

2014-05-16 06:03:37,674 (pool-1-thread-1) INFO  [ControllerUtil] - initializeFiler: NtapFiler[id=1873795136-0, name=netapp11, connectIpAddress=130.20.248.39] Controller supports the VAAI primitatives

2014-05-16 06:03:38,143 (pool-1-thread-1) INFO  [ControllerUtil] - initializeFiler: NtapFiler[id=1873795136-0, name=netapp11, connectIpAddress=130.20.248.39] fcp is licensed and enabled.

2014-05-16 06:03:38,362 (pool-1-thread-1) INFO  [ControllerUtil] - initializeFiler: NtapFiler[id=1873795136-0, name=netapp11, connectIpAddress=130.20.248.39] nfs is licensed and enabled.

2014-05-16 06:03:46,159 (pool-1-thread-1) ERROR [ZAPI_LOGGER] - Sent 12574 (and received error) to 130.20.248.39<nfs-exportfs-list-rules-2/>

2014-05-16 06:03:46,159 (pool-1-thread-1) ERROR [ZAPI_LOGGER] - NaException netapp.manage.NaProtocolException: Malformed XML

2014-05-16 06:03:46,159 (pool-1-thread-1) ERROR [ZAPI_ERROR_LOGGER] - Sent 12574 (and received error) to 130.20.248.39<nfs-exportfs-list-rules-2/>

2014-05-16 06:03:46,159 (pool-1-thread-1) ERROR [ZAPI_ERROR_LOGGER] - NaException netapp.manage.NaProtocolException: Malformed XML

2014-05-16 06:03:46,159 (pool-1-thread-1) INFO  [ZAPIInvoker] - invokeZAPI(1): failed NtapFiler[id=1873795136-0, name=netapp11, connectIpAddress=130.20.248.39] protocol exception : Malformed XML (called from com.netapp.offtap.ControllerUtil.populateExportSecurity(...) on line 8450)

2014-05-16 06:03:46,159 (pool-1-thread-1) ERROR [ControllerUtil] - populateExports: NtapFiler[id=1873795136-0, name=netapp11, connectIpAddress=130.20.248.39] Unable to load exports.

Public