[kaffe] build failure if old version present, ServletContext.setAttribute

Greg Wooledge greg at wooledge.org
Mon May 26 06:08:01 PDT 2003


Dalibor Topic (robilad at yahoo.com) wrote:

> --- Greg Wooledge <greg at wooledge.org> wrote:
> > I've been unable to get CVS Kaffe to work for about 2 weeks now.
> > This is on OpenBSD 3.2 x86.  I have CVS Kaffe from May 9 in
> > /usr/local/kaffe.  Then:
> 
> this seems to be another case of
> http://www.kaffe.org/pipermail/kaffe/2003-April/029290.html . Does it work when
> you remove the servlet.jar file from jre/lib/ ?

No.  It gets farther than before, before dying, but there's still
something else wrong.

stdout/stderr says this:

java.lang.NullPointerException
        at freenet.client.http.FproxyServlet.init(FproxyServlet.java:151)
        at freenet.client.http.StreamInsertServlet.init(StreamInsertServlet.java:45)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at freenet.interfaces.servlet.SimpleServletPool.createServlet(SimpleServletPool.java:31)
        at freenet.interfaces.servlet.SimpleServletPool.getServlet(SimpleServletPool.java:46)
        at freenet.interfaces.servlet.MultipleHttpServletContainer.starting(MultipleHttpServletContainer.java:393)
        at freenet.interfaces.servlet.MultipleHttpServletContainer.starting(MultipleHttpServletContainer.java:381)
        at freenet.interfaces.LocalInterface.starting(LocalInterface.java:262)
        at freenet.interfaces.Interface.run(Interface.java:148)
        at java.lang.Thread.run(Thread.java:334)
assertion "!INTS_DISABLED()" failed: file "exception.c", line 398

The freenet.log says this:

26-May-03 9:00:56 AM (freenet.node.Node, main, NORMAL): Starting ticker..
26-May-03 9:00:56 AM (freenet.node.Node, main, NORMAL): Starting interfaces..
26-May-03 9:00:57 AM (freenet.node.http.DistributionServlet, Interface # tcp/8891, ERROR): Template Initialization Failed
26-May-03 9:00:57 AM (freenet.node.http.BookmarkManagerServlet, Interface # tcp/8888, ERROR): Error creating template
java.io.IOException: stream closed
        at java.lang.Throwable.fillInStackTrace(Throwable.java:native)
        at java.lang.Throwable.<init>(Throwable.java:44)
        at java.lang.Exception.<init>(Exception.java:24)
        at java.io.IOException.<init>(IOException.java:24)
        at java.io.BufferedInputStream.checkIfStillOpen(BufferedInputStream.java:52)
        at java.io.BufferedInputStream._read(BufferedInputStream.java:97)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:80)
        at freenet.support.servlet.HtmlTemplate.readInputStream(HtmlTemplate.java:94)
        at freenet.support.servlet.HtmlTemplate.<init>(HtmlTemplate.java:64)
        at freenet.support.servlet.HtmlTemplate.createTemplate(HtmlTemplate.java:36)
        at freenet.node.http.BookmarkManagerServlet.init(BookmarkManagerServlet.java:117)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at freenet.interfaces.servlet.SimpleServletPool.createServlet(SimpleServletPool.java:31)
        at freenet.interfaces.servlet.SimpleServletPool.getServlet(SimpleServletPool.java:46)
        at freenet.interfaces.servlet.MultipleHttpServletContainer.starting(MultipleHttpServletContainer.java:393)
        at freenet.interfaces.servlet.MultipleHttpServletContainer.starting(MultipleHttpServletContainer.java:381)
        at freenet.interfaces.LocalInterface.starting(LocalInterface.java:262)
        at freenet.interfaces.Interface.run(Interface.java:148)
        at java.lang.Thread.run(Thread.java:334)
26-May-03 9:00:57 AM (freenet.node.http.BookmarkManagerServlet, Interface # tcp/8888, NORMAL): Bookmarks updated on request

And the core file backtrace says this:

#0  0x401df27b in kill ()
#1  0x401debd7 in abort ()
#2  0x40199f53 in __assert ()
#3  0x40033e2c in dispatchException (eobj=0x1534998, baseframe=0x1676110)
    at exception.c:398
#4  0x40034050 in floatingException (frame=0x1ce98f4) at exception.c:542
#5  0x40072640 in nullException (sig=11, code=30316900, ctx=0x1ce9914)
    at signal.c:87
#6  0x40009004 in ?? ()
#7  0x4007099c in jmutex_unlock (lock=0x146d268) at jthread.c:1957
#8  0x40049b95 in slowUnlockMutex (lkp=0xf88b84, where=0x1ce9abc) at ksem.h:116
#9  0x4004a1ed in slowUnlockObject (obj=0xf88b80, where=0x1ce9abc)
    at locks.c:538
#10 0x20ab24e in ?? ()
#11 0x11d3ec4 in ?? ()
#12 0x14a8fb0 in ?? ()
#13 0x94ebfe in ?? ()
#14 0x11c66cb in ?? ()
#15 0x1b9adb0 in ?? ()
#16 0x400532be in callMethodV (meth=0x30cab0, func=0x1b9ad48, obj=0x11a3830, 
    args=0x1ce9f94 "C<\005@`", ret=0x1ce9bec) at ../../config/i386/common.h:38
#17 0x40040a51 in Kaffe_CallVoidMethodV (env=0x40081c68, obj=0x11a3830, 
    meth=0x30cab0, args=0x1ce9f94 "C<\005@`") at jni.c:1094
