digiPlant/play-router-annotations — Issue #5: Scala Support
Author: Arrorn
Created: 2012-01-29 10:47:14+00:00
State: open

Since Play framework 2.0 will be adding a lot of support of Scala I was hoping to get this module working with it in the interim. Currently when I add this module to my current Play 1.2.4 configuration, other modules are akka head and scala 0.9.1, I receive this error. It goes away the instant I remove router from my configuration.

This may be something on my part but it may not be. When I get a chance to look at this some more I will but I've been up for going on 24 hrs. and am exhausted.

When this error occurred I had one get annotation with just "/" as the parameter on the default controller index. It also occurred with and without GET / in routes config file.

```
Internal Server Error (500) for request GET /

Oops: VerifyError
An unexpected error occured caused by exception VerifyError: (class: controllers/PlayDocumentation, method: cheatSheet signature: (Ljava/lang/String;)V) Inconsistent stack height 0 != 1

play.exceptions.UnexpectedException: Unexpected Error
at play.Invoker$Invocation.onException(Invoker.java:244)
at play.Invoker$Invocation.run(Invoker.java:286)
at Invocation.HTTP Request(Play!)
Caused by: java.lang.VerifyError: (class: controllers/PlayDocumentation, method: cheatSheet signature: (Ljava/lang/String;)V) Inconsistent stack height 0 != 1
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source)
at play.utils.JavaWithCaching.findAllAnnotatedMethods(Java.java:527)
at play.utils.JavaWithCaching.findAllAnnotatedMethods(Java.java:497)
at play.utils.Java.findAllAnnotatedMethods(Java.java:276)
at play.utils.Java.findAllAnnotatedMethods(Java.java:288)
at play.modules.router.RouterAnnotationsPlugin.computeRoutes(RouterAnnotationsPlugin.java:51)
at play.modules.router.RouterAnnotationsPlugin.onApplicationStart(RouterAnnotationsPlugin.java:33)
at play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:480)
at play.Play.start(Play.java:515)
at play.Play.detectChanges(Play.java:629)
at play.Invoker$Invocation.init(Invoker.java:198)
... 1 more
```

Thanks for any advice, and or investigation.

-Arrorn-