Hi I have loaded the cache after updating the config. Even if the cache is not loaded initially(cache initial size 0) and I call cache.Get() I get the same error.
On Sun, Aug 6, 2017 at 4:08 AM, dsetrakyan [via Apache Ignite Users] < ml+s70518n16014...@n6.nabble.com> wrote: > > > On Fri, Aug 4, 2017 at 11:54 AM, kotamrajuyashasvi <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=16014&i=0>> wrote: > >> Hi >> >> Thanks for the response. When I put cacheKeyConfiguration in ignite >> configuration, the affinity was working. But when I call Cache.Get() in >> client program I'm getting the following error. >> >> "Java exception occurred >> [cls=org.apache.ignite.binary.BinaryObjectException, msg=Binary type has >> different affinity key fields [typeName=PersonPK, >> affKeyFieldName1=customer_ref, affKeyFieldName2=null]]" >> >> I already did LoadCache before running the program. >> > > Did you load the cache before you updated the configuration? If yes, it > won't work. You have to fix the config and then start everything from > scratch. > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://apache-ignite-users.70518.x6.nabble.com/Affinity- > Key-field-is-not-identified-if-binary-configuration-is- > used-on-cache-key-object-tp15959p16014.html > To unsubscribe from Affinity Key field is not identified if binary > configuration is used on cache key object, click here > <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=15959&code=a290YW1yYWp1eWFzaGFzdmlAZ21haWwuY29tfDE1OTU5fC05MTMwMDYyODU=> > . > 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/Affinity-Key-field-is-not-identified-if-binary-configuration-is-used-on-cache-key-object-tp15959p16024.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.