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

Fix AuctionContext model to be suitable for JSON encoding #1385

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

rpanchyk
Copy link
Contributor

Fixes error:

java.lang.IllegalArgumentException: No serializer found for class org.prebid.server.execution.Timeout and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: org.prebid.server.analytics.model.AuctionEvent["auction_context"]->org.prebid.server.auction.model.AuctionContext["timeout"])
        at com.fasterxml.jackson.databind.ObjectMapper.valueToTree(ObjectMapper.java:2969)
        at org.prebid.server.analytics.pubstack.PubstackEventHandler.buffer(PubstackEventHandler.java:104)
        at org.prebid.server.analytics.pubstack.PubstackEventHandler.handle(PubstackEventHandler.java:84)
        at org.prebid.server.analytics.pubstack.PubstackAnalyticsReporter.processEvent(PubstackAnalyticsReporter.java:100)
        at org.prebid.server.analytics.AnalyticsReporterDelegator.processEventByReporter(AnalyticsReporterDelegator.java:193)
        at org.prebid.server.analytics.AnalyticsReporterDelegator.lambda$delegateEvent$2(AnalyticsReporterDelegator.java:97)
        at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369)
        at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38)
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:466)
        at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.lang.Thread.run(Unknown Source)

@rpanchyk rpanchyk requested a review from SerhiiNahornyi July 21, 2021 14:29
@rpanchyk rpanchyk merged commit 5a3a399 into master Jul 21, 2021
@rpanchyk rpanchyk deleted the fix-auction-context-to-be-json-encoded branch July 21, 2021 14:35
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

Successfully merging this pull request may close these issues.

2 participants