s/Gave/Gabe/ Sent from my iPhone
On Mar 5, 2013, at 4:29 PM, "Mattmann, Chris A (388J)" <chris.a.mattm...@jpl.nasa.gov> wrote: > Hey Gave, > > Okey dokey great to hear! > > Cheers, > Chris > > > On 3/5/13 9:10 AM, "Resneck, Gabriel M (388J)" > <gabriel.m.resn...@jpl.nasa.gov> wrote: > >> We ended up downloading the XSD file and changing the schemaLocation field >> value in each of the XML files in the crawler policy directory to the >> absolute path of that XSD file. It worked a treat! >> >> Gabe =) >> >> >> On 3/5/13 12:29 AM, "Mattmann, Chris A (388J)" >> <chris.a.mattm...@jpl.nasa.gov> wrote: >> >>> Hi Gabe, >>> >>> This should be fixed in current OODT 0.5 and OODT 0.6-SNAPSHOT trunk. Can >>> you try them? >>> >>> Cheers, >>> Chris >>> >>> On 2/28/13 3:22 PM, "Resneck, Gabriel M (388J)" >>> <gabriel.m.resn...@jpl.nasa.gov> wrote: >>> >>>> We in SMAP Land have been running into an issue while distributing jobs >>>> to nodes with no internet access. >>>> >>>> Here's the stack trace: >>>> >>>> org.apache.oodt.cas.resource.structs.exceptions.JobInputException: >>>> Failed >>>> to run task >>>> at >>>> org.apache.oodt.cas.workflow.structs.TaskJob.execute(TaskJob.java:104) >>>> at >>>> org.apache.oodt.cas.resource.system.extern.XmlRpcBatchStub$RunnableJob.r >>>> u >>>> n >>>> (XmlRpcBatchStub.java:229) >>>> at java.lang.Thread.run(Thread.java:619) >>>> Caused by: >>>> org.apache.oodt.cas.workflow.structs.exceptions.WorkflowTaskInstanceExce >>>> p >>>> t >>>> ion: PGETask failed : Line 12 in XML document from URL >>>> [file:/project/spdm/subsys/deploy/spdm-crawler/policy/crawler-config.xml >>>> ] >>>> is invalid; nested exception is org.xml.sax.SAXParseException: >>>> cvc-elt.1: >>>> Cannot find the declaration of element 'beans'. >>>> at org.apache.oodt.cas.pge.PGETaskInstance.run(PGETaskInstance.java:456) >>>> at >>>> org.apache.oodt.cas.workflow.structs.TaskJob.execute(TaskJob.java:102) >>>> ... 2 more >>>> Caused by: >>>> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: >>>> Line 12 in XML document from URL >>>> [file:/project/spdm/subsys/deploy/spdm-crawler/policy/crawler-config.xml >>>> ] >>>> is invalid; nested exception is org.xml.sax.SAXParseException: >>>> cvc-elt.1: >>>> Cannot find the declaration of element 'beans'. >>>> at >>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBean >>>> D >>>> e >>>> finitions(XmlBeanDefinitionReader.java:369) >>>> at >>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDe >>>> f >>>> i >>>> nitions(XmlBeanDefinitionReader.java:313) >>>> at >>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDe >>>> f >>>> i >>>> nitions(XmlBeanDefinitionReader.java:290) >>>> at >>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.l >>>> o >>>> a >>>> dBeanDefinitions(AbstractBeanDefinitionReader.java:131) >>>> at >>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.l >>>> o >>>> a >>>> dBeanDefinitions(AbstractBeanDefinitionReader.java:147) >>>> at >>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.l >>>> o >>>> a >>>> dBeanDefinitions(AbstractBeanDefinitionReader.java:173) >>>> at >>>> org.springframework.context.support.AbstractXmlApplicationContext.loadBe >>>> a >>>> n >>>> Definitions(AbstractXmlApplicationContext.java:112) >>>> at >>>> org.springframework.context.support.AbstractXmlApplicationContext.loadBe >>>> a >>>> n >>>> Definitions(AbstractXmlApplicationContext.java:79) >>>> at >>>> org.springframework.context.support.AbstractRefreshableApplicationContex >>>> t >>>> . >>>> refreshBeanFactory(AbstractRefreshableApplicationContext.java:101) >>>> at >>>> org.springframework.context.support.AbstractApplicationContext.obtainFre >>>> s >>>> h >>>> BeanFactory(AbstractApplicationContext.java:394) >>>> at >>>> org.springframework.context.support.AbstractApplicationContext.refresh(A >>>> b >>>> s >>>> tractApplicationContext.java:324) >>>> at >>>> org.springframework.context.support.FileSystemXmlApplicationContext.<ini >>>> t >>>> (FileSystemXmlApplicationContext.java:124) >>>> at >>>> org.springframework.context.support.FileSystemXmlApplicationContext.<ini >>>> t >>>> (FileSystemXmlApplicationContext.java:68) >>>> at >>>> org.apache.oodt.cas.pge.PGETaskInstance.setCrawlerConfigurations(PGETask >>>> I >>>> n >>>> stance.java:371) >>>> at >>>> org.apache.oodt.cas.pge.PGETaskInstance.ingestProducts(PGETaskInstance.j >>>> a >>>> v >>>> a:348) >>>> at org.apache.oodt.cas.pge.PGETaskInstance.run(PGETaskInstance.java:454) >>>> ... 3 more >>>> Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the >>>> declaration of element 'beans'. >>>> at >>>> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno >>>> w >>>> n >>>> Source) >>>> at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) >>>> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) >>>> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) >>>> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) >>>> at >>>> org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown >>>> Source) >>>> at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown >>>> Source) >>>> at >>>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown >>>> Source) >>>> at >>>> org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scan >>>> R >>>> o >>>> otElementHook(Unknown Source) >>>> at >>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis >>>> p >>>> a >>>> tcher.dispatch(Unknown Source) >>>> at >>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno >>>> w >>>> n >>>> Source) >>>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) >>>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) >>>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >>>> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) >>>> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) >>>> at >>>> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument >>>> ( >>>> D >>>> efaultDocumentLoader.java:73) >>>> at >>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBean >>>> D >>>> e >>>> finitions(XmlBeanDefinitionReader.java:361) >>>> ... 18 more >>>> >>>> It would seem that XSD validation is what causes this issue. While >>>> looking for ways to solve this, we ran into >>>> https://jira.springsource.org/browse/SPR-5014 and thought, "Chris >>>> Mattmann, we know that guy!" >>>> >>>> If any of you guys have solved this before (yes, including you, Chris), >>>> we'd love to know how you did it. >>>> >>>> Thanks! >>>> >>>> Gabe =) >