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?

4 comments
Comment actions Permalink

Hello,

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
0
Comment actions Permalink

mgolubev.jetbrains wrote:

I'm not sure what do you mean under "it stops in the middle of the process".


During a normal undeploy process, I get this output:

[...]
INFO  [org.jboss.as.osgi] (MSC service thread 1-5) JBAS011908: Unregister module: Module "deployment.my-app.ear.my-frontend.jar:main" from Service Module Loader
INFO  [org.jboss.as.osgi] (MSC service thread 1-4) JBAS011908: Unregister module: Module "deployment.my-app.ear.my-backend.jar:main" from Service Module Loader
INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-1) JBAS010410: Unbound JCA ConnectionFactory [java:jboss/eis/XADiskConnection]
INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016009: Stopping weld service for deployment my-app.ear
[...]



When the error occurs, all is equal until the line with "Unbound JCA ConnectionFactory". After this is printed, nothing else happens.

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:


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!
0
Comment actions Permalink

mgolubev.jetbrains wrote:

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

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
0
Comment actions Permalink

I can see from stack traces, that JBoss administration client code hangs on undeploy attempt -- (call to org.jboss.as.controller.client.impl.AbstractModelControllerClient#execute), which itself is the JBoss 7 issue.
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
0

Please sign in to leave a comment.