On Thu, Jan 27, 2011 at 8:38 PM, PALMER, THOMAS C (ATTCORP) <[email protected]> wrote: > Stefan - > I've created a simple project plus test node XML that can dup this. Where > can I send it? Thanks -
please send it to my personal email address. thanks stefan > > -----Original Message----- > From: Stefan Guggisberg [mailto:[email protected]] > Sent: Thursday, January 27, 2011 11:45 AM > To: [email protected] > Subject: Re: NPE in ConcurrentCache > > On Thu, Jan 27, 2011 at 5:09 PM, PALMER, THOMAS C (ATTCORP) > <[email protected]> wrote: >> Stefan - >> Our code is absolutely single-threaded. This is just a standalone tool that >> creates a repository and then loads nodes from XML. I've also seen the same >> NPE when registering custom node types (CND files) - but sporadically. >> >> Any help is appreciated - thanks. > > is the problem reproducible? if you can provide a simple test case > i'll have a look. > > cheers > stefan > >> >> -----Original Message----- >> From: Stefan Guggisberg [mailto:[email protected]] >> Sent: Thursday, January 27, 2011 4:15 AM >> To: [email protected] >> Subject: Re: NPE in ConcurrentCache >> >> hi tom, >> >> On Wed, Jan 26, 2011 at 8:18 PM, PALMER, THOMAS C (ATTCORP) >> <[email protected]> wrote: >>> We're getting the following error when trying to load nodes into a newly >>> created repository. This is an Oracle repository and Jackrabbit 2.2.1. >>> We're loading nodes via session.importXML and then calling >>> session.getRootNode().accept() with a visitor that adjusts some >>> versioning information on the nodes. >>> >>> >>> >>> java.lang.NullPointerException >>> >>> at >>> org.apache.jackrabbit.core.cache.ConcurrentCache$E.access$000(Concurrent >>> Cache.java:47) >>> >>> at >>> org.apache.jackrabbit.core.cache.ConcurrentCache$1.removeEldestEntry(Con >>> currentCache.java:70) >>> >>> at java.util.LinkedHashMap.putImpl(LinkedHashMap.java:409) >>> >>> at java.util.LinkedHashMap.put(LinkedHashMap.java:370) >>> >> >> are you sure you're not using the same session concurrently in >> different threads? >> >> cheers >> stefan >> >> >>> at >>> org.apache.jackrabbit.core.cache.ConcurrentCache.shrinkIfNeeded(Concurre >>> ntCache.java:249) >>> >>> at >>> org.apache.jackrabbit.core.cache.ConcurrentCache.put(ConcurrentCache.jav >>> a:176) >>> >>> at >>> org.apache.jackrabbit.core.state.MLRUItemStateCache.cache(MLRUItemStateC >>> ache.java:83) >>> >>> at >>> org.apache.jackrabbit.core.state.ItemStateReferenceCache.cache(ItemState >>> ReferenceCache.java:169) >>> >>> at >>> org.apache.jackrabbit.core.state.LocalItemStateManager.getNodeState(Loca >>> lItemStateManager.java:111) >>> >>> at >>> org.apache.jackrabbit.core.state.LocalItemStateManager.getItemState(Loca >>> lItemStateManager.java:172) >>> >>> at >>> org.apache.jackrabbit.core.state.XAItemStateManager.getItemState(XAItemS >>> tateManager.java:260) >>> >>> at >>> org.apache.jackrabbit.core.state.SessionItemStateManager.getItemState(Se >>> ssionItemStateManager.java:161) >>> >>> at >>> org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:370) >>> >>> at >>> org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:337) >>> >>> at >>> org.apache.jackrabbit.core.ItemManager.getNode(ItemManager.java:630) >>> >>> at >>> org.apache.jackrabbit.core.LazyItemIterator.prefetchNext(LazyItemIterato >>> r.java:120) >>> >>> at >>> org.apache.jackrabbit.core.LazyItemIterator.next(LazyItemIterator.java:2 >>> 57) >>> >>> at >>> org.apache.jackrabbit.core.LazyItemIterator.nextNode(LazyItemIterator.ja >>> va:166) >>> >>> at >>> javax.jcr.util.TraversingItemVisitor.visit(TraversingItemVisitor.java:19 >>> 1) >>> >>> at >>> org.apache.jackrabbit.core.NodeImpl.accept(NodeImpl.java:1705) >>> >>> at >>> javax.jcr.util.TraversingItemVisitor.visit(TraversingItemVisitor.java:19 >>> 1) >>> >>> at >>> org.apache.jackrabbit.core.NodeImpl.accept(NodeImpl.java:1705) >>> >>> at >>> javax.jcr.util.TraversingItemVisitor.visit(TraversingItemVisitor.java:19 >>> 1) >>> >>> at >>> org.apache.jackrabbit.core.NodeImpl.accept(NodeImpl.java:1705) >>> >>> at >>> com.att.cms.jcr.util.jcrtool.ToolLoad.loadJcrData(ToolLoad.java:77) >>> >>> >>> >>> Any ideas? Thanks for your help - >>> >>> >>> >>> Tom Palmer >>> >>> Director, Strategic Technology Services >>> >>> AT&T Hosting & Application Services | 2000 Perimeter Park Drive, Suite >>> 140 | Morrisville, NC 27560 >>> >>> Office: +1 (919) 388-5937 | Mobile: +1 (919) 627-5431 >>> >>> [email protected] <mailto:[email protected]> >>> >>> >>> >>> Confidentiality Notice and Disclaimer: This e-mail transmission may >>> contain confidential and/or proprietary information of AT&T that is >>> intended only for the individual or entity named in the e-mail address. >>> If you are not the intended recipient, you are hereby notified that any >>> disclosure, copying, distribution, or reliance upon the contents of this >>> e-mail is strictly prohibited. If you have received this e-mail >>> transmission in error, please reply to the sender, so that AT&T can >>> arrange for proper delivery, and then please delete the message from >>> your inbox. Thank you. >>> >>> >>> >>> >> >
