x550j / trimpath

Automatically exported from code.google.com/p/trimpath
0 stars 0 forks source link

ReferenceError: "onBeforeSync" is not defined. #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. unpack fresh trimpath-junction-1.1.6.tar.gz; run ./hop/start.sh
2. load http://localhost:8080/engines/100/apps/nextaction
3.

What is the expected output? What do you see instead?
I'd like to see a confirmation message in the browser as the SQL CREATE
messages scrolled behind on the terminal fine, up to this:
...
SQL: CREATE TABLE Preference (id integer primary key autoincrement, name
varchar(100), value varchar(1000), updated_at datetime); []
SQL: DELETE FROM meta_version; []
SQL: INSERT INTO meta_version (version, updated_at) VALUES (?, ?);
3,2007-07-31 16:02:48Z
dbMigrate...  DONE
SQL: commit; []

But what I get instead in the browser at this point is:
Error in application engines
ReferenceError: "onBeforeSync" is not defined.
(/data/HOME/qua/src/trimpath-junction-1.1.6/junction_release.spaces/100/nextacti
on/code/app/models/context.js#15)

What version of the product are you using? On what operating system?
trimpath-junction-1.1.6
Firefox 2.0.0.4
Ubuntu Linux 7.04 Feisty

Please provide any additional information below.

Will be on hand to assist in debugging this.

Original issue reported on code.google.com by jan.koko...@gmail.com on 31 Jul 2007 at 4:06

GoogleCodeExporter commented 8 years ago
Thanks for the posting.  Do you get the same problem with 
trimpath-junction-1.1.8
(the latest)? 

Original comment by steve....@gmail.com on 5 Aug 2007 at 5:51

GoogleCodeExporter commented 8 years ago
Hi Steve,

Yes, same error message on TJ 1.1.8, my Firefox is meanwhile 2.0.0.6, but that
shouldn't matter much.

Could I perhaps run some better debugging trace for you to look at?

Jan

Original comment by jan.koko...@gmail.com on 5 Aug 2007 at 2:01

GoogleCodeExporter commented 8 years ago
Thanks.  That would help.

There should be lots of log files in the junction_release/hop/log directory.  
If you
see any interesting stack traces, or can zip & post them all up here, that 
would be
great.

Also, a simple test...
Does http://localhost:8080 work for you?  You should get a Helma intro page as 
the
response.

Finally, are you running in an english locale?  One suspicion is that I'm 
sorting the
file names in some incorrect (english dependent) way and files are thus loading 
in
the wrong order.

Thanks for you time in this!

Original comment by steve....@gmail.com on 5 Aug 2007 at 4:10

GoogleCodeExporter commented 8 years ago
http://localhost:8080 would give me 404 (no virtual host configured), unless I 
go to
engines/100/apps/nextaction first, which ends up in that onBeforeSync error, 
but top
level loads after that fine and I can read all the Helma help files.

My locale settings are as follows:

LANG=
LANGUAGE=en_GB:en
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

I've regenerated en_GB.UTF-8 locale just to be sure, and restarted Helma, but 
it's
the same. 

In helma.engines.event.log, there's this (no other logs have any errors and are
fairly small):

[2007/08/06 07:29:09] [ERROR] engines:get:100/apps/nextaction: ReferenceError:
"onBeforeSync" is not defined. 
(/data/HOME/qua/src/trimpath-junction-1.1.8/junction_re
lease.spaces/100/nextaction/code/app/models/context.js#15)
helma.scripting.ScriptingException: ReferenceError: "onBeforeSync" is not 
defined.
(/data/HOME/qua/src/trimpath-junction-1.1.8/junction_release.spaces/100/nextacti
on
/code/app/models/context.js#15)
        at
/data/HOME/qua/src/trimpath-junction-1.1.8/junction_release.spaces/100/nextactio
n/code/app/models/context.js:15
        at
/data/HOME/qua/src/trimpath-junction-1.1.8/junction_release/hop/../hop.apps/engi
nes/Global/global.js:18
        at
/data/HOME/qua/src/trimpath-junction-1.1.8/junction_release/hop/../hop.apps/engi
nes/EngineAppsApp/engineProcess.js:147
        at
/data/HOME/qua/src/trimpath-junction-1.1.8/junction_release/hop/../hop.apps/engi
nes/EngineAppsApp/engineProcess.js:649
        at
/data/HOME/qua/src/trimpath-junction-1.1.8/junction_release/hop/../hop.apps/engi
nes/EngineAppsApp/engineAppsApp.js:4
Full trace: org.mozilla.javascript.EcmaError: ReferenceError: "onBeforeSync" is 
not
defined. 
(/data/HOME/qua/src/trimpath-junction-1.1.8/junction_release.spaces/100/
nextaction/code/app/models/context.js#15)
        at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3343)
        at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3333)
        at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3406)
        at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1612)
        at
