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

Error in Select Query if one of Passthrough messages is array (also may be java sailor problem) #100

Open
if0s opened this issue Apr 12, 2024 · 0 comments
Labels
bug Something isn't working Ready For ToDo Task can be mooved to Backlog

Comments

@if0s
Copy link
Contributor

if0s commented Apr 12, 2024

Component Bug Report

Description

Error in Select Query if one of Passthrough messages is array (also may be java sailor problem)

Component Version

2.5.7

Steps to Reproduce

  1. Create flow with any trigger - step 1, in data sample put something like [{"a":1}]
  2. Create some dummy - step 2, for example utility - log message
  3. Create third step with jdbc-component Select Query action
  4. Try to retrieve sample (or save and run flow)

Actual Result

java.lang.ClassCastException: org.glassfish.json.JsonArrayBuilderImpl$JsonArrayImpl cannot be cast to javax.json.JsonObject
	at org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getJsonObject(JsonObjectBuilderImpl.java:184)
	at io.elastic.sailor.impl.MessageResolverImpl$MessageHolder.<init>(MessageResolverImpl.java:273)
	at io.elastic.sailor.impl.MessageResolverImpl.externalize(MessageResolverImpl.java:128)
	at io.elastic.sailor.impl.DataCallback.receiveData(DataCallback.java:57)
	at io.elastic.sailor.impl.CountingCallbackImpl.receive(CountingCallbackImpl.java:13)
	at io.elastic.api.EventEmitter.emit(EventEmitter.java:119)
	at io.elastic.api.EventEmitter.emitData(EventEmitter.java:65)
	at io.elastic.jdbc.actions.NewSelectAction.emitIndividuallyData(NewSelectAction.java:99)
	at io.elastic.jdbc.actions.NewSelectAction.execute(NewSelectAction.java:64)
	at io.elastic.sailor.impl.MessageProcessorImpl.processMessage(MessageProcessorImpl.java:68)
	at io.elastic.sailor.impl.MessageConsumer.lambda$handleDelivery$0(MessageConsumer.java:77)
	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:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

Expected Result

No errors

Workaround(s)

none

@if0s if0s added the bug Something isn't working label Apr 12, 2024
@andrewreshitko andrewreshitko added the Ready For ToDo Task can be mooved to Backlog label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Ready For ToDo Task can be mooved to Backlog
Projects
None yet
Development

No branches or pull requests

2 participants