OCEP 11g: CEP Deployment Fails when Using User-Defined Aggregation Functions in More than One CQL Processor (Doc ID 1475345.1)

Last updated on SEPTEMBER 08, 2012

Applies to:

Oracle Event Processing - Version 11.1.1.6.0 and later
Information in this document applies to any platform.

Symptoms

The project fails at deployment time when a user-defined aggregation function is used in more than one CQL processor.

[java] <Jun 27, 2012 2:47:59 AM GMT-08:00> <Emergency> <CQLServer> <BEA-000000> <register function doubleInt(c0 int) return int as language java instance "multi_thread_partition_counter_processor1_doubleInt">
[java] <Jun 27, 2012 2:47:59 AM GMT-08:00> <Emergency> <CQLServer> <BEA-000000> <register function >>doubleInt(c0 int) return int as language java instance "multi_thread_partition_counter_processor1_doubleInt"
[java] implementation instance multi_thread_partition_counter_processor1_doubleInt for function not found. Register an implementation instance in user function locator feature.>
[java] <Jun 27, 2012 2:47:59 AM GMT-08:00> <Debug> <CQLServerTrace> <BEA-000000> <
     oracle.cep.metadata.UserFunctionManager.setImplFunction(UserFunctionManager.java:627)
     oracle.cep.metadata.UserFunctionManager.registerSimpleFunction(UserFunctionManager.java:403)    
     oracle.cep.metadata.UserFunctionManager.registerSimpleFunction(UserFunctionManager.java:301)
     oracle.cep.server.CommandDriver.FunctionDefnNodeDriver.execute(FunctionDefnNodeDriver.java:43)

 

Changes

Steps to reproduce:

  1. Write java code for user-defined aggregation and user-defined single row functions and use them in a CQL processor by wiring them using in the Spring config. Use ordering-constraint="PARTITION_ORDERED" in the CQL.
  2. Re-use the same user-defined aggregation and user-defined single row function in another CQL processor. Deployment fails with the error that implementation instance for the user-defined single row function was not found.
  3. Remove the PARTITION_ORDERED ordering-constraint from the CQL processors. Code deploys succesfully again.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms