Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Aspectj Load time weaving support in Dm 2.0

  1. #11
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default

    Andy, I could not completely get you solution, but my requirement is my service exporter and importer bundles should be totally unaware of the aspect logic.


    What version on dynamic modules does spring dm use ?

    I see an attricute sticky is <osgi:ref> - which the reference says is - will stick to the first version on the obtained service. Is it supported in Dm 2.0M6

    I think this can solve my issue. In my BundleXAspect(bundle containing the aspect) i will give sticky=true . It avoid my cycle and my application should work fine.

  2. #12
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default

    i get the following error when adding sticky attribute


    Code:
    aused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'sticky' of bean class [org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean]: Bean property 'sticky' 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:877)
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:722)
    	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
    	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:60)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1332)
    	... 21 common frames omitted

  3. #13
    Join Date
    Mar 2007
    Posts
    515

    Default

    Quote Originally Posted by sudheerk84 View Post
    i get the following error when adding sticky attribute


    Code:
    aused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'sticky' of bean class [org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean]: Bean property 'sticky' 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:877)
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:722)
    	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
    	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:60)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1332)
    	... 21 common frames omitted
    The sticky attribute has been added in Spring DM 2.x. dm Server 1.x uses Spring DM 1.x.

  4. #14
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default

    HI Andrei,

    I tried my sample pasted above with DM server 2.0 M6.


    But i am not sure what version of Dynamic modules does Spring DM 2.0M6 use.

  5. #15
    Join Date
    Dec 2004
    Location
    Vancouver, BC
    Posts
    80

    Default

    did you figure this out? I get this same exception while trying to reference a service myself. I am using dm server 2 release.

    thanks,
    craig

  6. #16
    Join Date
    Dec 2004
    Location
    Vancouver, BC
    Posts
    80

    Default

    i am using STS
    Version: 2.3.0.RELEASE
    Build Id: 200912171331

    Is it compatible with using DM Server 2.0 release?

    Could that be an issue?

    thanks,
    craig

  7. #17
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •