Hi,
I have welcome  following page Home.java
public class HomePage extends WebPage {

           public HomePage(){
                   add(new Drift("panel"));

                }

     }


It seems that everything should work but I receive exception that "Can't 
instantiate page using constructor public no.portlets.client.HomePage()"
Do you have maybe any idea what can be wrong?

Best regards,
Rafal




WicketMessage: Can't instantiate page using constructor public 
no.portlets.client.HomePage()Root cause:java.lang.NullPointerException   
  at noportlets.client.Drift.<init>(Drift.java:30)     at 
no.portlets.client.HomePage.<init>(HomePage.java:8)     at 
java.lang.reflect.Constructor.newInstance(Constructor.java:513)     at 
org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192)
 
    at 
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57)
 
    at 
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:299)
 
    at 
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:321)
 
    at 
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234)


-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscribegooglegroups.com or reply to 
this email with the words "REMOVE ME" as the subject.

Reply via email to