Charlie Hull | 7 Apr 2008 15:02

Java Swig bindings - error in SmokeTest

Hi all,

I've now got a MSVC make file for the Java Swig bindings working - 
except it doesn't quite pass the Smoke Test. The error is:

Exception in thread "main" java.lang.NoClassDefFoundError: MyExpandDecider
Caused by: java.lang.ClassNotFoundException: MyExpandDecider
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

If I comment out lines 24-41 and lines 124-126 it passes. Can anyone 
(with a bit more Java knowledge perchance!) let me know how I might fix 
the SmokeTest.java file? There are some comments near these lines that 
give me the impression they might be needing a fix anyway....

Cheers

Charlie
James Aylett | 7 Apr 2008 15:38

Re: Java Swig bindings - error in SmokeTest

On Mon, Apr 07, 2008 at 02:02:27PM +0100, Charlie Hull wrote:

> I've now got a MSVC make file for the Java Swig bindings working - 
> except it doesn't quite pass the Smoke Test. The error is:
> 
> Exception in thread "main" java.lang.NoClassDefFoundError: MyExpandDecider
> Caused by: java.lang.ClassNotFoundException: MyExpandDecider
>          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>          at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>          at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

Is that the *entire* backtrace? It doesn't seem to contain any user
code at all. Which release is that? Your line numbers don't seem to
match my 1.0.6 copy. (Via SVN, so I may have something wrong of course.)

J

--

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james <at> tartarus.org                               uncertaintydivision.org
Charlie Hull | 7 Apr 2008 15:46

Re: Java Swig bindings - error in SmokeTest

James Aylett wrote:
> On Mon, Apr 07, 2008 at 02:02:27PM +0100, Charlie Hull wrote:
> 
>> I've now got a MSVC make file for the Java Swig bindings working - 
>> except it doesn't quite pass the Smoke Test. The error is:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError: MyExpandDecider
>> Caused by: java.lang.ClassNotFoundException: MyExpandDecider
>>          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>          at java.security.AccessController.doPrivileged(Native Method)
>>          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>          at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>>          at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> 
> Is that the *entire* backtrace? It doesn't seem to contain any user
> code at all. Which release is that? Your line numbers don't seem to
> match my 1.0.6 copy. (Via SVN, so I may have something wrong of course.)
> 
> J
> 
Yes, that's all I have. I added -verbose and got this (I've clipped out 
the bits that don't seem to relate). I really don't know Java, so shout 
if you can suggest a way to get more information.

...
[Loaded SmokeTest from 
file:/C:/work/xapian/xapian-releases/xapian-core-1.0.6/win32/Release/Java-Swig/]
[Loaded sun.misc.URLClassPath$JarLoader$2 from shared objects file]
(Continue reading)

Alessandro Pasotti | 10 Apr 2008 18:09
Picon
Gravatar

clustering

Hello

I'm new to this list (and to xapian) and I would like to use this
wonderful library from PHP within an IR project.

I read some messages about clustering and I saw some code about it in
a branch, now the question is if, at your opinion, is there any hope
that I could use that function within one month or the like.

I have some (very limited knowledge) of C/C++ and I can
compile/cross-compile under Linux (debian/ubuntu) if needed.

Any hint about this (or other options) would be highly appreciated.

Thanks in advance.
--

-- 
Alessandro Pasotti
w3:   www.itopen.it
Olly Betts | 11 Apr 2008 00:20
Favicon
Gravatar

Re: clustering

On Thu, Apr 10, 2008 at 06:09:51PM +0200, Alessandro Pasotti wrote:
> I'm new to this list (and to xapian) and I would like to use this
> wonderful library from PHP within an IR project.
> 
> I read some messages about clustering and I saw some code about it in
> a branch, now the question is if, at your opinion, is there any hope
> that I could use that function within one month or the like.

I believe the current state is that it works, but I'm not sure when it
will actually be released, and until then the API could change.

So if you want to give it a try, feel free.

> I have some (very limited knowledge) of C/C++ and I can
> compile/cross-compile under Linux (debian/ubuntu) if needed.
> 
> Any hint about this (or other options) would be highly appreciated.

Cross-compiling should work.  You don't mention what to, but mingw and
cygwin cross-compiles have both been tested fairly recently.

Cheers,
    Olly
Alessandro Pasotti | 12 Apr 2008 17:11
Picon
Gravatar

Re: clustering

2008/4/11, Olly Betts <olly <at> survex.com>:
> On Thu, Apr 10, 2008 at 06:09:51PM +0200, Alessandro Pasotti wrote:
>  > I read some messages about clustering and I saw some code about it in
>  > a branch, now the question is if, at your opinion, is there any hope
>  > that I could use that function within one month or the like.

