tliron / prudence

An opinionated lightweight web framework built for scale
https://prudence.threecrickets.com
Apache License 2.0
13 stars 5 forks source link

Unable to start Prudence on Win7 #29

Closed GoogleCodeExporter closed 3 years ago

GoogleCodeExporter commented 9 years ago
Seeing this error when running batch file.

D:\prudence\v2-dev14>sincerity start prudence
Prudence 2.0-dev14 (Restlet JSE 2.2m5, Jetty 9.0.6.v20130930, Rhino 1.7 release 
4 2012 06 18)
Server: "default" HTTP/1.1 on port 8080
Setting up application: "Prudence Administration"
Setting up application: "Prudence Example"
Setting up application: "Stickstick"
Error: Something very bad happened!

Note this install was a simple unzip of zip file on your site.  There are no 
errors in the common.log - hazelcast is up.

I had first used the windows installer which installed without errors.

Running sincerity start prudence in the default install directory (C:\Program 
Files (x86)\prudence-2.0-dev14) yields this error:

 C:\Program Files (x86)\prudence-2.0-dev14>sincerity start prudence
com.threecrickets.sincerity.exception.SincerityException: Could not parse 
source code for execution:
 /libraries\scripturian\plugins\logging.js
        at com.threecrickets.sincerity.ScripturianShell.makeEnterable(ScripturianShell.java:175)
        at com.threecrickets.sincerity.DelegatedPlugin.<init>(DelegatedPlugin.java:49)
        at com.threecrickets.sincerity.Plugins.<init>(Plugins.java:68)
        at com.threecrickets.sincerity.Container.getPlugins(Container.java:202)
        at com.threecrickets.sincerity.Sincerity.getPlugins(Sincerity.java:464)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:942)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:681)
        at com.threecrickets.sincerity.Sincerity.main(Sincerity.java:129)
        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 com.threecrickets.bootstrap.Bootstrap.bootstrap(Bootstrap.java:244)
        at com.threecrickets.sincerity.Sincerity.reboot(Sincerity.java:633)
        at com.threecrickets.sincerity.Sincerity.reboot(Sincerity.java:603)
        at com.threecrickets.sincerity.Sincerity.setContainerRoot(Sincerity.java:404)
        at com.threecrickets.sincerity.Sincerity.getContainerRoot(Sincerity.java:369)
        at com.threecrickets.sincerity.Sincerity.getContainer(Sincerity.java:424)
        at com.threecrickets.sincerity.Sincerity.getPlugins(Sincerity.java:464)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:942)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:681)
        at com.threecrickets.sincerity.Sincerity.main(Sincerity.java:129)
        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 com.threecrickets.bootstrap.Bootstrap.bootstrap(Bootstrap.java:244)
        at com.threecrickets.bootstrap.Bootstrap.main(Bootstrap.java:143)
Caused by:

com.threecrickets.scripturian.exception.PreparationException: 
libraries\scripturian\plugins\logging.
js
        at com.threecrickets.scripturian.adapter.RhinoProgram.prepare(RhinoProgram.java:115)
        at com.threecrickets.scripturian.internal.ExecutableSegment.createProgram(ExecutableSegment.
java:190)
        at com.threecrickets.scripturian.Executable.<init>(Executable.java:301)
        at com.threecrickets.scripturian.Executable.createOnce(Executable.java:232)
        at com.threecrickets.scripturian.Executable.createOnce(Executable.java:198)
        at com.threecrickets.sincerity.ScripturianShell.makeEnterable(ScripturianShell.java:164)
        at com.threecrickets.sincerity.DelegatedPlugin.<init>(DelegatedPlugin.java:49)
        at com.threecrickets.sincerity.Plugins.<init>(Plugins.java:68)
        at com.threecrickets.sincerity.Container.getPlugins(Container.java:202)
        at com.threecrickets.sincerity.Sincerity.getPlugins(Sincerity.java:464)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:942)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:681)
        at com.threecrickets.sincerity.Sincerity.main(Sincerity.java:129)
        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 com.threecrickets.bootstrap.Bootstrap.bootstrap(Bootstrap.java:244)
        at com.threecrickets.sincerity.Sincerity.reboot(Sincerity.java:633)
        at com.threecrickets.sincerity.Sincerity.reboot(Sincerity.java:603)
        at com.threecrickets.sincerity.Sincerity.setContainerRoot(Sincerity.java:404)
        at com.threecrickets.sincerity.Sincerity.getContainerRoot(Sincerity.java:369)
        at com.threecrickets.sincerity.Sincerity.getContainer(Sincerity.java:424)
        at com.threecrickets.sincerity.Sincerity.getPlugins(Sincerity.java:464)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:942)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:681)
        at com.threecrickets.sincerity.Sincerity.main(Sincerity.java:129)
        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 com.threecrickets.bootstrap.Bootstrap.bootstrap(Bootstrap.java:244)
        at com.threecrickets.bootstrap.Bootstrap.main(Bootstrap.java:143)
