IDEA hangs when undeploying a JBoss EAR
Hello!
I have a little problem with IDEA when undeploying/redeploying an EAR archive in JBoss (7.1.3.Final, self-compiled).
When I undeploy an EAR with the JBoss Administation Console of JBoss, all works fine. But when I undeploy from IntelliJ IDEA (11.1.4), it stops in the middle of the process. Trying to shutdown the server from IDEA results in a freeze of the whole IDE. At this point, it is not even possible to undeploy with the Administration Console anymore and I have to kill all processes manually. If I undeploy from the console and then redeploy with IDEA, it works.
My question is: What is IDEA doing differently to the Administration Console when undeploying an EAR?
Please sign in to leave a comment.
IDEA uses org.jboss.as.controller.client.ModelControllerClient as the entry point for JBoss 7 administration.
It looks like you have 2 separate issues:
1) undeploy from IDEA is not finished:
I'm not sure what do you mean under "it stops in the middle of the process".
Does IDEA change status of the EAR to "not deployed"? What is the state of the EAR reported via JBoss Administration Console?
2) IDEA freezes on server shutdown after a problematic undeploy.
I'd like to see thread dumps for both issues first.
Please follow http://devnet.jetbrains.net/docs/DOC-260 and attach the thread dumps:
1) at the time an undeploy fails
2) at the time IDEA is frozen
Regards,
Michael
During a normal undeploy process, I get this output:
When the error occurs, all is equal until the line with "Unbound JCA ConnectionFactory". After this is printed, nothing else happens.
I'd love to, but suddenly the error does not occur anymore, a redeploy works everytime. This is exactly what I wanted, but I know that this does not help finding the issue that caused in in the first place.
I cannot remember changing anything of the setup. My best guess is that a reboot fixed the error, I was trying some different JBoss versions on that day in parallel.
As soon as it occurs again, I am going to provide you with the thread dumps you asked for.
Thanks!
OK, the error has happened again. This time I got the dumps you asked for. They are attached to this message.
Attachment(s):
stack-hangs.zip
stack-redeploy.zip
However, IDEA definetly should not hang on JBoss shutdown after that, but at least provide a functionality to kill JBoss.
I've opened the related YouTrack at http://youtrack.jetbrains.com/issue/IDEA-95552, will definitely try to fix it for Leda.
Regards,
Michael