Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version of Apama components and JsonUtil #18

Open
tdalianis opened this issue Feb 6, 2017 · 1 comment
Open

New version of Apama components and JsonUtil #18

tdalianis opened this issue Feb 6, 2017 · 1 comment

Comments

@tdalianis
Copy link

Hi,
The Apama Receiver sends out a message that is an Apama string and not a json string. In order for the response of the Receiver to be usable I updated the kevoreeNewsAssetCep project to include the JsonUtil class and tried to transform the message into json in the TestClient, but I get the following error

00:35 ERROR: Input port "/nodes[node0]/components[client]/provided[receiveMessage]" method threw an exception
com.apama.event.parser.ParserRuntimeException: EventParser.parse() : The EventType "Alarm" is not a known type in this parser.
at com.apama.event.parser.EventParser.parse(EventParser.java:111)
at atc.newsasset.test.TestClient.receiveMessage(TestClient.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.kevoree.library.java.wrapper.port.ProvidedPortImpl.send(ProvidedPortImpl.java:101)
at org.kevoree.library.AsyncBroadcast$1.run(AsyncBroadcast.java:44)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

I have tried with and without the apama namespaces but it doesn't make any difference.
I will send the updated project and if you can please have a look.

@skorsky
Copy link

skorsky commented Feb 6, 2017

In my version of atc.newsasset.test.TestClient, I don't have a call the EventParser.
So there is no line which fits to
'at atc.newsasset.test.TestClient.receiveMessage(TestClient.java:78)'

@tdalianis: Can you share your version of the kevoreeNewsAssetCep project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants