[JAVA-984] Error while sending $eval with JavaScript Created: 02/Oct/13  Updated: 04/Dec/13  Resolved: 04/Dec/13

Status: Closed
Project: Java Driver
Component/s: Query Operations
Affects Version/s: 2.11.0, 2.11.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: izek greenfield Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mongo version 2.4.5 64bit.



 Description   

I am sending this command:

{ "$eval" : "var dbNamePrefix = 'logview'; var collName = 'logs'; var collectionPerDay = 10; load('/etc/db-init.js');"}

and get this result:

{ "serverUsed" : "localhost/127.0.0.1:27000" , "errmsg" : "exception: JavaScript execution failed: Error: error loading js file: /etc/db-init.js near 'ad('/etc/db-init.js')' " , "code" : 16722 , "ok" : 0.0}

the js file is in the correct folder.



 Comments   
Comment by Jeffrey Yemin [ 04/Dec/13 ]

Closing this as it does not appear to be related to the Java driver.

Comment by Jeffrey Yemin [ 02/Oct/13 ]

Does this have anything to do with the Java driver?

Generated at Thu Feb 08 08:53:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.