Running:
db version v1.5.2-pre-, pdfile version 4.5 on the server and
mongo-2.0-rc3.jar as my connector.
Still looking for hints. Maybe under that big shiny thing sticking out
of the ground.
On May 24, 5:33 pm, Eliot Horowitz <eliothorow...@gmail.com> wrote:
> 1.5.2-pre- breaks all but 2.0rc1 of the java driver.
> If you want bleeding edge on the db, you need bleeding edge on the driver.
>
>
>
>
>
> On Mon, May 24, 2010 at 5:31 PM,dgcombs<dgco...@gmail.com> wrote:
> > I swear I didn't do it!
> > But here's the problem. I recompiled mongod using V8 rather than
> > SpiderMonkey. When I use the new version (I git'ed it from the
> > server), 1.5.2-pre- I get this error message on some JSP code that
> > used to just work:
>
> > java.lang.Boolean cannot be cast to java.lang.Number
>
> > Here's the code:
> > <%BasicDBObject doc = new BasicDBObject();
> > doc.put("src",171978757);
> > out.print(logs.find(doc).count());%>
>
> > Granted my little gray cells are a bit foggy after staying up late to
> > watch the final episode of LOST last night, but I'm unclear as to how
> > this is casting a Boolean.
>
> > Any insight would be helpful for either the Java exception or LOST.
>
> > --
> > You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> > To post to this group, send email to mongod...@googlegroups.com.
> > To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/mongodb-user?hl=en.
Dan
[show] java.lang.ClassCastException: java.lang.Boolean cannot be cast
to java.lang.Number
java.lang.ClassCastException: java.lang.Boolean cannot be cast to
java.lang.Number
at com.mongodb.BasicDBObject.getInt(BasicDBObject.java:121)
at com.mongodb.DBCollection.getCount(DBCollection.java:472)
at com.mongodb.DBCollection.getCount(DBCollection.java:437)
at _jsp._secmetrics__jsp._jspService(secmetrics.jsp:79)
at _jsp._secmetrics__jsp._jspService(_secmetrics__jsp.java:41)
at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
at com.caucho.jsp.Page.pageservice(Page.java:535)
at
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:
195)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:
183)
at
com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:
103)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:
286)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:
780)
at
com.caucho.server.connection.TcpConnection.dispatchRequest(TcpConnection.java:
600)
at
com.caucho.server.connection.TcpConnection.handleRequestsImpl(TcpConnection.java:
566)
at
com.caucho.server.connection.TcpConnection.handleRequests(TcpConnection.java:
519)
at com.caucho.server.connection.TcpConnection
$AcceptTask.doTask(TcpConnection.java:1100)
at com.caucho.server.connection.TcpConnection
$ConnectionReadTask.runThread(TcpConnection.java:1037)
at com.caucho.server.connection.TcpConnection
$AcceptTask.run(TcpConnection.java:1068)
at com.caucho.util.ThreadPool$PoolThread.runTasks(ThreadPool.java:
901)
at com.caucho.util.ThreadPool$PoolThread.run(ThreadPool.java:866)
David
On 27 kvě, 19:56, Scott Hernandez <scotthernan...@gmail.com> wrote:
> We had a user with the same exception and it was a bug in their 1.5.x
> server build. You might try a more recent 1.5.x build.
>
> On Thu, May 27, 2010 at 10:52 AM, Eliot Horowitz
>
>
>
> <eliothorow...@gmail.com> wrote:
> > That stack trace is not from a 2.0rcX jar
> > I don't think upgraded the mongo driver correctly.
>
David
On 27 kvě, 20:29, Eliot Horowitz <eliothorow...@gmail.com> wrote:
> Have you made sure you really got new java driver?
>
>>>>> To post to this group, send email to mongodb-
>>>>> us...@googlegroups.com.
I did notice that moving from rc1 -> rc3 failed some of our tests
relating to references; DBRef -> BSONObject cast failures in
DBCallback.objectDone(). I will probably look at this later today to
see if I can create a test case and maybe patch the driver.