Bug 1182140

Summary: Update remote query quickstart with the new annotation driven Protostream marshalling
Product: [JBoss] JBoss Data Grid 6 Reporter: Adrian Nistor <anistor>
Component: InfinispanAssignee: Adrian Nistor <anistor>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Gencur <mgencur>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: dmehra, dstahl, jdg-bugs, jpallich, slaskawi
Target Milestone: CR3   
Target Release: 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1153111    

Description Adrian Nistor 2015-01-14 13:59:30 UTC

Comment 2 Adrian Nistor 2015-01-14 14:04:28 UTC
PR for jdg-6.4.x avaialble here: https://github.com/jboss-developer/jboss-jdg-quickstarts/pull/71

Comment 3 Martin Gencur 2015-01-16 12:47:14 UTC
Tried this with CR2 and the quickstart is throwing an exception:

INFO: ISPN004021: Infinispan version: 6.2.0.Final-redhat-2

Available actions:
0. Display available actions
1. Add person
2. Remove person
3. Add phone to person
4. Remove phone from person
5. Query persons by name
6. Query persons by phone
7. Add memo
8. Query memo by author
9. Display all cache entries
10. Quit

> 1
Enter person id (int): 10
Enter person name (string): Martin Gencur
Enter person email (string): mgencur
> 7
Enter memo id (int): 11
Enter memo text (string): My memo
Enter priority [LOW, HIGH, WHATEVER]: HIGH
Enter author id (int): 10
> Person{id=10, name='Martin Gencur', email='mgencur', phones=[]}
> 8
Enter person name pattern: Gencur
Jan 16, 2015 1:45:21 PM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: java.lang.IllegalArgumentException: Field author.name from type quickstart.Memo is not indexed
org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for message id[10] returned server error (status=0x85): java.lang.IllegalArgumentException: Field author.name from type quickstart.Memo is not indexed
	at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:298)
	at org.infinispan.client.hotrod.impl.protocol.Codec20.readPartialHeader(Codec20.java:88)
	at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:74)
	at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:56)
	at org.infinispan.client.hotrod.impl.operations.QueryOperation.executeOperation(QueryOperation.java:57)
	at org.infinispan.client.hotrod.impl.operations.QueryOperation.executeOperation(QueryOperation.java:24)
	at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:50)
	at org.infinispan.client.hotrod.impl.query.RemoteQuery.executeQuery(RemoteQuery.java:72)
	at org.infinispan.client.hotrod.impl.query.RemoteQuery.list(RemoteQuery.java:62)
	at org.jboss.as.quickstarts.datagrid.hotrod.query.AddressBookManager.queryMemoByAuthor(AddressBookManager.java:273)
	at org.jboss.as.quickstarts.datagrid.hotrod.query.AddressBookManager.main(AddressBookManager.java:316)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
	at java.lang.Thread.run(Thread.java:722)

Comment 4 Adrian Nistor 2015-01-16 13:25:35 UTC
The is caused by a problem in infinispan, not the quickstart: https://issues.jboss.org/browse/ISPN-5149

Comment 5 Adrian Nistor 2015-01-18 16:22:24 UTC
The root cause will be solved as https://bugzilla.redhat.com/show_bug.cgi?id=1183322

Comment 6 Martin Gencur 2015-01-19 14:46:00 UTC
The only dependency of this (BZ1183322) is in POST. Moving this one to POST as well.