You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by yosauron <yo...@gmail.com> on 2008/09/09 13:29:28 UTC

Error when I use HSSFGenerator

Hi, 

(I'm newbie on Cocoon)

My system configuration is: 
Ubuntu 8.04 (kernel 2.4.24-16-server i386) 
java 1.6.0_06 
maven 2.0.9 

I was trying the HSSFGenerator of the POI's block and I got an succesfull
result. I commented a section on my sitemap file, and here started my
problems... when i launched jetty I got an error... I have restored the on
sitemap file and the error is still there when I launch jetty...

I've attachmented all the files that I have. Has anyone see something wrong?
Please, could anyone help me? 


Thank you.

Sitemap file:
http://www.nabble.com/file/p19390373/sitemap.xmap sitemap.xmap 
Pom file:
http://www.nabble.com/file/p19390373/pom.xml pom.xml 

Excel I use to read...
http://www.nabble.com/file/p19390373/test.xls test.xls 

All the log I got when execute 'mvn jetty:run'
http://www.nabble.com/file/p19390373/log.LOG log.LOG 

The output that I got when it ran succesfully :-((
http://www.nabble.com/file/p19390373/test_out.txt test_out.txt 

The error:


> 2008-09-09 14:32:07.167:/:INFO:  Initializing Spring root
> WebApplicationContext
> 2008-09-09 14:35:20.920::WARN:  Failed startup of context
> org.mortbay.jetty.webapp.WebAppContext@dca3ed{/,/home/caribdis/cocoon/bloque2/target/rcl/webapp}
> java.lang.RuntimeException: Cannot invoke listener
> org.springframework.web.context.ContextLoaderListener@128647a
> 	at
> org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.invoke(ReloadingListener.java:190)
> 	at
> org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.contextInitialized(ReloadingListener.java:213)
> 	at
> org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
> 	at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
> 	at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
> 	at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
> 	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
> 	at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
> 	at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
> 	at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
> 	at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
> 	at org.mortbay.jetty.Server.doStart(Server.java:217)
> 	at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
> 	at
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:345)
> 	at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:286)
> 	at
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:204)
> 	at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183)
> 	at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
> Unable to read spring configurations from
> classpath*:META-INF/cocoon/spring; nested exception is
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 28 in XML document from URL
> [jar:file:/home/caribdis/.m2/repository/org/apache/cocoon/cocoon-poi-impl/1.0.0-SNAPSHOT/cocoon-poi-impl-1.0.0-SNAPSHOT.jar!/META-INF/cocoon/spring/cocoon-poi.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1:
> Cannot find the declaration of element 'beans'.
> 	at
> org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser.parse(AbstractSettingsElementParser.java:148)
> 	at
> org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
> 	at
> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1114)
> 	at
> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1104)
> 	at
> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:133)
> 	at
> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:90)
> 	at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)
> 	at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)
> 	at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
> 	at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
> 	at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
> 	at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
> 	at
> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
> 	at
> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
> 	at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
> 	at
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389)
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)
> 	at
> org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebApplicationContext.refresh(SynchronizedConfigureableWebApplicationContext.java:247)
> 	at
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
> 	at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
> 	at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
> 	at
> org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.invoke(ReloadingListener.java:157)
> 	... 38 more
> Caused by:
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 28 in XML document from URL
> [jar:file:/home/caribdis/.m2/repository/org/apache/cocoon/cocoon-poi-impl/1.0.0-SNAPSHOT/cocoon-poi-impl-1.0.0-SNAPSHOT.jar!/META-INF/cocoon/spring/cocoon-poi.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.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:359)
> 	at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
> 	at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
> 	at
> org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser.handleImport(AbstractSettingsElementParser.java:197)
> 	at
> org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser.handleBeanInclude(AbstractSettingsElementParser.java:187)
> 	at
> org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser.parse(AbstractSettingsElementParser.java:145)
> 	... 59 more
> Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the
> declaration of element 'beans'.
> 	at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> 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.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.scanRootElementHook(Unknown
> Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> 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(DefaultDocumentLoader.java:76)
> 	at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:351)
> 	... 64 more
> 2008-09-09 14:35:20.058::INFO:  Started
> SelectChannelConnector@0.0.0.0:8888
> [INFO] Started Jetty Server
> 



