Hi Philip,

I take this to its own thread.

Kaspar Fischer wrote:
I always get an error when I try to index a document "Wealth.txt" which contains the single line "Martin Fischer lives in Switzerland with his mother Elisabeth Fischer. He owns buildings worth $280,30 million.". The error is this:


INFO    8049[Thread-3] - /Users/hbf/downloads/kim-docs/Wealth.txt
INFO    8061[Thread-3] -         Creating ...
INFO    8076[Thread-3] - Creating GATE document ...
INFO    8161[Thread-3] -         Parsing features ...
INFO    8184[Thread-3] -         Annotating ...
INFO    8384[Thread-3] -         Storing ...
ERROR   8434[Thread-3] -         Failed storing the document!
com.ontotext.kim.client.documentrepository.DocumentRepositoryException
at com .ontotext .kim .lucene .LuceneDocumentRepositoryImpl .addDocument(LuceneDocumentRepositoryImpl.java:341)
        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 org .openrdf .util.rmirouting.ChannelIfaceImpl.invoke(ChannelIfaceImpl.java:514)
        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
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:613)
INFO    8446[Thread-3] -
Completed: 25% ( 1 of 4 files processed )
[Remaining documents indexed without problems...]

Philip Alexiev wrote:

I will need more information about the exception. Please change the debug level of Lucene in the log4j configuration file: $KIM_HOME/ config/log.prop . Change the line :
log4j.category.LUCENE = , aLUCENE
to :
log4j.category.LUCENE = DEBUG, aLUCENE
Then you should be able to see more details in the LUCENE log file in $KIM_HOME/log .

Here is the debug output:

New profiler run: ~Nerc APi Impl Execute ~>
-----------------------------------------------

INFO 111533[Thread-9](NercStopper.java:29) - [Nerc Stopper Thread] NERC will be interrupted after 600 seconds. INFO 111659[Thread-9](NercStopper.java:35) - [Nerc Stopper Thread] Exiting ... INFO 111663[RMI TCP Connection(5)-10.183.7.16] (SemanticAnnotationAPIImpl.java:187) - ---------LOG: <~Nerc APi Impl Executed ~--------- Memory: 228968k; change: 375k; max: 228968k; Net time: 0.13s; since prev. millisecs: 23 WARN 111689[RMI TCP Connection(5)-10.183.7.16] (LuceneDocumentRepositoryImpl.java:373) - Feature GATE.SOURCEURL is not in the feature schema. Feature schema is currently: [KEYENTITIES, TITLE, SUBTITLE, TIMESTAMP, ORIGIN, SUBJECT, FILE, KEYPHRASES, URL, SOURCE, AUTHORS] WARN 111691[RMI TCP Connection(5)-10.183.7.16] (LuceneDocumentRepositoryImpl.java:373) - Feature MIMETYPE is not in the feature schema. Feature schema is currently: [KEYENTITIES, TITLE, SUBTITLE, TIMESTAMP, ORIGIN, SUBJECT, FILE, KEYPHRASES, URL, SOURCE, AUTHORS] WARN 111691[RMI TCP Connection(5)-10.183.7.16] (LuceneDocumentRepositoryImpl.java:373) - Feature KEYPHRASE1 is not in the feature schema. Feature schema is currently: [KEYENTITIES, TITLE, SUBTITLE, TIMESTAMP, ORIGIN, SUBJECT, FILE, KEYPHRASES, URL, SOURCE, AUTHORS] WARN 111692[RMI TCP Connection(5)-10.183.7.16] (LuceneDocumentRepositoryImpl.java:373) - Feature DOCNEWLINETYPE is not in the feature schema. Feature schema is currently: [KEYENTITIES, TITLE, SUBTITLE, TIMESTAMP, ORIGIN, SUBJECT, FILE, KEYPHRASES, URL, SOURCE, AUTHORS] ERROR 111700[RMI TCP Connection(5)-10.183.7.16] (LuceneDocumentRepositoryImpl.java:340) -
java.lang.NullPointerException
at com .ontotext .kim .lucene .LuceneDocumentRepositoryImpl .addDocument(LuceneDocumentRepositoryImpl.java:334)
        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 org .openrdf.util.rmirouting.ChannelIfaceImpl.invoke(ChannelIfaceImpl.java: 514)
        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
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:613)
INFO 111810[RMI TCP Connection(7)-10.183.7.16] (SemanticAnnotationAPIImpl.java:157) - -----------------------------------------------
New profiler run: ~Nerc APi Impl Execute ~>
-----------------------------------------------

INFO 111812[Thread-11](NercStopper.java:29) - [Nerc Stopper Thread] NERC will be interrupted after 600 seconds. INFO 111851[Thread-11](NercStopper.java:35) - [Nerc Stopper Thread] Exiting ... INFO 111851[RMI TCP Connection(7)-10.183.7.16] (SemanticAnnotationAPIImpl.java:187) - ---------LOG: <~Nerc APi Impl Executed ~--------- Memory: 231288k; change: 0k; max: 231288k; Net time: 0.4s; since prev. millisecs: 2 WARN 111870[RMI TCP Connection(7)-10.183.7.16] (LuceneDocumentRepositoryImpl.java:373) - Feature GATE.SOURCEURL is not in the feature schema. Feature schema is currently: [KEYENTITIES, TITLE, SUBTITLE, TIMESTAMP, ORIGIN, SUBJECT, FILE, KEYPHRASES, URL, SOURCE, AUTHORS] WARN 111870[RMI TCP Connection(7)-10.183.7.16] (LuceneDocumentRepositoryImpl.java:373) - Feature MIMETYPE is not in the feature schema. Feature schema is currently: [KEYENTITIES, TITLE, SUBTITLE, TIMESTAMP, ORIGIN, SUBJECT, FILE, KEYPHRASES, URL, SOURCE, AUTHORS] WARN 111871[RMI TCP Connection(7)-10.183.7.16] (LuceneDocumentRepositoryImpl.java:373) - Feature DOCNEWLINETYPE is not in the feature schema. Feature schema is currently: [KEYENTITIES, TITLE, SUBTITLE, TIMESTAMP, ORIGIN, SUBJECT, FILE, KEYPHRASES, URL, SOURCE, AUTHORS] INFO 112010[RMI TCP Connection(7)-10.183.7.16] (SemanticAnnotationAPIImpl.java:157) - -----------------------------------------------


Best,
Kaspar
_______________________________________________
Kim-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion

Reply via email to