Back Forum Reply New

How to get line numbers in the log?

Does anyone know why when I use webflow, it can't tell me the line numbers of my code in the log (and how I can get them to print)?

See lines 2 and 3 for an example. I'm using the same log4j config I use in other non-weblfow springmvc apps (it works fine in those apps).

BTW, I'm using webflow version 2.0.3.Code:    [java] at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)    [java] at com.xyz.domain.Question_$$_javassist_41.getTip(Question_$$_javassist_41.java)    [java] at com.xyz.controller.QuestionController.referenceData(Unknown Source)    [java] at org..web.servlet.mvc.AbstractFormController.showForm(AbstractFormController.java:574)
Much thanks.

Never mind... had nothing to do with webflow... it was how the code is compiled (in my case, with ant). Apparently, you need to compile the code with the debug flag set.

Code:
lt;javac srcdir=quot;${src-dir}quot; destdir=quot;${build-dir}quot; target=quot;1.5quot; debug=quot;truequot;gt;
It took me hours of messing with everything (except my build file) until I stumbled across this unrelated post... sho...Unknown+Source (Thanks to Colin Yates)

Oh boy, thanks for pointing this out splashout. I had the exact same problem a while back and I just gave up on it because I couldnt figure it out (and couldnt afford to spend so much time on it). I dont think I ever would have thought of the debug flag being set. Makes sense though...
¥
Back Forum Reply New