Caused by:

java.io.FileNotFoundException: C:\Program Files 
(x86)\prudence-2.0-dev14\cache\javascript\container\
libraries\scripturian\plugins\logging$js$0$1384069707000.class (The system 
cannot find the path spec
ified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at com.threecrickets.scripturian.adapter.RhinoProgram.prepare(RhinoProgram.java:89)
        at com.threecrickets.scripturian.internal.ExecutableSegment.createProgram(ExecutableSegment.
java:190)
        at com.threecrickets.scripturian.Executable.<init>(Executable.java:301)
        at com.threecrickets.scripturian.Executable.createOnce(Executable.java:232)
        at com.threecrickets.scripturian.Executable.createOnce(Executable.java:198)
        at com.threecrickets.sincerity.ScripturianShell.makeEnterable(ScripturianShell.java:164)
        at com.threecrickets.sincerity.DelegatedPlugin.<init>(DelegatedPlugin.java:49)
        at com.threecrickets.sincerity.Plugins.<init>(Plugins.java:68)
        at com.threecrickets.sincerity.Container.getPlugins(Container.java:202)
        at com.threecrickets.sincerity.Sincerity.getPlugins(Sincerity.java:464)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:942)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:681)
        at com.threecrickets.sincerity.Sincerity.main(Sincerity.java:129)
        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 com.threecrickets.bootstrap.Bootstrap.bootstrap(Bootstrap.java:244)
        at com.threecrickets.sincerity.Sincerity.reboot(Sincerity.java:633)
        at com.threecrickets.sincerity.Sincerity.reboot(Sincerity.java:603)
        at com.threecrickets.sincerity.Sincerity.setContainerRoot(Sincerity.java:404)
        at com.threecrickets.sincerity.Sincerity.getContainerRoot(Sincerity.java:369)
        at com.threecrickets.sincerity.Sincerity.getContainer(Sincerity.java:424)
        at com.threecrickets.sincerity.Sincerity.getPlugins(Sincerity.java:464)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:942)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:681)
        at com.threecrickets.sincerity.Sincerity.main(Sincerity.java:129)
        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 com.threecrickets.bootstrap.Bootstrap.bootstrap(Bootstrap.java:244)
        at com.threecrickets.bootstrap.Bootstrap.main(Bootstrap.java:143)

com.threecrickets.sincerity.exception.SincerityException: Could not parse 
source code for execution:
 /libraries\scripturian\plugins\prudence.js
        at com.threecrickets.sincerity.ScripturianShell.makeEnterable(ScripturianShell.java:175)
        at com.threecrickets.sincerity.DelegatedPlugin.<init>(DelegatedPlugin.java:49)
        at com.threecrickets.sincerity.Plugins.<init>(Plugins.java:68)
        at com.threecrickets.sincerity.Container.getPlugins(Container.java:202)
        at com.threecrickets.sincerity.Sincerity.getPlugins(Sincerity.java:464)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:942)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:681)
        at com.threecrickets.sincerity.Sincerity.main(Sincerity.java:129)
        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 com.threecrickets.bootstrap.Bootstrap.bootstrap(Bootstrap.java:244)
        at com.threecrickets.sincerity.Sincerity.reboot(Sincerity.java:633)
        at com.threecrickets.sincerity.Sincerity.reboot(Sincerity.java:603)
        at com.threecrickets.sincerity.Sincerity.setContainerRoot(Sincerity.java:404)
        at com.threecrickets.sincerity.Sincerity.getContainerRoot(Sincerity.java:369)
        at com.threecrickets.sincerity.Sincerity.getContainer(Sincerity.java:424)
        at com.threecrickets.sincerity.Sincerity.getPlugins(Sincerity.java:464)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:942)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:681)
        at com.threecrickets.sincerity.Sincerity.main(Sincerity.java:129)
        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 com.threecrickets.bootstrap.Bootstrap.bootstrap(Bootstrap.java:244)
        at com.threecrickets.bootstrap.Bootstrap.main(Bootstrap.java:143)
