Menu

#53 repeat tags -> NPE in CewolfChartFactory.getChartTypeConstan

open
nobody
TagLibrary (33)
5
2013-01-13
2004-08-21
Larry Hamel
No

when using the attached sample JSP file in CEWOLF 0.9.8 in the resin 2.1.11 servlet engine, I get the following error trace. Can you duplicate?

It appears that after the first tag, the remaining tags are not getting the incoming attribute values set in setXX() methods. The 'doAfterEndTag()' method seems unusual, attempting to reinitialize the key data member involved in the NPE.

Is there some issue with tag initialization/thread safety? This sample file is simply the CEWOLF sample, with a single tag example repeated several times.

thanks,

larry

java.lang.NullPointerException
at de.laures.cewolf.taglib.CewolfChartFactory.getChartTypeConstant(CewolfChartFactory.java:58)
at de.laures.cewolf.taglib.CewolfChartFactory.getChartInstance(CewolfChartFactory.java:70)
at de.laures.cewolf.taglib.SimpleChartDefinition.produceChart(SimpleChartDefinition.java:30)
at de.laures.cewolf.taglib.AbstractChartDefinition.getChart(AbstractChartDefinition.java:81)
at de.laures.cewolf.taglib.ChartImageDefinition.ensureRendered(ChartImageDefinition.java:131)
at de.laures.cewolf.taglib.ChartImageDefinition.getBytes(ChartImageDefinition.java:125)
at de.laures.cewolf.storage.SerializableChartImage.<init>(SerializableChartImage.java:51)
at de.laures.cewolf.storage.SessionStorage.storeChartImage(SessionStorage.java:57)
at de.laures.cewolf.storage.SessionStorage.storeChartImage(SessionStorage.java:35)
at de.laures.cewolf.taglib.tags.ChartImgTag.doStartTag(ChartImgTag.java:74)
at _expresso._components._gradebook._classes._showclass__jsp._jspService(_showclass__jsp.java:933)

Discussion

  • Larry Hamel

    Larry Hamel - 2004-08-21

    sample JSP file with repeated tags

     
  • Brian Fox

    Brian Fox - 2004-09-24

    Logged In: YES
    user_id=805618

    I've seen this before if you use the same producer over and
    over. Try using different producer id's (might need multiple
    use beans)

     

Log in to post a comment.