Resin plugin starts resin, but won't shutdown JVM

I've setup my resin the same way I did with the 4.5 version, and using the new Resin plugin for 5.0, I can't get the JVM to shutdown and have to kill the process manually. I'm getting the following error when I start the server wit hthe plugin:

The data "null" is not legal for a JDOM attribute: A null is not a legal XML value.
org.jdom.IllegalDataException: The data "null" is not legal for a JDOM attribute: A null is not a legal XML value.
at org.jdom.Attribute.setValue(Attribute.java:486)
at org.jdom.Attribute.(Attribute.java:229) at org.jdom.Attribute.]]>(Attribute.java:252)
at org.jdom.Element.setAttribute(Element.java:1120)
at org.intellij.j2ee.web.resin.resin.Resin3XConfigurationStrategy.deploy(ResinConfigurationStrategy.java:193)
at org.intellij.j2ee.web.resin.resin.ResinConfiguration.deploy(ResinConfiguration.java:52)
at org.intellij.j2ee.web.resin.ResinDeploymentProvider.doDeploy(ResinDeploymentProvider.java:29)
at com.intellij.j2ee.openapi.impl.DeploymentManagerImpl$3.run(DeploymentManagerImpl.java:4)
at com.intellij.j2ee.openapi.impl.DeploymentManagerImpl.deployAllModules(DeploymentManagerImpl.java:26)
at com.intellij.j2ee.run.execution.ExecutionHelper$1$1.run(ExecutionHelper.java:3)
at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:16)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:65)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:56)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:160)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Anyone know how to fix this, its quite annoying

5 comments
Comment actions Permalink

I know about the issue that Resin wont shut down properly, but
I'm working on it.

Regarding the stacktrace, do you use WAR-deployment och exploded
directory. It seems that this may be a bug with WAR-deployment

/magnus



Andrew Lombardi wrote:

I've setup my resin the same way I did with the 4.5 version, and using the new Resin plugin for 5.0, I can't get the JVM to shutdown and have to kill the process manually. I'm getting the following error when I start the server wit hthe plugin:

The data "null" is not legal for a JDOM attribute: A null is not a legal XML value.
org.jdom.IllegalDataException: The data "null" is not legal for a JDOM attribute: A null is not a legal XML value.
at org.jdom.Attribute.setValue(Attribute.java:486)
at org.jdom.Attribute.<init>(Attribute.java:229)
at org.jdom.Attribute.<init>(Attribute.java:252)
at org.jdom.Element.setAttribute(Element.java:1120)
at org.intellij.j2ee.web.resin.resin.Resin3XConfigurationStrategy.deploy(ResinConfigurationStrategy.java:193)
at org.intellij.j2ee.web.resin.resin.ResinConfiguration.deploy(ResinConfiguration.java:52)
at org.intellij.j2ee.web.resin.ResinDeploymentProvider.doDeploy(ResinDeploymentProvider.java:29)
at com.intellij.j2ee.openapi.impl.DeploymentManagerImpl$3.run(DeploymentManagerImpl.java:4)
at com.intellij.j2ee.openapi.impl.DeploymentManagerImpl.deployAllModules(DeploymentManagerImpl.java:26)
at com.intellij.j2ee.run.execution.ExecutionHelper$1$1.run(ExecutionHelper.java:3)
at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:16)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:65)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:56)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:160)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Anyone know how to fix this, its quite annoying

0
Comment actions Permalink

There's now a version 2.9.3 that adds a hack to
shutdown Resin properly

It should be available via the plugin-manager within
an hour or so

/magnus


Andrew Lombardi wrote:

I've setup my resin the same way I did with the 4.5 version, and using the new Resin plugin for 5.0, I can't get the JVM to shutdown and have to kill the process manually. I'm getting the following error when I start the server wit hthe plugin:

The data "null" is not legal for a JDOM attribute: A null is not a legal XML value.
org.jdom.IllegalDataException: The data "null" is not legal for a JDOM attribute: A null is not a legal XML value.
at org.jdom.Attribute.setValue(Attribute.java:486)
at org.jdom.Attribute.<init>(Attribute.java:229)
at org.jdom.Attribute.<init>(Attribute.java:252)
at org.jdom.Element.setAttribute(Element.java:1120)
at org.intellij.j2ee.web.resin.resin.Resin3XConfigurationStrategy.deploy(ResinConfigurationStrategy.java:193)
at org.intellij.j2ee.web.resin.resin.ResinConfiguration.deploy(ResinConfiguration.java:52)
at org.intellij.j2ee.web.resin.ResinDeploymentProvider.doDeploy(ResinDeploymentProvider.java:29)
at com.intellij.j2ee.openapi.impl.DeploymentManagerImpl$3.run(DeploymentManagerImpl.java:4)
at com.intellij.j2ee.openapi.impl.DeploymentManagerImpl.deployAllModules(DeploymentManagerImpl.java:26)
at com.intellij.j2ee.run.execution.ExecutionHelper$1$1.run(ExecutionHelper.java:3)
at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:16)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:65)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:56)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:160)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Anyone know how to fix this, its quite annoying

0
Comment actions Permalink

Thank you! The shutdown portion works now. Such a timesaver!

As for your other question, I don't really use the web deployment, haven't read any of the docs really .. looks interesting .. just haven't found the time to prime up on it..

0
Comment actions Permalink

Hey there ... I just upgraded to your newest version, and found that one of my web-app contexts no longer starts. It seems that the resin plugin is trying to replace the line, and just blanks it out .. and the variable replacement doesn't seem to do anything. What I have in the file is:

<web-app id='/' document-directory='ROOT' />

and what shows up in the temp file is:

<web-app id='/' document-directory='' />

so I end up with 404's on all the resources in that directory. Can you help on this?

0
Comment actions Permalink

Andrew Lombardi wrote:

Hey there ... I just upgraded to your newest version, and found that one of my web-app contexts no longer starts. It seems that the resin plugin is trying to replace the line, and just blanks it out .. and the variable replacement doesn't seem to do anything. What I have in the file is:

<web-app id='/' document-directory='ROOT' />

and what shows up in the temp file is:

<web-app id='/' document-directory='' />

so I end up with 404's on all the resources in that directory. Can you help on this?

The plugin is supposed to loop through all your web-app tags and
if the id-attribute corresponds to the context path of your IDEA
webmodule, the document-directory attribute is changed to the value
of either 'Web Module Exploded Directory' or 'Web Module War File'

It seems from your other post that you are not using
'Web Module Exploded Directory' or 'Web Module War File'. This could be
the issue, try to set ut a 'Web Module Exploded Directory' to some
temp directory.

If you are trying to simple run Resin with a static configuration, make
sure that no WebModule on the Deployment-tab in Run Configuration is set
up to be deployed.

/magnus

0

Please sign in to leave a comment.