latest source -- errors on startup -- new installation

1 view
Skip to first unread message

dtynan

unread,
Nov 21, 2009, 3:34:50 AM11/21/09
to Persevere
I just pulled Persevere source from svn, ran ant, did a persvr.bat --
gen-server whatever, which appeared to all work fine, but when I then
startup persevere, I'm getting a couple of errors (pasted in below).
Is this just a bug, or did something change over the last couple of
months that I missed maybe?

Incidentally, I'm wanting the latest code because I noticed the
downloadable 1.0 build appeared to have a couple of querying-related
issues (it wasn't honoring the [0:30] type syntax) .... I'm hoping
that's fixed in these latest updates.

this is 64-bit win2K3, java 1.6. Here's the error text:

D:\persevere8\builds\persevere\build1>..\bin\persvr.bat
2009-11-21 02:18:42.078::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
2009-11-21 02:18:42.187::INFO: jetty-6.1.14
Nov 21, 2009 2:18:42 AM org.persvr.data.DataSourceManager <clinit>
SEVERE: Error attempting to initialize the data source .Global. in
file core.json
java.lang.ClassCastException: org.persvr.data.PersistableClass cannot
be cast to org.mozilla.javascript.BaseFunction
at org.mozilla.javascript.Arguments.<init>(Arguments.java:71)
at org.mozilla.javascript.NativeCall.<init>(NativeCall.java:
88)
at
org.mozilla.javascript.ScriptRuntime.createFunctionActivation
(ScriptRuntime.java:3252)
at org.mozilla.javascript.gen.function_10._c_anonymous_1
(function)
at org.mozilla.javascript.gen.function_10.call(function)
at org.mozilla.javascript.ContextFactory.doTopCall
(ContextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall
(ScriptRuntime.java:3157)
at org.mozilla.javascript.gen.function_10.call(function)
at org.persvr.data.Method.callWithChecks(Method.java:143)
at org.persvr.data.Method.call(Method.java:96)
at org.persvr.data.Transaction.restActions(Transaction.java:
159)
at org.persvr.data.Transaction.commit(Transaction.java:180)
at org.persvr.data.Transaction
$ImmediateTransaction.commitIfImmediate(Transaction.java:472)
at org.persvr.data.PersistableObject.commitIfImmediate
(PersistableObject.java:374)
at org.persvr.data.PersistableClass.getPrototypeProperty
(PersistableClass.java:195)
at org.persvr.data.DataSourceManager.initSource
(DataSourceManager.java:532)
at org.persvr.data.DataSourceManager.initSource
(DataSourceManager.java:405)
at org.persvr.data.DataSourceManager.<clinit>
(DataSourceManager.java:248)
at org.persvr.remote.PersevereFilter.init(PersevereFilter.java:
124)
at org.mortbay.jetty.servlet.FilterHolder.doStart
(FilterHolder.java:97)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:620)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:
140)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1234)
at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart
(WebAppContext.java:460)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart
(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart
(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.persvr.util.JettyStart.startJetty(JettyStart.java:206)
at org.persvr.util.JettyStart.main(JettyStart.java:147)
Nov 21, 2009 2:18:42 AM org.persvr.data.DataSourceManager <clinit>
SEVERE: Error attempting to initialize the data source Transaction in
file core.json
java.lang.ClassCastException: org.persvr.data.PersistableClass cannot
be cast to org.mozilla.javascript.BaseFunction
at org.mozilla.javascript.Arguments.<init>(Arguments.java:71)
at org.mozilla.javascript.NativeCall.<init>(NativeCall.java:
88)
at
org.mozilla.javascript.ScriptRuntime.createFunctionActivation
(ScriptRuntime.java:3252)
at org.mozilla.javascript.gen.function_10._c_anonymous_1
(function)
at org.mozilla.javascript.gen.function_10.call(function)
at org.mozilla.javascript.ContextFactory.doTopCall
(ContextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall
(ScriptRuntime.java:3157)
at org.mozilla.javascript.gen.function_10.call(function)
at org.persvr.data.Method.callWithChecks(Method.java:143)
at org.persvr.data.Method.call(Method.java:96)
at org.persvr.data.Transaction.restActions(Transaction.java:
159)
at org.persvr.data.Transaction.commit(Transaction.java:180)
at org.persvr.data.Transaction
$ImmediateTransaction.commitIfImmediate(Transaction.java:472)
at org.persvr.data.PersistableObject.commitIfImmediate
(PersistableObject.java:374)
at org.persvr.data.PersistableClass.getPrototypeProperty
(PersistableClass.java:195)
at org.persvr.data.DataSourceManager.initSource
(DataSourceManager.java:532)
at org.persvr.data.DataSourceManager.initSource
(DataSourceManager.java:405)
at org.persvr.data.DataSourceManager.<clinit>
(DataSourceManager.java:248)
at org.persvr.remote.PersevereFilter.init(PersevereFilter.java:
124)
at org.mortbay.jetty.servlet.FilterHolder.doStart
(FilterHolder.java:97)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:620)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:
140)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1234)
at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart
(WebAppContext.java:460)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart
(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart
(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.persvr.util.JettyStart.startJetty(JettyStart.java:206)
at org.persvr.util.JettyStart.main(JettyStart.java:147)
Nov 21, 2009 2:18:42 AM org.persvr.remote.PersevereFilter init
INFO: Persevere v2.0 in dev Started
2009-11-21 02:18:42.906::INFO: Started
SelectChann...@0.0.0.0:8080
Type "help" at the console for more information
js>shutdown()

Kris Zyp

unread,
Nov 21, 2009, 8:31:20 AM11/21/09
to persevere...@googlegroups.com
Just FYI, there are two radically different branches of Persevere in SVN
right now. There is /branches/1.0 and /trunk. /trunk has the 2.0
development code and has a completely different architecture, and is not
really ready for use yet (will be soon). If you are looking for fixes
for an existing Persevere application, you probably want to svn off of
/branches/1.0.
Kris
> --
>
> You received this message because you are subscribed to the Google Groups "Persevere" group.
> To post to this group, send email to persevere...@googlegroups.com.
> To unsubscribe from this group, send email to persevere-frame...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/persevere-framework?hl=.
>
>
>

Dean Landolt

unread,
Nov 21, 2009, 11:28:38 AM11/21/09
to persevere...@googlegroups.com
On Sat, Nov 21, 2009 at 3:34 AM, dtynan <dty...@gmail.com> wrote:
I just pulled Persevere source from svn, ran ant, did a persvr.bat --
gen-server whatever, which appeared to all work fine, but when I then
startup persevere, I'm getting a couple of errors (pasted in below).
Is this just a bug, or did something change over the last couple of
months that I missed maybe?

Incidentally, I'm wanting the latest code because I noticed the
downloadable 1.0 build appeared to have a couple of querying-related
issues (it wasn't honoring the [0:30] type syntax) .... I'm hoping
that's fixed in these latest updates.

I've noticed some weirdness with this too but haven't reported it yet. What behavior are you experiencing?

dtynan

unread,
Nov 21, 2009, 7:49:49 PM11/21/09
to Persevere
Ah, ok, so I was pulling from trunk, so that explains that issue.
I've now got a new setup pulling from branches/1.0. Unfortunately,
I'm still seeing weirdness from the array slice/range operator in my
queries (from a browser). Without the array slice/range operator I
get results, but if I add it, I get nothing .. {}&&[]

I have the same data set loaded in a pre-1.0 Persevere and these
queries work there. Any ideas?

http://192.168.1.234:8080/resfull5/[?City="Other"] <--- 20
items
http://192.168.1.234:8080/resfull5/[?City="Other"][1:2] <--- no
results
http://192.168.1.234:8080/resfull5/[?City="Other"][:2] <--- no
results

same with numeric fields:
http://192.168.1.234:8080/resfull5/[?List_Price<50000] <--- 40 items
http://192.168.1.234:8080/resfull5/[?List_Price<50000][:5] <--- no
results
http://192.168.1.234:8080/resfull5/[?List_Price<50000][0:3] <--- no
results

(fyi, I'm using character-based values for the item "ID", though that
shouldn't be an issue here I wouldn't think).

Thanks!
Dylan

dtynan

unread,
Nov 25, 2009, 3:34:34 PM11/25/09
to Persevere
I've duplicated this querying problem with array slice/range operator
on a simple database, clean install of latest 1.0 source, from both
the web & command line so I have to assume this is a bug, unless
there's some setting that I don't know about that I need to flip
somewhere... I went ahead and opened issue #259 against this.

Thanks,
Dylan

On Nov 21, 6:49 pm, dtynan <dty...@gmail.com> wrote:
> Ah, ok, so I was pulling from trunk, so that explains that issue.
> I've now got a new setup pulling from branches/1.0.  Unfortunately,
> I'm still seeing weirdness from the array slice/range operator in my
> queries (from a browser).   Without the array slice/range operator I
> get results, but if I add it, I get nothing ..  {}&&[]
>
> I have the same data set loaded in a pre-1.0 Persevere and these
> queries work there.  Any ideas?
>
> http://192.168.1.234:8080/resfull5/[?City="Other"]           <--- 20
> itemshttp://192.168.1.234:8080/resfull5/[?City="Other"][1:2]    <--- no
> resultshttp://192.168.1.234:8080/resfull5/[?City="Other"][:2]      <--- no
> results
>
> same with numeric fields:http://192.168.1.234:8080/resfull5/[?List_Price<50000]   <--- 40 itemshttp://192.168.1.234:8080/resfull5/[?List_Price<50000][:5]    <--- no
> resultshttp://192.168.1.234:8080/resfull5/[?List_Price<50000][0:3]   <--- no
Reply all
Reply to author
Forward
0 new messages