ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitriy Setrakyan <dsetrak...@apache.org>
Subject Re: Failed to unmarshal service method arguments
Date Tue, 02 Jun 2015 14:08:56 GMT
On Tue, Jun 2, 2015 at 3:03 AM, Yakov Zhdanov <yzhdanov@apache.org> wrote:

> Hi! I reproduced the issue and filed a ticket:
> https://issues.apache.org/jira/browse/IGNITE-976
>
> In the meantime, turn off peer-loading and make all classes available on
> all nodes. This configuration is much better from performance standpoint
> and is recommended in production.
>
> I am also cross-posting this thread to dev list in order to raise a
> question - should services support peer-deployment? My answer is no.
> Service may be implemented in the way that missing classes may be required
> after master node leaves, but service may be configured to stay after
> master leaves. So, even CONTINUOUS deployment mode does not help.
>

I also don't think that services should support peer-deployment. However,
if users get missing class exceptions for service deployments, a proper
error message should be given explaining this.


>
>
>
>
> --Yakov
>
> 2015-06-02 2:36 GMT+03:00 tcostasouza <tcostasouza@gmail.com>:
>
> > Hello,
> >
> > It seems that, even with peer class loading enabled, Ignite is searching
> > for
> > a Service's method argument classes from it's root classpath. Consider de
> > following example:
> >
> >
> >
> > Now, start 2 Ignite nodes with peer class loading enabled. From one node,
> > deploy and invoke service:
> >
> >
> > Invocation will fail with Ignite complaining that it couldn't find
> > TestServiceImpl class in sun.misc.Launcher$AppClassLoader (full log  here
> > <
> >
> http://apache-ignite-users.70518.x6.nabble.com/file/n437/ignite_exception.log
> > >
> > )
> >
> > Now, if I change from TestService.execute(TestRequest) to something like
> > TestService.execute(int), then it works as expected.
> >
> > Any clue?
> >
> > Thanks
> >
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-ignite-users.70518.x6.nabble.com/Failed-to-unmarshal-service-method-arguments-tp437.html
> > Sent from the Apache Ignite Users mailing list archive at Nabble.com.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message