Hi Frank,

I just confirmed that Steve was right.  This exact exception is thrown
if the schema is inaccessible somehow.  Unfortunately, time constraints
prevented us from implementing a better solution such as validating
against static schema files in the classpath.  The workaround,
-Doffline=true (or, alternatively, set OFFLINE environment variable to
true) will *disable* schema validation.  

  -Aaron


On Thu, 2011-08-25 at 03:52 -0400, Stephen Bayliss wrote:
> Hi Frank
> 
> Does the Fedora server have external web access?  Specifically to locate the
> xsd schema files?
> 
> This is something we optionally can disable for the REST API, but I'm not
> sure about the test you are running.
> 
> You could try -Doffline=true to see if this will disable the online schema
> validation (though I'm not sure whether or not that will be effective for
> this test).
> 
> Steve
> 
> > -----Original Message-----
> > From: Asseg, Frank [mailto:frank.as...@fiz-karlsruhe.de] 
> > Sent: 24 August 2011 12:18
> > To: fedora-commons-developers@lists.sourceforge.net
> > Subject: [fcrepo-dev] exception when running integration tests
> > 
> > 
> > Hola guys,
> > 
> > when building from the tag v3.5 i get the following exception when 
> > trying to run the integration test
> > org.fcrepo.test.integration.TestCommandLineUtilities:
> > 
> > 
> > org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the 
> > declaration of 
> > element 'fbm:batchModify'.
> > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExcep
> > tion(ErrorHandlerWrapper.java:196)
> > org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerW
> > rapper.java:132)
> > org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorRe
> > porter.java:390)
> > org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorRe
> > porter.java:322)
> > org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorRe
> > porter.java:281)
> > org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElemen
> > t(XMLSchemaValidator.java:1982)
> > org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLS
> > chemaValidator.java:724)
> > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartEleme
> > nt(XMLNSDocumentScannerImpl.java:283)
> > org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispa
> > tcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733)
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
> > ContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754)
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
> > ment(XMLDocumentFragmentScannerImpl.java:324)
> > org.apache.xerces.parsers.XML11Configuration.parse(XML11Config
> > uration.java:845)
> > org.apache.xerces.parsers.XML11Configuration.parse(XML11Config
> > uration.java:768)
> > org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXP
> > arser.java:1196)
> > org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXPa
> > rserImpl.java:555)
> >     at 
> > org.fcrepo.client.batch.BatchModifyParser.<init>(BatchModifyPa
> > rser.java:178)
> > org.fcrepo.client.batch.AutoModify.modify(AutoModify.java:177)
> > org.fcrepo.client.batch.AutoModify.modify(AutoModify.java:130)
> >     at org.fcrepo.client.batch.AutoModify.main(AutoModify.java:460)
> > 
> > 
> > Can you guys read something out of this?
> > 
> > 
> > -- 
> > Frank Asseg
> > ePublishing & eScience
> > Development & Applied Research
> > Phone +49 7247-808-515
> > Fax +49 7247 808-133
> > frank.as...@fiz-karlsruhe.de
> > 
> > 
> > FIZ Karlsruhe – Leibniz Institute for Information 
> > Infrastructure Hermann-von-Helmholtz-Platz 1 76344 
> > Eggenstein-Leopoldshafen, Germany
> > 
> > http://www.fiz-karlsruhe.de/
> > 
> > 
> > -------------------------------------------------------
> > 
> > Fachinformationszentrum Karlsruhe, Gesellschaft für 
> > wissenschaftlich-technische Information mbH. 
> > Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht 
> > Mannheim HRB 101892. 
> > Geschäftsführerin: Sabine Brünger-Weilandt. 
> > Vorsitzender des Aufsichtsrats: MinDirig Dr. Thomas Greiner.
> > 
> > --------------------------------------------------------------
> > ----------------
> > EMC VNX: the world's simplest storage, starting under $10K
> > The only unified storage solution that offers unified management 
> > Up to 160% more powerful than alternatives and 25% more efficient. 
> > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> > _______________________________________________
> > Fedora-commons-developers mailing list 
> > Fedora-commons-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers
> > 
> 
> 
> ------------------------------------------------------------------------------
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management 
> Up to 160% more powerful than alternatives and 25% more efficient. 
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> _______________________________________________
> Fedora-commons-developers mailing list
> Fedora-commons-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers



------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Fedora-commons-developers mailing list
Fedora-commons-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers

Reply via email to