Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-19-2007, 07:48 PM
bbq bbq is offline
Senior Member
 
Join Date: Jun 2007
Posts: 134
bbq is on a distinguished road
Exception in JavaBeans
I'm using the javabeans with a jsp page, but when I run it this message appears:


javax.servlet.ServletException: class generation1.Sells :
java.lang.InstantiationException: generation1.Sells

these are my classes

public class Sells
public class Sellsdetails extends Element

I'm implementing a generator of xml files


please help me
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-04-2007, 09:11 AM
Senior Member
 
Join Date: Jun 2007
Posts: 164
Heather is on a distinguished road
Read this article

InstantiationException (Java 2 Platform SE v1.4.2)

especially this part:
"Thrown when an application tries to create an instance of a class
using the newInstance method in class Class, but the specified class
object cannot be instantiated because it is an interface or is an
abstract class."
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-04-2007, 09:33 AM
Senior Member
 
Join Date: Jun 2007
Posts: 130
Jack is on a distinguished road
I read this article and bbq this is important

"Thrown when an application tries to create an instance of a class
using the newInstance method in class Class, but the specified class
object cannot be instantiated because it is an interface or is an
abstract class."
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
exception Oktam New To Java 2 03-23-2008 08:01 PM
Trouble with factory method - unhandled exception type Exception desmond5 New To Java 1 03-08-2008 07:41 PM
Exception Camden New To Java 2 11-27-2007 12:50 AM
javaBeans with JSP jainpankaj15m Advanced Java 1 07-25-2007 02:15 PM
javabeans? sin Enterprise JavaBeans 1 05-15-2007 07:42 AM


All times are GMT +3. The time now is 01:08 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org