we have also noticed that an NPE will be thrown in the fashion you mention below. for us, it occurs most frequently using JDK1.4 on Unix (Linux, Solaris). I am going to post a proposed temporary fix suggestion tomorrow.

I believe the root cause is the use of a WeakHashMap in the DocumentCache and changes to garbage collection in JDK1.4.

more to come.

--
[EMAIL PROTECTED]


Matt Liotta wrote:

After I add a small number of documents say less than 5, I start getting
exceptions thrown when I add new documents. Below is a stack trace. Any
ideas?

-Matt

java.lang.NullPointerException
        at
org.apache.xindice.core.DocumentCache$CacheKey.equals(DocumentCache.j
ava:171)
        at java.util.WeakHashMap.eq(WeakHashMap.java:256)
        at java.util.WeakHashMap.get(WeakHashMap.java:348)
        at
org.apache.xindice.core.DocumentCache.getDocument(DocumentCache.java:
79)
        at
org.apache.xindice.core.Collection.getDocument(Collection.java:711)
        at
org.apache.xindice.core.Collection.putDocument(Collection.java:624)
        at
org.apache.xindice.core.Collection.insertDocument(Collection.java:659
)
        at
org.apache.xindice.client.corba.CollectionServant.insertDocument(Coll
ectionServant.java:317)
        at
org.apache.xindice.client.corba.db.CollectionPOA._invoke(CollectionPO
A.java:181)
        at org.openorb.adapter.poa.POA.dispatch(POA.java:975)
        at
org.openorb.net.AbstractServerRequest.dispatch(AbstractServerRequest.
java:750)
        at
org.openorb.net.ServerManagerImpl.serve_request(ServerManagerImpl.jav
a:1467)
        at
org.openorb.net.ServerManagerImpl.thread_pool_main(ServerManagerImpl.
java:1410)
        at
org.openorb.net.ServerManagerImpl.access$200(ServerManagerImpl.java:7
7)
        at
org.openorb.net.ServerManagerImpl$PoolThread.run(ServerManagerImpl.ja
va:1557)




--
--
[EMAIL PROTECTED]



Reply via email to