Guillaume,

Let me try if removing one of the setters solves the issue on my machine. For now, I'll have to vote -1 -- if Thomas and I are both experiencing this issue, there are bound to be more users impacted.

Regards,

Gert

Guillaume Nodet wrote:
Now I think I recall the problem.  I think at some point we had two
setters, one taking a string, and another one taking an ObjectName.
In trunk, one has been removed, but not in the branch.  Not sure why
it happens on your machine, but it may be related to the order in
which the JVM retrieves the operations and give them to Spring (not
sure though).

On Fri, Jul 25, 2008 at 2:47 PM, Gert Vanthienen
<[EMAIL PROTECTED]> wrote:
L.S.,

On my machine, the uploaded version of ServiceMix 3.2.2 does not start.  I
get the exception below.  Strange thing about this is we a) have a
PropertyEditor to deal with this
(org.apache.xbean.spring.context.impl.ObjectNameEditor) and b) we also have
a setter there that takes a String (setObjectName(String)).  I'm running
this on Linux and get this exception both when running with JDK 1.5 and JDK
1.6.  Am I missing the point somewhere here or is this a serious issue with
the release?

Regards,

Gert

java.lang.IllegalArgumentException: Cannot convert value of type
[java.lang.String] to required type [javax.management.ObjectName] for
property 'objectName': no matching editors or conversion strategy found
  at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
  at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
  at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:380)
  at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1105)
  at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
  at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
  at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
  at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
  at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
  at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
  at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)
  at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
  at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161)
  at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
  at org.apache.servicemix.Main.main(Main.java:54)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)


Freeman Fang wrote:
Hi All,

I have uploaded a version of ServiceMix 3.2.2 for you to review. See
http://cwiki.apache.org/confluence/display/SM/ServiceMix+3.2.2
for all the links and release notes.

[ ] +1 Release ServiceMix 3.2.2
[ ] ± 0
[ ] -1 Do not release ServiceMix 3.2.2

Cheers

Freeman





Reply via email to