java.lang.RuntimeException

Spring JIRA | john@johnandkerri.com | 8 years ago
  1. 0

    As of spring v 2.5.6, for frm:select tags toString is still being called by org.springframework.web.servlet.tags.form.SelectedValueComparator.isSelected method instead of my custom property editor. the editor is called on save, but not on display of jsp page. this is similar to http://jira.springframework.org/browse/SPR-4164 which reported as fixed by 2.5.2. <frm:select path="food.type" items="${foodTypes}" itemLabel="name" itemValue="id"></frm:select> 06/10 12:15:01 [http-8080-Processor24] DEBUG net.aileron.data.entity.rez.FoodType.toString(FoodType.java:100) java.lang.RuntimeException at net.aileron.data.entity.rez.FoodType.toString(FoodType.java:100) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157) at net.aileron.data.entity.rez.FoodType$$EnhancerByCGLIB$$74e31005.toString(<generated>) at org.springframework.util.ObjectUtils.nullSafeToString(ObjectUtils.java:547) at org.springframework.util.ObjectUtils.getDisplayString(ObjectUtils.java:493) at org.springframework.web.servlet.tags.form.SelectedValueComparator.exhaustiveCompare(SelectedValueComparator.java:181) at org.springframework.web.servlet.tags.form.SelectedValueComparator.isSelected(SelectedValueComparator.java:105) at org.springframework.web.servlet.tags.form.OptionWriter.isOptionSelected(OptionWriter.java:233) at org.springframework.web.servlet.tags.form.OptionWriter.renderOption(OptionWriter.java:210) at org.springframework.web.servlet.tags.form.OptionWriter.doRenderFromCollection(OptionWriter.java:192) at org.springframework.web.servlet.tags.form.OptionWriter.renderFromCollection(OptionWriter.java:177) at org.springframework.web.servlet.tags.form.OptionWriter.writeOptions(OptionWriter.java:132) at org.springframework.web.servlet.tags.form.SelectTag.writeTagContent(SelectTag.java:216)

    Spring JIRA | 8 years ago | john@johnandkerri.com
    java.lang.RuntimeException
  2. 0

    As of spring v 2.5.6, for frm:select tags toString is still being called by org.springframework.web.servlet.tags.form.SelectedValueComparator.isSelected method instead of my custom property editor. the editor is called on save, but not on display of jsp page. this is similar to http://jira.springframework.org/browse/SPR-4164 which reported as fixed by 2.5.2. <frm:select path="food.type" items="${foodTypes}" itemLabel="name" itemValue="id"></frm:select> 06/10 12:15:01 [http-8080-Processor24] DEBUG net.aileron.data.entity.rez.FoodType.toString(FoodType.java:100) java.lang.RuntimeException at net.aileron.data.entity.rez.FoodType.toString(FoodType.java:100) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157) at net.aileron.data.entity.rez.FoodType$$EnhancerByCGLIB$$74e31005.toString(<generated>) at org.springframework.util.ObjectUtils.nullSafeToString(ObjectUtils.java:547) at org.springframework.util.ObjectUtils.getDisplayString(ObjectUtils.java:493) at org.springframework.web.servlet.tags.form.SelectedValueComparator.exhaustiveCompare(SelectedValueComparator.java:181) at org.springframework.web.servlet.tags.form.SelectedValueComparator.isSelected(SelectedValueComparator.java:105) at org.springframework.web.servlet.tags.form.OptionWriter.isOptionSelected(OptionWriter.java:233) at org.springframework.web.servlet.tags.form.OptionWriter.renderOption(OptionWriter.java:210) at org.springframework.web.servlet.tags.form.OptionWriter.doRenderFromCollection(OptionWriter.java:192) at org.springframework.web.servlet.tags.form.OptionWriter.renderFromCollection(OptionWriter.java:177) at org.springframework.web.servlet.tags.form.OptionWriter.writeOptions(OptionWriter.java:132) at org.springframework.web.servlet.tags.form.SelectTag.writeTagContent(SelectTag.java:216)

    Spring JIRA | 8 years ago | john@johnandkerri.com
    java.lang.RuntimeException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      No message provided

      at net.aileron.data.entity.rez.FoodType.toString()
    2. net.aileron.data
      FoodType.toString
      1. net.aileron.data.entity.rez.FoodType.toString(FoodType.java:100)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    4. Hibernate
      CGLIBLazyInitializer.invoke
      1. org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
      1 frame
    5. net.aileron.data
      FoodType$$EnhancerByCGLIB$$74e31005.toString
      1. net.aileron.data.entity.rez.FoodType$$EnhancerByCGLIB$$74e31005.toString(<generated>)
      1 frame
    6. Spring Core
      ObjectUtils.getDisplayString
      1. org.springframework.util.ObjectUtils.nullSafeToString(ObjectUtils.java:547)
      2. org.springframework.util.ObjectUtils.getDisplayString(ObjectUtils.java:493)
      2 frames
    7. Spring MVC
      SelectTag.writeTagContent
      1. org.springframework.web.servlet.tags.form.SelectedValueComparator.exhaustiveCompare(SelectedValueComparator.java:181)
      2. org.springframework.web.servlet.tags.form.SelectedValueComparator.isSelected(SelectedValueComparator.java:105)
      3. org.springframework.web.servlet.tags.form.OptionWriter.isOptionSelected(OptionWriter.java:233)
      4. org.springframework.web.servlet.tags.form.OptionWriter.renderOption(OptionWriter.java:210)
      5. org.springframework.web.servlet.tags.form.OptionWriter.doRenderFromCollection(OptionWriter.java:192)
      6. org.springframework.web.servlet.tags.form.OptionWriter.renderFromCollection(OptionWriter.java:177)
      7. org.springframework.web.servlet.tags.form.OptionWriter.writeOptions(OptionWriter.java:132)
      8. org.springframework.web.servlet.tags.form.SelectTag.writeTagContent(SelectTag.java:216)
      8 frames