#1821 new
Alex

OptimisticLockingCRUD log some Warning on LocalvariablesNamesEnhancer

Reported by Alex | May 28th, 2014 @ 01:23 AM | in 1.4.x

Please include as much relevant information as possible including the exact framework version you're using and a code snippet that reproduces the problem. WARNING: Do not fill bugs related describing security vulnerabilities. Email directly guillaume dot bort at gmail dot com for that.

Framework version: 1.3.x commit acef81dd246dc13164e1974cd1abd36804f0ed85
Platform you're using: Windows x64 - JDK7

Reproduction steps: Just run the application just test cases after a play clean

You will have this log:

09:16:38,165 TRACE ~ 0ms to apply PropertiesEnhancer to controllers.OptimisticLockingCRUD
09:16:38,167 TRACE ~ for variable 'entityClass' in slot=0, sig was 'Ljava/lang/Class;' and is now 'Ljava/lang/Object;'
09:16:38,170 WARN  ~ weird: skipping method controllers.CRUD$ObjectType controllers.OptimisticLockingCRUD.createObjectType(java.lang.Class) as its number of local variables is incorrect (lv=javassist.bytecode.LocalVariableAttribute@23e9d8eb || lv.length=0 || params.length=1 || (isStatic? true)
09:16:38,171 WARN  ~ While applying localvariables to controllers.OptimisticLockingCRUD.createObjectType, param 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:635)
    at java.util.ArrayList.get(ArrayList.java:411)
    at play.classloading.enhancers.LocalvariablesNamesEnhancer.enhanceThisClass(LocalvariablesNamesEnhancer.java:154)
    at play.CorePlugin.enhance(CorePlugin.java:297)
    at play.plugins.PluginCollection.enhance(PluginCollection.java:551)
    at play.classloading.ApplicationClasses$ApplicationClass.enhance(ApplicationClasses.java:235)
    at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:168)
    at play.classloading.ApplicationClassloader.loadClass(ApplicationClassloader.java:85)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:169)
    at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:432)
    at play.classloading.ApplicationClassloader.getAssignableClasses(ApplicationClassloader.java:456)
    at play.templates.GroovyTemplateCompiler.compile(GroovyTemplateCompiler.java:34)
    at play.templates.TemplateCompiler.compile(TemplateCompiler.java:28)
    at play.templates.TemplateLoader.load(TemplateLoader.java:83)
    at play.mvc.Router.parse(Router.java:161)
    at play.mvc.Router.parse(Router.java:189)
    at play.mvc.Router.parse(Router.java:163)
    at play.mvc.Router.load(Router.java:47)
    at play.mvc.Router.detectChanges(Router.java:218)
    at Invocation.HTTP Request(Play!)

Details:
We need to investigate

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2>Play framework</h2>

Play makes it easier to build Web applications with Java. It is a clean alternative to bloated Enterprise Java stacks. It focuses on developer productivity and targets RESTful architectures. Learn more on the <a href="http://www.playframework.org">http://www.playframework.org</a> website.<br><br>

<h2>Source code is hosted on github</h2>Check out our repository at <a href="http://github.com/playframework/play">http://github.com/playframework/play</a><br><br>

<h2>Contributing, creating a patch</h2> Please read the <a href="http://play.lighthouseapp.com/projects/57987/contributor-guide">contributor guide</a><br><br>

<h2>Reporting Security Vulnerabilities</h2> Since all bug reports are public, please report any security vulnerability directly to <em>guillaume dot bort at gmail dot com</em>.<br><br>

<h2>Creating a bug report</h2> Bug reports are incredibly helpful, so take time to report bugs and request features in our ticket tracker. We’re always grateful for patches to Play’s code. Indeed, bug reports with attached patches will get fixed far quickly than those without any.<br><br>

Please include as much relevant information as possible including the exact framework version you're using and a code snippet that reproduces the problem.<br><br>

Don't have too much expectations. Unless the bug is really a serious "everything is broken" thing, you're creating a ticket to start a discussion. Having a patch (or a branch on Github we can pull from) is better, but then again we'll only pull high quality branches that make sense to be in the core of Play.

Pages