Jump to Navigation

LocalvariablesNamesEnhancer exception in play!

When you're using play 1.2.4 and you have updated your hibernate version, it is possible (in special cases) that you encounter the error " An unexpected error occured caused by exception UnexpectedException: While applying class  play.classloading.enhancers.LocalvariablesNamesEnhancer ".

The solution to fix this is simpel, but verry well hidden. When you ftch the new hibernate version. A new version of javassistant is fetched as well. Play can't work with this new version. So th etrick is to overrule the new version and downgrade to the older version as added in play. to do so, you have to add the follwoing line to your required part of conf/dependecies.yml

    - javassist -> javassist 3.9.0.GA

(please remember to run play dependencies --sync (including --sync!) ) and play netbeansify of play eclipsify.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <b> <u>
  • Lines and paragraphs break automatically.
  • Syntax highlight code surrounded by the <pre class="brush: lang">...</pre> tags, where lang is one of the following language brushes: as3, applescript, bash, csharp, coldfusion, cpp, css, delphi, diff, erlang, groovy, jscript, java, javafx, perl, php, plain, powershell, python, ruby, sass, scala, sql, vb, xml.

Plain text

  • No HTML tags allowed.
  • Syntax highlight code surrounded by the <pre class="brush: lang">...</pre> tags, where lang is one of the following language brushes: as3, applescript, bash, csharp, coldfusion, cpp, css, delphi, diff, erlang, groovy, jscript, java, javafx, perl, php, plain, powershell, python, ruby, sass, scala, sql, vb, xml.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.


virtuaos

Main menu 2

Article | by Dr. Radut