Oracle CEP Bug – org.springframework.beans.TypeMismatchException
August 2, 2010 Leave a comment
I have installed the Oracle Complex Event Processing 11.1.3. I will have described what I am doing by the end of this month. Anyway I decided to use Event
Partitioning feature to achieve scalability. When I use a channel with event partitioning feature I was getting error :
‘inputChannel’: Invocation of init method failed; nested exception is
org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert
property value of type [java.lang.String] to required type
[com.bea.wlevs.channel.EventPartitioner] for property ‘eventPartitioner’; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required
type [com.bea.wlevs.channel.EventPartitioner] for property ‘eventPartitioner’: no matching
editors or conversion strategy found
In CEP documentation,
( Section 19.1, “How to Configure Scalability With an Event Partitioner Channel” )
it says we could achieve scalability by putting this piece of code into channel configuration part of EPN assembly file:
However, it does not working. I created a Metalink SR and they answered me as they filed a bug about this issue(9964253).
Getting rid of this error is simple. Change name of instance-property from “eventPartitioner” to “partitionByEventProperty” and change value parameter to a varible name of your Event Class like this:
Your event class should have a “symbol” variable.