Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp:useBean question

 
Ashwin Kumar
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the Bean doesn't have parameterless contructor - Is it compile time error or runtime ?

In some mock exams it is stated as compile time error and somewhere it is Instantiation Exception is thrown(runtime). Please clarify.
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Root cause:
java.lang.NoSuchMethodError: com.examples.beans.Person: method <init>()V not found



Thanks,
[ June 13, 2007: Message edited by: Chandra Bhatt ]
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!