Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting java.lang.ClassCastException while trying to attach IntelliJ debugger #4

Open
vrozental opened this issue Sep 3, 2020 · 0 comments

Comments

@vrozental
Copy link

vrozental commented Sep 3, 2020

I followed the instructions to setup the AttachMe using port address 127.0.0.1, because of the a problem with the bind address. Then I ran the Play application using sbt start. The AttachMe throws an exception:

AttachMe listening for debuggee processes on port 7857
java.lang.ClassCastException: class com.intellij.debugger.impl.attach.JavaAttachDebuggerProvider$ProcessAttachRunConfiguration cannot be cast to class com.attachme.plugin.AttachmeDebugger$ProcessAttachRunConfiguration (com.intellij.debugger.impl.attach.JavaAttachDebuggerProvider$ProcessAttachRunConfiguration is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @44774fa2; com.attachme.plugin.AttachmeDebugger$ProcessAttachRunConfiguration is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @1412d19c)
	at com.attachme.plugin.AttachmeDebugger.attach(AttachmeDebugger.java:27)
	at com.attachme.plugin.AttachmeRunner.onDebuggeeProcess(AttachmeRunner.java:59)
	at com.attachme.plugin.AttachmeRunTask.runServer(AttachmeRunTask.java:67)
	at com.attachme.plugin.AttachmeRunTask.run(AttachmeRunTask.java:39)
	at java.base/java.lang.Thread.run(Thread.java:834)

What does cause to the exception? How to fix it?
Thank you!

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

No branches or pull requests

1 participant