:::::: Semantic-bank: Does flairs and facades still tick in SB-2.1.1? -> Eclipse reports errors on SB

From: Patrik Holmer <NNTP.psbh_at_telia.com>
Date: Mon, 3 Apr 2006 13:04:51 +0200

Ryan,

a log when running debug on trunked Longwell2 and Semantic-bank in WXP-SP2,
Eclipse 3.1.2, using jre of j2sdk1.4.2-04:


1. Error Report - slight errors, also reported running tagged version in a
console window - when debugging only Longwell at startup. All according to
the default of the checked out longwell2-project through subeclipse

2006-04-03 11:29:28,087 [SocketListener0-4] ERROR Velocity(143) - VM
#addNarrowingButton: error : too few arguments to macro. Wanted 3 got 0

2006-04-03 11:29:28,097 [SocketListener0-4] ERROR Velocity(143) - VM
#addBroadeningButton: error : too few arguments to macro. Wanted 3 got 0

2006-04-03 11:29:28,097 [SocketListener0-4] ERROR Velocity(143) - VM
#addTextSearchButton: error : too few arguments to macro. Wanted 1 got 0

...Longwell seems to work, sufficiently!

 
2. Error Report - critical errors bringing up a HTTP 500 - when debugging
Semantic-bank with a user-referenced Longwell. All according to the default
of checked out projects through subeclipse

2006-04-03 11:20:08,893 [main] INFO
edu.mit.simile.semanticBank.SemanticBank - Reading properties file
C:\Documents and Settings\MeMyselfAndI\My
documents\Issues\Eclipse\Semantic-bank\semantic-bank.properties

2006-04-03 11:20:08,943 [main] INFO
edu.mit.simile.semanticBank.SemanticBank - Starting Semantic Bank:

           common system dir: C:\Documents and Settings\MeMyselfAndI\My
documents\Issues\Eclipse\Semantic-bank\vault\common

           bank database dir: C:\Documents and Settings\MeMyselfAndI\My
documents\Issues\Eclipse\Semantic-bank\vault\bank\database

           bank system dir: C:\Documents and Settings\MeMyselfAndI\My
documents\Issues\Eclipse\Semantic-bank\vault\bank\system

           account dir: C:\Documents and Settings\MeMyselfAndI\My
documents\Issues\Eclipse\Semantic-bank\vault\accounts

2006-04-03 11:20:09,794 [main] INFO edu.mit.simile.longwell.LongwellServer
- Creating Longwell server:

           default corpus system dir: C:\Documents and
Settings\MeMyselfAndI\My
documents\Issues\Eclipse\Semantic-bank\vault\bank\system

           common system dir: C:\Documents and
Settings\MeMyselfAndI\My documents\Issues\Eclipse\Semantic-bank\vault\common

2006-04-03 11:20:10,816 [main] INFO Longwell - Setting up HTTP Server

           host 127.0.0.1

           port 8888

           context /bank

           from C:\Documents and Settings\MeMyselfAndI\My
documents\Issues\Eclipse\Semantic-bank\src\ui\html

2006-04-03 11:20:59,456 [SocketListener0-4] DEBUG
edu.mit.simile.longwell.ui.FlairServlet - > init

2006-04-03 11:20:59,746 [SocketListener0-4] ERROR
edu.mit.simile.longwell.ui.FlairServlet - Failed to initialize Velocity
engine

java.lang.NullPointerException

           at
edu.mit.simile.longwell.ui.FlairServlet.createInitProperties(FlairServlet.ja
va:144)

           at
edu.mit.simile.longwell.ui.FlairServlet.init(FlairServlet.java:62)

           at
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:383)

           at
org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:329)

           at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:405)

           at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:665)

           at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)

           at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)

           at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)

           at org.mortbay.http.HttpServer.service(HttpServer.java:954)

           at
org.mortbay.http.HttpConnection.service(HttpConnection.java:814)

           at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)

           at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)

           at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

           at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

           at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

2006-04-03 11:20:59,766 [SocketListener0-4] WARN /bank - /bank/:

java.lang.NullPointerException

           at
edu.mit.simile.longwell.ui.FlairServlet.createInitProperties(FlairServlet.ja
va:144)

           at
edu.mit.simile.longwell.ui.FlairServlet.init(FlairServlet.java:62)

           at
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:383)

           at
org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:329)

           at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:405)

           at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:665)

           at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)

           at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)

           at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)

           at org.mortbay.http.HttpServer.service(HttpServer.java:954)

           at
org.mortbay.http.HttpConnection.service(HttpConnection.java:814)

           at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)

           at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)

           at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

           at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

           at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
 
... and that's where the execution of SB waits or halts!


3. Displayed Error in a browser when running Semantic-bank through Eclipse
3.1.2:

HTTP ERROR: 500

Failed to initialize Velocity engine

RequestURI=/bank/

Powered by Jetty://
 
---
It seems to me to be an issue with Flair or Velocity, specific to
Semantic-bank and not Longwell. Any ideas, anyone with an insight into the
projects?
// Patrik
-----Ursprungligt meddelande-----
Från: Patrik Holmer [mailto:NNTP.psbh_at_telia.com] 
Skickat: söndag den 2 april 2006 22:19
Till: general_at_simile.mit.edu
Ämne: ::::: Semantic-bank: Does flairs and facades still tick in SB-2.1.1?
-> concrete log-examples - from Debian-Ubuntu (Linux)
Ryan,
some log-fragments regarding the missing Starting Points in Semantic-bank
(SB):
1. Using a fully updated Ubuntu Linux, Mozilla Firefox, Suns j2sdk1.4.2_04
and the tagged Semantic-bank-2.1.1.tar, running SB as
http://127.0.0.1:8888/bank, in combination with the latest Piggy-bank (PB)
distribution causes the following - and please note my inserted comments (--
? ->):
-- Loading ontologies, Ctrl-C, then configurations and facades ->
2006-04-02 15:13:36,097 [SocketListener0-4] DEBUG
edu.mit.simile.longwell.ui.FlairServlet - > makeMessage
2006-04-02 15:13:36,097 [SocketListener0-4] DEBUG
edu.mit.simile.longwell.ui.FlairServlet - < makeMessage
2006-04-02 15:13:36,097 [SocketListener0-4] DEBUG .
<- Logged ending of loading configs and facades, assumed working just fine
--
.
.
-- Tagged and pressed [Publish] in a selected record of Piggy Bank, failing
as HTTP 400 ->
edu.mit.simile.longwell.ui.FlairServlet - Execute Command: upload
2006-04-02 15:13:36,100 [SocketListener0-4] ERROR
edu.mit.simile.SimileUtilities - Fatal error: Expected '.', found '<' 
at http://127.0.0.1:8888/bank/MeMyselfAndI# [17,-1]
2006-04-02 15:13:36,101 [SocketListener0-4] ERROR
edu.mit.simile.semanticBank.servlet.UploadCommand -
edu.mit.simile.SimileUtilities$ModelReadFromFileException: Failed to read
data from 'http://127.0.0.1:8888/bank/MeMyselfAndI#'
2006-04-02 15:13:36,101 [SocketListener0-4] DEBUG
edu.mit.simile.longwell.ui.FlairServlet - < doPost
2006-04-02 15:13:36,102 [SocketListener0-4] WARN
org.mortbay.http.HttpConnection - POST
/bank/MeMyselfAndI?command=upload&format=rdfxml HTTP/1.1
HttpException(400,Bad 
>Request,Missing Content)
>2006-04-02 15:13:36,109 [SocketListener0-4] DEBUG 
>edu.mit.simile.longwell.ui.FlairServlet - > doPost
>2006-04-02 15:13:36,109 [SocketListener0-4] DEBUG 
>edu.mit.simile.longwell.ui.FlairServlet - > makeMessage
>2006-04-02 15:13:36,109 [SocketListener0-4] DEBUG 
>edu.mit.simile.longwell.ui.FlairServlet - < makeMessage
>2006-04-02 15:13:36,109 [SocketListener0-4] DEBUG 
>edu.mit.simile.longwell.ui.FlairServlet - Execute Command: upload
>2006-04-02 15:13:36,112 [SocketListener0-4] ERROR 
>edu.mit.simile.SimileUtilities - Fatal error: Expected '.', found '<'
>at http://127.0.0.1:8888/bank/MeMyselfAndI# [17,-1]
>2006-04-02 15:13:36,113 [SocketListener0-4] ERROR 
>edu.mit.simile.semanticBank.servlet.UploadCommand -
>edu.mit.simile.SimileUtilities$ModelReadFromFileException: Failed to 
>read data from 'http://127.0.0.1:8888/bank/MeMyselfAndI#'
>2006-04-02 15:13:36,113 [SocketListener0-4] DEBUG 
>edu.mit.simile.longwell.ui.FlairServlet - < doPost
>2006-04-02 15:13:36,114 [SocketListener0-4] WARN 
>org.mortbay.http.HttpConnection - POST 
>/bank/MeMyselfAndI?command=upload&format=rdfxml HTTP/1.1
HttpException(400,Bad 
>Request,Missing Content)
<- End of Semantic-bank log
2. Using a fully updated Ubuntu Linux (Debian), Mozilla Firefox, Suns
j2sdk1.4.2_11 and Ant'ed trunks of Longwell and Semantic-bank, running SB as
http://127.0.0.1:8888/bank, in combination with the latest Piggy-bank (PB)
distribution causes - and please note my inserted comments (-- ? ->):
-- Loading ontologies, Ctrl-C, then configurations and facades ->
SELECT DISTINCT o FROM
{<urn:bnode:http://usefulinc.com/ns/doap#module:1144004960985:node0>}
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> {o}
2006-04-02 21:18:58,601 [SocketListener0-4] DEBUG
edu.mit.simile.RDFUtilities - Query took 14ms:
<- Logged ending of loading configs and facades, assumed working just fine
--
.
.
-- Tagged and pressed [Publish] in a selected record of Piggy Bank, working
just fine -> .
.
-- Selected a newly displayed Starting Point in Semantic-Bank ->
SELECT DISTINCT o FROM
{<urn:bnode:http://www.w3.org/2002/07/owl#Nothing:1144004965644:node1>}
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> {o}
2006-04-02 21:18:58,602 [SocketListener0-4] ERROR
edu.mit.simile.longwell.ui.command.BrowseCommand -
java.lang.NullPointerException java.lang.NullPointerException
        at
edu.mit.simile.longwell.query.engine.Narrower.narrow(Narrower.java:80)
        at
edu.mit.simile.longwell.query.engine.QueryEngine$Answer.getNarrowingFacets(Q
ueryEngine.java:263)
        at
edu.mit.simile.longwell.ui.command.BrowseCommand.execute(BrowseCommand.java:
69)
        at
edu.mit.simile.longwell.ui.FlairServlet.doGet(FlairServlet.java:93)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
        at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:665)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
        at org.mortbay.http.HttpServer.service(HttpServer.java:954)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
        at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
2006-04-02 21:18:58,604 [SocketListener0-4] DEBUG
edu.mit.simile.longwell.ui.command.BrowseCommand - < browse
2006-04-02 21:18:58,604 [SocketListener0-4] DEBUG
edu.mit.simile.longwell.ui.FlairServlet - < doGet
<- end of logged output, displaying a blank page in Firefox
Using Semantic-Bank 2.1.1: "Fatal error: Expected '.', found '<'" turns up
suddenly, when using that previously working version of SB? Any ideas about
the problem?  
// Patrik
-----Ursprungligt meddelande-----
Från: Patrik Holmer [mailto:NNTP.psbh_at_telia.com]
Skickat: fredag den 31 mars 2006 16:26
Till: general_at_simile.mit.edu
Ämne: :::: Semantic-bank: Does flairs and facades still tick in SB-2.1.1? ->
concrete findings...
Ryan,
my findings regarding the missing Starting Points in Semantic-bank (SB):
1. Using a fully updated WXP-SR2, Mozilla Firefox, Suns j2sdk1.4.2_04 and
the tagged Semantic-bank-2.1.1.zip, running SB as
http://127.0.0.1:8888/bank, in combination with the latest * reinstalled *
Piggy-bank (PB) distribution causes:
1a. An Information-dialogue stating; http://127.0.0.1:1978 "Failed to
publish the item. Status code: 500", when publishing a single post in PB,
using my ordinary added-removed-and-then-added SB-user account
1b. An Information-dialogue stating; "Failed to save your data to your
banks: java.security.PriviledgedActionException:
java.security.PriviledgeActionException:java.lang.reflect.InvocationTargetEx
ception", when using PB-menu -> Utilities -> Re-save All My Data to My Bank
Every collected post show up in PB as expected, though - with Starting
Points.
2. Using a fully updated WXP-SR2, Mozilla Firefox, Suns j2sdk1.4.2_04 and an
Ant'ed version of the trunked Semantic-bank and the Longwell-trunk, running
SB as http://127.0.0.1:8888/bank, in combination with the latest *
reinstalled * Piggy-bank (PB) distribution causes:
2a. An Information-dialogue stating; http://127.0.0.1:1978 "Failed to
publish the item. Status code: 404", when publishing a single post in PB,
using my ordinary added-removed-and-then-added SB-user account
2b. An update, noted by the added tags in SB, but no Starting Points, when
adding a totally different user account than the one I commonly use - that's
a three-letter word instead of a four-letter word in ASCII
So, what's the problem?
3. Related topic: cURL-uploads
Although the possibility to preview collected records in Piggy-bank (PB) has
it's meaning. As a user of Windows, Solaris and a number of Linux-dist's,
using MSIE, the Mozilla-browsers, Opera and Konqueror et al, I'm not to
happy about using a browser specific plug-in as Piggy-bank.
Assuming that Starting Points actually works, is it possible to provide
Semantic-bank-tags with the universal cURL or Libwww-commands, instead of
using PB? More specifically, noting the fully working SB-calls at
http://simile.mit.edu/reports/bank-api/, when POST-uploading, are there any
parameters available defining associated tags?
// Patrik
-----Ursprungligt meddelande-----
Från: Patrik Holmer [mailto:NNTP.psbh_at_telia.com]
Skickat: fredag den 31 mars 2006 01:22
Till: general_at_simile.mit.edu
Ämne: :: Semantic-bank: Does flairs and facades still tick in SB-2.1.1? -> a
bit of weeding-out...
Ryan,
about what used to work in the Semantic-bank-2.1.1-tagged version: A
back-to-basics test, loading all the ontologies, followed by configurations
and facades available under ../src - as suggested at the end of
http://simile.mit.edu/semantic-bank/install.html, doesn't result in any
Starting Points displayed. Any-how, I'll follow your advice and check out
the trunked version of SB, Ant-it and return concrete findings to the
discussion group.
By the way, I find many issues, as mine, to be nothing but specific user
issues - or, at worst, a colloquial "1337". So, assuming you have access to
an activity report, how frequent is the use of the Issue Tracker at both
ends of the table?
More specifically, are the issues monitored daily by it's project managers?
Further, what about making the Issue tracker as accessible as the mailing
lists on the http://simile.mit.edu Front Page? That would be the already
displayed 'Join us by subscribing to our mailing lists' followed by a new
link of 'Log on to the Issue Tracker to handle your [Simile] issues' -
http://simile.mit.edu/issues/secure/Dashboard.jspa. If nothing less, it
might help to ease the word-per-minute count.
// Patrik
-----Ursprungligt meddelande-----
Från: Ryan Lee [mailto:ryanlee_at_w3.org]
Skickat: onsdag den 29 mars 2006 19:15
Till: general_at_simile.mit.edu
Ämne: Re: Semantic-bank: Does flairs and facades still tick in SB-2.1.1?
Hi Patrik,
Patrik Holmer wrote:
> Hi,
> 
> I'm doing a bit of backtracking in Semantic-Bank (SB) and found that 
> the default installation of SB can't generate Starting Points in SB
any-longer.
> It used to work. So, I had a look at the referred flairs and facades 
> of a default foaf-facade.n3 - at the simile url 
> http://simile.mit.edu/2005/04/flair - and found nothing but a Page Not 
> Found-notice. Other ontologies present in the provided foaf-facade.n3 
> of the semantic-bank-2.1.1.zip package, as the rdf-schema 
> http://www.w3.org/2000/01/rdf-schema, are reachable and readable.
> Anyone with ideas about this 'Page Not Found'-problem?
We just hadn't coordinated between ontology namespaces and their actual HTTP
resources.  By all means, let us know if you find any other missing
vocabularies.
I see there's a bug w/patch filed on Longwell that relates to Flair, which I
just applied.  It's probably unrelated to your issue, but you may want to
try SB out of the repository to check.
What precisely did you do in the past that worked but no longer works?
> A notice to the webmaster: Yesterday, I had a look at the SB-subsite.
> Browsing-around in the subsite I noticed that the available 'View the 
> Code History'-link - 
> http://simile.mit.edu/viewsvn/semanitc-bank/trunk/ - is spelled as
'semanITC-bank'. Causing the following HTTP 404-message:
> -->
> An Exception Has Occurred
> semanitc-bank/trunk: unknown location
> HTTP Response Status
> 404 Not Found
> Python Traceback
> Traceback (most recent call last):
>   File "/opt/versions/viewcvs-20041212/lib/viewcvs.py", line 3275, in main
>     request.run_viewcvs()
>   File "/opt/versions/viewcvs-20041212/lib/viewcvs.py", line 291, in 
> run_viewcvs
>     % self.where, '404 Not Found')
> ViewCVSException: 404 Not Found: semanitc-bank/trunk: unknown location
> <--
> 
> It might be a good thing to correct that link - and on the whole 
> provide a neutral HTTP-404 message. Also, are you guys still using CVS 
> in any way? I thought Simile used Subversion (svn.)
> 
> // Patrik
Thanks for the catch.  ViewCVS is just the name of the software, it so
happens it could be adapted to SVN without being wholly rewritten, so they
packaged it up without changing the name.  Unfortunately it seems to handle
404's on its own without passing them downstream, so I made a quick change
to the error template to look more like the rest of the site.
-- 
Ryan Lee                 ryanlee_at_w3.org
W3C Research Engineer    +1.617.253.5327
http://simile.mit.edu/
Received on Mon Apr 03 2006 - 11:04:10 EDT

This archive was generated by hypermail 2.3.0 : Thu Aug 09 2012 - 16:39:18 EDT