Unit Test plugin fails on read-only install

I install my IDEA from a set of RPMs I rolled, so the installation of
IDEA itself is read-only for normal users on the system, the unit test
plugin ( which looks like it serious kicks arse ), however, the plugin
is writing out a velocity log file to the bin directory of IDEA and
fails with the following stack trace. I can hack around it with
permissions but would rather not...

java.lang.Exception: Unable to configure AvalonLogSystem :
java.io.FileNotFoundException: /usr/local/idea/bin/velocity.log
(Permission denied)
at
org.apache.velocity.runtime.log.AvalonLogSystem.init(AvalonLogSystem.java:134)
at
org.apache.velocity.runtime.log.LogManager.createLogSystem(LogManager.java:165)
at
org.apache.velocity.runtime.RuntimeInstance.initializeLogger(RuntimeInstance.java:533)
at
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:267)
at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:122)
at
com.maddyhome.idea.copyright.psi.UpdateJavaFileCopyright.getComment(UpdateJavaFileCopyright.java:159)
at
com.maddyhome.idea.copyright.psi.UpdateJavaFileCopyright.updateComment(UpdateJavaFileCopyright.java:140)
at
com.maddyhome.idea.copyright.psi.UpdateJavaFileCopyright.update(UpdateJavaFileCopyright.java:71)
at
com.maddyhome.idea.copyright.util.CommandHelper$2.run(CommandHelper.java:45)
at com.intellij.openapi.command.a.a.executeCommand(a.java:33)
at
com.maddyhome.idea.copyright.util.CommandHelper$1.run(CommandHelper.java:39)
at com.intellij.openapi.f.b.c.runWriteAction(c.java:88)
at
com.maddyhome.idea.copyright.util.CommandHelper.runUpdate(CommandHelper.java:35)
at
com.maddyhome.idea.copyright.CopyrightPluginImpl$1.fileOpened(CopyrightPluginImpl.java:73)
at com.intellij.openapi.a.b.d.f(d.java:77)
at com.intellij.openapi.a.b.d.b(d.java:311)
at com.intellij.openapi.a.b.d.access$900(d.java:273)
at com.intellij.openapi.a.b.d$6.run(d$6.java)
at com.intellij.openapi.command.a.a.executeCommand(a.java:33)
at com.intellij.openapi.a.b.d.a(d.java:4)
at com.intellij.openapi.a.b.d.openFile(d.java:680)
at com.intellij.openapi.a.b.d$4.run(d$4.java:5)
at com.intellij.openapi.command.a.a.executeCommand(a.java:71)
at com.intellij.openapi.a.b.d.openTextEditor(d.java:123)
at
org.intellij.plugins.junit.actions.JUnitTestCaseHandler.openFile(JUnitTestCaseHandler.java:84)
at
org.intellij.plugins.junit.actions.JUnitTestCaseHandler.openFile(JUnitTestCaseHandler.java:76)
at
org.intellij.plugins.junit.actions.GoToUnitTestHandler.openTestAndGoToTestMethod(GoToUnitTestHandler.java:114)
at
org.intellij.plugins.junit.actions.GoToUnitTestHandler.createTestClassAndGoToTestMethod(GoToUnitTestHandler.java:98)
at
org.intellij.plugins.junit.actions.GoToUnitTestHandler$1.itemChosen(GoToUnitTestHandler.java:86)
at org.intellij.plugins.ui.SelectDialog.dispose(SelectDialog.java:195)
at
org.intellij.plugins.ui.SelectDialog$2.mousePressed(SelectDialog.java:140)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222)
at java.awt.Component.processMouseEvent(Component.java:5097)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3195)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.t.b(t.java:45)
at com.intellij.ide.t.a(t.java:152)
at com.intellij.ide.t.dispatchEvent(t.java:133)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
at java.awt.Dialog$1.run(Dialog.java:540)
at java.awt.Dialog.show(Dialog.java:561)
at com.intellij.openapi.k.b.a$d_.show(a$d_.java:29)
at com.intellij.openapi.k.b.a.show(a.java:88)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:673)
at org.intellij.plugins.ui.SelectDialog.show(SelectDialog.java:185)
at
org.intellij.plugins.junit.actions.MethodTestHandler.selectTemplateAndCreate(MethodTestHandler.java:121)
at
org.intellij.plugins.junit.actions.GoToUnitTestHandler.selectClassTemplateAndCreate(GoToUnitTestHandler.java:84)
at
org.intellij.plugins.junit.actions.GoToUnitTestHandler.execute(GoToUnitTestHandler.java:54)
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.actionPerformed(ToggleTestCaseTestedClassAction.java:63)
at com.intellij.openapi.editor.b.z.mouseReleased(z.java:103)
at com.intellij.openapi.editor.b.o.h(o.java:798)
at com.intellij.openapi.editor.b.o.access$2500(o.java:323)
at com.intellij.openapi.editor.b.o$25.run(o$25.java:1)
at com.intellij.openapi.command.a.a.executeCommand(a.java:71)
at com.intellij.openapi.editor.b.o.c(o.java:188)
at com.intellij.openapi.editor.b.o.access$5900(o.java:268)
at com.intellij.openapi.editor.b.o$bq_.mouseReleased(o$bq_.java:14)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.t.b(t.java:45)
at com.intellij.ide.t.a(t.java:152)
at com.intellij.ide.t.dispatchEvent(t.java:133)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)


--
Discouragement is a dissatisfaction with the past, a distaste for the
present, and a distrust of the future - Maree De Jong, CLCA.

Mark Derricutt --- mark@ talios.com --- http://www.talios.com

4 comments
Comment actions Permalink

What version are you using and for what IDEA version?
I don't see that behavior in any version.

Jacques

0
Comment actions Permalink

BTW I just looked at the trace. It isn't a problem with the unit test plugin. It is Rick's latest version of his great copyright plugin that is causing this problem. See my note for more explanation http://www.intellij.net/forums/thread.jsp?nav=false&forum=18&thread=95653&start=0&msRange=100#3332160

Jacques

0
Comment actions Permalink

Jacques Morel wrote:

What version are you using and for what IDEA version?
I don't see that behavior in any version.


Latest EAP and whatever was in the plugin manager last night..

--
Discouragement is a dissatisfaction with the past, a distaste for the
present, and a distrust of the future - Maree De Jong, CLCA.

Mark Derricutt --- mark@ talios.com --- http://www.talios.com

0
Comment actions Permalink

Jacques Morel wrote:

BTW I just looked at the trace. It isn't a problem with the unit test
plugin. It is Rick's latest version of his great copyright plugin
that is causing this problem. See my note for more explanation


Ahh - I'd installed both at the same time. Only it was triggered by me
creating a test class that triggered it. My bad.

Mark

--
Discouragement is a dissatisfaction with the past, a distaste for the
present, and a distrust of the future - Maree De Jong, CLCA.

Mark Derricutt --- mark@ talios.com --- http://www.talios.com

0

Please sign in to leave a comment.