You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by Viknes B <vi...@msn.com> on 2012/07/16 21:48:58 UTC

addFriend - Autowiring problem

Hello Everybody,

I am working on creating friends/requests within Rave. Since Opensocial does not have API to create friends requests I am adding the function addFriend to DefaultUserService. 
I have also added a repository called PersonAssociationRepository within org.apache.rave.portal.repository to save the friend associations. But when I try to autowire PersonAssociationRepository in DefaultUserService I am getting the following error.

“Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'defaultNewAccountService' defined in URL [jar:file:/G:/workspace/Rave/rave-project/rave-components/rave-core/target/rave-core-0.14-SNAPSHOT.jar!/org/apache/rave/portal/service/impl/DefaultNewAccountService.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.apache.rave.portal.service.UserService]: : Error creating bean with name 'userService' defined in URL [jar:file:/G:/workspace/Rave/rave-project/rave-components/rave-core/target/rave-core-0.14-SNAPSHOT.jar!/org/apache/rave/portal/service/impl/DefaultUserService.class]: Unsatisfied dependency expressed through constructor argument with index 7 of type [org.apache.rave.portal.repository.PersonAssociationRepository]: : No matching bean of type [org.apache.rave.portal.repository.PersonAssociationRepository] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.apache.rave.portal.repository.PersonAssociationRepository] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService' defined in URL [jar:file:/G:/workspace/Rave/rave-project/rave-components/rave-core/target/rave-core-0.14-SNAPSHOT.jar!/org/apache/rave/portal/service/impl/DefaultUserService.class]: Unsatisfied dependency expressed through constructor argument with index 7 of type [org.apache.rave.portal.repository.PersonAssociationRepository]: : No matching bean of type [org.apache.rave.portal.repository.PersonAssociationRepository] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.apache.rave.portal.repository.PersonAssociationRepository] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}”

Should I be adding any bean definitions within core-applicationContext.xml or any other place. 
I tried autowiring PersonRepository and it worked. I have created the PersonAssociationRepository in a similar way but I am not able to autowire it. 
Suggestions please. If u need to have a look at my code, I can create a patch and attach it as well.

Thanks
Viknes

Re: addFriend - Autowiring problem

Posted by Viknes B <vi...@msn.com>.
Attached code to JIRA-690.

https://issues.apache.org/jira/browse/RAVE-690

Viknes

-----Original Message----- 
From: Jasha Joachimsthal 
Sent: Wednesday, July 18, 2012 3:28 PM 
To: dev@rave.apache.org 
Subject: Re: addFriend - Autowiring problem 

Can you post the code please?

On 18 July 2012 18:08, Viknes B <vi...@msn.com> wrote:

