You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Ilya Kasnacheev <il...@gmail.com> on 2020/04/03 16:12:33 UTC

Re: Apache Ignite 2.8.0 spring services configuration null fields

Hello!

I think it is a Spring issue, not Ignite issue. We have bumped Spring
version in 2.8.

Regards,
-- 
Ilya Kasnacheev


пн, 30 мар. 2020 г. в 22:56, myset <cr...@myset.ro>:

> Stripped ...
>
> Please check the gist with code snippets
>
> https://gist.github.com/myset/696461e135d9c8a32588ff2a534d7eb8
>
>
> Thank you Nikolay
>
>
>
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
>

Re: Apache Ignite 2.8.0 spring services configuration null fields

Posted by myset <cr...@myset.ro>.
Thank you Vyacheslav,

Case closed. It works fine in 2.8.0 if service extended Test class
implements Serializable.

/Keep up good work "Igniters"/



-----
Regards
Cristian Gheorghe Florescu
--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/

Re: Apache Ignite 2.8.0 spring services configuration null fields

Posted by Vyacheslav Daradur <da...@gmail.com>.
Now I see.

Your parent class (called Test in your example) *should implement
'Serializable' interface*, this will help for your case.

We changed default marshaller for services in 2.8, because they have to
be 'Serializable' according to API. 'JdkMarshaller' is default marshaller
for services now.

I think 'BinaryMarshaller' was configured in your case, it marshals
everything even non-serializable objects :)

On Tue, Apr 21, 2020 at 8:41 PM myset <cr...@myset.ro> wrote:

> Thank you Vyacheslav,
> Still reproduced in 2.8.0 and in 2.7.6 is not.
> Please take a look carefully at the gist example code.
>
> public class TestServiceImpl extends *Test* implements Service,TestService
>
>
>
>
> -----
> Regards
> Cristian Gheorghe Florescu
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
>


-- 
Best Regards,
Vyacheslav D.

Re: Apache Ignite 2.8.0 spring services configuration null fields

Posted by myset <cr...@myset.ro>.
Thank you Vyacheslav,
Still reproduced in 2.8.0 and in 2.7.6 is not.
Please take a look carefully at the gist example code.

public class TestServiceImpl extends *Test* implements Service,TestService




-----
Regards
Cristian Gheorghe Florescu
--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/

Re: Apache Ignite 2.8.0 spring services configuration null fields

Posted by Vyacheslav Daradur <da...@gmail.com>.
Sorry, wrong link in previous email.

Here is an example:
https://github.com/apache/ignite/blob/master/modules/spring/src/test/java/org/apache/ignite/spring/injection/spring-bean.xml

On Tue, Apr 21, 2020 at 8:02 PM Vyacheslav Daradur <da...@gmail.com>
wrote:

> Hi, I looked through your example and can't reproduce it.
> Properties injection works fine.
>
> I suppose that you have run Ignite out of Spring context.
>
> Please check your Spring context configuration file once again.
>
> Here is an example:
>
> https://github.com/apache/ignite/blob/53e47e9191d717b3eec495e6246cd957a8d33c7d/examples/src/main/java/org/apache/ignite/examples/misc/springbean/SpringBeanExample.java
>
>
>
> On Tue, Apr 7, 2020 at 12:13 PM myset <cr...@myset.ro> wrote:
>
>> So igniters,
>>
>> There are any issue on this ?
>> Should I wait for further release ?
>>
>>
>>
>> -----
>> --
>> Regards
>> Cristian Gheorghe Florescu
>> --
>> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
>>
>
>
> --
> Best Regards,
> Vyacheslav D.
>


-- 
Best Regards,
Vyacheslav D.

Re: Apache Ignite 2.8.0 spring services configuration null fields

Posted by Vyacheslav Daradur <da...@gmail.com>.
Hi, I looked through your example and can't reproduce it.
Properties injection works fine.

I suppose that you have run Ignite out of Spring context.

Please check your Spring context configuration file once again.

Here is an example:
https://github.com/apache/ignite/blob/53e47e9191d717b3eec495e6246cd957a8d33c7d/examples/src/main/java/org/apache/ignite/examples/misc/springbean/SpringBeanExample.java



On Tue, Apr 7, 2020 at 12:13 PM myset <cr...@myset.ro> wrote:

> So igniters,
>
> There are any issue on this ?
> Should I wait for further release ?
>
>
>
> -----
> --
> Regards
> Cristian Gheorghe Florescu
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
>


-- 
Best Regards,
Vyacheslav D.

Re: Apache Ignite 2.8.0 spring services configuration null fields

Posted by myset <cr...@myset.ro>.
So igniters,

There are any issue on this ?
Should I wait for further release ?



-----
--
Regards
Cristian Gheorghe Florescu
--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/

Re: Apache Ignite 2.8.0 spring services configuration null fields

Posted by myset <cr...@myset.ro>.
Hi Ilya,

Only for testing purpose, I'd tried ignite-core 2.8.0 with ignite-spring
2.7.6 but results are the same, fields are null.

My environment contain spring version is 5.2.4.RELEASE
Using same environment (java 11.0.4, spring 5.2.4) all works fine in 2.7.6

Please let me know if you find something new on this.

--
Regards



-----

--
Cristian Gheorghe Florescu
--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/