Re: Wrapping PDFBox with JCC

2009-03-09 Thread Christian Heimes
Andi Vajda wrote: > Something's not setup right and the error is not properly reported. > To debug this, I'd use gdb to step through the code. > If you send me a self-contained test case that reproduces this, I can > give it a try. I'll prepare a test case tomorrow. Thanks again! Christian

Re: Wrapping PDFBox with JCC

2009-03-09 Thread Andi Vajda
On Mon, 9 Mar 2009, Christian Heimes wrote: Andi Vajda wrote: At first quick glance, you declare a native startPage method but your python class is not implementing it. On the other hand, it has a startArticle method. Oh, you are right. But that doesn't fix the issue. It's still failing with

Re: bugs in PythonQueryParser and PythonMultiFieldQueryParser

2009-03-09 Thread Andi Vajda
On Mon, 9 Mar 2009, Aaron Lav wrote: It looks to me as if the shipped PythonQueryParser (for overriding query parsing with Python code) only overrides the getBooleanQuery(Vector), but that just calls getBooleanQuery(List,boolean), which is the function which actually does the work (in the curre

Re: Wrapping PDFBox with JCC

2009-03-09 Thread Christian Heimes
Andi Vajda wrote: > At first quick glance, you declare a native startPage method but your > python class is not implementing it. On the other hand, it has a > startArticle method. Oh, you are right. But that doesn't fix the issue. It's still failing with the error message "SystemError: NULL result

Re: Wrapping PDFBox with JCC

2009-03-09 Thread Andi Vajda
On Mon, 9 Mar 2009, Christian Heimes wrote: public native void pythonDecRef(); public native void processTextPosition( TextPosition text ); public native void startDocument(PDDocument pdf); public native void startPage(PDPage page); } pdfbox.initVM(classpath=pdfbox.CLASSPATH) cl

bugs in PythonQueryParser and PythonMultiFieldQueryParser

2009-03-09 Thread Aaron Lav
It looks to me as if the shipped PythonQueryParser (for overriding query parsing with Python code) only overrides the getBooleanQuery(Vector), but that just calls getBooleanQuery(List,boolean), which is the function which actually does the work (in the current version of Lucene). I've attached a p

Re: Wrapping PDFBox with JCC

2009-03-09 Thread Christian Heimes
Andi Vajda wrote > > After both these fixes, I was able to build wrappers for pdfbox: > > > > >>> from pdfbox import * > > >>> initVM(CLASSPATH, vmargs='-Djava.awt.headless=true') > > > > >>> > > > > This is all checked into rev 751772. > > > > Please let me know if this works for you, I'd

Re: Wrapping PDFBox with JCC

2009-03-09 Thread Andi Vajda
On Sat, 28 Feb 2009, Christian Heimes wrote: Christian Heimes wrote: Thanks Andi! Your proposed solution worked like a charm and the file compiles. However the next file breaks with another error. This time it didn't help to add "operator" to the list of RES Follow up: Apparently JCC doesn't

Re: core dump with unregistered threads

2009-03-09 Thread Andi Vajda
On Mon, 9 Mar 2009, Bill Janssen wrote: I just spent some time tracking down a core dump in a big Python program, in PyLucene, till I figured out that the thread making the call had never been registered as a Java thread (the code at some interim calling frame changed till it suddenly was calli

core dump with unregistered threads

2009-03-09 Thread Bill Janssen
I just spent some time tracking down a core dump in a big Python program, in PyLucene, till I figured out that the thread making the call had never been registered as a Java thread (the code at some interim calling frame changed till it suddenly was calling into Java). Is there some way to make th