> I have added the method within PersonRepository.
> I am using a JpaPersonAssociation object, setting the user and follower to
> it and tried saving the object using saveOrUpdate but it doesnot seem to
> work nor is it throwing any exception.
> Can someone please tell me what could be reason for this.
>
> Thanks
> Viknes
>
>
>
> -----Original Message----- From: Viknes B
> Sent: Tuesday, July 17, 2012 12:54 PM
> To: dev@rave.apache.org
> Subject: Re: addFriend - Autowiring problem
>
>
> Aww !! Yes. Thanks.
> I will see if I can implement it within PersonRepository.
>
> Viknes
>
> -----Original Message----- From: Franklin, Matthew B.
> Sent: Tuesday, July 17, 2012 12:21 PM
> To: dev@rave.apache.org
> Subject: RE: addFriend - Autowiring problem
>
> You are probably not annotating your implementation of the Repository as
> @Repository.  I would recommend however that this functionality be added to
> the PersonRepository rather than creating a person association repository.
>
>  -----Original Message-----
>> From: Viknes B [mailto:viknesb@msn.com]
>> Sent: Monday, July 16, 2012 3:49 PM
>> To: dev@rave.apache.org
>> Subject: addFriend - Autowiring problem
>>
>> Hello Everybody,
>>
>> I am working on creating friends/requests within Rave. Since Opensocial
>> does
>> not have API to create friends requests I am adding the function
>> addFriend to
>> DefaultUserService.
>> I have also added a repository called PersonAssociationRepository within
>> org.apache.rave.portal.**repository to save the friend associations. But
>> when I
>> try to autowire PersonAssociationRepository in DefaultUserService I am
>> getting the following error.
>>
>> “Caused by:
>> org.springframework.beans.**factory.**UnsatisfiedDependencyException**:
>> Error
>> creating bean with name 'defaultNewAccountService' defined in URL
>> [jar:file:/G:/workspace/Rave/**rave-project/rave-components/**rave-
>> core/target/rave-core-0.14-
>> SNAPSHOT.jar!/org/apache/rave/**portal/service/impl/**
>> DefaultNewAccountSer
>> vice.class]: Unsatisfied dependency expressed through constructor argument
>> with index 0 of type [org.apache.rave.portal.**service.UserService]: :
>> Error
>> creating bean with name 'userService' defined in URL
>> [jar:file:/G:/workspace/Rave/**rave-project/rave-components/**rave-
>> core/target/rave-core-0.14-
>> SNAPSHOT.jar!/org/apache/rave/**portal/service/impl/**
>> DefaultUserService.clas
>> s]: Unsatisfied dependency expressed through constructor argument with
>> index 7 of type
>> [org.apache.rave.portal.**repository.**PersonAssociationRepository]: : No
>> matching bean of type
>> [org.apache.rave.portal.**repository.**PersonAssociationRepository]
>> found for
>> dependency: expected at least 1 bean which qualifies as autowire candidate
>> for this dependency. Dependency annotations: {}; nested exception is
>> org.springframework.beans.**factory.**NoSuchBeanDefinitionException: No
>> matching bean of type
>> [org.apache.rave.portal.**repository.**PersonAssociationRepository]
>> found for
>> dependency: expected at least 1 bean which qualifies as autowire candidate
>> for this dependency. Dependency annotations: {}; nested exception is
>> org.springframework.beans.**factory.**UnsatisfiedDependencyException**:
>> Error
>> creating bean with name 'userService' defined in URL
>> [jar:file:/G:/workspace/Rave/**rave-project/rave-components/**rave-
>> core/target/rave-core-0.14-
>> SNAPSHOT.jar!/org/apache/rave/**portal/service/impl/**
>> DefaultUserService.clas
>> s]: Unsatisfied dependency expressed through constructor argument with
>> index 7 of type
>> [org.apache.rave.portal.**repository.**PersonAssociationRepository]: : No
>> matching bean of type
>> [org.apache.rave.portal.**repository.**PersonAssociationRepository]
>> found for
>> dependency: expected at least 1 bean which qualifies as autowire candidate
>> for this dependency. Dependency annotations: {}; nested exception is
>> org.springframework.beans.**factory.**NoSuchBeanDefinitionException: No
>> matching bean of type
>> [org.apache.rave.portal.**repository.**PersonAssociationRepository]
>> found for
>> dependency: expected at least 1 bean which qualifies as autowire candidate
>> for this dependency. Dependency annotations: {}”
>>
>> Should I be adding any bean definitions within
>> core-applicationContext.xml or
>> any other place.
>> I tried autowiring PersonRepository and it worked. I have created the
>> PersonAssociationRepository in a similar way but I am not able to
>> autowire it.
>> Suggestions please. If u need to have a look at my code, I can create a
>> patch
>> and attach it as well.
>>
>> Thanks
>> Viknes
>>
>
>

Re: addFriend - Autowiring problem

Posted by Jasha Joachimsthal <ja...@apache.org>.
Can you post the code please?

On 18 July 2012 18:08, Viknes B <vi...@msn.com> wrote:

> I have added the method within PersonRepository.
> I am using a JpaPersonAssociation object, setting the user and follower to
> it and tried saving the object using saveOrUpdate but it doesnot seem to
> work nor is it throwing any exception.
> Can someone please tell me what could be reason for this.
>
> Thanks
> Viknes
>
>
>
> -----Original Message----- From: Viknes B
> Sent: Tuesday, July 17, 2012 12:54 PM
> To: dev@rave.apache.org
> Subject: Re: addFriend - Autowiring problem
>
>
> Aww !! Yes. Thanks.
> I will see if I can implement it within PersonRepository.
>
> Viknes
>
> -----Original Message----- From: Franklin, Matthew B.
> Sent: Tuesday, July 17, 2012 12:21 PM
> To: dev@rave.apache.org
> Subject: RE: addFriend - Autowiring problem
>
> You are probably not annotating your implementation of the Repository as
> @Repository.  I would recommend however that this functionality be added to
> the PersonRepository rather than creating a person association repository.
>
>  -----Original Message-----
>> From: Viknes B [mailto:viknesb@msn.com]
>> Sent: Monday, July 16, 2012 3:49 PM
>> To: dev@rave.apache.org
>> Subject: addFriend - Autowiring problem
>>
>> Hello Everybody,
>>
>> I am working on creating friends/requests within Rave. Since Opensocial
>> does
>> not have API to create friends requests I am adding the function
>> addFriend to
>> DefaultUserService.
>> I have also added a repository called PersonAssociationRepository within
>> org.apache.rave.portal.**repository to save the friend associations. But
>> when I
>> try to autowire PersonAssociationRepository in DefaultUserService I am
>> getting the following error.
>>
>> “Caused by:
>> org.springframework.beans.**factory.**UnsatisfiedDependencyException**:
>> Error
>> creating bean with name 'defaultNewAccountService' defined in URL
>> [jar:file:/G:/workspace/Rave/**rave-project/rave-components/**rave-
>> core/target/rave-core-0.14-
>> SNAPSHOT.jar!/org/apache/rave/**portal/service/impl/**
>> DefaultNewAccountSer
>> vice.class]: Unsatisfied dependency expressed through constructor argument
>> with index 0 of type [org.apache.rave.portal.**service.UserService]: :
>> Error
>> creating bean with name 'userService' defined in URL
>> [jar:file:/G:/workspace/Rave/**rave-project/rave-components/**rave-
>> core/target/rave-core-0.14-
>> SNAPSHOT.jar!/org/apache/rave/**portal/service/impl/**
>> DefaultUserService.clas
>> s]: Unsatisfied dependency expressed through constructor argument with
>> index 7 of type
>> [org.apache.rave.portal.**repository.**PersonAssociationRepository]: : No
>> matching bean of type
>> [org.apache.rave.portal.**repository.**PersonAssociationRepository]
>> found for
>> dependency: expected at least 1 bean which qualifies as autowire candidate
>> for this dependency. Dependency annotations: {}; nested exception is
>> org.springframework.beans.**factory.**NoSuchBeanDefinitionException: No
>> matching bean of type
>> [org.apache.rave.portal.**repository.**PersonAssociationRepository]
>> found for
>> dependency: expected at least 1 bean which qualifies as autowire candidate
>> for this dependency. Dependency annotations: {}; nested exception is
>> org.springframework.beans.**factory.**UnsatisfiedDependencyException**:
>> Error
>> creating bean with name 'userService' defined in URL
>> [jar:file:/G:/workspace/Rave/**rave-project/rave-components/**rave-
>> core/target/rave-core-0.14-
>> SNAPSHOT.jar!/org/apache/rave/**portal/service/impl/**
>> DefaultUserService.clas
>> s]: Unsatisfied dependency expressed through constructor argument with
>> index 7 of type
>> [org.apache.rave.portal.**repository.**PersonAssociationRepository]: : No
>> matching bean of type
>> [org.apache.rave.portal.**repository.**PersonAssociationRepository]
>> found for
>> dependency: expected at least 1 bean which qualifies as autowire candidate
>> for this dependency. Dependency annotations: {}; nested exception is
>> org.springframework.beans.**factory.**NoSuchBeanDefinitionException: No
>> matching bean of type
>> [org.apache.rave.portal.**repository.**PersonAssociationRepository]
>> found for
>> dependency: expected at least 1 bean which qualifies as autowire candidate
>> for this dependency. Dependency annotations: {}”
>>
>> Should I be adding any bean definitions within
>> core-applicationContext.xml or
>> any other place.
>> I tried autowiring PersonRepository and it worked. I have created the
>> PersonAssociationRepository in a similar way but I am not able to
>> autowire it.
>> Suggestions please. If u need to have a look at my code, I can create a
>> patch
>> and attach it as well.
>>
>> Thanks
>> Viknes
>>
>
>

Re: addFriend - Autowiring problem

Posted by Viknes B <vi...@msn.com>.
I have added the method within PersonRepository.
I am using a JpaPersonAssociation object, setting the user and follower to 
it and tried saving the object using saveOrUpdate but it doesnot seem to 
work nor is it throwing any exception.
Can someone please tell me what could be reason for this.

Thanks
Viknes


-----Original Message----- 
From: Viknes B
Sent: Tuesday, July 17, 2012 12:54 PM
To: dev@rave.apache.org
Subject: Re: addFriend - Autowiring problem

Aww !! Yes. Thanks.
I will see if I can implement it within PersonRepository.

Viknes

-----Original Message----- 
From: Franklin, Matthew B.
Sent: Tuesday, July 17, 2012 12:21 PM
To: dev@rave.apache.org
Subject: RE: addFriend - Autowiring problem

You are probably not annotating your implementation of the Repository as
@Repository.  I would recommend however that this functionality be added to
the PersonRepository rather than creating a person association repository.

>-----Original Message-----
>From: Viknes B [mailto:viknesb@msn.com]
>Sent: Monday, July 16, 2012 3:49 PM
>To: dev@rave.apache.org
>Subject: addFriend - Autowiring problem
>
>Hello Everybody,
>
>I am working on creating friends/requests within Rave. Since Opensocial 
>does
>not have API to create friends requests I am adding the function addFriend 
>to
>DefaultUserService.
>I have also added a repository called PersonAssociationRepository within
>org.apache.rave.portal.repository to save the friend associations. But when 
>I
>try to autowire PersonAssociationRepository in DefaultUserService I am
>getting the following error.
>
>“Caused by:
>org.springframework.beans.factory.UnsatisfiedDependencyException: Error
>creating bean with name 'defaultNewAccountService' defined in URL
>[jar:file:/G:/workspace/Rave/rave-project/rave-components/rave-
>core/target/rave-core-0.14-
>SNAPSHOT.jar!/org/apache/rave/portal/service/impl/DefaultNewAccountSer
>vice.class]: Unsatisfied dependency expressed through constructor argument
>with index 0 of type [org.apache.rave.portal.service.UserService]: : Error
>creating bean with name 'userService' defined in URL
>[jar:file:/G:/workspace/Rave/rave-project/rave-components/rave-
>core/target/rave-core-0.14-
>SNAPSHOT.jar!/org/apache/rave/portal/service/impl/DefaultUserService.clas
>s]: Unsatisfied dependency expressed through constructor argument with
>index 7 of type
>[org.apache.rave.portal.repository.PersonAssociationRepository]: : No
>matching bean of type
>[org.apache.rave.portal.repository.PersonAssociationRepository] found for
>dependency: expected at least 1 bean which qualifies as autowire candidate
>for this dependency. Dependency annotations: {}; nested exception is
>org.springframework.beans.factory.NoSuchBeanDefinitionException: No
>matching bean of type
>[org.apache.rave.portal.repository.PersonAssociationRepository] found for
>dependency: expected at least 1 bean which qualifies as autowire candidate
>for this dependency. Dependency annotations: {}; nested exception is
>org.springframework.beans.factory.UnsatisfiedDependencyException: Error
>creating bean with name 'userService' defined in URL
>[jar:file:/G:/workspace/Rave/rave-project/rave-components/rave-
>core/target/rave-core-0.14-
>SNAPSHOT.jar!/org/apache/rave/portal/service/impl/DefaultUserService.clas
>s]: Unsatisfied dependency expressed through constructor argument with
>index 7 of type
>[org.apache.rave.portal.repository.PersonAssociationRepository]: : No
>matching bean of type
>[org.apache.rave.portal.repository.PersonAssociationRepository] found for
>dependency: expected at least 1 bean which qualifies as autowire candidate
>for this dependency. Dependency annotations: {}; nested exception is
>org.springframework.beans.factory.NoSuchBeanDefinitionException: No
>matching bean of type
>[org.apache.rave.portal.repository.PersonAssociationRepository] found for
>dependency: expected at least 1 bean which qualifies as autowire candidate
>for this dependency. Dependency annotations: {}”
>
>Should I be adding any bean definitions within core-applicationContext.xml 
>or
>any other place.
>I tried autowiring PersonRepository and it worked. I have created the
>PersonAssociationRepository in a similar way but I am not able to autowire 
>it.
>Suggestions please. If u need to have a look at my code, I can create a 
>patch
>and attach it as well.
>
>Thanks
>Viknes


Re: addFriend - Autowiring problem

Posted by Viknes B <vi...@msn.com>.
Aww !! Yes. Thanks.
I will see if I can implement it within PersonRepository.

Viknes

-----Original Message----- 
From: Franklin, Matthew B.
Sent: Tuesday, July 17, 2012 12:21 PM
To: dev@rave.apache.org
Subject: RE: addFriend - Autowiring problem

You are probably not annotating your implementation of the Repository as 
@Repository.  I would recommend however that this functionality be added to 
the PersonRepository rather than creating a person association repository.

>-----Original Message-----
>From: Viknes B [mailto:viknesb@msn.com]
>Sent: Monday, July 16, 2012 3:49 PM
>To: dev@rave.apache.org
>Subject: addFriend - Autowiring problem
>
>Hello Everybody,
>
>I am working on creating friends/requests within Rave. Since Opensocial 
>does
>not have API to create friends requests I am adding the function addFriend 
>to
>DefaultUserService.
>I have also added a repository called PersonAssociationRepository within
>org.apache.rave.portal.repository to save the friend associations. But when 
>I
>try to autowire PersonAssociationRepository in DefaultUserService I am
>getting the following error.
>
>“Caused by:
>org.springframework.beans.factory.UnsatisfiedDependencyException: Error
>creating bean with name 'defaultNewAccountService' defined in URL
>[jar:file:/G:/workspace/Rave/rave-project/rave-components/rave-
>core/target/rave-core-0.14-
>SNAPSHOT.jar!/org/apache/rave/portal/service/impl/DefaultNewAccountSer
>vice.class]: Unsatisfied dependency expressed through constructor argument
>with index 0 of type [org.apache.rave.portal.service.UserService]: : Error
>creating bean with name 'userService' defined in URL
>[jar:file:/G:/workspace/Rave/rave-project/rave-components/rave-
>core/target/rave-core-0.14-
>SNAPSHOT.jar!/org/apache/rave/portal/service/impl/DefaultUserService.clas
>s]: Unsatisfied dependency expressed through constructor argument with
>index 7 of type
>[org.apache.rave.portal.repository.PersonAssociationRepository]: : No
>matching bean of type
>[org.apache.rave.portal.repository.PersonAssociationRepository] found for
>dependency: expected at least 1 bean which qualifies as autowire candidate
>for this dependency. Dependency annotations: {}; nested exception is
>org.springframework.beans.factory.NoSuchBeanDefinitionException: No
>matching bean of type
>[org.apache.rave.portal.repository.PersonAssociationRepository] found for
>dependency: expected at least 1 bean which qualifies as autowire candidate
>for this dependency. Dependency annotations: {}; nested exception is
>org.springframework.beans.factory.UnsatisfiedDependencyException: Error
>creating bean with name 'userService' defined in URL
>[jar:file:/G:/workspace/Rave/rave-project/rave-components/rave-
>core/target/rave-core-0.14-
>SNAPSHOT.jar!/org/apache/rave/portal/service/impl/DefaultUserService.clas
>s]: Unsatisfied dependency expressed through constructor argument with
>index 7 of type
>[org.apache.rave.portal.repository.PersonAssociationRepository]: : No
>matching bean of type
>[org.apache.rave.portal.repository.PersonAssociationRepository] found for
>dependency: expected at least 1 bean which qualifies as autowire candidate
>for this dependency. Dependency annotations: {}; nested exception is
>org.springframework.beans.factory.NoSuchBeanDefinitionException: No
>matching bean of type
>[org.apache.rave.portal.repository.PersonAssociationRepository] found for
>dependency: expected at least 1 bean which qualifies as autowire candidate
>for this dependency. Dependency annotations: {}”
>
>Should I be adding any bean definitions within core-applicationContext.xml 
>or
>any other place.
>I tried autowiring PersonRepository and it worked. I have created the
>PersonAssociationRepository in a similar way but I am not able to autowire 
>it.
>Suggestions please. If u need to have a look at my code, I can create a 
>patch
>and attach it as well.
>
>Thanks
>Viknes 


RE: addFriend - Autowiring problem

Posted by "Franklin, Matthew B." <mf...@mitre.org>.
You are probably not annotating your implementation of the Repository as @Repository.  I would recommend however that this functionality be added to the PersonRepository rather than creating a person association repository.

>-----Original Message-----
>From: Viknes B [mailto:viknesb@msn.com]
>Sent: Monday, July 16, 2012 3:49 PM
>To: dev@rave.apache.org
>Subject: addFriend - Autowiring problem
>
>Hello Everybody,
>
>I am working on creating friends/requests within Rave. Since Opensocial does
>not have API to create friends requests I am adding the function addFriend to
>DefaultUserService.
>I have also added a repository called PersonAssociationRepository within
>org.apache.rave.portal.repository to save the friend associations. But when I
>try to autowire PersonAssociationRepository in DefaultUserService I am
>getting the following error.
>
>“Caused by:
>org.springframework.beans.factory.UnsatisfiedDependencyException: Error
>creating bean with name 'defaultNewAccountService' defined in URL
>[jar:file:/G:/workspace/Rave/rave-project/rave-components/rave-
>core/target/rave-core-0.14-
>SNAPSHOT.jar!/org/apache/rave/portal/service/impl/DefaultNewAccountSer
>vice.class]: Unsatisfied dependency expressed through constructor argument
>with index 0 of type [org.apache.rave.portal.service.UserService]: : Error
>creating bean with name 'userService' defined in URL
>[jar:file:/G:/workspace/Rave/rave-project/rave-components/rave-
>core/target/rave-core-0.14-
>SNAPSHOT.jar!/org/apache/rave/portal/service/impl/DefaultUserService.clas
>s]: Unsatisfied dependency expressed through constructor argument with
>index 7 of type
>[org.apache.rave.portal.repository.PersonAssociationRepository]: : No
>matching bean of type
>[org.apache.rave.portal.repository.PersonAssociationRepository] found for
>dependency: expected at least 1 bean which qualifies as autowire candidate
>for this dependency. Dependency annotations: {}; nested exception is
>org.springframework.beans.factory.NoSuchBeanDefinitionException: No
>matching bean of type
>[org.apache.rave.portal.repository.PersonAssociationRepository] found for
>dependency: expected at least 1 bean which qualifies as autowire candidate
>for this dependency. Dependency annotations: {}; nested exception is
>org.springframework.beans.factory.UnsatisfiedDependencyException: Error
>creating bean with name 'userService' defined in URL
>[jar:file:/G:/workspace/Rave/rave-project/rave-components/rave-
>core/target/rave-core-0.14-
>SNAPSHOT.jar!/org/apache/rave/portal/service/impl/DefaultUserService.clas
>s]: Unsatisfied dependency expressed through constructor argument with
>index 7 of type
>[org.apache.rave.portal.repository.PersonAssociationRepository]: : No
>matching bean of type
>[org.apache.rave.portal.repository.PersonAssociationRepository] found for
>dependency: expected at least 1 bean which qualifies as autowire candidate
>for this dependency. Dependency annotations: {}; nested exception is
>org.springframework.beans.factory.NoSuchBeanDefinitionException: No
>matching bean of type
>[org.apache.rave.portal.repository.PersonAssociationRepository] found for
>dependency: expected at least 1 bean which qualifies as autowire candidate
>for this dependency. Dependency annotations: {}”
>
>Should I be adding any bean definitions within core-applicationContext.xml or
>any other place.
>I tried autowiring PersonRepository and it worked. I have created the
>PersonAssociationRepository in a similar way but I am not able to autowire it.
>Suggestions please. If u need to have a look at my code, I can create a patch
>and attach it as well.
>
>Thanks
>Viknes