> I believe the current state is that it works, but I'm not sure when it
>  will actually be released, and until then the API could change.
>
>  So if you want to give it a try, feel free.
>

Thanks for your reply, I will try it for sure.

Please tell me if I'm wrong: is this the right command to fetch that branch?

svn co svn://svn.xapian.org/xapian/branches/clustering xapian

Do I need to do anything special (which is not in the readme) in order
to compile or enable the clustering feature and PHP bindings for it?

--

-- 
Alessandro Pasotti
w3:   www.itopen.it
Olly Betts | 13 Apr 2008 08:48
Favicon
Gravatar

Re: clustering

On Sat, Apr 12, 2008 at 05:11:03PM +0200, Alessandro Pasotti wrote:
> Please tell me if I'm wrong: is this the right command to fetch that branch?
> 
> svn co svn://svn.xapian.org/xapian/branches/clustering xapian

Yes, that looks right.

> Do I need to do anything special (which is not in the readme) in order
> to compile or enable the clustering feature and PHP bindings for it?

To build an SVN checkout, you need to follow the instructions in
xapian-core/HACKING, which the top-level README directs you too
(though not as firmly as it really ought to):

http://svn.xapian.org/branches/clustering/xapian-core/HACKING?rev=10120&view=markup

I don't know if the clustering has been tested from PHP - Richard
has done most of the work on it, so he's the one who'll know.

Cheers,
    Olly
Alessandro Pasotti | 14 Apr 2008 12:20
Picon
Gravatar

Re: clustering

2008/4/13, Olly Betts <olly <at> survex.com>:
> On Sat, Apr 12, 2008 at 05:11:03PM +0200, Alessandro Pasotti wrote:
>  > Please tell me if I'm wrong: is this the right command to fetch that branch?
>  >
>  > svn co svn://svn.xapian.org/xapian/branches/clustering xapian
>
>
> Yes, that looks right.
>
>  I don't know if the clustering has been tested from PHP - Richard
>  has done most of the work on it, so he's the one who'll know.
>

Thanks.

I successfully built the package and I'm happily testing the
clustering feature from PHP.

--

-- 
Alessandro Pasotti
w3:   www.itopen.it
Anders Nordby | 16 Apr 2008 11:11

Xapian-omega does not build

Hi,

I have xapian-core 1.0.5 installed in FreeBSD 7. Trying to build
xapian-omega 1.0.6, I get this error message:

g++ -DHAVE_CONFIG_H -I. -I./common
-DCONFIGFILE_SYSTEM=\"/usr/local/etc/omega.conf\"  -Wall -W
-Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align
-Wno-multichar -Wno-long-long -fno-gnu-keywords -Wundef -Wshadow -g -O2
-I/usr/local/include -MT query.o -MD -MP -MF .deps/query.Tpo -c -o
query.o query.cc
query.cc: In function 'std::string eval(const std::string&, const
std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >&)':
query.cc:1906: error: 'toupper' is not a member of 'Xapian::Unicode'
*** Error code 1

Stop in /root/xapian-omega-1.0.6.
*** Error code 1

Stop in /root/xapian-omega-1.0.6.
*** Error code 1

Stop in /root/xapian-omega-1.0.6.

If I build with gcc 3.4.6 instead of the default 4.2.1 version, I get:

g++34 -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual
-Wcast-align -Wno-multichar -Wno-long-long -fno-gnu-keywords -Wundef
(Continue reading)

Anders Nordby | 16 Apr 2008 12:01

Re: Xapian-omega does not build

Hi,

This problem seems to only exist with xapian-omega 1.0.6, if used with
xapian-core 1.0.5. If I use xapian-omega 1.0.5 I can compile with no
problems. I take it this means the version numbers of xapian-core and
xapian-omega must match?

On Wed, Apr 16, 2008 at 11:11:53AM +0200, Anders Nordby wrote:
> I have xapian-core 1.0.5 installed in FreeBSD 7. Trying to build
> xapian-omega 1.0.6, I get this error message:
> 
> g++ -DHAVE_CONFIG_H -I. -I./common
> -DCONFIGFILE_SYSTEM=\"/usr/local/etc/omega.conf\"  -Wall -W
> -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align
> -Wno-multichar -Wno-long-long -fno-gnu-keywords -Wundef -Wshadow -g -O2
> -I/usr/local/include -MT query.o -MD -MP -MF .deps/query.Tpo -c -o
> query.o query.cc
> query.cc: In function 'std::string eval(const std::string&, const
> std::vector<std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >, std::allocator<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > > >&)':
> query.cc:1906: error: 'toupper' is not a member of 'Xapian::Unicode'
> *** Error code 1
> 
> Stop in /root/xapian-omega-1.0.6.
> *** Error code 1
> 
> Stop in /root/xapian-omega-1.0.6.
> *** Error code 1
> 
(Continue reading)


Gmane