[jira] [Created] (IGNITE-5417) Implement JSON marshaller through BinaryObject in ignite-rest-http

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-5417) Implement JSON marshaller through BinaryObject in ignite-rest-http

Anton Vinogradov (Jira)
Vladislav Pyatkov created IGNITE-5417:
-----------------------------------------

             Summary: Implement JSON marshaller through BinaryObject in ignite-rest-http
                 Key: IGNITE-5417
                 URL: https://issues.apache.org/jira/browse/IGNITE-5417
             Project: Ignite
          Issue Type: Bug
            Reporter: Vladislav Pyatkov


In ignite-rest-http  works with cache object classes itself, it will be lead to exception on invocation property method or other side effect bounded with custom class implementation.
Also we should have classes of object, where the service was started.

We could avoid exception like this:
{code}
Caused by: java.lang.NullPointerException
 at some.of.custom.class.CommonInterceptor.getType(CommonInterceptor.java:61)
 at some.of.custom.class.CollectionFactoryInterceptorImpl.getCollection(CollectionFactoryInterceptorImpl.java:27)
 at some.of.custom.class.CollectionFactoryInterceptor.getCollection(CollectionFactoryInterceptor.java:35)
 at some.of.custom.class.proxy.ProductъPROXY.getStates(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:633)
 at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:678) ... 26 more
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)