Hi, I've been struggling for some hours now with a weird problem that I don't at all understand where it comes from. I'm using Tapestry 4.0.2, and the stacktrace of the exception, which happens when i try to display the page, is:
# org.apache.tapestry.bean.BeanProvider.<init>(BeanProvider.java:104) # org.apache.tapestry.AbstractComponent.getBeans(AbstractComponent.java:580) # org.apache.tapestry.binding.BeanBinding.getObject(BeanBinding.java:64) # org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:8 7) # $Form_10.getDelegate($Form_10.java) # org.apache.tapestry.form.Form.cleanupAfterRender(Form.java:210) # $Form_10.cleanupAfterRender($Form_10.java) # org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:623) # org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434) Line 104 in BeanProvider is: Infrastructure infrastructure = component.getPage().getRequestCycle().getInfrastructure(); I guess that that could cause an NPE if there was something wrong in the page/component setup. But I can't figure out what it is, despite lots of trial and error with all kinds of alternatives. A small setup that gives me the error is: ---------- EditItem.html ------------- <html> <head> </head> <body> <span jwcid="$content$"> <span jwcid="@Border"> Edit... <form jwcid="[EMAIL PROTECTED]" success="listener:doSubmit"> <!-- irrelevant whether i put actual form components here or not --> <input type="submit" value="Save"/> </form> <p/> <a jwcid="@PageLink" page="ListAll" href="#">List All</a> </span> </span> </body> </html> -------------- --------- EditItem.page ------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE page-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> <page-specification class="se.jadestone.spirits.wrs.EditItemPage"> <description>edits something old</description> </page-specification> -------------------- --------- EditItemPage.java ----- package se.jadestone.spirits.wrs; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.tapestry.html.BasePage; public class EditItemPage extends BasePage { private static final Log log = LogFactory.getLog(EditItemPage.class); public void doSubmit() { log.debug("doSubmit()"); } } --------------------- I'm running the application through Eclipse/JettyLauncher/Jetty. Can anybody give me a hint as to what could be going wrong here? There's another form in the application that works, and I can't see what the problem could be. I'm sure it's something stupid that I'm missing. Thanks, Petter --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]