MKS Plugin broken

Hi, I'm not sure whether this is the right place to post this message, but I'm sure someone will point me to the right place if this is not the case.

I cannot get the MKS Source Integrity Plugin to function after migrating to IntelliJ 6.x. I haven't tried it personally with any older versions, but "everyone" around my present customer site can get it to work with older IntelliJ versions.

For all operations, i.e. checkout, checkin, etc, I get an internal NullPointerException from the plugin of which doesn't tell me a whole lot. Provided is the stacktrace (as an example, when attempting to checkin) just in case anyone else has experienced the same error.

Regards,
Kristoffer

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(53,26),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###
java.lang.NullPointerException
at mks.integrations.common.TriclopsSiSandbox.validate(TriclopsSiSandbox.java:287)
at org.intellij.vcs.mks.actions.CheckinAction.perform(CheckinAction.java:31)
at org.intellij.vcs.mks.actions.BasicAction.execute(BasicAction.java:166)
at org.intellij.vcs.mks.actions.BasicAction.access$000(BasicAction.java:32)
at org.intellij.vcs.mks.actions.BasicAction$1.run(BasicAction.java:75)
at com.intellij.openapi.vcs.impl.AbstractVcsHelperImpl.runTransactionRunnable(AbstractVcsHelperImpl.java:155)
at org.intellij.vcs.mks.actions.BasicAction.actionPerformed(BasicAction.java:69)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:12)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:7)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:33)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:94)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:6)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:163)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:12)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:145)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

6 comments
Comment actions Permalink

Hi,

I am also experiencing the same problem. But it does not seem to have anything to do with IDEA 6.0, since I am also having the same problem in version 5.1.

For me, and for 3 of my colleagues, the problem started after an upgrade from Windows 2000 to XP a few days ago. We are running the exact same versions of MKS, the MKS Plugin and IntelliJ as before the upgrade. The only diff seems to be the operating system.

Any hints to what could cause this problem will be appreciated!

Regards,
Geir.

0
Comment actions Permalink

did you recreate your sandbox after upgrading to XP ?

As far as I know, you can't just copy/move sandboxes around

0
Comment actions Permalink

did you resolve your problem ?

If not , i can provide you a modified version of the plugin that works fine for me using 6.0

0
Comment actions Permalink

We have now solved the problem.

After upgrading to Win XP we had to reinstall everything. It seems that the installation of MKS was broken. The path to the dll's (the MKS_BIN system variable) was wrong, and thus the NullPointer occured during loading of the libraries.

Fixing the MKS_BIN environment variable solved the problem, so now we are all happy again... :)

Geir.

0
Comment actions Permalink

I had the same exact exception as Kristoffer. I took Geir's advice and set the MKS_BIN environment variable. Now my MKS plugin works great. Of course I had to shutdown idea and restart it for the change to take effect. Using Idea6.0 and windows XP.

Thanks for the post Geir.

0
Comment actions Permalink

Don't forget to add the MKS_BIN variable to your main class path variable.

%MKS_BIN%;%JAVA_HOME%\bin;%ANT_HOME%\bin; etc.....

0

Please sign in to leave a comment.