-
1. Re: Infinispan c++/Java remote client - compatibility issues
vjuranek Nov 6, 2017 8:01 AM (in response to andreap1) -
2. Re: Infinispan c++/Java remote client - compatibility issues
andreap1 Nov 6, 2017 11:18 AM (in response to vjuranek)Hello,
Thanks for your support. We followed your instructions and we can read C++
data from a Java client.
However the get operation from C++ give us a null pointer exception.
Do we need to unmarshall entries from C++ client? Can you provide us an
example?
Thanks again !
Regards,
Andrea
2017-11-06 14:01 GMT+01:00 vjuranek <do-not-reply@jboss.com>:
JBoss Developer <https://developer.jboss.org/?et=watches.email.thread>
Infinispan c++/Java remote client - compatibility issues
reply from Vojtech Juranek
<https://developer.jboss.org/people/vjuranek?et=watches.email.thread> in
Infinispan - View the full discussion
<https://developer.jboss.org/message/977696?et=watches.email.thread#977696>
-
3. Re: Infinispan c++/Java remote client - compatibility issues
vjuranek Nov 7, 2017 3:31 AM (in response to andreap1)Hi,
here (commit 8107611b2) is basic example of C++ and Java clients which read and write string key-value pair into ISPN and read it back as well as value written by the other client.
When I tested it, I found out that C++ really doesn't work with ISPN 9.x when cache is in compatibility mode - I created HRCPP-428 for it. However, checking download page C++ client for ISPN 9.x hasn't been released yet, so this could be kind of expected, that there will be some issue using 8.x C++ client with 9.x ISPN.
I'd recommend to use ISPN 8.x until C++ client for ISPN 9.x is released.
Vojta
-
4. Re: Infinispan c++/Java remote client - compatibility issues
andreap1 Nov 9, 2017 9:52 AM (in response to vjuranek)Hello, we were able to run your examples,
thank you very much !
Andrea
2017-11-07 9:31 GMT+01:00 vjuranek <do-not-reply@jboss.com>:
JBoss Developer <https://developer.jboss.org/?et=watches.email.thread>
Infinispan c++/Java remote client - compatibility issues
reply from Vojtech Juranek
<https://developer.jboss.org/people/vjuranek?et=watches.email.thread> in
Infinispan - View the full discussion
<https://developer.jboss.org/message/977737?et=watches.email.thread#977737>
-
5. Re: Infinispan c++/Java remote client - compatibility issues
vjuranek Nov 13, 2017 9:17 AM (in response to andreap1)Hi,
I'm glad it works. It should actually work also with ISPN 9.x, as mentioned in HRCPP-428, it was some issue in my environment.
Sorry for the confusion!
Vojta
-
6. Re: Infinispan c++/Java remote client - compatibility issues
andreap1 Nov 13, 2017 10:44 AM (in response to vjuranek)Hello,
thanks a lot for your support ! From the comments
I see on issue HRCPP-428 I understand that server
version 9.1.1 (interoperability mode) must work
with the current c++ infinispan client build.
Is it correct ? The problems we encountered with
this configuration were in reading from Java what we
wrote in C++, and viceversa ? Should we expect to see
it working in this configuration ? Maybe it was just
a problem of our configuration/environment.
Thanks again !
Andrea
understand that current implementation
of c++ infinispan client
2017-11-13 15:17 GMT+01:00 vjuranek <do-not-reply@jboss.com>:
JBoss Developer <https://developer.jboss.org/?et=watches.email.thread>
Infinispan c++/Java remote client - compatibility issues
reply from Vojtech Juranek
<https://developer.jboss.org/people/vjuranek?et=watches.email.thread> in
Infinispan - View the full discussion
<https://developer.jboss.org/message/977961?et=watches.email.thread#977961>
-
7. Re: Infinispan c++/Java remote client - compatibility issues
vjuranek Nov 13, 2017 12:16 PM (in response to andreap1)yes, it should work with 9.1.0, 9.1.1 (and probably all 9.x releases, but I didn't tested all). Please try again with 9.x and if it doesn't work, share the details here.
Thanks
Vojta
-
8. Re: Infinispan c++/Java remote client - compatibility issues
andreap1 Nov 24, 2017 10:23 AM (in response to vjuranek)simple put("k1", "v1") operation from c++ client fails with the following error.As soon as we enable compatibility adding<compatibility> for cross-exchanging data from java to c++.read data from c++ client, troubles arise when we enableput/get examples. Everything is working fine as long as we write andHello,with infinispan Server 9.1.1 final, for now for simple
the following to server configuration standalone.xml
<compatibility enabled="true"/>
</local-cache>ERROR [RetryOnFailureOperation.h:84] Exception encountered, retry 9 of 10: java.io.IOException: Unsupported protocol version 107
terminate called after throwing an instance of 'infinispan::hotrod::
HotRodClientException'
what(): java.io.IOException: Unsupported protocol version 107Is there a way to get this working ?
Thanks a lot !
Andrea
-
9. Re: Infinispan c++/Java remote client - compatibility issues
rigazilla Dec 1, 2017 7:19 AM (in response to andreap1)Hi guys!
Andrea,
please check that you are using the correct marshaller. As per Vojta comments you should get your cache like this:
Marshaller<string> *km = new JBasicMarshaller<string>();
void (*kd)(Marshaller<string> *) = &Marshaller<string>::destroy;
Marshaller<string> *vm = new JBasicMarshaller<string>();
void (*vd)(Marshaller<string> *) = &Marshaller<string>::destroy;
RemoteCache<string, string> cache = cacheManager.getCache<string, string>(km,kd,vm,vd);
the error you are getting comes from the server JBossMarshaller and is usually related to marshalling mismatch.
Cheers,
Vittorio