Error Org Apache Wicket Requestcycle Can Instantiate Page Using Constructor
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up WICKET: Can't instantiate page using constructor when using DatePicker up vote 0 down vote favorite This time I have problem on putting DatePicker on my wicket Page. My code is follows: public class StateDB extends BasePage { private Date date = new Date(); public StateDB() { Form form = new Form("form"); DateTextField birthDate = new DateTextField("birthDate", new PropertyModel
från GoogleLogga inDolda fältSök efter grupper eller meddelanden
org.sakaiproject.scorm.ui.console.pages.DisplayDesignatedPackage()Log In http://apache-wicket.1842946.n4.nabble.com/Error-using-JUnit-Can-t-instantiate-page-using-constructor-td1861532.html ExportXMLWordPrintable Details Type: Bug Status: Closed Priority: Major Resolution: Fixed Affects Version/s: None Fix Version/s: 3.1.9 Component/s: None Labels: error org None Environment: sakai 2.9 with edia scorm player. Description Hi All, I successfully integrated edia player in sakai 2.9 version.Now When I try to error org apache upload the scorm courses in to scorm player tool. It is not uploading a throwing error : ... 51 more Caused by: java.lang.NullPointerException at org.sakaiproject.scorm.ui.console.pages.DisplayDesignatedPackage.
this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Error using JUnit: Can't instantiate page using constructor Greetings, all, I am getting started with Wicket and just wrote my first simple JUnit test for a small Wicket application (taken from the Wicket in Action book). The test is: public class TestIndexPage { @Test public void labelContainsHelloWorld() { WicketTester tester = new WicketTester(); tester.startPage(Index.class); tester.assertContains("Gouda"); } } When I run it, I get the following: [junit] 407 [main] ERROR org.apache.wicket.RequestCycle - Can't instantiate page using constructor public com.cheesr.Index() [junit] org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public com.cheesr.Index() I have searched this group but not found any relevant solutions. I am too new to Wicket to understand how to diagnose this problem. I have written a page with a more complete description of my error, including a link to a .zip file which you can use to reproduce the error quickly and which includes complete sources at: http://code.google.com/p/hackystat-ui-wicket/wiki/WicketJUnitErrorI would be most grateful for any help you could provide. I am a refugee from the Stripes/Struts/GWT world and am quite excited by the approach taken in Wicket. Thanks very much, Philip Johnson Igor Vaynberg-2 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Error using JUnit: Can't instantiate page using constructor look at the stacktrace, the root cause is: Caused by: java.lang.ClassCastException: org.apache.wicket.util.tester.WicketTester$DummyWebApplication cannot be cast to com.cheesr.CheesrApplication in your page you are trying to cast application to cheesrapplicatio, but by default wickettester uses its own interna