ClearCase plugin error

Sometimes, when I attempt a checkout in Idea I get an "Internal error ... post the log to Intellij" dialogs. Java throws an Unsatisfied Link Error - poor link :) - and the console shows:

(Clearcase.java:127)
        at net.sourceforge.transparent.NativeClearCase.(NativeClearCase.java:15)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance0(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at net.sourceforge.transparent.TransparentVcs.resetClearCaseFromConfiguration(TransparentVcs.java:55)
        at net.sourceforge.transparent.TransparentVcs.getClearCase(TransparentVcs.java:91)
        at net.sourceforge.transparent.TransparentVcs.getFile(TransparentVcs.java:285)
        at net.sourceforge.transparent.TransparentVcs.checkoutFile(TransparentVcs.java:147)
        at net.sourceforge.transparent.actions.CheckOutAction.perform(CheckOutAction.java:18)
        at net.sourceforge.transparent.actions.SynchronousAction.performAndRefreshStatus(SynchronousAction.java:101)
        at net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAction.java:88)
        at net.sourceforge.transparent.actions.SynchronousAction.access$000(SynchronousAction.java:21)
        at net.sourceforge.transparent.actions.SynchronousAction$1.run(SynchronousAction.java:66)
        at com.intellij.openapi.vcs.b.f.runTransactionRunnable(f.java:20)
        at net.sourceforge.transparent.actions.SynchronousAction.executeAndShowErrors(SynchronousAction.java:61)
        at net.sourceforge.transparent.actions.SynchronousAction.runAction(SynchronousAction.java:33)
        at net.sourceforge.transparent.actions.FileAction.actionPerformed(FileAction.java:30)
        at com.intellij.openapi.actionSystem.b.l.actionPerformed(l.java:11)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at com.intellij.openapi.actionSystem.b.bb.fireActionPerformed(bb.java:19)
        at com.intellij.ui.a.a.p.doClick(p.java:225)
        at com.intellij.ui.a.a.p.access$300(p.java:86)
        at com.intellij.ui.a.a.q.mouseReleased(q.java:5)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at com.intellij.ide.q.a(q.java:104)
        at com.intellij.ide.q.dispatchEvent(q.java:99)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)]]>


Does any one know what causes this (ie what it is I've done wrong :-} and/or how to fix it?

Thanks in advance for any help.

0
3 comments

Sometimes? Can you elaborate on that?
This problem occurs because the java runtime could not find the native
plugin library ccjni.dll. You should have the file in the IDEA_DIR/bin
directory or in your path. This problem should ALWAYS occur on any plugin
action.
BTW you can always use the CommandLineClearcase if it doesn't work. It is
unfortunately 4 times slower.

Jacques
"mcalex" <itnadmin@jetbrains.com> wrote in message
news:3220630.1043205283510.JavaMail.jrun@is.intellij.net...

Sometimes, when I attempt a checkout in Idea I get an "Internal error ...

post the log to Intellij" dialogs. Java throws an Unsatisfied Link Error -
poor link :) - and the console shows:
>

 [4593047]  ERROR - com.intellij.ide.IdeEventQueue - Error during
dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED
> ,(77,130),button=1,modifiers=Button1,clickCount=1] on
###overrideRedirect###
> [4593156]  ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 3.0.1
Build #691
> [4593188]  ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.4.1_01
> [4593219]  ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM)
Client VM
> [4593234]  ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun
Microsystems Inc.
> [4593234]  ERROR - com.intellij.ide.IdeEventQueue - OS: Windows 2000
> [4593234]  ERROR - com.intellij.ide.IdeEventQueue - Last Action:
ClearCase.CheckOut
> [4593281]  ERROR - com.intellij.ide.IdeEventQueue -
> java.lang.UnsatisfiedLinkError: C:\ariadna\bin\ccjni.dll: %1 is not a
valid Win32 application
>         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>         at java.lang.ClassLoader.loadLibrary0(Unknown Source)
>         at java.lang.ClassLoader.loadLibrary(Unknown Source)
>         at java.lang.Runtime.loadLibrary0(Unknown Source)
>         at java.lang.System.loadLibrary(Unknown Source)
>         at
net.sourceforge.eclipseccase.jni.Clearcase.(Clearcase.java:127)
>         at
net.sourceforge.transparent.NativeClearCase.(NativeClearCase.java:15)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
>         at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
>         at java.lang.reflect.Constructor.newInstance(Unknown Source)
>         at java.lang.Class.newInstance0(Unknown Source)
>         at java.lang.Class.newInstance(Unknown Source)
>         at
net.sourceforge.transparent.TransparentVcs.resetClearCaseFromConfiguration(T
ransparentVcs.java:55)
>         at
net.sourceforge.transparent.TransparentVcs.getClearCase(TransparentVcs.java:
91)
>         at
net.sourceforge.transparent.TransparentVcs.getFile(TransparentVcs.java:285)
>         at
net.sourceforge.transparent.TransparentVcs.checkoutFile(TransparentVcs.java:
147)
>         at
net.sourceforge.transparent.actions.CheckOutAction.perform(CheckOutAction.ja
va:18)
>         at
net.sourceforge.transparent.actions.SynchronousAction.performAndRefreshStatu
s(SynchronousAction.java:101)
>         at
net.sourceforge.transparent.actions.SynchronousAction.execute(SynchronousAct
ion.java:88)
>         at
net.sourceforge.transparent.actions.SynchronousAction.access$000(Synchronous
Action.java:21)
>         at
net.sourceforge.transparent.actions.SynchronousAction$1.run(SynchronousActio
n.java:66)
>         at com.intellij.openapi.vcs.b.f.runTransactionRunnable(f.java:20)
>         at
net.sourceforge.transparent.actions.SynchronousAction.executeAndShowErrors(S
ynchronousAction.java:61)
>         at
net.sourceforge.transparent.actions.SynchronousAction.runAction(SynchronousA
ction.java:33)
>         at
net.sourceforge.transparent.actions.FileAction.actionPerformed(FileAction.ja
va:30)
>         at
com.intellij.openapi.actionSystem.b.l.actionPerformed(l.java:11)
>         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>         at
com.intellij.openapi.actionSystem.b.bb.fireActionPerformed(bb.java:19)
>         at com.intellij.ui.a.a.p.doClick(p.java:225)
>         at com.intellij.ui.a.a.p.access$300(p.java:86)
>         at com.intellij.ui.a.a.q.mouseReleased(q.java:5)
>         at java.awt.Component.processMouseEvent(Unknown Source)
>         at java.awt.Component.processEvent(Unknown Source)
>         at java.awt.Container.processEvent(Unknown Source)
>         at java.awt.Component.dispatchEventImpl(Unknown Source)
>         at java.awt.Container.dispatchEventImpl(Unknown Source)
>         at java.awt.Component.dispatchEvent(Unknown Source)
>         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)
>         at java.awt.LightweightDispatcher.processMouseEvent(Unknown
Source)
>         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>         at java.awt.Container.dispatchEventImpl(Unknown Source)
>         at java.awt.Window.dispatchEventImpl(Unknown Source)
>         at java.awt.Component.dispatchEvent(Unknown Source)
>         at java.awt.EventQueue.dispatchEvent(Unknown Source)
>         at com.intellij.ide.q.a(q.java:104)
>         at com.intellij.ide.q.dispatchEvent(q.java:99)
>         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
>         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>         at java.awt.EventDispatchThread.run(Unknown Source)]]>

>

Does any one know what causes this (ie what it is I've done wrong :-}

and/or how to fix it?
>

Thanks in advance for any help.



0

Jacques,

> Sometimes? Can you elaborate on that?
Sorry, it is a 'sometimes' issue. Once the problem has happened, then no further checkout attempts will work until I have shut down & restarted Idea. The subsequent error is different however, instead of the UnsatisfiedLinkError, I get a NoClassDefFound for something in the transparent jar.

> This problem occurs because the java runtime could not find the native plugin library ccjni.dll. You should have the file in the IDEA_DIR/bin directory or in your path.
I have the dll and jar files in their correct places, and I've followed the instructions in the manual.

>This problem should ALWAYS occur on any plugin action.
So far the problem hasn't happened when updating the project, marking the project as current or looking at the history. One other function that can cause an error is looking at the diff between the current & previous versions.

> BTW you can always use the CommandLineClearcase if it oesn't work. It is unfortunately 4 times slower.
Is it better to do this than going outside of Idea to perform clearcase actions? If so, I'll give it a shot.

> Jacques

In any event, given that the issue involves both M$ Windows and ClearCase (ie, everyone's favourite OS & VCS ... not) I'm happy to call it weird and not worry too much about it.

Many thanks

Alex

PS: To test/confirm that it was a 'sometimes' issue, I checked out a file (which worked) but then noticed, as I was undoing the checkout, that the check-in option was greyed out. Is this another weird one, or is this done intentionally to enforce checking in a project rather than a single file?

0

PS: To test/confirm that it was a 'sometimes' issue, I checked out a file

(which worked) but then noticed, as I was undoing the checkout, that the
check-in option was greyed out. Is this another weird one, or is this done
intentionally to enforce checking in a project rather than a single file?
>
It is expected. Unfortunately for people that use locking VCSes (CC, P4,
VSS,...) the VCS open api only tracks changes not VCS status (I have already
filed several request around this). In addition the plugin does not cache
the clearcase status of a file (checked out, private, checked in,...). Due
to the dismal performance of CC I chose not to query CC for every action in
the menu to enable only the appropriate ones. So the enabling is done with
the VCS status (created, modified, uptodate). It is however in my todo list
whenever I can steal some time.
For now Check in a checked out but not modified file is not enabled (its
name should appear in black and not blue). In addition while check in the
project, these files that were checked out but not modified are NOT
unchecked out. You have to do it by hand. Sorry

Jacques


0

Please sign in to leave a comment.