Hi, please share the full log containing the error. Which version of Ignite do you use? It's not reproducible on my side.
Kind regards, Alex. On Thu, Jun 15, 2017 at 2:46 PM, Helge Waastad [via Apache Ignite Users] < [email protected]> wrote: > Hi, and thx for answering. > peerclassloading is enabled on both server and client. > > My trouble is the understanding of the reason why > cache.put(key,arraylist) will not work (not trigger class loading) but > cache.put(key,Arrays.aslist(arraylist.toArray())) will. > > /hw > > to., 15.06.2017 kl. 03.22 -0700, skrev afedotov: > > > Hi, > > > > If I get your problem right you need either enable peer class loading > > on both the client and the server or make sure > > that all required class definitions are available on the classpath of > > the client. > > https://apacheignite.readme.io/v2.0/docs/deployment-modes#section-con > > figuration > > > > > > > > Kind regards, > > Alex. > > > > On Thu, Jun 15, 2017 at 10:42 AM, Helge Waastad [via Apache Ignite > > Users] <[hidden email]> wrote: > > > Hi, > > > I'm pretty new to the Apache Ignite. > > > I'm working with peerclassloading and need to understand a couple > > > of thing. > > > > > > Scenario: > > > 1x server and 1x client > > > > > > Cache: > > > CacheConfiguration<String, List> cc = new CacheConfiguration<>("my- > > > cache"); > > > > > > Code creating classnotfound: > > > FluidGridItem item = new FluidGridItem(UUID.randomUUID()); > > > List<FluidGridItem> ll = new ArrayList<>(); > > > ll.add(item); > > > cache.put(key, ll); > > > > > > Code loading class ok: (INFO: Class locally deployed: class > > > org.primefaces.extensions.model.fluidgrid.FluidGridItem) > > > FluidGridItem item = new FluidGridItem(UUID.randomUUID()); > > > List<FluidGridItem> ll = new ArrayList<>(); > > > ll.add(item); > > > cache.put(key, Arrays.asList(ll.toArray())); > > > > > > > > > Can someone please explain why this is? > > > (It's been a headache resolving this - been trying to get a JCS > > > project migrated to Ignite) > > > > > > br hw > > > > > > > > > > > > If you reply to this email, your message will be added to the > > > discussion below: > > > http://apache-ignite-users.70518.x6.nabble.com/Understanding-peercl > > > assloading-tp13805.html > > > To start a new topic under Apache Ignite Users, email [hidden > > > email] > > > To unsubscribe from Apache Ignite Users, click here. > > > NAML > > > > > > > View this message in context: Re: Understanding peerclassloading > > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://apache-ignite-users.70518.x6.nabble.com/Understanding- > peerclassloading-tp13805p13818.html > To start a new topic under Apache Ignite Users, email > [email protected] > To unsubscribe from Apache Ignite Users, click here > <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=YWxleGFuZGVyLmZlZG90b2ZmQGdtYWlsLmNvbXwxfC0xMzYxNTU0NTg=> > . > NAML > <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Understanding-peerclassloading-tp13805p13820.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
