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 26785] New: - [Woody] Upload widget causes NPE
Date Mon, 09 Feb 2004 10:25:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26785>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26785

[Woody] Upload widget causes NPE

           Summary: [Woody] Upload widget causes NPE
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: Other
               URL: http://localhost:8888/samples/woody/upload
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: CocoonForms
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: u.cei@cbim.it


The Upload sample in Woody fails with the following stacktrace:

Original Exception: java.lang.NullPointerException
	at
org.apache.cocoon.woody.formmodel.AbstractWidget.validate(AbstractWidget.java:188)
	at org.apache.cocoon.woody.formmodel.Upload.validate(Upload.java:151)
	at
org.apache.cocoon.woody.formmodel.ContainerDelegate.validate(ContainerDelegate.java:102)
	at
org.apache.cocoon.woody.formmodel.AbstractContainerWidget.validate(AbstractContainerWidget.java:99)
	at org.apache.cocoon.woody.formmodel.Form.doValidate(Form.java:315)
	at org.apache.cocoon.woody.formmodel.Form.process(Form.java:262)

I've applied the following change to line 188 of AbstractWidget.java in my local
copy:

        if (this.definition != null && !this.definition.validate(this, context)) {

but I don't know enough about validation to understand why "this.definition" is
null in the first place.

Mime
View raw message