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.


Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(53,26),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###
at mks.integrations.common.TriclopsSiSandbox.validate(
at org.intellij.vcs.mks.actions.CheckinAction.perform(
at org.intellij.vcs.mks.actions.BasicAction.execute(
at org.intellij.vcs.mks.actions.BasicAction.access$000(
at org.intellij.vcs.mks.actions.BasicAction$
at com.intellij.openapi.vcs.impl.AbstractVcsHelperImpl.runTransactionRunnable(
at org.intellij.vcs.mks.actions.BasicAction.actionPerformed(
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(
at javax.swing.AbstractButton.fireActionPerformed(
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(
at java.awt.Component.processMouseEvent(
at javax.swing.JComponent.processMouseEvent(
at java.awt.Component.processEvent(
at java.awt.Container.processEvent(
at java.awt.Component.dispatchEventImpl(
at java.awt.Container.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.LightweightDispatcher.retargetMouseEvent(
at java.awt.LightweightDispatcher.processMouseEvent(
at java.awt.LightweightDispatcher.dispatchEvent(
at java.awt.Container.dispatchEventImpl(
at java.awt.Window.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.EventQueue.dispatchEvent(
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(
at com.intellij.ide.IdeEventQueue.a(
at com.intellij.ide.IdeEventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(

Comment actions Permalink


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!


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

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

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... :)


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.

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.....


Please sign in to leave a comment.