MD
unread,Jul 13, 2012, 8:48:48 PM7/13/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Bowler Users
Here's my function definition:
def `GET /api/register/:id`( id: String ) = {
....
}
Caused by: java.lang.IllegalStateException: cannot resolve a function
that matches the definition Member(Def,GET /api/
register/:id,GenericTypeDefinition(scala.Unit,None),List())
at org.bowlerframework.controller.POSORouteMapper
$.createClosure(POSORouteMapper.scala:137)
at org.bowlerframework.controller.POSORouteMapper
$.registerMember(POSORouteMapper.scala:35)
at org.bowlerframework.controller.POSORouteMapper$$anonfun$apply
$1.apply(POSORouteMapper.scala:27)
at org.bowlerframework.controller.POSORouteMapper$$anonfun$apply
$1.apply(POSORouteMapper.scala:22)
at scala.collection.LinearSeqOptimized
$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:76)
at org.bowlerframework.controller.POSORouteMapper
$.apply(POSORouteMapper.scala:22)
at org.bowlerframework.controller.FunctionNameConventionRoutes$class.
$init$(FunctionNameConventionRoutes.scala:14)
at com.corp.controllers.RegistrationController
$.<init>(RegistrationController.scala:15)
at com.corp.controllers.RegistrationController
$.<clinit>(RegistrationController.scala)
If I drop the id argument, I don't see the exception. But then, there
is no point in going with the FunctionNameConventionRoute.
Any help would be appreciated. Using bowlerframework 0.6 and scalatra
2.0.4
Thanks,
MD