You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/02/09 11:25:35 UTC

DO NOT REPLY [Bug 26785] New: - [Woody] Upload widget causes NPE

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.