Hi there,
I am getting the same error as Lally Singh mentioned below regarding null
pointer exception in Spring. In my project, If I do a mvn install and then
do mvn exec my program runs fine. However, when using the assembly plug in
the jar file created by maven does not work fine. It gives a null pointer
exception while parsing a otherwise normal XML file. Please help!!!
Exception in thread "main"
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
exception parsing XML document from class path resour
[DataSourceContext.xml]; nested exception is java.lang.NullPointerException
sed by: java.lang.NullPointerException
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.decorateIfRequired(BeanDefinitionParserDelegate.java:1106)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.decorateBeanDefinitionIfRequired
(BeanDefinitionParserDelegate.java:1088)
Also, Lally if you were able to resolved this issue: I would appreciate if
you can share what fixed the issue.
Thanks in advance for your help.
-Waseem
Lally Singh wrote:
>
> On 5/2/07, Grzegorz Kossakowski <[EMAIL PROTECTED]> wrote:
>> Lally Singh napisaĆ(a):
>> > Hey all, sorry for posting so many questions to the list (I'm having
>> > so man problems getting anything to work, ugh!).
>>
>> No problem. I'm glad that you try trunk version.
>>
>> > I've been getting this one for a few days:
>> > org.apache.avalon.framework.service.ServiceException: Component with
>> > 'org.apache.cocoon.components.flow.Interpreter/javascript' is not
>> > defined in this service manager. (Key='AvalonServiceManager')
>> > at
>> >
>> org.apache.cocoon.core.container.spring.avalon.AvalonServiceManager.lookup(AvalonServiceManager.java:57)
>> >
>> > at
>> >
>> org.apache.cocoon.components.treeprocessor.sitemap.FlowNode.service(FlowNode.java:60)
>> >
>> > at
>> >
>> org.apache.cocoon.components.LifecycleHelper.setupComponent(LifecycleHelper.java:152)
>> >
>> > ...
>> > When I'm running mvn jetty:run and hitting http://localhost:8888
>> >
>> > It's still the demo flowscript from the archetype block, my work's
>> > focused on infrastructure and a simple xsp to test that.
>>
>> What's the version of archetype and Maven you use? It's seems that it's
>> problem with some missing dependencies but I
>> cannot help without details.
> Latest version I could find, maven 2.0.6
>
> I updated my POMs from the latest archetypes, and that error went
> away, replaced with a few others. I got through a few of them, only
> stuck on a NullPointerException in Spring :-(
>
> Btw, the newest archetype poms don't have version #s in them, and
> maven just spits them out.
>
> 2007-05-04 16:27:56.439::WARN: Nested in
> org.springframework.beans.factory.BeanDefinitionStoreException: Unable
> to read spring configurations from classpath*:META-INF/cocoon/spring;
> nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Unexpected exception parsing XML document from URL
> [jar:file:/Users/lally/Work/School/GRA/IDDL/New_System/iddl_svn/ratlee/meval/trunk/whole/cocoonapp/target/cocoonapp-1.0-SNAPSHOT/WEB-INF/lib/qgenerator-1.0-SNAPSHOT.jar!/META-INF/cocoon/spring/block.xml];
> nested exception is java.lang.NullPointerException:
> java.lang.NullPointerException
> at
> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.decorateIfRequired(BeanDefinitionParserDelegate.java:1142)
> at
> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.decorateBeanDefinitionIfRequired(BeanDefinitionParserDelegate.java:1132)
> at
> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:237)
> at
> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:151)
> at
> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:130)
> 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.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)
> at
> org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
>
>
>
> --
> H. Lally Singh
> Ph.D. Candidate, Computer Science
> Virginia Tech
>
>
--
View this message in context:
http://www.nabble.com/Component-with-%27org.apache.cocoon.components.flow.Interpreter-javascript%27-is-not-defined-tf3676541.html#a10631887
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]