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

Native creative java.lang.NullPointerException #23

Open
jani2gopal opened this issue Dec 20, 2021 · 0 comments
Open

Native creative java.lang.NullPointerException #23

jani2gopal opened this issue Dec 20, 2021 · 0 comments

Comments

@jani2gopal
Copy link

Hello, I amusing current version of rtb4free with bidder deployed in docker container. The. bidder is working without any issues when the creative type is banner or video.
However, when i try to bid on creative type native, it throuws null point exception as follows,

bidder_1 | java.lang.NullPointerException
bidder_1 | at com.jacamars.dsp.rtb.nativeads.creative.NativeCreative.getEscapedAdm(NativeCreative.java:186)
bidder_1 | at com.jacamars.dsp.rtb.common.Creative.getUnencodedNativeAdm(Creative.java:1334)
bidder_1 | at com.jacamars.dsp.rtb.pojo.BidResponse.makeResponse(BidResponse.java:742)
bidder_1 | at com.jacamars.dsp.rtb.pojo.BidResponse.(BidResponse.java:150)
bidder_1 | at com.jacamars.dsp.rtb.pojo.BidRequest.buildNewBidResponse(BidRequest.java:381)
bidder_1 | at com.jacamars.dsp.rtb.bidder.CampaignSelector.getMaxConnections(CampaignSelector.java:201)
bidder_1 | at com.jacamars.dsp.rtb.bidder.Handler.handle(RTBServer.java:1289)
bidder_1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
bidder_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
bidder_1 | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
bidder_1 | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1598)
bidder_1 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
bidder_1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
bidder_1 | at org.eclipse.jetty.server.Server.handle(Server.java:516)
bidder_1 | at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
bidder_1 | at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
bidder_1 | at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
bidder_1 | at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
bidder_1 | at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
bidder_1 | at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
bidder_1 | at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
bidder_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
bidder_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
bidder_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
bidder_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
bidder_1 | at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:383)
bidder_1 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:882)
bidder_1 | at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1036)
bidder_1 | at java.base/java.lang.Thread.run(Thread.java:834)

I tried everything in my knowledge to get it work, but somehow can not get it work.

Below is the request I am sending, (note, I removed domain and buyerid for privacy concerns)

{
"id": "f07a75e6-dd53-45ac-98fb-3b390da1ef8a-h0k8",
"test": 1,
"tmax": 580,
"at": 2,
"cur": [
"USD"
],
"imp": [
{
"id": "1",
"instl": 0,
"secure": 1,
"bidfloor": 0.0000000034605263157894736,
"bidfloorcur": "USD",
"native":{"request":"{"native":{"ver":"1.2","assets":[{"id":1,"required":0,"title":{"len":100}},{"id":3,"required":0,"data":{"type":1,"len":30}},{"id":2,"required":0,"data":{"type":2,"len":100}},{"id":4,"required":0,"img":{"type":3,"w":150,"h":100,"wratio":150,"hratio":100,"wmin":150}}]}}"}
}
],
"site": {
"id": "15",
"domain": "----------",
"page": "------------",
"publisher": {
"id": "15",
"domain": "-------------------"
}
},
"device": {
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363",
"geo": {
"country": "IND"
},
"ip": "172.24.30.130",
"os": "Windows 10",
"osv": "NT 10.0",
"model": "Edge - Windows"
},
"user": {
"id": "58f6550a-7623-4ca2-9ccb-7c00c8f937df-1sk24",
"buyeruid": "--------------------"
}
}

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

1 participant