Created
April 6, 2011 13:19
-
-
Save v6ak/905622 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object FooWebSocketHandler extends WebSocketController{ | |
def handle(msg: String) { | |
outbound.send(msg) // The file /app/controllers.scala could not be compiled. Error raised is : not found: value outbound | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object FooWebSocketHandler extends WebSocketController{ | |
def handle(msg: String) { | |
WebSocketController.outbound.send(msg) // The file /app/controllers.scala could not be compiled. Error raised is : variable outbound cannot be accessed in object play.mvc.WebSocketController | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object FooWebSocketHandler extends WebSocketController{ | |
def handle(msg: String) { | |
/* | |
Oops: UnexpectedException | |
An unexpected error occured caused by exception UnexpectedException: While applying class play.classloading.enhancers.SigEnhancer on controllers.FooWebSocketHandler | |
play.exceptions.UnexpectedException: While applying play.CorePlugin@27b03c1a on controllers.FooWebSocketHandler | |
at play.plugins.PluginCollection.enhance(PluginCollection.java:436) | |
at play.classloading.ApplicationClasses$ApplicationClass.enhance(ApplicationClasses.java:208) | |
at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:151) | |
at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:409) | |
at play.Play.start(Play.java:447) | |
at play.Play.detectChanges(Play.java:567) | |
at play.Invoker$Invocation.init(Invoker.java:165) | |
at Invocation.HTTP Request(Play!) | |
Caused by: play.exceptions.UnexpectedException: While applying class play.classloading.enhancers.SigEnhancer on controllers.FooWebSocketHandler | |
at play.CorePlugin.enhance(CorePlugin.java:297) | |
at play.plugins.PluginCollection.enhance(PluginCollection.java:433) | |
... 7 more | |
Caused by: java.io.EOFException | |
at java.io.DataInputStream.readInt(DataInputStream.java:375) | |
at javassist.bytecode.ClassFile.read(ClassFile.java:687) | |
at javassist.bytecode.ClassFile.<init>(ClassFile.java:85) | |
at javassist.CtClassType.<init>(CtClassType.java:94) | |
at javassist.ClassPool.makeClass(ClassPool.java:680) | |
at javassist.ClassPool.makeClass(ClassPool.java:658) | |
at play.classloading.enhancers.Enhancer.makeClass(Enhancer.java:46) | |
at play.classloading.enhancers.SigEnhancer.enhanceThisClass(SigEnhancer.java:21) | |
at play.CorePlugin.enhance(CorePlugin.java:294) | |
... 8 more | |
*/ | |
Http.Outbound.current().send(msg) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment