See Linked ISPN-4359
Was trying to run RemoteCacheOSGiIT after applying https://github.com/infinispan/jdg/pull/418 but ended up with the following exceptions: testAttributeQuery(org.infinispan.server.test.client.hotrod.osgi.RemoteCacheOsgiIT) Time elapsed: 0.09 sec <<< ERROR! org.infinispan.protostream.annotations.ProtoSchemaBuilderException: Class org.infinispan.protostream.sampledomain.User does not have any @ProtoField annotated fields. at org.infinispan.protostream.annotations.impl.ProtoMessageTypeMetadata.scanMemberAnnotations(ProtoMessageTypeMetadata.java:169) at org.infinispan.protostream.annotations.impl.ProtoSchemaGenerator.generateAndRegister(ProtoSchemaGenerator.java:59) at org.infinispan.protostream.annotations.ProtoSchemaBuilder.build(ProtoSchemaBuilder.java:64) at org.infinispan.server.test.client.hotrod.osgi.RemoteCacheOsgiIT.testAttributeQuery(RemoteCacheOsgiIT.java:130) Then I removed references to User and re-ran the test, I got this: testAttributeQuery(org.infinispan.server.test.client.hotrod.osgi.RemoteCacheOsgiIT) Time elapsed: 0.102 sec <<< ERROR! org.infinispan.protostream.annotations.ProtoSchemaBuilderException: Non-public fields cannot be @ProtoField annotated: private java.lang.String org.infinispan.protostream.sampledomain.Note.text at org.infinispan.protostream.annotations.impl.ProtoMessageTypeMetadata.discoverFields(ProtoMessageTypeMetadata.java:203) at org.infinispan.protostream.annotations.impl.ProtoMessageTypeMetadata.scanMemberAnnotations(ProtoMessageTypeMetadata.java:167) at org.infinispan.protostream.annotations.impl.ProtoSchemaGenerator.generateAndRegister(ProtoSchemaGenerator.java:59) at org.infinispan.protostream.annotations.ProtoSchemaBuilder.build(ProtoSchemaBuilder.java:64) at org.infinispan.server.test.client.hotrod.osgi.RemoteCacheOsgiIT.testAttributeQuery(RemoteCacheOsgiIT.java:130)
Returning this BZ back to ASSIGNED. Adrian saw the exceptions too and is looking into it. Looks like this needs a bit more polishing.
The fix is being reviewed upstream: https://github.com/infinispan/infinispan/pull/3189 I'll backport it ASAP once it is integrated upstream.
changes are implemented by https://bugzilla.redhat.com/show_bug.cgi?id=1180473
The tests now run fine with standalone JDG as well as in OSGi.
This is actually an enhancement and does not have to be documented in release notes. I suppose this is documented in the main documentation.
Clarification: I meant it does not have to be in release notes under "Resolved issues". We might still want to mention the enhancement in a different section.
Is this enhancement documented under the Remote Querying section of the Infinispan Query guide ?
No Divya, I've just taken a look and found out this is not documented in the query guide.