I can now confirm that when latest Resource.java the snapshot version works ok.
Ari S.
----- Original Message -----
From: "Igor Vaynberg" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Tuesday, January 31, 2006 11:16 AM
Subject: Re: [Wicket-user] NullPointerException when accessing resources in
last wicket snapshot
ahh
ok
i will uncomment the line in the servlet then :)
-Igor
On 1/31/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
This change is *not* present in snapshot. It has been added next day after
snapshot
was created. Obviously this fixes the problem, I'll take Resource.javafrom cvs
and
re-compile.
Ari S.
----- Original Message -----
From: "Igor Vaynberg" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Tuesday, January 31, 2006 11:03 AM
Subject: Re: [Wicket-user] NullPointerException when accessing resources
in last wicket snapshot
really?
you dont have this in your wicket.Resource
public final void setParameters(final Map parameters)
{
if (parameters == null)
{
Resource.parameters.set(null);
}
else
{
Resource.parameters.set(new ValueMap(parameters));
}
}
-Igor
On 1/31/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
>
> The problem is that calling Resource.setParameters with null results
> in an attempt to construct ValueMap with null, which doesn't work.
>
> Ari S.
>
> ----- Original Message -----
> From: "Igor Vaynberg" <[EMAIL PROTECTED]>
> To: <wicket-user@lists.sourceforge.net>
> Sent: Tuesday, January 31, 2006 10:32 AM
> Subject: Re: [Wicket-user] NullPointerException when accessing resources
> in last wicket snapshot
>
>
> this shouldnt cause problems, however i currently do not have time to
look
> into why it was doing so.
>
> i disabled this in HEAD and left a todo for later.
>
> -Igor
>
>
> On 1/31/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
> >
> > It appears that offending change is this one:
> >
> >
>
http://cvs.sourceforge.net/viewcvs.py/wicket/wicket/src/java/wicket/protocol/http/WicketServlet.java?r1=1.66&r2=1.67
> >
> > Ari S.
> >
> > ----- Original Message -----
> > From: "Ari Suutari" <[EMAIL PROTECTED]>
> > To: <wicket-user@lists.sourceforge.net>
> > Sent: Tuesday, January 31, 2006 10:10 AM
> > Subject: [Wicket-user] NullPointerException when accessing resources
in
> > last wicket snapshot
> >
> >
> > > Hi,
> > >
> > > I updated to lastest wicket-snapshot (wicket-1.2-20060127-0105) and
> > > have been wondering why some things which add javascript to <head>
no
> > longer
> > > work.
> > >
> > > For example, datepicker accesses calendar.js like:
> > >
> > >
> >
>
http://coffee/person.app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js
> > >
> > > Which returns:
> > > java.lang.NullPointerException
> > > java.util.HashMap.putAll(HashMap.java:490)
> > > wicket.util.value.ValueMap.<init>(ValueMap.java:78)
> > > wicket.Resource.setParameters(Resource.java:188)
> > > wicket.protocol.http.WicketServlet.getLastModified(
WicketServlet.java
> > :381)
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:685)
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > syncrontech.common.storage.TxnServletFilter.doFilter(
> > TxnServletFilter.java:72)
> > >
> > > With previous snapshot everything worked fine.
> > >
> > > Ari S.
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Splunk Inc. Do you grep through
log
> > files
> > > for problems? Stop! Download the new AJAX search engine that makes
> > > searching your log files as easy as surfing the web. DOWNLOAD
> SPLUNK!
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > files
> > for problems? Stop! Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
> >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user