简体   繁体   English

无法在WSO2 CEP中创建JMS接收器

[英]Unable to create JMS Receiver in WSO2 CEP

I am using WSO2 CEP v4.1.0. 我正在使用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. 我已经创建了1个JMS接收器,并且工作正常,然后尝试添加另一个JMS接收器,然后CEP发出了错误消息警报之一,但是控制台中未打印任何Carbon控制台消息。 Is this a bug of WSO2 CEP? 这是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.) 1.使用以下详细信息创建新的JMS接收器(上图显示错误消息,显示已填充的数据。)

  • Input Event Adapter Type -JMS 输入事件适配器类型-JMS
  • Topic/Queue Name - param3 主题/队列名称-param3
  • JNDI Initial Context Factory Class - org.wso2.andes.jndi.PropertiesFileInitialContextFactory JNDI初始上下文工厂类-org.wso2.andes.jndi.PropertiesFileInitialContextFactory
  • Connection Factory JNDI Name- TopicConnectionFactory 连接工厂JNDI名称-TopicConnectionFactory
  • JMS connection username - admin JMS连接用户名-管理员
  • JMS connection password - admin JMS连接密码-管理员
  • JNDI Provider URL - repository/conf/jndi.properties JNDI提供程序URL-repository / conf / jndi.properties
  • Destination Type - topic 目标类型-主题

2.Create another receiver with same details with different topic name 2.使用不同的主题名称创建具有相同详细信息的另一个收件人

  • Topic/Queue Name - param4 主题/队列名称-param4

3.jndi property that is used for both is 3.jndi属性用于两者是

 # 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. 4.根据属性进行高级属性映射。

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.. 这不是JMS接收器的问题,也不是jms接收器的问题。这是MAP定制映射的问题,在该映射中,不允许在没有默认值的情况下保存定制映射。这是一个UI问题。

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) 我已经在提交中修复了该问题( 修复将在下一发行版中进行。)目前,为自定义映射添加适当的默认值并继续(或通过文件系统部署事件接收器或使用编辑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. 因此,在不填写与映射有关的高级详细信息的情况下,创建新的接收器,然后编辑接收器XML并手动添加该映射。 It will be saving successfully. 它将成功保存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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