-- 
View this message in context: http://www.nabble.com/Error-when-I-use-HSSFGenerator-tp19390373p19390373.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Error when I use HSSFGenerator

Posted by yosauron <yo...@gmail.com>.
Nobody knows how do I fix this error?



yosauron wrote:
> 
> I was able to restore an old .m2 repository...
> 
> 
> I've been able to locate the error:
> 
> --I deleted my local repository and restored an older copy
> % rm -R ~/.m2  .... cp -R ~/.m2.bak ~/.m2
> 
> --On the folder of my block I ran:
> % mvn jetty:run
> 
> --An I've gotten the following (success) log:
>  http://www.nabble.com/file/p19391539/log_ok.LOG log_ok.LOG 
> 
> --On my web browser I put:
> http://server:8888/block1/test.xls
> 
> --And I've gotten a successfull output.
> 
> --While the jetty is running is all ok, but when I restart it:
> % Ctrl ^C
> % mvn jetty:run
> 
> --I always get the following error:
>  http://www.nabble.com/file/p19391539/log_error.LOG log_error.LOG 
> 
> 
> What is wrong? Is a POI bug?
> 
> 
> Thank you
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-when-I-use-HSSFGenerator-tp19390373p19547086.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Error when I use HSSFGenerator

Posted by yosauron <yo...@gmail.com>.
I was able to restore an old .m2 repository...


I've been able to locate the error:

--I deleted my local repository and restored an older copy
% rm -R ~/.m2  .... cp -R ~/.m2.bak ~/.m2

--On the folder of my block I ran:
% mvn jetty:run

--An I've gotten the following (success) log:
http://www.nabble.com/file/p19391539/log_ok.LOG log_ok.LOG 

--On my web browser I put:
http://server:8888/block1/test.xls

--And I've gotten a successfull output.

--While the jetty is running is all ok, but when I restart it:
% Ctrl ^C
% mvn jetty:run

--I always get the following error:
http://www.nabble.com/file/p19391539/log_error.LOG log_error.LOG 


What is wrong? Is a POI bug?


Thank you


-- 
View this message in context: http://www.nabble.com/Error-when-I-use-HSSFGenerator-tp19390373p19391539.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Error when jetty is run the second time...

Posted by yosauron <yo...@gmail.com>.
Nobody knows how do I fix this error?



yosauron wrote:
> 
> The error that I got in this thread happens to me when I run my block the
> second time (using jetty).
> If I remove some file from the directory
> ~/.m2/repository/org/springframework/spring-beans... when I run "mvn
> jetty:run" it downloads the removed files and works correctly, but the
> second time (stop jetty and start again) fails again.
> 
> What's wrong? I don't know if It is a bug or is my fault! :(
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-when-I-use-HSSFGenerator-tp19390373p19547109.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Error when jetty is run the second time...

Posted by yosauron <yo...@gmail.com>.
The error that I got in this thread happens to me when I run my block the
second time (using jetty).
If I remove some file from the directory
~/.m2/repository/org/springframework/spring-beans... when I run "mvn
jetty:run" it downloads the removed files and works correctly, but the
second time (stop jetty and start again) fails again.

What's wrong? I don't know if It is a bug or is my fault! :(


-- 
View this message in context: http://www.nabble.com/Error-when-I-use-HSSFGenerator-tp19390373p19514856.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Error when I use HSSFGenerator

Posted by yosauron <yo...@gmail.com>.
I've tried to remove the directory
'.m2/repository/org/springframework/spring-beans' 
and when I run 'mvn jetty:run' this downloads the files, and it works fine. 
But the second time that i run 'mvn jetty:run' I get the error. 

Is an spring error??
-- 
View this message in context: http://www.nabble.com/Error-when-I-use-HSSFGenerator-tp19390373p19392784.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org