|
From: Matthew B. <mat...@gm...> - 2012-06-29 16:37:28
|
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 |
|
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 |
|
From: Matthew B. <mat...@gm...> - 2012-06-29 17:05:16
|
Hi Sebastian! That's right, we met in Dublin last week. It would be great if I could commit, yes, but there is quite a good chance that I may not produce something that is a worthy improvement upon the work... Thanks - M. On Fri, Jun 29, 2012 at 6:55 PM, Sebastian Hellmann < hel...@in...> wrote: > ** 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 >> > |
|
From: Jens L. <le...@in...> - 2012-07-12 11:43:24
|
Hello Matthew, sorry for the very late reply. Am 29.06.2012 18:37, schrieb Matthew Byrne: > 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? In general what you did is correct. However, not all DL-Learner components are actually implemented in a flexible way. You got the exception, because the used learning algorithm only accepted the RhoDRDown refinement operator instead of using an interface. I just spend some time to abstract away from this for the CELOE learning algorithm, so your problem should now be solved. I added some documentation here during implementation: http://dl-learner.org/wiki/WritingComponents We appreciate further feedback and also source code contributions. Sorry again for the delay. Usually, we are faster in replying mails. Kind regards, Jens -- Dr. Jens Lehmann Head of AKSW/MOLE group, University of Leipzig Homepage: http://www.jens-lehmann.org GPG Key: http://jens-lehmann.org/jens_lehmann.asc |