Caused by:

com.threecrickets.scripturian.exception.PreparationException: 
libraries\scripturian\plugins\prudence
.js
        at com.threecrickets.scripturian.adapter.RhinoProgram.prepare(RhinoProgram.java:115)
        at com.threecrickets.scripturian.internal.ExecutableSegment.createProgram(ExecutableSegment.
java:190)
        at com.threecrickets.scripturian.Executable.<init>(Executable.java:301)
        at com.threecrickets.scripturian.Executable.createOnce(Executable.java:232)
        at com.threecrickets.scripturian.Executable.createOnce(Executable.java:198)
        at com.threecrickets.sincerity.ScripturianShell.makeEnterable(ScripturianShell.java:164)
        at com.threecrickets.sincerity.DelegatedPlugin.<init>(DelegatedPlugin.java:49)
        at com.threecrickets.sincerity.Plugins.<init>(Plugins.java:68)
        at com.threecrickets.sincerity.Container.getPlugins(Container.java:202)
        at com.threecrickets.sincerity.Sincerity.getPlugins(Sincerity.java:464)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:942)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:681)
        at com.threecrickets.sincerity.Sincerity.main(Sincerity.java:129)
        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 com.threecrickets.bootstrap.Bootstrap.bootstrap(Bootstrap.java:244)
        at com.threecrickets.sincerity.Sincerity.reboot(Sincerity.java:633)
        at com.threecrickets.sincerity.Sincerity.reboot(Sincerity.java:603)
        at com.threecrickets.sincerity.Sincerity.setContainerRoot(Sincerity.java:404)
        at com.threecrickets.sincerity.Sincerity.getContainerRoot(Sincerity.java:369)
        at com.threecrickets.sincerity.Sincerity.getContainer(Sincerity.java:424)
        at com.threecrickets.sincerity.Sincerity.getPlugins(Sincerity.java:464)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:942)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:681)
        at com.threecrickets.sincerity.Sincerity.main(Sincerity.java:129)
        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 com.threecrickets.bootstrap.Bootstrap.bootstrap(Bootstrap.java:244)
        at com.threecrickets.bootstrap.Bootstrap.main(Bootstrap.java:143)
Caused by:

java.io.FileNotFoundException: C:\Program Files 
(x86)\prudence-2.0-dev14\cache\javascript\container\
libraries\scripturian\plugins\prudence$js$0$1384069707000.class (The system 
cannot find the path spe
cified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at com.threecrickets.scripturian.adapter.RhinoProgram.prepare(RhinoProgram.java:89)
        at com.threecrickets.scripturian.internal.ExecutableSegment.createProgram(ExecutableSegment.
java:190)
        at com.threecrickets.scripturian.Executable.<init>(Executable.java:301)
        at com.threecrickets.scripturian.Executable.createOnce(Executable.java:232)
        at com.threecrickets.scripturian.Executable.createOnce(Executable.java:198)
        at com.threecrickets.sincerity.ScripturianShell.makeEnterable(ScripturianShell.java:164)
        at com.threecrickets.sincerity.DelegatedPlugin.<init>(DelegatedPlugin.java:49)
        at com.threecrickets.sincerity.Plugins.<init>(Plugins.java:68)
        at com.threecrickets.sincerity.Container.getPlugins(Container.java:202)
        at com.threecrickets.sincerity.Sincerity.getPlugins(Sincerity.java:464)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:942)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:681)
        at com.threecrickets.sincerity.Sincerity.main(Sincerity.java:129)
        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 com.threecrickets.bootstrap.Bootstrap.bootstrap(Bootstrap.java:244)
        at com.threecrickets.sincerity.Sincerity.reboot(Sincerity.java:633)
        at com.threecrickets.sincerity.Sincerity.reboot(Sincerity.java:603)
        at com.threecrickets.sincerity.Sincerity.setContainerRoot(Sincerity.java:404)
        at com.threecrickets.sincerity.Sincerity.getContainerRoot(Sincerity.java:369)
        at com.threecrickets.sincerity.Sincerity.getContainer(Sincerity.java:424)
        at com.threecrickets.sincerity.Sincerity.getPlugins(Sincerity.java:464)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:942)
        at com.threecrickets.sincerity.Sincerity.run(Sincerity.java:681)
        at com.threecrickets.sincerity.Sincerity.main(Sincerity.java:129)
        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 com.threecrickets.bootstrap.Bootstrap.bootstrap(Bootstrap.java:244)
        at com.threecrickets.bootstrap.Bootstrap.main(Bootstrap.java:143)

