[Logo] JCVSForum - Community Support For JCVS Users and Developers
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: lgy
Forum Index » Profile for lgy » Messages posted by lgy
Author Message
I think that it is good to modify CVSResponseItem.java.
The above encoding module is added to 'set' Method.

Thanks all .
I saw your vacation but you have not had a vacation yet.
Enjoy nice your vacation.
Always thanks for your help.
Maybe, maybe...
if i go near you, i will buy nice dinner.

Awfully Sorry for my mistake.
I was confused.

I set valid values to 'request' and ran.
And then the following error was made.
In all the modes, CVSRequest.METHOD_INETD, CVSRequest.METHOD_SSH and
CVSRequest.METHOD_RSH, the program don't work well.

The 'ClassPath' have jcvsii.jar, activation.jar, commons-logging.jar,
j2ssh-common.jar, j2ssh-core.jar,jh.jar.


2004. 8. 17. 오후 3:45:30 com.sshtools.j2ssh.transport.cipher.SshCipherFactory
<clinit>
ì •ë³´: Loading supported cipher algorithms
2004. 8. 17. 오후 3:45:30 com.sshtools.j2ssh.transport.cipher.SshCipherFactory
<clinit>
ì •ë³´: Failed to load ciphers
java.lang.NullPointerException
at com.sshtools.j2ssh.transport.cipher.SshCipherFactory.<clinit>(Unknown
Source)
at com.sshtools.j2ssh.configuration.SshConnectionProperties.<init>(Unknown
Source)
at com.ice.cvsc.CVSClient.establishSSHConnection(CVSClient.java:3280)
at com.ice.cvsc.CVSClient.openServer(CVSClient.java:3424)
at com.ice.cvsc.CVSClient.processCVSRequest(CVSClient.java:1340)
at AddressBookUI$MyRunner.run(AddressBookUI.java:79)
at com.ice.jcvsii.CVSThread.run(CVSThread.java:42)
2004. 8. 17. 오후 3:45:30
com.sshtools.j2ssh.transport.kex.SshKeyExchangeFactory <clinit>
ì •ë³´: Loading key exchange methods
2004. 8. 17. 오후 3:45:30
com.sshtools.j2ssh.transport.publickey.SshKeyPairFactory <clinit>
ì •ë³´: Loading public key algorithms
2004. 8. 17. 오후 3:45:30
com.sshtools.j2ssh.transport.compression.SshCompressionFactory <clinit>
ì •ë³´: Loading compression methods
2004. 8. 17. 오후 3:45:30
com.sshtools.j2ssh.transport.compression.SshCompressionFactory <clinit>
ì •ë³´: Failed to load compression algorithms
java.lang.NullPointerException
at
com.sshtools.j2ssh.transport.compression.SshCompressionFactory.<clinit>(Unknown
Source)
at com.sshtools.j2ssh.configuration.SshConnectionProperties.<init>(Unknown
Source)
at com.ice.cvsc.CVSClient.establishSSHConnection(CVSClient.java:3280)
at com.ice.cvsc.CVSClient.openServer(CVSClient.java:3424)
at com.ice.cvsc.CVSClient.processCVSRequest(CVSClient.java:1340)
at AddressBookUI$MyRunner.run(AddressBookUI.java:79)
at com.ice.jcvsii.CVSThread.run(CVSThread.java:42)
2004. 8. 17. 오후 3:45:30 com.sshtools.j2ssh.transport.hmac.SshHmacFactory
<clinit>
ì •ë³´: Loading message authentication methods
2004. 8. 17. 오후 3:45:30 com.sshtools.j2ssh.transport.TransportProtocolCommon
startTransportProtocol
ì •ë³´: Starting transport protocol
2004. 8. 17. 오후 3:45:30 com.sshtools.j2ssh.transport.TransportProtocolCommon
run
ì •ë³´: Registering transport protocol messages with inputstream
2004. 8. 17. 오후 3:45:30 com.sshtools.j2ssh.transport.TransportProtocolCommon
run
심�: The Transport Protocol thread failed
com.sshtools.j2ssh.transport.AlgorithmNotSupportedException: Algorithm DH not
available
at com.sshtools.j2ssh.transport.kex.DhGroup1Sha1.onInit(Unknown Source)
at com.sshtools.j2ssh.transport.kex.SshKeyExchange.init(Unknown Source)
at com.sshtools.j2ssh.transport.TransportProtocolCommon.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
In 'http://www.jcvs.org' page
there is a link titled 'com.ice.cvsc client/server protocol package' in Menu
'Browse Source'
If you press the link, you can get the source which have the mindbright package.
I will appreciate your help.
If you have the patch or fix the bug, please post it at once.
In client-server protocol package source
CVSClient.java must be updated.
It's out of date.
in CVSClient.java

import com.mindbright.ssh.SSH;
import com.mindbright.ssh2.*;
import com.mindbright.util.*;

I can't find the package.
Where ?
I am making code using jcvsii pakage.
I am starting by reading the CheckoutPanel.java.
I did all initialization which is in JCVS and then called performCheckOut.
Some errer was made.

Assuming a Windows platform.
Loaded default preferences from '/com/ice/jcvsii/defaults.properties'
Loaded user preferences from 'C:\Documents and Settings\gylee\jcvsii.txt'
Loaded resource bundle 'com.ice.jcvsii.rsrcui'.
Loaded config editor specification from '/com/ice/jcvsii/configspec.properties'
Loaded default server definitions from '/com/ice/jcvsii/servers.properties'
Using default mime types definition.
Using default mailcap definition.
No user server definitions found at 'C:\Documents and
Settings\gylee\jcvsdef.txt'
java.lang.NullPointerException
at java.net.Socket.<init>(Socket.java:283)
at java.net.Socket.<init>(Socket.java:119)
at com.ice.cvsc.CVSClient.openServer(CVSClient.java:3419)
at com.ice.cvsc.CVSClient.processCVSRequest(CVSClient.java:1340)
at AddressBookUI$MyRunner.run(AddressBookUI.java:77)
at com.ice.jcvsii.CVSThread.run(CVSThread.java:42)

Socket.java:283
if (address == null)
throw new NullPointerException();

I checked client and request variables, which have a hostname.
Plz help me.

part of the source.
Config cfg = Config.getInstance();
cfg.initializePreferences( "jcvsii." );
UserPrefs prefs = cfg.getPreferences();
cfg.loadDefaultPreferences();
cfg.loadUserPreferences();
CVSRequest request = new CVSRequest();
ResourceMgr.initializeResourceManager( "jcvsii" );
ResourceMgr rmgr = ResourceMgr.getInstance();
cfg.loadConfigEditorSpecification();

if ( prefs.getBoolean( Config.GLOBAL_LOAD_SERVERS, false ) )
{
cfg.loadDefaultServerDefinitions();
}
cfg.loadMimeTypes();
cfg.loadMailCap();
cfg.loadUserServerDefinitions();
cfg.initializeGlobalProperties();
String tzPropStr =
prefs.getProperty( Config.GLOBAL_CVS_TIMEZONE, null );

if ( tzPropStr != null )
{
CVSTimestampFormat.setTimeZoneID( tzPropStr );
}

//String argumentStr = info.getArguments();
String userName = "xxxxx";
String passWord = "xxxxx";
String hostname = "xxx.xxx.xxx";
String repository = "/cvs";
String rootDirectory = "xxx";

String localDirectory = "f:\temp";

boolean isPServer = true;
boolean listingModules = false;

/*
* CVSRequest.METHOD_INETD = pserver(true) direct(ispserver=false)
CVSRequest.METHOD_SSH
CVSRequest.METHOD_RSH
*/
int connMethod = CVSRequest.METHOD_SSH;

int cvsPort = 2401;
// CVSUtilities.computePortNum( hostname, connMethod, isPServer );

CVSArgumentVector arguments =
CVSArgumentVector.parseArgumentString( "" );



String checkOutCommand =
prefs.getProperty
( "global.checkOutCommand", ":co:N:ANP:deou:" );

if ( ! request.parseControlString( checkOutCommand ) ) {

String [] fmtArgs =
{ checkOutCommand, request.getVerifyFailReason() };
String msg = rmgr.getUIFormat("checkout.cmd.parse.failed.msg", fmtArgs );
String title = rmgr.getUIString("checkout.cmd.parse.failed.title" );

return;
}

//
// DO IT
//
CVSEntryVector entries = new CVSEntryVector();

if ( ! listingModules )
{
arguments.appendArgument( repository );
}

this.client = CVSUtilities.createCVSClient( hostname, cvsPort );
CVSProject project = new CVSProject( this.client );

CVSProjectDef projectDef = new CVSProjectDef
( connMethod, isPServer, false,
hostname, userName, rootDirectory, repository );

project.setProjectDef( projectDef );

project.setUserName( userName );

project.setTempDirectory( cfg.getTemporaryDirectory() );
project.setRepository( repository );
project.setRootDirectory( rootDirectory );
project.setLocalRootDirectory( localDirectory );
project.setPServer( isPServer );
project.setConnectionPort( cvsPort );
project.setConnectionMethod( connMethod );

project.setSetVariables
( CVSUtilities.getUserSetVariables( hostname ) );

project.setServerCommand(
CVSUtilities.establishServerCommand
( hostname, connMethod, isPServer ) );

project.setAllowsGzipFileMode
( prefs.getBoolean( Config.GLOBAL_ALLOWS_FILE_GZIP, false ) );

project.setGzipStreamLevel
( prefs.getInteger( Config.GLOBAL_GZIP_STREAM_LEVEL, 0 ) );
request.setEntries( entries );

request.appendArguments( arguments );

request.setUserInterface( null ); //lgy

CVSResponse response = new CVSResponse();

CVSThread thread =
new CVSThread
( "CheckOut",
this.new MyRunner
( project, this.client,
request, response, listingModules ),
this.new MyMonitor
( request, response, listingModules ) );

thread.start();

 
Forum Index » Profile for lgy » Messages posted by lgy
Go to:   
Powered by JForum 2.1.9 © JForum Team