[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

[jcvs] jCVS newbie


Hi,

I'm just experimenting with jCVS. I've changed the
tempDir and localRootDir settings in gjt-common.js and
tried running the javascript files on Win2000 using
the following syntax:

java org.mozilla.javascript.tools.shell.Main gjt-co.js

..but I get js: Internal error: type conversion of
org.mozilla.javascript.NativeJavaObject to assign
topublic com.ice.cvsc.CVSResponseHandler
com.ice.cvsc.CVSRequest.responseHandler on
com.ice.cvsc.CVSRequest failed.

When I tried running the script on Linux I got a bit
further. It seems to do the checkout ok but then it
throws the following exception:

Opening server '2401@cvs.gjt.org'...
Authenticating 'anoncvs@cvs.gjt.org'...
Negotiating cvs protocol...
Sending command request, 'co'...
Reading server response...
Created local file
'/home/javauser/workspace/java/org/gjt/util/Exec.java'.
Created local file
'/home/javauser/workspace/java/org/gjt/util/Globber.java'.
Created local file
'/home/javauser/workspace/java/org/gjt/util/JTableUtilities.java'.
Created local file
'/home/javauser/workspace/java/org/gjt/util/PackageUtilities.java'.
Created local file
'/home/javauser/workspace/java/org/gjt/util/TempFileManager.java'.
Created local file
'/home/javauser/workspace/java/org/gjt/util/UnixPasswd.java'.Closing
CVS server connection.
Command completed with 'ok' status.
java.lang.NullPointerException
        at
com.ice.cvsc.CVSProject.writeAdminAndDescend(CVSProject.java:3524)
        at
com.ice.cvsc.CVSProject.writeAdminFiles(CVSProject.java:3425)
        at
com.ice.cvsc.CVSProject.processCVSResponse(CVSProject.java:1731)
        at java.lang.reflect.Method.invoke(Native
Method)
        at
org.mozilla.javascript.NativeJavaMethod.call(Unknown
Source)
        at
org.mozilla.javascript.ScriptRuntime.call(Unknown
Source)
        at
c5.call(/usr/java/jCVS-5.3.2/javascript/gjt-co.js:237)
        at
org.mozilla.javascript.ScriptRuntime.call(Unknown
Source)
        at
c1.call(/usr/java/jCVS-5.3.2/javascript/gjt-co.js:34)
        at
org.mozilla.javascript.optimizer.OptRuntime.callSimple(Unknown
Source)
        at
c6.call(/usr/java/jCVS-5.3.2/javascript/gjt-co.js:262)
        at
c6.exec(/usr/java/jCVS-5.3.2/javascript/gjt-co.js)
        at
org.mozilla.javascript.Context.evaluateReader(Unknown
Source)
        at
org.mozilla.javascript.tools.shell.Main.evaluateReader(Unknown
Source)
        at
org.mozilla.javascript.tools.shell.Main.processFile(Unknown
Source)
        at
org.mozilla.javascript.tools.shell.Main.processSource(Unknown
Source)        at
org.mozilla.javascript.tools.shell.Main.exec(Unknown
Source)
        at
org.mozilla.javascript.tools.shell.Main.main(Unknown
Source)

You can see from the stacktrace that it looks like it
blows up in the processCVSResponse method. I looked at
the source and it seems that getRootDirectorySpec() is
being called at line 3524. Is this a problem with the
localRootDir setting? I don't get it. I've got rw
permissions for the directory that I've set
localRootDir to. Can anyone help?

Thanks,


John.

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com