jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Villegas <...@uniscope.jp>
Subject Re: exception in indexer when creating versionable node
Date Tue, 17 Oct 2006 03:03:35 GMT
Yes, when I built the binaries the tests didn't report any failures.
Also the exception doesn't occur anymore after restarting the server.
The first time I start my server, there's no repository, it's then 
created, and some custom namespaces and node types are registered. The 
versionable node I create uses those namespaces and node types. It gives 
the exception on a newly created repository. After restarting the server 
the errors don't occur anymore.

Carlos

Marcel Reutegger wrote:
> Hi Carlos,
> 
> I quickly checked with the 1.1 source tag and the version related tests 
> do not show any of those exceptions.
> 
> Can you please create JIRA issue and attach a simple test class that 
> illustrates the problem?
> 
> thanks
> 
> regards
>  marcel
> 
> Carlos Villegas wrote:
>> Hi,
>>
>> I just upgraded jackrabbit to the head revision.
>> Although it seems to be working fine I noticed the following exception 
>> when creating a versionable node:
>>
>> 14:45:41,437 ERROR [ObservationDispatcher] Synchronous EventConsumer 
>> threw exception.
>> java.lang.NullPointerException
>>     at 
>> org.apache.jackrabbit.core.query.lucene.NodeIndexer.createDoc(NodeIndexer.java:141)

>>
>>     at 
>> org.apache.jackrabbit.core.query.lucene.NodeIndexer.createDocument(NodeIndexer.java:115)

>>
>>     at 
>> org.apache.jackrabbit.core.query.lucene.SearchIndex.createDocument(SearchIndex.java:459)

>>
>>     at 
>> org.apache.jackrabbit.core.query.lucene.SearchIndex$2.next(SearchIndex.java:302)

>>
>>     at 
>> org.apache.jackrabbit.core.query.lucene.MultiIndex.update(MultiIndex.java:322) 
>>
>>     at 
>> org.apache.jackrabbit.core.query.lucene.SearchIndex.updateNodes(SearchIndex.java:290)

>>
>>     at 
>> org.apache.jackrabbit.core.SearchManager.onEvent(SearchManager.java:471)
>>     at 
>> org.apache.jackrabbit.core.observation.EventConsumer.consumeEvents(EventConsumer.java:231)

>>
>>     at 
>> org.apache.jackrabbit.core.observation.ObservationDispatcher.dispatchEvents(ObservationDispatcher.java:201)

>>
>>     at 
>> org.apache.jackrabbit.core.observation.EventStateCollection.dispatch(EventStateCollection.java:430)

>>
>>     at 
>> org.apache.jackrabbit.core.observation.DelegatingObservationDispatcher.dispatch(DelegatingObservationDispatcher.java:123)

>>
>>     at 
>> org.apache.jackrabbit.core.observation.DelegatingObservationDispatcher.dispatchEvents(DelegatingObservationDispatcher.java:99)

>>
>>     at 
>> org.apache.jackrabbit.core.observation.EventStateCollection.dispatch(EventStateCollection.java:430)

>>
>>     at 
>> org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:657)

>>
>>     at 
>> org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:747)

>>
>>     at 
>> org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:325)

>>
>>     at 
>> org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:301)

>>
>>     at 
>> org.apache.jackrabbit.core.version.AbstractVersionManager.createVersionHistory(AbstractVersionManager.java:254)

>>
>>     at 
>> org.apache.jackrabbit.core.version.VersionManagerImpl$1.run(VersionManagerImpl.java:207)

>>
>>     at 
>> org.apache.jackrabbit.core.version.VersionManagerImpl$DynamicESCFactory.doSourced(VersionManagerImpl.java:579)

>>
>>     at 
>> org.apache.jackrabbit.core.version.VersionManagerImpl.createVersionHistory(VersionManagerImpl.java:204)

>>
>>     at 
>> org.apache.jackrabbit.core.version.XAVersionManager.createVersionHistory(XAVersionManager.java:147)

>>
>>     at 
>> org.apache.jackrabbit.core.ItemImpl.initVersionHistories(ItemImpl.java:771) 
>>
>>     at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1181)
>>     at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:817)
>>     at 
>> org.apache.jackrabbit.rmi.server.ServerSession.save(ServerSession.java:211) 
>>
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>>
>>     at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

>>
>>     at java.lang.reflect.Method.invoke(Method.java:585)
>>     at 
>> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
>>     at sun.rmi.transport.Transport$1.run(Transport.java:153)
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
>>     at 
>> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
>>     at 
>> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) 
>>
>>     at java.lang.Thread.run(Thread.java:595)
>> 14:45:41,437 INFO  [AbstractVersionManager] Created new version 
>> history c3127d65-4d18-452e-81b5-94ea5f4d13ad for 
>> org.apache.jackrabbit.core.state.NodeState@1fe9644.
>> 14:47:27,875 INFO  [IndexMerger] merged 375 documents in 500 ms into _a.
>>
>>
>> Will this cause any problems later?
>>
>> Thanks,
>>
>> Carlos
>>
> 
> 


Mime
View raw message