Results 1 to 3 of 3

Thread: Erroneous "No constructor with 1 argument defined in cl

  1. #1
    Join Date
    May 2005
    Posts
    2

    Default Erroneous "No constructor with 1 argument defined in cl

    I have a factory class in my project. This class has a static factory method "createBean(SomeOtherBean arg)", with a bean declaration as follows:

    Code:
      <bean id="myBean" class="MyFactory"
            factory-method="createBean">
        <constructor-arg>
          <ref local="someOtherBean"/>
        </constructor-arg>
      </bean>
    This code works fine within the spring framework itself, however the Spring-IDE complains with

    No constructor with 1 argument defined in class 'MyFactory'

    I'm using Spring-IDE 1.2.0 with Eclipse 3.0.2

  2. #2
    Join Date
    May 2005
    Posts
    2

    Default

    While investigating the problem I noticed that the TRUNK-release has fixed this bug...

  3. #3
    Join Date
    Aug 2004
    Location
    Frankfurt/Main, Germany
    Posts
    253

    Default

    Quote Originally Posted by tkl
    While investigating the problem I noticed that the TRUNK-release has fixed this bug...
    You are right. Ticket #46 (http://springide.org/project/ticket/46) is fixed .

    Cheers
    Torsten

Similar Threads

  1. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM
  2. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  3. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM
  4. Debug exceptions using ContextSingletonBeanFactoryLocator
    By timothygordon32 in forum Container
    Replies: 2
    Last Post: Feb 21st, 2005, 11:19 AM
  5. Quartz problem
    By khem in forum Web
    Replies: 4
    Last Post: Aug 17th, 2004, 02:34 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
  •