|
From: Sebastian H. <hel...@in...> - 2012-06-29 17:00:10
|
Hi, you were the Matthew i met last week in Dublin right? sorry that i forgot to introduce you. i didnt have your email address and i didnt want to bother dave and dominic, seeing how busy they are at the moment. welcome to the project however. please tell us if we should add your sf account to the project so you can commit. all the best, sebastian -- Sent with my mobile phone, please excuse my brevity, Sebastian Matthew Byrne <mat...@gm...> wrote: Hi All I'm trying to experiment with modifications to DL-Learner initially by experimenting with different Refinement Operators. To get the ball rolling, I copied RhoDRDown.java and: - changed the name to MpbVersion1 and adjusted the annotation to "mpb" (where previously there was "rho") - included a reference to my new file in the "componentClassNames" list of AnnComponentManager.java - then tried to run it by changing rho to mpb in an already-working con file. However it does not work. Any ideas how I can make it work? Thanks in advance, Matthew Below is the error that is thrown: Initializing Component "mpb refinement operator"... OK (11ms) An Error Has Occurred During Processing. Cannot convert value of type [org.dllearner.refinementoperators.MpbVersion1] to required type [org.dllearner.refinementoperators.RhoDRDown] for property 'operator': no matching editors or conversion strategy found Stack Trace: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alg': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.dllearner.refinementoperators.MpbVersion1' to required type 'org.dllearner.refinementoperators.RhoDRDown' for property 'operator'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.dllearner.refinementoperators.MpbVersion1] to required type [org.dllearner.refinementoperators.RhoDRDown] for property 'operator': no matching editors or conversion strategy found at org.dllearner.configuration.spring.DefaultApplicationContextBuilder.buildApplicationContext(DefaultApplicationContextBuilder.java:62) at org.dllearner.cli.CLI.main(CLI.java:185) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alg': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.dllearner.refinementoperators.MpbVersion1' to required type 'org.dllearner.refinementoperators.RhoDRDown' for property 'operator'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.dllearner.refinementoperators.MpbVersion1] to required type [org.dllearner.refinementoperators.RhoDRDown] for property 'operator': no matching editors or conversion strategy found at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.dllearner.configuration.spring.DefaultApplicationContextBuilder.buildApplicationContext(DefaultApplicationContextBuilder.java:60) ... 1 more Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.dllearner.refinementoperators.MpbVersion1' to required type 'org.dllearner.refinementoperators.RhoDRDown' for property 'operator'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.dllearner.refinementoperators.MpbVersion1] to required type [org.dllearner.refinementoperators.RhoDRDown] for property 'operator': no matching editors or conversion strategy found at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:485) at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:516) at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:510) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1406) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1365) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) ... 10 more Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.dllearner.refinementoperators.MpbVersion1] to required type [org.dllearner.refinementoperators.RhoDRDown] for property 'operator': no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:241) at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:470) ... 16 more Terminating DL-Learner...and writing stacktrace to: log/error.log |