Thanks a lot!
Those NullPointer exceptions makes makes me mad :( (we use customized
Tomcat 6 in our project) And I get them all the time.
I get rid of all callback URL and all parameters passed via URL.

Thanks!! :)

On Wed, Oct 17, 2012 at 5:11 PM, Martin Grigorov <[email protected]>wrote:

> There was a response from Maxim from OpenMeetings team, but
> [email protected] was not in CC:
>
> <copy>
> Hello Martin,
>
> I have modified the code and have removed AjaxDownloader (since it is not
> really necessary).
> NullPointerException somehow happens while post parameters parsing
> (getCallbackURL) is not working anymore.
>
> I believe this is somehow connected with custom HomePageMapper
>
>
> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java?revision=1384647&view=markup
>
> line 62 and below.
> Maybe you can help me with this?
>
> I have added HomePageMapper to implement "single page application" and
> remove all URL parameters automaticatilly being added by Wicket.
>
> Thanks in advance
>
> </copy>
>
>
> Hi Maxim,
>
> The NullPointerException is while Wicket tries to read the POST
> parameters. The request mappers manipulate only the GET parameters, so
> I think it is not related.
> I've just checked Jetty 7.6.3 sources and they return String[0] so it
> should be OK in this particular version of Jetty. But I'll add the
> check anyway with https://issues.apache.org/jira/browse/WICKET-4818
>
> On Wed, Oct 17, 2012 at 9:16 AM, Martin Grigorov <[email protected]>
> wrote:
> > 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
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>



-- 
WBR
Maxim aka solomax

Reply via email to