Hi Steve, The problem was in the wrong XercesImpl.jar & jaxb version .... uff..
Thank you...:) Damian W Twoim liście datowanym 3 stycznia 2011 (12:32:59) można przeczytać: > Hi Damian > The form... > GetNextPIDresponse response = new > GetNextPID().namespace("myns").numPIDs(1).execute(fedora); > ...works fine for me. No exception. The exception you report is sometimes > due to the version of Java - could you confirm which version of Java you are > using (java -version) and whether you are using the Sun JDK/JVM. > Regards > Steve >> -----Original Message----- >> From: Damian Kaliszan [mailto:dam...@man.poznan.pl] >> Sent: 03 January 2011 10:42 >> To: Support and info exchange list for Fedora users. >> Subject: [fcrepo-user] Reloading getNextPIDInfo.xsd schema in >> FC +getNextPID problems contd. >> Importance: High >> >> >> 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.g >> etPids(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 >> > ------------------------------------------------------------------------------ > 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 -- Pozdrowienia, Damian Kaliszan ------------------------------------------------------------------------------ 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