i think in the unit test the init method that is now introduced in the
PropertyREsolver isn't called:
private static Map getClassesToGetAndSetters()
{
return (Map)applicationToClassesToGetAndSetters.get(Application.get
());
}
/**
* Initialize cache for this app.
*
* @param application
*/
public static void init(Application application)
{
applicationToClassesToGetAndSetters.put(application, new
ConcurrentHashMap(64));
}
AlMaw??
johan
On 6/25/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
i'm getting this in a unit test and wondering if anyone knows why that
might
happen:
Caused by: java.lang.NullPointerException
at
org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(
PropertyResolver.java:274)
at
org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(
PropertyResolver.java:266)
at
org.apache.wicket.util.lang.PropertyResolver.getPropertyClass(
PropertyResolver.java:144)
at
org.apache.wicket.model.AbstractPropertyModel.getObjectClass(
AbstractPropertyModel.java:199)
at
org.apache.wicket.markup.html.form.AbstractTextComponent.getModelType(
AbstractTextComponent.java:119)
at
org.apache.wicket.markup.html.form.AbstractTextComponent.onBeforeRender(
AbstractTextComponent.java:107)
at org.apache.wicket.Component.beforeRender(Component.java:846)
at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(
MarkupContainer.java:1449)
--
View this message in context:
http://www.nabble.com/NPE-in-PropertyResolver-tf3974388.html#a11281637
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user