From: Edwin M. <edw...@ho...> - 2003-11-05 21:21:48
|
Hi, I am implementing a digital library with exist. Doing a query on a collection and the database doesn't contain the term query, instead return "nothing found" or 0 records found, cocoon send a error message. and when the database contains the term, always goes ok. I probed the library example from exist, and I get similar results. if the term is in the db, works fine, but if it isn't, cocoon return a error. I guess the problem is in <xmldb:current-node> that is empy: <xmldb:for-each query="document(*)//rdf:Description[...]"> <xmldb:current-node/> </xmldb:for-each> How Do I know if the query was succesfully or retrieved results? I think the attribute @count from <xmldb:result-set> assumes that xmldb:current-node has data or not? thanks in advance. the message returned by cocoon is: query returned null An error occurred The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: Exception during processing of file:/C:/java/eXist-0.9.1/webapp/query/main.xml More precisely: org.apache.cocoon.ProcessingException: Exception during processing of file:/C:/java/eXist-0.9.1/webapp/query/main.xml: java.lang.RuntimeException: java.util.EmptyStackException extra info full exception chain stacktrace show Original exception : java.lang.RuntimeException: java.util.EmptyStackException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:578) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269) at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222) at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:206) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:140) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:144) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:140) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:144) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293) _________________________________________________________________ ¿Estás buscando un auto nuevo? http://www.yupimsn.com/autos/ |