DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35986>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35986





------- Additional Comments From [EMAIL PROTECTED]  2005-09-02 16:14 -------
Created an attachment (id=16286)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=16286&action=view)
Sample to reproduce problem

Sample is attached.  You'll probably have to tweak the pathes to Form.js and
forms-samples-styling.xsl, but besides that it should be ready to run.

By the way, in putting together the sample, I found it only happens with the JX
form macros.  With the transformer version all is well.  Maybe the fix should
be in JXMacrosHelper?

I've pasted in a partial stacktrace of the NPE itself below:

java.lang.NullPointerException
        at java.util.Hashtable.get(Hashtable.java:333)
        at java.text.NumberFormat.getInstance(NumberFormat.java:660)
        at java.text.NumberFormat.getNumberInstance(NumberFormat.java:375)
        at
org.apache.cocoon.forms.datatype.convertor.FormattingDecimalConvertor.getDecimalFormat(FormattingDecimalConvertor.java:113)

        at
org.apache.cocoon.forms.datatype.convertor.FormattingDecimalConvertor.getDecimalFormat(FormattingDecimalConvertor.java:101)

        at
org.apache.cocoon.forms.datatype.convertor.FormattingIntegerConvertor.convertFromString(FormattingIntegerConvertor.java:41)

        at
org.apache.cocoon.forms.datatype.DynamicSelectionList$SelectionListHandler.startElement(DynamicSelectionList.java:145)

        at
org.apache.cocoon.components.EnvironmentChanger.startElement(EnvironmentStack.java:122)

        at
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:83)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
        at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:296)
        at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
        at
org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:276)
        at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
        at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:235)

        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:783)

        at
org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:413)

        at
org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:200)
        at
org.apache.cocoon.forms.datatype.DynamicSelectionList.generateSaxFragment(DynamicSelectionList.java:71)

        at
org.apache.cocoon.forms.datatype.DynamicSelectionList.generateSaxFragment(DynamicSelectionList.java:80)

        at
org.apache.cocoon.forms.formmodel.MultiValueField.generateItemSaxFragment(MultiValueField.java:154)

        at
org.apache.cocoon.forms.formmodel.AbstractWidget.generateSaxFragment(AbstractWidget.java:430)

        at
org.apache.cocoon.forms.generation.JXMacrosHelper.generateWidget(JXMacrosHelper.java:140)


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to