Hi, On Tue, Oct 16, 2012 at 7:59 PM, [email protected] <[email protected]> wrote: > Hi, > > I did follow this tutorial to create a download via Ajax in a form: > https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow > > The slightly modified code can be seen here: > https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/backup/BackupPanel.java?view=markup > Line 127 "download.initialize(target);" is called.
It seems you have modified BackupPanel. There is no code like "download.initialize(target)" > > The rest seems to me similar to the example, except for that I set the File > is set dynamically with every Ajax request. > > The File itself does exist and is created correctly. > > However Wicket throws this wired exception: > http://pastebin.com/raw.php?i=Fijqjd5y NullPointerException is not something one should expect so it is a bug. According to https://github.com/apache/wicket/blob/build/wicket-6.0.0/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/ServletWebRequest.java#L321 its cause is that HttpServletRequest.getParametersMap() returns a Map with an entry with value == null. I'm not sure in what cases this can happen but I'll add a check for null there. > > The trace seems to be an internal Wicket error. Is this a Bug inside Wicket? > > Sebastian > -- > Sebastian Wagner > https://twitter.com/#!/dead_lock > http://www.webbase-design.de > http://www.wagner-sebastian.com > [email protected] -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com
