You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Valentin Mahrwald (JIRA)" <ji...@apache.org> on 2010/05/26 07:58:31 UTC
[jira] Closed: (ARIES-244) NPE inside GlobalPersistenceManager when
parsing blueprint xml
[ https://issues.apache.org/jira/browse/ARIES-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Valentin Mahrwald closed ARIES-244.
-----------------------------------
> NPE inside GlobalPersistenceManager when parsing blueprint xml
> --------------------------------------------------------------
>
> Key: ARIES-244
> URL: https://issues.apache.org/jira/browse/ARIES-244
> Project: Aries
> Issue Type: Bug
> Components: JPA
> Affects Versions: 0.1, Incubation, 1.0
> Reporter: Mark Nuttall
> Assignee: Valentin Mahrwald
> Fix For: 0.1
>
>
> Calling ParserService.parse() on blueprint xml of the form,
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
> xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0"
> xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0">
> <bean id="myBean" class="org.acme.MyClass">
> <jpa:context property="entityManager" unitname="myPU" />
> <tx:transaction method="*" value="Required"/>
> </bean>
> <service id="myService" ref="myBean" interface="org.acme.MyService" />
> </blueprint>
> Yields,
> Caused by: java.lang.NullPointerException
> at org.apache.aries.jpa.container.context.GlobalPersistenceManager.registerContext(GlobalPersistenceManager.java:76)
> at org.apache.aries.jpa.container.context.namespace.NSHandler.decorate(NSHandler.java:180)
> at org.apache.aries.blueprint.container.Parser.decorateCustomNode(Parser.java:1240)
> at org.apache.aries.blueprint.container.Parser.handleCustomElements(Parser.java:1230)
> at org.apache.aries.blueprint.container.Parser.parseBeanMetadata(Parser.java:568)
> at org.apache.aries.blueprint.container.Parser.parseBlueprintElement(Parser.java:391)
> at org.apache.aries.blueprint.container.Parser.loadComponents(Parser.java:335)
> at org.apache.aries.blueprint.container.Parser.populate(Parser.java:277)
> at org.apache.aries.blueprint.container.ParserServiceImpl.validateAndPopulate(ParserServiceImpl.java:81)
> at org.apache.aries.blueprint.container.ParserServiceImpl.parse(ParserServiceImpl.java:70)
> at org.apache.aries.blueprint.container.ParserServiceImpl.parse(ParserServiceImpl.java:64)
> at org.apache.aries.blueprint.ParserService$$EnhancerByCGLIB$$d93728fa.parse(<generated>)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.