Dear All, As somebody might have noticed I'm facing the problem with getNextPID (FC 3.4.1) on different levels in FedoraClient provided by Chris...
I have a question regarding https://jira.duraspace.org/browse/FCREPO-808 I was forced to change: GetNextPIDresponse response = new GetNextPID().namespace("myns").numPIDs(1).execute(fedora); to FedoraResponse response = new GetNextPID().namespace("myns").numPIDs(1).execute(fedora); Because the first one generates the error: Exception in thread "main" java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.w3c.dom.NodeList at com.yourmediashelf.fedora.client.response.GetNextPIDResponse.getPids(GetNextPIDResponse.java:66) at pl.psnc.wlin.model.fedora.FedoraWlin.main(FedoraWlin.java:1402) Where the line 64 starts with: NodeList nodes; try { nodes = (NodeList) xpath .evaluate("/pidList/pid/text()", new InputSource(getEntityInputStream()), XPathConstants.NODESET); In turn, the second solution causes I get the error with generated pidList xml against the xsd schema (./server/xsd/getNextPIDInfo.xsd) I provided my own Response class with fixed target namespace ( https://jira.duraspace.org/browse/FCREPO-808) and saved it in the getNextPIDInfo.xsd. Do you know how to force fedora to "reload" this xsd and use & generates proper response xml? Maybe someone could provide the bugfix for that in the latest 3.4.1 version? Regards, Damian ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users