You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by jonathanknez <jo...@hotmail.com> on 2017/08/14 19:15:39 UTC

Re: Serialization error when using DOSGi with Karaf Cellar (4.1.1)

Any thoughts on what might be going wrong?

Jonathan



--
View this message in context: http://karaf.922171.n3.nabble.com/Serialization-error-when-using-DOSGi-with-Karaf-Cellar-4-1-1-tp4051114p4051221.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Serialization error when using DOSGi with Karaf Cellar (4.1.1)

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
That's exactly what I meant ;)

You got it. I think I already fixed that on Cellar to use * for Dynamic-Import
by default.

Regards
JB

On 02/22/2018 01:49 PM, Dominik Marciniszyn wrote:
> I found the solution for this. I remove fro my pom.xml files Dynamic-Import
> and use dynamic-import command in karaf instances on bundle:
> [ Apache Karaf :: Cellar :: Hazelcast ]
> 
> Then ClassNotFoundException disappears and now objects are passing between
> nodes.
> 
> I am using:
> Apache Karaf version 4.1.4
> Apache Karaf Cellar version 4.1.1
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Serialization error when using DOSGi with Karaf Cellar (4.1.1)

Posted by Dominik Marciniszyn <ma...@gmail.com>.
I found the solution for this. I remove fro my pom.xml files Dynamic-Import
and use dynamic-import command in karaf instances on bundle:
[ Apache Karaf :: Cellar :: Hazelcast ]

Then ClassNotFoundException disappears and now objects are passing between
nodes.

I am using:
Apache Karaf version 4.1.4
Apache Karaf Cellar version 4.1.1



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Serialization error when using DOSGi with Karaf Cellar (4.1.1)

Posted by Dominik Marciniszyn <ma...@gmail.com>.
Hi,

For now I've added the DynamicImport to all my bundles. I have got four
bundles: service-api, service-impl, character, and client. In each I have
got <Dynamic-Import> *, my.bundle.needed </Dynamic-Import>.

After this I once again build each bundle and update them on cluster and
instances.

Regards,
Dominik



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Serialization error when using DOSGi with Karaf Cellar (4.1.1)

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

can you check if the cellar-dosgi bundle contains Dynamic-Import with * ?

As the transport is via DOSGi/Hazelcast, it has to contain the dynamic import.

Regards
JB

On 02/22/2018 07:39 AM, Dominik Marciniszyn wrote:
> Hi,
> 
> I've checked the DynamicImport. I used DynamicImport in packages which
> imports the class from ClassNotFoundException. The result is the same. 
> To be more specific inside my pom.xml I did:
> <Dynamic-Import>
>   package.to.class.needed
> </Dynamic-Import>
> 
> 
> I am using karaf 4.1.4 and karaf cellar 4.1.1.
> 
> Regards,
> Dominik
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Serialization error when using DOSGi with Karaf Cellar (4.1.1)

Posted by Dominik Marciniszyn <ma...@gmail.com>.
Hi,

I've checked the DynamicImport. I used DynamicImport in packages which
imports the class from ClassNotFoundException. The result is the same. 
To be more specific inside my pom.xml I did:
<Dynamic-Import>
  package.to.class.needed
</Dynamic-Import>


I am using karaf 4.1.4 and karaf cellar 4.1.1.

Regards,
Dominik



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Serialization error when using DOSGi with Karaf Cellar (4.1.1)

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

do  you have DynamicImport set on both your bundle and check if it's the case of
cellar-dosgi bundle ?

I fixed that so it might depends of the Cellar version you are using.

Regards
JB

On 02/21/2018 10:28 AM, Dominik Marciniszyn wrote:
> Hi @jonathanknez did you solve this problem? I have got the same problem and
> I cannot solve it.
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Serialization error when using DOSGi with Karaf Cellar (4.1.1)

Posted by Dominik Marciniszyn <ma...@gmail.com>.
Hi @jonathanknez did you solve this problem? I have got the same problem and
I cannot solve it.



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html