openube / mongo-vision

Automatically exported from code.google.com/p/mongo-vision
Apache License 2.0
1 stars 0 forks source link

mongo-vision keeps loading #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
pre : mongodb running un default ports
1. followed 
1. install mongovision in new Prudence (Prudence 1.1-984 for JavaScript)
2. run Prudence ("run.bat console")
3. connect to http://localhost:8080/mongovision/
4. keeps loading forever

What is the expected output? What do you see instead?
I don't know as it was my very first trial!! I expected a similar screnn as 
http://threecrickets.com/media/mongovision-screenshot.png

What version of the product are you using? On what operating system?
win-7(64b)
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)

Please provide any additional information below.
here's my prudence.log: 
first:
1. error about importClass: 
I replaced importClass by importPackage, and I got over this issue 
//importClass(com.mongodb.rhino.BSON, com.mongodb.rhino.JSON)
importPackage(com.mongodb.rhino);
but then came onto another one (JSON not found!)
I tried to import the same package (com.mongodb.rhino) in 
\mongovision\resources\data\databases.js with no success.

2011-04-29 10:23:29,288: WARN  [org.restlet.Application.mongovision] Exception 
or error caught in resource
com.threecrickets.scripturian.exception.ExecutionException: La fonction 
importClass doit être appelée avec une classe et non avec "[JavaPackage 
com.mongodb.rhino.BSON]" (mongo-db.js#14)
    at com.threecrickets.scripturian.adapter.RhinoAdapter.createExecutionException(Unknown Source)
    at com.threecrickets.scripturian.adapter.RhinoProgram.execute(Unknown Source)
    at com.threecrickets.scripturian.Executable.execute(Unknown Source)
    at com.threecrickets.scripturian.Executable.makeEnterable(Unknown Source)
    at com.threecrickets.prudence.DelegatedResource.enter(DelegatedResource.java:649)
    at com.threecrickets.prudence.DelegatedResource.doInit(DelegatedResource.java:215)
    at org.restlet.resource.UniformResource.init(UniformResource.java:576)
    at org.restlet.resource.Finder.handle(Finder.java:507)
    at com.threecrickets.prudence.util.Fallback.handle(Fallback.java:225)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Router.doHandle(Router.java:497)
    at org.restlet.routing.Router.handle(Router.java:737)
    at com.threecrickets.prudence.PrudenceRouter.handle(PrudenceRouter.java:496)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:151)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
    at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:72)
    at org.restlet.Application.handle(Application.java:388)
    at com.threecrickets.prudence.PrudenceApplication.handle(PrudenceApplication.java:67)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Router.doHandle(Router.java:497)
    at org.restlet.routing.Router.handle(Router.java:737)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Router.doHandle(Router.java:497)
    at org.restlet.routing.Router.handle(Router.java:737)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:151)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
    at org.restlet.Component.handle(Component.java:387)
    at org.restlet.Server.handle(Server.java:488)
    at org.restlet.engine.ServerHelper.handle(ServerHelper.java:71)
    at org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:150)
    at org.restlet.ext.jetty.JettyServerHelper$WrappedServer.handle(JettyServerHelper.java:167)
    at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
    at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
    at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
    at java.lang.Thread.run(Thread.java:662)
