Skip to content

Instantly share code, notes, and snippets.

@tkawachi
Created October 26, 2011 13:06
Show Gist options
  • Save tkawachi/1316289 to your computer and use it in GitHub Desktop.
Save tkawachi/1316289 to your computer and use it in GitHub Desktop.
package controllers;
import java.util.HashMap;
import play.mvc.Controller;
public class Application extends Controller {
static String problematicMethod() {
final HashMap<String, String[]> map;
map = new HashMap<String, String[]>();
map.put("key", new String[] { "v1", "v2" });
final String[] val = map.get("key");
return val[0] + val[1];
}
public static void index() {
await(1);
render();
}
}
package controllers;
import java.util.HashMap;
import play.mvc.Controller;
public class SimpleClient extends Controller {
static String problematicMethod() {
final HashMap<String, String[]> map;
map = new HashMap<String, String[]>();
map.put("key", new String[] { "v1", "v2" });
final String[] val = map.get("key");
return val[0] + val[1];
}
public static void index() {
await(1);
render();
}
}
22:04:16,642 ERROR ~ Cannot start in PROD mode with errors
java.lang.Error: Internal error
at org.objectweb.asm.tree.analysis.SimpleVerifier.getElementValue(Unknown Source)
at org.objectweb.asm.tree.analysis.BasicVerifier.binaryOperation(Unknown Source)
at org.objectweb.asm.tree.analysis.Frame.execute(Unknown Source)
at org.apache.commons.javaflow.bytecode.transformation.asm.MonitoringFrame.execute(MonitoringFrame.java:72)
at org.objectweb.asm.tree.analysis.Analyzer.analyze(Unknown Source)
at org.apache.commons.javaflow.bytecode.transformation.asm.ContinuationMethodAnalyzer$2.analyze(ContinuationMethodAnalyzer.java:128)
at org.apache.commons.javaflow.bytecode.transformation.asm.ContinuationMethodAnalyzer.visitEnd(ContinuationMethodAnalyzer.java:139)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.apache.commons.javaflow.bytecode.transformation.asm.AsmClassTransformer.transform(AsmClassTransformer.java:49)
at org.apache.commons.javaflow.bytecode.transformation.asm.AsmClassTransformer.transform(AsmClassTransformer.java:41)
at play.classloading.enhancers.ContinuationEnhancer.enhanceThisClass(ContinuationEnhancer.java:65)
at play.CorePlugin.enhance(CorePlugin.java:293)
at play.plugins.PluginCollection.enhance(PluginCollection.java:451)
at play.classloading.ApplicationClasses$ApplicationClass.enhance(ApplicationClasses.java:208)
at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:157)
at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:417)
at play.Play.preCompile(Play.java:566)
at play.Play.init(Play.java:291)
at play.server.Server.main(Server.java:158)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment