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.

Loading CommandLine$DefaultFactory fails on Windows?!

See original GitHub issue

Hi!

I just created the following issue at https://bugs.openjdk.java.net/browse/JDK-8234076 to determine the underlying cause of a Windows-only fatal error when launching JUnit 5’s Console Launcher. That in turn uses Picocli version 4.0.2, I guess.

Sometimes(!) a run either crashes silently or creates a hs_err_pid...log file and the last class that was loaded is:

[0.278s][info][class,load] org.junit.platform.console.shadow.picocli.CommandLine$IExecutionExceptionHandler source: file:/.../lib/org.junit.platform.console-1.6.0-M1.jar

Sometimes(!) the run continues with CommandLine$DefaultFactory and the entire program execution succeeds.

[0.231s][info][class,load] org.junit.platform.console.shadow.picocli.CommandLine$DefaultFactory source: file:/.../lib/org.junit.platform.console-1.6.0-M1.jar

Could this be related to #794?

Reproduction

CI

image

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
remkopcommented, Nov 13, 2019

Hi @sormuras that looks nasty. I’ve looked at the JDK ticket but nothing jumped out at me yet. I will try to reproduce this tomorrow.

About your question: I am fairly sure that #794 is not related. The annotation processor only runs at compile time, while the issue you describe happens at runtime.

0reactions
remkopcommented, Dec 12, 2019

Very nice!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Factory Reset Windows 10 from Command Prompt Effortlessly ...
Method 1: Perform Windows 10 reset from command line ; >> If your Windows 10 cannot load normally, restart your computer, press and...
Read more >
Troubleshooting Windows 10/11 Failure to Start
Next try Command Prompt to run above repair commands including sfc /scannow. If these fail or you want to skip further repairs then...
Read more >
How to Fix Windows 10 Unable to Reset PC Problem - YouTube
So if you are having pc problems and try and attempt resetting this pc, an error message will appear: "There was a problem...
Read more >
FIXED: There Was a Problem Resetting Your PC (7 Solutions)
Ways To Fix 'There Was a Problem Resetting Your PC' Error · Method 1: Using Advanced Startup Options · Method 2: Using Command...
Read more >
Best 2 Ways to Boot to Command Prompt in Windows 10
3. Repair Windows 10 with CMD with the Help of DISM ... If SFC command-line utility fails to fix the problems, it is...
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