Bug 1182140 - Update remote query quickstart with the new annotation driven Protostream marshalling
Summary: Update remote query quickstart with the new annotation driven Protostream mar...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR3
: 6.4.0
Assignee: Adrian Nistor
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks: jdg64-GA-Blockers
TreeView+ depends on / blocked
 
Reported: 2015-01-14 13:59 UTC by Adrian Nistor
Modified: 2015-01-28 13:31 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-5074 0 Major Resolved Update remote query quickstart with the new annotation driven Protostream marshalling 2018-09-09 19:01:32 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.