google-code-export / activeweb

Automatically exported from code.google.com/p/activeweb
0 stars 0 forks source link

Racing condition to compile a controler in highly Ajax apps can cause "Truncated class file" #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Best solution would be to synchronize the class loader

[INFO] java.lang.ClassFormatError: Truncated class file
[INFO]  at java.lang.ClassLoader.defineClass1(Native Method)
[INFO]  at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
[INFO]  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
[INFO]  at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
[INFO]  at 
activeweb.ControllerClassLoader.loadClass(ControllerClassLoader.java:48)
[INFO]  at 
activeweb.ControllerFactory.getControllerClass(ControllerFactory.java:48)
[INFO]  at 
activeweb.ControllerFactory.createControllerInstance(ControllerFactory.java:64)
[INFO]  at activeweb.Router.recognize(Router.java:66)
[INFO]  at activeweb.RequestDispatcher.doFilter(RequestDispatcher.java:121)

Original issue reported on code.google.com by i...@polevoy.org on 22 Sep 2011 at 5:41

GoogleCodeExporter commented 9 years ago

Original comment by ipolevoy@gmail.com on 4 Oct 2011 at 9:29