Re: WELCOME to general_at_simile.mit.edu

From: David Huynh <dfhuynh_at_csail.mit.edu>
Date: Sat, 03 Sep 2005 17:40:02 -0400

Maybe there's something off with the build process? I've just checked
out the latest source and built and Piggy Bank fails to load on Deer
Park Alpha 2 for me, too. I took a look at nsPiggyBank.js and the jar
filenames seem to get expanded incorrectly:

var commonJarFilenames =
['\Dev\piggy-bank\lib\informa-0.6.0.jar','\Dev\piggy-bank\lib\jdom-1.0.jar','\Dev\piggy-bank\lib\jtidy-04aug2000r7-dev.jar','\Dev\longwell2\lib\batik-awt-util-1.5.1.jar','\Dev\longwell2\lib\commons-collections-3.1.jar','\Dev\longwell2\lib\commons-logging-1.0.4.jar','\Dev\longwell2\lib\javax.servlet-5.1.4.jar','\Dev\longwell2\lib\jetty-5.1.4.jar','\Dev\longwell2\lib\log4j-1.2.11.jar','\Dev\longwell2\lib\lucene-1.4.3.jar','\Dev\longwell2\lib\picto-1.0.0.jar','\Dev\longwell2\lib\sesame-1.1.2.jar','\Dev\longwell2\lib\velocity-1.4.jar'];
// NOTE: this gets expanded in the build process!

Stefano, how do these get expanded? Perhaps this only happens on Windows?

If you just remove the relative paths to these jars (so that only their
filenames remain), and make change line 506 of
chrome/piggy-bank/content/scripts/piggybank.js to:

var url = "file:///" + escape(fileLocator.get("ProfD",
Components.interfaces.nsIFile).path.replace(/\\/g, "/")) + "/";

(note the call to replace) then Piggy Bank should load for you.

Cheers,

David


Tomas Marek wrote:

> Well, looking at the Java console, there's an Exception stack trace
> which looks like the following:
>
> java.security.PrivilegedActionException:
> java.lang.reflect.InvocationTargetException
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.plugin.liveconnect.SecureInvocation$2.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.plugin.liveconnect.SecureInvocation.CallMethod(Unknown Source)
> at sun.plugin.liveconnect.SecureInvocation.access$300(Unknown Source)
> at
> sun.plugin.liveconnect.SecureInvocation$CallMethodThread.run(Unknown
> Source)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
> at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
> at sun.plugin.liveconnect.PrivilegedCallMethodAction.run(Unknown
> Source)
> ... 6 more
> Caused by: java.lang.IllegalArgumentException
> at sun.net.www.ParseUtil.decode(Unknown Source)
> at sun.misc.FileURLMapper.getPath(Unknown Source)
> at sun.misc.FileURLMapper.exists(Unknown Source)
> at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
> at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
> at sun.misc.URLClassPath$3.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.misc.URLClassPath.getLoader(Unknown Source)
> at sun.misc.URLClassPath.getLoader(Unknown Source)
> at sun.misc.URLClassPath.getResource(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> ... 16 more
> java.security.PrivilegedActionException:
> java.lang.reflect.InvocationTargetException
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.plugin.liveconnect.SecureInvocation$2.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.plugin.liveconnect.SecureInvocation.CallMethod(Unknown Source)
> at sun.plugin.liveconnect.SecureInvocation.access$300(Unknown Source)
> at
> sun.plugin.liveconnect.SecureInvocation$CallMethodThread.run(Unknown
> Source)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
> at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
> at sun.plugin.liveconnect.PrivilegedCallMethodAction.run(Unknown
> Source)
> ... 6 more
> Caused by: java.lang.IllegalArgumentException
> at sun.net.www.ParseUtil.decode(Unknown Source)
> at sun.misc.FileURLMapper.getPath(Unknown Source)
> at sun.misc.FileURLMapper.exists(Unknown Source)
> at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
> at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
> at sun.misc.URLClassPath$3.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.misc.URLClassPath.getLoader(Unknown Source)
> at sun.misc.URLClassPath.getLoader(Unknown Source)
> at sun.misc.URLClassPath.getResource(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> ... 16 more
>
> The PrivilegedActionException occured when starting Firefox (during
> piggybank initialization?). I hope it might be helpful in order to
> resolve the issue.
>
> tom
>
> On 9/3/05, *Tomas Marek* <funtomas_at_gmail.com
> <mailto:funtomas_at_gmail.com>> wrote:
>
>Hi guys,
>
>I'm experiencing the same issue.
>Running XP Pro with Java plugin Version 1.5.0 (build 1.5.0_04-b05)
>and being behind a firewall, using F-secure AV. When visiting
>
>
>http://people.csail.mit.edu/dfhuynh/research/downloads/screen-scrapers/
>no "data coin icon" pointed on the page appears.
>I have no idea what's the culprit. Thanks for your suggestions.
>
>tom
>
>
>Michael Schidlowsky wrote:
>
>> I appear to have successfully installed the simile piggy-bank firefox
>> extension, and provided my email address the first time I restarted
>> firefox. However, I have not been able to make the symbol appear in the
>
>
>> lower-right hand side of my browser.
>>
>> Also, when I try to browse my piggy bank, I get an error:
>>
>> "The connection was refused when attempting to contact
>
>127.0.0.1:1978 <http://127.0.0.1:1978>"
>>
>> I've turned off my antivirus software and I don't have the windows
>> firewall software running, so I'm not sure what the problem might be.
>
>Do you have the java plugin installed? if so, what version? on what
>
>
>operating system are you running?
>
>The more information you give us the better we can help you.
>
>--
>Stefano Mazzocchi
>Research Scientist Digital Libraries Research Group
>Massachusetts Institute of Technology location: E25-131C
>
>
>77 Massachusetts Ave telephone: +1 (617) 253-1096
>Cambridge, MA 02139-4307 email: stefanom at mit . edu
>-------------------------------------------------------------------
>
>
>
>
> --
> Household tasks are easier and quicker when they are done by somebody
> else.
>
> James Thorpe
Received on Sat Sep 03 2005 - 21:33:42 EDT

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