org.mozilla.javascript.gen.c72._c0(/data/HOME/qua/src/trimpath-junction-1.1.8/ju
nction_release.spaces/100/nextaction/code/app/models/context.js:15)
        at
org.mozilla.javascript.gen.c72.call(/data/HOME/qua/src/trimpath-junction-1.1.8/j
unction_release.spaces/100/nextaction/code/app/models/context.js)
        at
org.mozilla.javascript.gen.c72.exec(/data/HOME/qua/src/trimpath-junction-1.1.8/j
unction_release.spaces/100/nextaction/code/app/models/context.js)
        at org.mozilla.javascript.Context.evaluateString(Context.java:1196)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
        at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
        at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)
        at
org.mozilla.javascript.gen.c22._c1(/data/HOME/qua/src/trimpath-junction-1.1.8/ju
nction_release/hop/../hop.apps/engines/Global/global.js:18)
        at
org.mozilla.javascript.gen.c22.call(/data/HOME/qua/src/trimpath-junction-1.1.8/j
unction_release/hop/../hop.apps/engines/Global/global.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
        at
org.mozilla.javascript.gen.c56._c5(/data/HOME/qua/src/trimpath-junction-1.1.8/ju
nction_release/hop/../hop.apps/engines/EngineAppsApp/engineProcess.js:147)
        at
org.mozilla.javascript.gen.c56.call(/data/HOME/qua/src/trimpath-junction-1.1.8/j
unction_release/hop/../hop.apps/engines/EngineAppsApp/engineProcess.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
        at
org.mozilla.javascript.gen.c56._c1(/data/HOME/qua/src/trimpath-junction-1.1.8/ju
nction_release/hop/../hop.apps/engines/EngineAppsApp/engineProcess.js:649)
        at
org.mozilla.javascript.gen.c56.call(/data/HOME/qua/src/trimpath-junction-1.1.8/j
unction_release/hop/../hop.apps/engines/EngineAppsApp/engineProcess.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)
        at
org.mozilla.javascript.gen.c55._c1(/data/HOME/qua/src/trimpath-junction-1.1.8/ju
nction_release/hop/../hop.apps/engines/EngineAppsApp/engineAppsApp.js:4)
        at
org.mozilla.javascript.gen.c55.call(/data/HOME/qua/src/trimpath-junction-1.1.8/j
unction_release/hop/../hop.apps/engines/EngineAppsApp/engineAppsApp.js)
        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
        at
org.mozilla.javascript.gen.c55.call(/data/HOME/qua/src/trimpath-junction-1.1.8/j
unction_release/hop/../hop.apps/engines/EngineAppsApp/engineAppsApp.js)
        at org.mozilla.javascript.Context.call(Context.java:538)
        at helma.scripting.rhino.RhinoEngine.invoke(RhinoEngine.java:296)
        at helma.framework.core.RequestEvaluator.run(RequestEvaluator.java:389)
        at java.lang.Thread.run(Thread.java:595)

Original comment by jan.koko...@gmail.com on 6 Aug 2007 at 7:41

GoogleCodeExporter commented 8 years ago
That helped a lot.  Looks like my suspicions were almost right.  I had made
a mistake assuming that java.io.File.list() returns files in sorted order
when it makes no such guarantees.  Will generate a new release soon!

Original comment by steve....@gmail.com on 6 Aug 2007 at 5:56

GoogleCodeExporter commented 8 years ago
Ok, I just posted up version 1.1.10 which has the fix.  You can get it at
http://code.google.com/p/trimpath/downloads/list

Hopefully, that should do it...

Original comment by steve....@gmail.com on 6 Aug 2007 at 7:00