Error: Could not parse source code for execution: /programs/prudence

Thoughts ?

Original issue reported on code.google.com by tgloc...@gmail.com on 15 Nov 2013 at 1:11

GoogleCodeExporter commented 9 years ago
Thanks! Can you check if the following directory was created?

C:\Program Files (x86)\prudence-2.0-dev14\cache\javascript\container\
libraries\scripturian\plugins\

Original comment by tal.liron on 15 Nov 2013 at 11:51

GoogleCodeExporter commented 9 years ago

Original comment by tal.liron on 15 Nov 2013 at 11:52

GoogleCodeExporter commented 9 years ago
No there is no \cache folder.  (Attaching a list of all directories &
contents for your review)

I will also add sincerity throws an error when starting (same problem)

java.io.FileNotFoundException: C:\Program Files
(x86)\prudence-2.0-dev14\cache\javascript\container\
libraries\scripturian\plugins\prudence$js$0$1384069707000.class (The system
cannot find the path spe
cified)

Original comment by tgloc...@gmail.com on 15 Nov 2013 at 11:45

GoogleCodeExporter commented 9 years ago
Hm, I was unable to reproduce your bug. However, I did find an issue in 
sincerity.bat, which I fixed.

I would appreciate help in debugging things on your end! Could you possibly try 
to download the .zip distribution instead? I wonder if this is a permission 
issue.

Original comment by tal.liron on 20 Nov 2013 at 3:48

GoogleCodeExporter commented 9 years ago
I can confirm the new zip version works.

D:\prudence\v2-dev15>sincerity start prudence
Prudence 2.0-dev15 (Restlet JSE 2.2m5, Jetty 9.1.0.v20131115, Rhino 1.7 release 
4 2012 06 18)
Server: "default" HTTP/1.1 on port 8080
Setting up application: "Prudence Administration"
Setting up application: "Prudence Example"
Setting up application: "Stickstick"
Executing 120 startup tasks...
Finished all startup tasks in 4.94 seconds.

Original comment by tgloc...@gmail.com on 22 Nov 2013 at 11:24

GoogleCodeExporter commented 9 years ago
Great! Would you mind also testing the Windows installer for dev15?

Original comment by tal.liron on 23 Nov 2013 at 4:03

GoogleCodeExporter commented 9 years ago
Ok - I think it must be a permission issue on my end.

I see that sincerity start prudence creates \cache and \log folders on
start up.

Security settings differ for default c:\program files\... and those
directories are not getting created.

I initially thought the problem was directories with spaces but that is not
the issue.

I have success with both the installer and the zip on my D:\

Thanks for your help.

Original comment by tgloc...@gmail.com on 23 Nov 2013 at 1:42

GoogleCodeExporter commented 9 years ago
That's great, but I still want to know what the problem was... Do you have any 
idea? Something I should add to the documentation to warn people about 
potential issues with permissions in Windows?

Original comment by tal.liron on 23 Nov 2013 at 6:01