Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Missing or inaccessible method:

849683Oct 6 2012 — edited Oct 8 2012
Hi everyone,

I am using Oracle Coherence 3.7.1 on OEL5.
I am trying to perform filtering in CohQL but it gives me an error and I have not solved this issue yet.
CohQL> select count() from customers
Results
8

CohQL> select key() from customers
Results
3
4
5
6
7
1
10
11


CohQL> select * from customers where name="john"

Portable(com.tangosol.util.WrapperException): (Wrapped: Failed request execution for PartitionedPofCache service on Member(Id=1, Timestamp=2012-10-06 14:18:47.744, Address=127.0.0.1:8088, MachineId=60314, Location=site:,machine:localhost,process:2712, Role=AfsungurCoherenceCustomerTest1)) Missing or inaccessible method: java.lang.String.getName()

CohQL>
As you see I can query the count of customers cache and also the key() elements of objects. But I can't access methods in my own class, Customer.
customers is my cache name and it is loaded with Customer objects. And Customer class has getName method but why Oracle Coherence looking for getName method in java.lang.String class instead of Customer class?

Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2012
Added on Oct 6 2012
1 comment
330 views