Caused by: org.mozilla.javascript.EvaluatorException: La fonction importClass 
doit être appelée avec une classe et non avec "[JavaPackage 
com.mongodb.rhino.BSON]" (mongo-db.js#14)
    at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
    at org.mozilla.javascript.Context.reportRuntimeError(Context.java:938)
    at org.mozilla.javascript.Context.reportRuntimeError(Context.java:994)
    at org.mozilla.javascript.Context.reportRuntimeError1(Context.java:957)
    at org.mozilla.javascript.ImporterTopLevel.js_importClass(ImporterTopLevel.java:197)
    at org.mozilla.javascript.ImporterTopLevel.execIdCall(ImporterTopLevel.java:272)
    at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:129)
    at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
    at applications.mongovision.libraries.mongo_db$js$0$1304065376081._c0(mongo-db.js:14)
    at applications.mongovision.libraries.mongo_db$js$0$1304065376081.call(mongo-db.js)
    at applications.mongovision.libraries.mongo_db$js$0$1304065376081.exec(mongo-db.js)
    at com.threecrickets.scripturian.adapter.RhinoProgram.execute(Unknown Source)
    at com.threecrickets.scripturian.Executable.execute(Unknown Source)
    at com.threecrickets.scripturian.Executable.execute(Unknown Source)
    at com.threecrickets.prudence.service.DocumentService.execute(DocumentService.java:117)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
    at applications.mongovision.resources.data.databases$js$0$1304065188465._c0(data\databases.js:13)
    at applications.mongovision.resources.data.databases$js$0$1304065188465.call(data\databases.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
    at applications.mongovision.resources.data.databases$js$0$1304065188465.call(data\databases.js)
    at applications.mongovision.resources.data.databases$js$0$1304065188465.exec(data\databases.js)
    ... 55 more

then:
2. error about JSON
2011-04-29 10:20:49,435: WARN  [org.restlet.Application.mongovision] Exception 
or error caught in resource
com.threecrickets.scripturian.exception.ExecutionException: ReferenceError: 
"JSON" n'est pas défini (data\databases.js#75)
    at com.threecrickets.scripturian.adapter.RhinoAdapter.createExecutionException(Unknown Source)
    at com.threecrickets.scripturian.adapter.RhinoAdapter.enter(Unknown Source)
    at com.threecrickets.scripturian.ExecutionContext.enter(Unknown Source)
    at com.threecrickets.scripturian.Executable.enter(Unknown Source)
    at com.threecrickets.prudence.DelegatedResource.enter(DelegatedResource.java:676)
    at com.threecrickets.prudence.DelegatedResource.get(DelegatedResource.java:282)
    at org.restlet.resource.ServerResource.doHandle(ServerResource.java:527)
    at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:587)
    at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:299)
    at org.restlet.resource.ServerResource.handle(ServerResource.java:846)
    at org.restlet.resource.Finder.handle(Finder.java:510)
    at com.threecrickets.prudence.util.Fallback.handle(Fallback.java:225)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Router.doHandle(Router.java:497)
    at org.restlet.routing.Router.handle(Router.java:737)
    at com.threecrickets.prudence.PrudenceRouter.handle(PrudenceRouter.java:496)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:151)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
    at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:72)
    at org.restlet.Application.handle(Application.java:388)
    at com.threecrickets.prudence.PrudenceApplication.handle(PrudenceApplication.java:67)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Router.doHandle(Router.java:497)
    at org.restlet.routing.Router.handle(Router.java:737)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Router.doHandle(Router.java:497)
    at org.restlet.routing.Router.handle(Router.java:737)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:151)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.routing.Filter.doHandle(Filter.java:156)
    at org.restlet.routing.Filter.handle(Filter.java:203)
    at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
    at org.restlet.Component.handle(Component.java:387)
    at org.restlet.Server.handle(Server.java:488)
    at org.restlet.engine.ServerHelper.handle(ServerHelper.java:71)
    at org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:150)
    at org.restlet.ext.jetty.JettyServerHelper$WrappedServer.handle(JettyServerHelper.java:167)
    at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
    at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
    at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
    at java.lang.Thread.run(Thread.java:662)
Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "JSON" n'est pas 
défini (data\databases.js#78)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632)
    at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3717)
    at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1692)
    at applications.mongovision.resources.data.databases$js$0$1304065188465._c3(data\databases.js:78)
    at applications.mongovision.resources.data.databases$js$0$1304065188465.call(data\databases.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
    at applications.mongovision.resources.data.databases$js$0$1304065188465.call(data\databases.js)
    ... 58 more

Original issue reported on code.google.com by jgrand...@gmail.com on 29 Apr 2011 at 8:29

GoogleCodeExporter commented 9 years ago
Thanks very much for the detailed bug report! We will get to it soon. Actually, 
we are in the midst of rewriting MongoVision for Ext JS 4, so there may be a 
new release soon.

Original comment by tal.liron on 2 May 2011 at 3:06

GoogleCodeExporter commented 9 years ago
Thank you for your answer,

I'm looking forward to trying it out. Hope we can see and update data 
(documents) in tabular form for any users to manipulate them, as does MongoVue 
for instance.

Good luck with Ext-4.
Best regards, 
jg

Original comment by jgrand...@gmail.com on 3 May 2011 at 8:16

GoogleCodeExporter commented 9 years ago
Can you try the recent release?

Original comment by tal.liron on 23 May 2011 at 9:01