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.

update to the latest version and Throw an exception

See original GitHub issue
java.lang.ClassCastException: class krasa.mavenhelper.MyProjectService cannot be cast to class krasa.mavenhelper.MyProjectService (krasa.mavenhelper.MyProjectService is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @6e3b5838; krasa.mavenhelper.MyProjectService is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @2a4b0567)
	at krasa.mavenhelper.MyProjectService.getInstance(MyProjectService.java:22)
	at krasa.mavenhelper.analyzer.GuiForm.<init>(GuiForm.java:125)
	at krasa.mavenhelper.analyzer.UIFormEditor.<init>(UIFormEditor.java:35)
	at krasa.mavenhelper.analyzer.MyFileEditorProvider.createEditor(MyFileEditorProvider.java:45)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.dumbModeFinished(FileEditorManagerImpl.java:285)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$1.lambda$exitDumbMode$0(FileEditorManagerImpl.java:182)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:214)
	at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:21)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:196)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:794)
	at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:350)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:84)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:133)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
	at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:189)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:887)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:756)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:443)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:825)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:442)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:794)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:488)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)```

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ahus1commented, Sep 6, 2021

I’ve seen a similar exception with a plugin that I maintain, and with other JetBrains plugins. Please let me know I you feel offended by hijacking this. Seen with IntelliJ IDEA 2021.2.1 Build #IU-212.5080.55. / cc: @hsz

2021-08-31 22:53:34,519 [46126956]  ERROR - mpl.search.PsiSearchHelperImpl - Error during processing of: plugin.xml 
java.lang.ClassCastException: class com.intellij.psi.impl.source.xml.XmlTagImpl cannot be cast to class [Ljava.lang.Object; (com.intellij.psi.impl.source.xml.XmlTagImpl is in unnamed module of loader com.intellij.util.lang.PathClassLoader @2d3fcdbd; [Ljava.lang.Object; is in module java.base of loader 'bootstrap')

I happen to have a log file. I uploaded it here: Upload id: 2021_09_06_VJBTEFWbMmimysgg (file: idea.log.1)

1reaction
hszcommented, Sep 6, 2021

Could you please attach idea.log logs? You can upload it securely here: https://uploads.jetbrains.com and provide the generated name.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update Statement and Exception Handling - Ask TOM
Tom: 1. I have several PL/SQL procedures that use several update statments. After each update, I use the. IF (sql%rowcount > 0) THEN...
Read more >
Chrome update to version 92 throwing exception even after ...
Chrome update to version 92 throwing exception even after the driver is compatible ... It works fine for lower version, just need to...
Read more >
Creating and Throwing Exceptions | Microsoft Learn
Learn about creating and throwing exceptions. Exceptions are used to indicate that an error has occurred while running a program.
Read more >
How to Throw Exceptions in Python - Rollbar
Traceback (most recent call last): File "test.py", line 2, in assert (sys.version_info[0] == 3), "Python version must be 3" AssertionError: ...
Read more >
Exceptions - Manual - PHP
If an exception is thrown and its current function scope has no catch block ... In prior versions it was a statement and...
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