#18 0x40040aee in Kaffe_CallVoidMethod (env=0x40081c68, obj=0x11a3830, 
    meth=0x30cab0) at jni.c:1107
#19 0x4005418f in firstStartThread (arg=0x11a3830) at thread.c:357
#20 0x4006f9c8 in start_this_sucker_on_a_new_frame () at jthread.c:1266
#21 0x4006fae6 in jthread_create (pri=-809513292, 
    func=0x40070b78 <jcondvar_wait+160>, daemon=2650184, jlThread=0x311b88, 
    threadStackSize=0) at jthread.c:1336

For reference, this is what freenet.log looks like when I use the
May 9th version:

26-May-03 9:04:41 AM (freenet.support.io.Bandwidth, main, NORMAL): new Bandwidth(100000,0,BOTH)
26-May-03 9:04:42 AM (freenet.node.Main, main, NORMAL): loading node keys: node
26-May-03 9:04:42 AM (freenet.node.Main, main, NORMAL): Read node file
26-May-03 9:04:42 AM (freenet.node.Main, main, NORMAL): starting filesystem
26-May-03 9:04:55 AM (freenet.node.Main, main, NORMAL): loading data store
26-May-03 9:04:55 AM (freenet.node.Main, main, NORMAL): loading routing table
26-May-03 9:04:56 AM (freenet.node.Main, main, NORMAL): loading temp bucket factory
26-May-03 9:04:56 AM (freenet.node.Main, main, NORMAL): loaded temp bucket factory
26-May-03 9:04:57 AM (freenet.node.Main, main, NORMAL): read seed nodes
26-May-03 9:04:57 AM (freenet.node.Main, main, NORMAL): Initial refs count: 1898
26-May-03 9:04:57 AM (freenet.node.Main, main, NORMAL): not seeding routing table
26-May-03 9:04:57 AM (freenet.node.Main, main, NORMAL): saved routing table
26-May-03 9:04:57 AM (freenet.node.Main, main, NORMAL): starting node
26-May-03 9:04:57 AM (freenet.node.Main, main, NORMAL): loading service: mainport
26-May-03 9:04:58 AM (freenet.node.Main, main, NORMAL): loading service: distribution
26-May-03 9:04:58 AM (freenet.interfaces.servlet.SingleHttpServletContainer, main, NORMAL): Loading the single servlet distribution.params.servlet
26-May-03 9:04:58 AM (freenet.node.Node, main, NORMAL): Starting ticker..
26-May-03 9:04:58 AM (freenet.node.Node, main, NORMAL): Starting interfaces..
26-May-03 9:04:58 AM (freenet.node.http.BookmarkManagerServlet, Interface # tcp/8888, NORMAL): Bookmarks updated on request

-- 
Greg Wooledge                  |   "Truth belongs to everybody."
greg at wooledge.org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20030526/95acb8dd/attachment-0002.pgp 


More information about the kaffe mailing list