简体   繁体   中英

Unable to create JMS Receiver in WSO2 CEP

I am using WSO2 CEP v4.1.0. I have already created 1 JMS receiver and it works fine, And then I try to add another JMS receiver, Then one of error message alert was given by CEP, but no any carbon console messages were printed in console. Is this a bug of WSO2 CEP?

Error message screen cap is given below

在此处输入图片说明

Steps to reproduce the problem -

1.Create new JMS receiver with the following details (Above image with error message shows the filled data.)

  • Input Event Adapter Type -JMS
  • Topic/Queue Name - param3
  • JNDI Initial Context Factory Class - org.wso2.andes.jndi.PropertiesFileInitialContextFactory
  • Connection Factory JNDI Name- TopicConnectionFactory
  • JMS connection username - admin
  • JMS connection password - admin
  • JNDI Provider URL - repository/conf/jndi.properties
  • Destination Type - topic

2.Create another receiver with same details with different topic name

  • Topic/Queue Name - param4

3.jndi property that is used for both is

 # register some connection factories # connectionfactory.[jndiname] = [ConnectionURL] connectionfactory.TopicConnectionFactory=amqp://admin:admin@clientid/carbon?brokerlist='tcp://localhost:5672' # register some queues in JNDI using the form # queue.[jndiName] = [physicalName] # register some topics in JNDI using the form # topic.[jndiName] = [physicalName] topic.param1 = param1 topic.param2 = param2 topic.param3 = param3 topic.param4 = param4 

4.Advanced property mapping has been done by according to the properties.

Saveendra,

It is not an issue with JMS receiver or no of jms receivers.. It is an issue with MAP custom mapping where it does not allow to save a custom mapping without a default value.. It is an UI issue..

I have fixed that issue now in this commit (and fix will be there in next release).. For the moment, add an appropriate default value for the custom mapping and continue (or deploy the event receiver through file system or use the edit UI)

I think this is a bug, It will happen when adding property mapping with map type, It will provide the above error message. Therefore without filling advanced details which is related to mapping, create new receiver and then edit the receiver XML and add that mapping manually. It will be saving successfully.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM