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

[Bug] [alert server] Unable to send alert. #16448

Closed
3 tasks done
a3sroot opened this issue Aug 13, 2024 · 3 comments
Closed
3 tasks done

[Bug] [alert server] Unable to send alert. #16448

a3sroot opened this issue Aug 13, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@a3sroot
Copy link

a3sroot commented Aug 13, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

version 3.2.2
[ERROR] 2024-08-13 16:37:50.471 +0800 org.apache.dolphinscheduler.common.utils.JSONUtils:[186] - parse list exception!
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type java.util.ArrayList<org.apache.dolphinscheduler.spi.params.base.PluginParams> from Object value (token JsonToken.START_OBJECT)
at [Source: (String)"{"headerParams":"{}","requestType":"POST","bodyParams":null,"url":"http://127.0.0.1:8888","contentField":"alert","timeout":"120"}"; line: 1, column: 1]
at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1741)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1515)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1462)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.handleNonArray(CollectionDeserializer.java:392)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:252)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:28)
at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4674)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3629)
at org.apache.dolphinscheduler.common.utils.JSONUtils.toList(JSONUtils.java:184)
at org.apache.dolphinscheduler.spi.params.PluginParamsTransfer.transferJsonToParamsList(PluginParamsTransfer.java:42)
at org.apache.dolphinscheduler.spi.params.PluginParamsTransfer.getPluginParamsMap(PluginParamsTransfer.java:49)
at org.apache.dolphinscheduler.alert.service.AbstractEventSender.doSendEvent(AbstractEventSender.java:125)
at org.apache.dolphinscheduler.alert.service.AbstractEventSender.sendEvent(AbstractEventSender.java:73)
at org.apache.dolphinscheduler.alert.service.ListenerEventLoop.handleEvent(ListenerEventLoop.java:38)
at org.apache.dolphinscheduler.alert.service.ListenerEventLoop.handleEvent(ListenerEventLoop.java:24)
at org.apache.dolphinscheduler.alert.service.AbstractEventLoop.lambda$run$0(AbstractEventLoop.java:73)
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640)
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:750)

What you expected to happen

The alarm service is working properly.

How to reproduce

Add an alert instance and test it.

Anything else

No response

Version

3.2.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@a3sroot a3sroot added bug Something isn't working Waiting for reply Waiting for reply labels Aug 13, 2024
@SbloodyS
Copy link
Member

Already fixed in dev.

@SbloodyS SbloodyS removed the Waiting for reply Waiting for reply label Aug 13, 2024
@likun1210
Copy link

likun1210 commented Aug 21, 2024

Already fixed in dev.

I also meet this problem, did you have solved this problem?How can I use the modified jar package now?

@liuyuanzhi-cn
Copy link

Already fixed in dev.

I also meet this problem, did you have solved this problem?How can I use the modified jar package now?

You can fix it like this commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants