siddhi-io / siddhi

Stream Processing and Complex Event Processing Engine
http://siddhi.io
Apache License 2.0
1.52k stars 529 forks source link

Error Docker tooling with JMS @source #1753

Closed vferrandiz closed 2 years ago

vferrandiz commented 2 years ago

Description: When using Docker Tooling 5.1.2 we are receiving a JMSException when defining App.

Affected Siddhi Version:

Docker Tool Siddhi 5.1.2

Steps to reproduce:

Create a new app with following code using Docker tooling:

@App:name('HelloWorld')
@App:description('Hello JMS')

@source(type='jms', @map(type='json'), factory.initial='org.apache.activemq.jndi.ActiveMQInitialContextFactory', provider.url='tcp://localhost:61616',destination='DAS_JMS_TEST', connection.factory.type='topic',connection.factory.jndi.name='TopicConnectionFactory')
define stream inputStream (name string, age int, country string);

Is giving following error:

[2021-11-04_09-29-11_633] ERROR {io.siddhi.distribution.editor.core.internal.EditorMicroservice} - Unable to generate design view 
io.siddhi.core.exception.SiddhiAppCreationException: Error on 'HelloWorld' between @ Line: 4. Position: 0 and @ Line: 4. Position: 264. javax/jms/JMSException
    at io.siddhi.distribution.editor.core.util.designview.designgenerator.DesignGenerator.getEventFlow(DesignGenerator.java:58)
    at io.siddhi.distribution.editor.core.internal.EditorMicroservice.getDesignView(EditorMicroservice.java:1089)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.wso2.msf4j.internal.router.HttpMethodInfo.invokeResource(HttpMethodInfo.java:187)
    at org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(HttpMethodInfo.java:143)
    at org.wso2.msf4j.internal.MSF4JHttpConnectorListener.dispatchMethod(MSF4JHttpConnectorListener.java:218)
    at org.wso2.msf4j.internal.MSF4JHttpConnectorListener.lambda$onMessage$58(MSF4JHttpConnectorListener.java:129)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Related Issues: Not available.

vferrandiz commented 2 years ago

Good morning,

We are quite interested in solving this problem as we want to integrate a JMS queue in our application.

Are you maintaining Siddhi or have you discontinued it?

Thx.

AnuGayan commented 2 years ago

SIddhi docker images are actually not updated for a long time, but you can check https://hub.docker.com/r/wso2/wso2si .This also uses SIddhi latest version

senthuran16 commented 2 years ago

The siddhi-io-jms extension should also be installed, in order to run the above Siddhi app, so make sure to install that as well.