Results 1 to 2 of 2

Thread: BeanUtils, InstantiationException, abstract class

  1. #1
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Question BeanUtils, InstantiationException, abstract class

    Hi all,

    I have a concrete class MyClass defined in my spring config file. Something like:
    Code:
    <bean id="myBean" class="MyClass" />
    The method itself is defined by an inherited abstract class.

    Now when BeanUtils tries to invoke this method it tries to instantiate the abstract class instead of MyClass and throws of course an InstantiationException.

    How do I tell Spring to use the class MyClass as defined in my config?

    Thanks Tai
    Tai Truong
    pointsoftware.ch

  2. #2
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Default

    I should mention that BeanUtils is called by the HandlerMethodInvoker class. Since HandlerMethodInvoker is part of Spring Web maybe this post should be moved to the Web forum.
    Can a forum admin do this?
    Tai Truong
    pointsoftware.ch

Posting Permissions

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