Results 1 to 3 of 3
  1. #1
    bbq
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Posts
    132
    Rep Power
    0

    Default 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

  2. #2
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Posts
    164
    Rep Power
    7

    Default

    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."

  3. #3
    Jack is offline Senior Member
    Join Date
    Jun 2007
    Posts
    130
    Rep Power
    0

    Default

    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."

Similar Threads

  1. exception
    By Oktam in forum New To Java
    Replies: 2
    Last Post: 03-23-2008, 07:01 PM
  2. Replies: 1
    Last Post: 03-08-2008, 06:41 PM
  3. Exception
    By Camden in forum New To Java
    Replies: 2
    Last Post: 11-26-2007, 11:50 PM
  4. javaBeans with JSP
    By jainpankaj15m in forum Advanced Java
    Replies: 1
    Last Post: 07-25-2007, 01:15 PM
  5. javabeans?
    By sin in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 05-15-2007, 06:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •