question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Null pointer in PayloadSenderV2

See original GitHub issue

Having that error on remote server, but can not reproduce on local

Aug  3 01:22:24 server1 integration[4834]: [2019-08-02 11:22:24][Debug] - {Tracer} Starting Transaction{Id: 8525f9f45ad1798f, TraceId: 1b20305c5f76358cb3424438c407522f, ParentId: null, Name: POST /api/xx/deposit, Type: request, IsSampled: True}

Then there is a bunch of spans from entity framework

And last lines are :

Aug  3 01:22:26 server1 integration[4834]: [2019-08-02 11:22:26][Debug] - {PayloadSenderV2} Transaction added to the queue, Transaction{Id: 8525f9f45ad1798f, TraceId: 1b20305c5f76358cb3424438c407522f, ParentId: null, Name: POST Xx/Deposit, Type: request, IsSampled: True}
Aug  3 01:22:26 server1 integration[4834]: [2019-08-02 11:22:26][Debug] - {Transaction} Ending Transaction{Id: 8525f9f45ad1798f, TraceId: 1b20305c5f76358cb3424438c407522f, ParentId: null, Name: POST Xx/Deposit, Type: request, IsSampled: True}
Aug  3 01:22:26 server1 integration[4834]: [2019-08-02 11:22:26][Warning] - {PayloadSenderV2} Failed sending events. Following events were not transferred successfully to the server:
Aug  3 01:22:26 server1 integration[4834]: Span{Id: 8bb96752463c20a8, TransactionId: 8525f9f45ad1798f, ParentId: 8525f9f45ad1798f, TraceId: 1b20305c5f76358cb3424438c407522f, Name: SELECT x.id, x.extra, x.game_id, x."order", x.partner_aggregator_id, x.product_type, x.status, "x.Game".id, "x.Game".device_type, "x.Game".external_id, "x.Game".extra, "x.Game".has_demo, "x.Game".image_url, "x.Game".provider_id, "x.Game".recalled_at, "x.Game".released_at, "x.Game".status, "x.Game".token
Aug  3 01:22:26 server1 integration[4834]: FROM common.partner_games_new AS x
Aug  3 01:22:26 server1 integration[4834]: INNER JOIN common.partner_aggregators AS "x.PartnerAggregator" ON x.partner_aggregator_id = "x.PartnerAggregator".id
Aug  3 01:22:26 server1 integration[4834]: INNER JOIN common.games AS "x.Game" ON x.game_id = "x.Game".id
Aug  3 01:22:26 server1 integration[4834]: WHERE (("x.Game".external_id = @__gameExtId_0) AND EXISTS (
Aug  3 01:22:26 server1 integration[4834]:     SELECT 1
Aug  3 01:22:26 server1 integration[4834]:     FROM common.aggregator_games AS y
Aug  3 01:22:26 server1 integration[4834]:     INNER JOIN common.aggregators AS "y.Aggregator" ON y.aggregator_id = "y.Aggregator".id
Aug  3 01:22:26 server1 integration[4834]:     WHERE "y.Aggregator".type IN (9) AND ("x.Game".id = y.game_id))) AND "x.PartnerAggregator".partner_id IN (4)
Aug  3 01:22:26 server1 integration[4834]: LIMIT 1, Type: db, IsSampled: True},
Aug  3 01:22:26 server1 integration[4834]: Span{Id: 9c0999c76d9d3327, TransactionId: 8525f9f45ad1798f, ParentId: 8525f9f45ad1798f, TraceId: 1b20305c5f76358cb3424438c407522f, Name: UPDATE xx.rounds SET is_finished = @p0
Aug  3 01:22:26 server1 integration[4834]: WHERE id = @p1;
Aug  3 01:22:26 server1 integration[4834]: INSERT INTO xx.transactions (amount, client_id, created_at, currency, external_id, game_external_id, partner_game_id, round_id, status, token, type)
Aug  3 01:22:26 server1 integration[4834]: VALUES (@p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12)
Aug  3 01:22:26 server1 integration[4834]: RETURNING id;
Aug  3 01:22:26 server1 integration[4834]: , Type: db, IsSampled: True},
Aug  3 01:22:26 server1 integration[4834]: Transaction{Id: 8525f9f45ad1798f, TraceId: 1b20305c5f76358cb3424438c407522f, ParentId: null, Name: POST Xx/Deposit, Type: request, IsSampled: True}
Aug  3 01:22:26 server1 integration[4834]: Exception: System.NullReferenceException, Message: Object reference not set to an instance of an object.

Any ideas about Exception: System.NullReferenceException, Message: Object reference not set to an instance of an object. ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
gregkalaposcommented, Aug 3, 2019

#429 merged to master, so the fix will be in the next release.

Thanks for reporting Stas!

Anyone against closing this?

0reactions
SergeyKleymancommented, Aug 3, 2019

@gregkalapos Yes, you are correct - the approach is already decided for us by the interface 😃 I think it’s worth adding a code comment for Labels and public API documentation drawing user’s attention to the fact that null value is completely okay but null key will throw ArgumentNullException.

Read more comments on GitHub >

github_iconTop Results From Across the Web

{PayloadSenderV2} Failed sending events. Following ...
Null pointer in PayloadSenderV2 ​​ I will double check the package reference. Any other ideas why there is no exception listed?
Read more >
APM Bug causes null pointer for web requests in .NET 4.6.1
Get a null pointer on web requests that fail due to access denied. This then causse the web error to come back differently...
Read more >
Handling null pointer exception is not working [duplicate]
While am getting response from elastic search few keys having null object. So, how I can do the null check while setting value...
Read more >
Remote reindex API AWS ElasticSearch Null Pointer ...
Hi there, "null_pointer_exception" is generally seen when there is no proxy in front of remote domain. You need to have a proxy in...
Read more >
PS4 Exploit Guide | Page 1207
With this guide you will be running exploits in just a couple of steps. It is important that you read and understand a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found