cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30796] New: - exception when form has no action attribute
Date Mon, 23 Aug 2004 07:25:11 GMT
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=30796>.
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=30796

exception when form has no action attribute

           Summary: exception when form has no action attribute
           Product: Cocoon 2
           Version: 2.1.5
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: CocoonForms
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: jh@domek.be


When the form element does not have an action attribute, cforms bums out with an
arrayindexoutofbounds exception. 

eg 
<ft:form-template name="test" method="POST">
...
</ft-form-template>


cause: java.lang.ArrayIndexOutOfBoundsException: Attempt to modify attribute at
illegal index: -1

Original Exception: java.lang.ArrayIndexOutOfBoundsException: Attempt to modify
attribute at illegal index: -1
	at org.xml.sax.helpers.AttributesImpl.badIndex(Unknown Source)
	at org.xml.sax.helpers.AttributesImpl.setValue(Unknown Source)
	at
org.apache.cocoon.forms.transformation.EffectWidgetReplacingPipe.translateAttributes(EffectWidgetReplacingPipe.java:755)
	at
org.apache.cocoon.forms.transformation.EffectWidgetReplacingPipe.access$200(EffectWidgetReplacingPipe.java:63)
	at
org.apache.cocoon.forms.transformation.EffectWidgetReplacingPipe$FormHandler.process(EffectWidgetReplacingPipe.java:319)
	at
org.apache.cocoon.forms.transformation.EffectPipe.startElement(EffectPipe.java:412)
	at org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:83)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(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:252)
	at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:116)

Mime
View raw message