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)
sample JSP file with repeated tags
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)