Skip to content

Fix a NullPointerException in appsvc testing env.#1681

Merged
heyams merged 3 commits into
masterfrom
heya/fix-nullpointerexception
May 14, 2021
Merged

Fix a NullPointerException in appsvc testing env.#1681
heyams merged 3 commits into
masterfrom
heya/fix-nullpointerexception

Conversation

@heyams

@heyams heyams commented May 12, 2021

Copy link
Copy Markdown
Contributor

recurring nullpointerexception in AppSvc environment log.

2021-05-12 20:49:59.904Z ERROR c.m.a.i.p.PerformanceCounterContainer - Exception while reporting performance counter 'JSDK_OshiPerformanceCounter' java.lang.NullPointerException: null at com.microsoft.applicationinsights.internal.perfcounter.OshiPerformanceCounter.updateAttributes(OshiPerformanceCounter.java:88) at com.microsoft.applicationinsights.internal.perfcounter.OshiPerformanceCounter.report(OshiPerformanceCounter.java:65) at com.microsoft.applicationinsights.internal.perfcounter.PerformanceCounterContainer$1.run(PerformanceCounterContainer.java:231) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) 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)

@heyams heyams changed the title Check null Fix a NullPointerException in appsvc testing env. May 12, 2021

@trask trask left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just delaying the NPE

@heyams

heyams commented May 12, 2021

Copy link
Copy Markdown
Contributor Author

this is just delaying the NPE

what do you mean? it's repeating in the log and it seems to be null and no delaying...

@trask

trask commented May 12, 2021

Copy link
Copy Markdown
Member

what do you mean? it's repeating in the log and it seems to be null and no delaying...

look at the call path, if it's null here, it's going to be null later and cause a different NPE

@heyams

heyams commented May 12, 2021

Copy link
Copy Markdown
Contributor Author

Attached the log file.. it's the same nullpointerexception though.
log.txt

@heyams heyams merged commit 9010793 into master May 14, 2021
@trask trask deleted the heya/fix-nullpointerexception branch May 26, 2021 02:42
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