Description
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>)