1
我有一些測試加載了一些Spring上下文文件。當我從我的螞蟻目標運行測試時,它們按預期工作。當我從IntelliJ運行它們時,我得到一個NotWritablePropertyException。我最初想到了不同的類路徑,但唯一的區別是IntelliJ的測試跑步者。SpringJUnit4ClassRunner測試 - 從螞蟻工作,而不是從IDE
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionAcknowledgeMode' of bean class [org.springframework.jms.listener.DefaultMessageListenerContainer]: Bean property 'sessionAcknowledgeMode' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:801)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
... 42 more
類路徑不一樣,我的錯誤,道歉。 – 2009-07-14 09:35:09