Announcement Announcement Module
Collapse
No announcement yet.
Help: using the returnvalue of the MethodInvokingFactoryBean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help: using the returnvalue of the MethodInvokingFactoryBean

    Hey
    I just want to use the return value ot the getProperty-method in the PepGateway but I allways get an Exception (see below)
    could someone help me???

    propertyAccessExceptions are: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.springframework.util.MethodInvoker$VoidType] to required type [java.lang.String] for property 'pepConfigPath']

    b<bean id="methodInvokingFactory" class="org.springframework.beans.factory.config.Me thodInvokingFactoryBean">
    <property name="targetClass">
    <value>ch.ofwi.kms.Kms</value>
    </property>
    <property name="targetMethod">
    <value>getProperty</value>
    </property>
    <property name="arguments">
    <list>
    <value>pepConfigDatei</value>
    </list>
    </property>
    </bean>
    <bean id="pep" class="ch.ofwi.kms.pool.pep.PepGateway" singleton="true">
    <property name="pepConfigPath">
    <ref local="methodInvokingFactory"/>
    </property>[/code]

  • #2
    this happens if,
    ch.ofwi.kms.Kms.getProperty(pepConfigDatei) returns void.

    Comment

    Working...
    X