Serving GridFS throws "scala.NotImplementedError: an implementation is missing" error

263 views
Skip to first unread message

rey bumalay

unread,
Nov 1, 2013, 10:39:49 AM11/1/13
to reacti...@googlegroups.com
I upgraded our app from Play 2.1 and play2-reactivemongo 0.9 to Play 2.2 and play2-reactivemongo 0.10-SNAPSHOT and started getting the following error:

scala.NotImplementedError: an implementation is missing
at scala.Predef$.$qmark$qmark$qmark(Predef.scala:252)
at reactivemongo.api.gridfs.GridFS.enumerate(gridfs.scala:258)
at traits.CustomMongoController$$anonfun$serve$5.apply(CustomMongoController.scala:23)
at traits.CustomMongoController$$anonfun$serve$5.apply(CustomMongoController.scala:22)
at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:278)
at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:274)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:29)
at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(ExecutionContextImpl.scala:107)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.pollAndExecAll(ForkJoinPool.java:1253)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1346)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)


I did customized the MongoController so it supports E-Tags plus few more things although It was previously working and started breaking after upgrade. Here's the code that serves images on Application.scala:


And the CustomMongoController.scala file:



I hope you could help me with this problem. Thanks 


Carlos Encarnacion

unread,
Nov 1, 2013, 10:14:21 PM11/1/13
to reacti...@googlegroups.com
Hi Rey!

Try 0.10.0-SNAPSHOT

rey bumalay

unread,
Nov 2, 2013, 12:40:20 AM11/2/13
to reacti...@googlegroups.com
I seem to have been using 0.10.0-SNAPSHOT (Just had a typo on my post). Here's appDependencies on Build.scala:


val appDependencies = Seq(

// Add your project dependencies here,

jdbc,

anorm,

"org.scalaj" %% "scalaj-http" % "0.3.7",

"org.reactivemongo" %% "play2-reactivemongo" % "0.10.0-SNAPSHOT",

"com.typesafe" %% "play-plugins-mailer" % "2.1.0"

)

Stephane Godbillon

unread,
Nov 11, 2013, 7:59:09 AM11/11/13
to reacti...@googlegroups.com
Hi,

This bug was due to a missing implementation.  It is fixed now, can you try again?

Thanks,



2013/11/2 rey bumalay <reyj...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "ReactiveMongo - http://reactivemongo.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reactivemong...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Rey Bumalay

unread,
Nov 11, 2013, 12:59:51 PM11/11/13
to reacti...@googlegroups.com
Yes, this seems to be fixed now.

Thanks
Rey

You received this message because you are subscribed to a topic in the Google Groups "ReactiveMongo - http://reactivemongo.org" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reactivemongo/EZNsjXC3FT4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reactivemong...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages