Open ebarboni opened 2 years ago
Seems strange as assertions shall be switched off on release builds...
Hm, I work on some dependency analysis code. The AssertionError
does not actually originate from an assert
statement, but from an explicit throw
that uses AssertionError
to escape from all exc handling frames in Maven and abort. It happens when maven attempts to connect to a remote repository despite its session is set to read only. There are isOffline
checks throughout the resolvers, that should prevent the connection attempt complete (and fail with a different exception), but they not trigger for some reason.
I am still not clear on why this thing even happens. It happens when the project references an artifact not in the local repository - but not always. Tends to happen more when the shared EmbedderFactory.getProjectEmbedder()
shared embedder is used.
Adding another type of stack. But it happens so infrequently that is impossible to fix.
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.git.FilesystemInterceptor$RefreshTask
java.lang.AssertionError
at org.netbeans.modules.maven.embedder.impl.OfflineConnector.newInstance(OfflineConnector.java:43)
at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:107)
at org.eclipse.aether.internal.impl.DefaultMetadataResolver$ResolveTask.run(DefaultMetadataResolver.java:584)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:75)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
I get this back on NetBeans 15
Apache NetBeans version
Apache NetBeans 13
What happened
AssertionError happens sometime and is :
stacktrace:
How to reproduce
Unable to reproduce. issue just appears time to time. I have maven project opened. I have no clue to propose a PR.
Did this work correctly in an earlier version?
Apache NetBeans 12.6
Operating System
Windows 11
JDK
jdk17
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
No response
Are you willing to submit a pull request?
No
Code of Conduct
Yes