bug-cvs
[Top][All Lists]
Advanced

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

org.netbeans.lib.cvsclient.connection.AuthenticationException


From: ruchira
Subject: org.netbeans.lib.cvsclient.connection.AuthenticationException
Date: Wed, 27 Sep 2006 23:45:17 -0700 (PDT)

hi

My code is this

public class CVS1{
        public boolean createConnection(String userName,String
encodedPassword,String hostName,String repository,String localPath) throws
org.netbeans.lib.cvsclient.connection.AuthenticationException{
                String cvsroot =
":pserver:"+userName+":"+encodedPassword+"@"+hostName+":"+repository;
                System.out.println("cvsroot---------->"+cvsroot);
  
    try{
        CVSRoot cvs = CVSRoot.parse(cvsroot);
        System.out.println("what is parse cvsroot--------------->"+cvs);
        PServerConnection c = new PServerConnection(cvs);
        c.open();
        GlobalOptions globalOptions = new GlobalOptions();
        globalOptions.setCVSRoot(cvsroot);

        Client client = new Client(c, new StandardAdminHandler());
        client.setLocalPath(localPath);
        BasicListener list = new BasicListener();
        client.getEventManager().addCVSListener(list);
        return true;
    }
    catch (CommandAbortedException cae){
        cae.printStackTrace();
    }catch (NullPointerException ne){
        ne.printStackTrace();
    }
        return false;
}
public static void main(String args[]){
        CVS1 cvs1 =new CVS1();
        
        try {
                boolean status
=cvs1.createConnection("ruchiras","address@hidden","yagachi","\\testCv","C:\\Canarys\\workingDir");
                System.out.println("helloooooooooo" +status);
        } catch (org.netbeans.lib.cvsclient.connection.AuthenticationException 
e) {
                
                e.printStackTrace();
        }
        
        
}
        
}







and this is giving output beacause it is taking address@hidden while server name
is yagachi


cvsroot---------->:pserver:ruchiras:address@hidden@yagachi:\testCv
what is parse cvsroot--------------->:pserver:address@hidden@yagachi:\testCv
org.netbeans.lib.cvsclient.connection.AuthenticationException: I/O error
while connecting to host address@hidden
        at
org.netbeans.lib.cvsclient.connection.PServerConnection.openConnection(PServerConnection.java:273)
        at
org.netbeans.lib.cvsclient.connection.PServerConnection.open(PServerConnection.java:333)
        at CVS1.createConnection(CVS1.java:20)
        at CVS1.main(CVS1.java:41)
Caused by: java.net.UnknownHostException: address@hidden
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
        at java.net.Socket.connect(Socket.java:507)
        at java.net.Socket.connect(Socket.java:457)
        at java.net.Socket.<init>(Socket.java:365)
        at java.net.Socket.<init>(Socket.java:178)
        at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:196)
        at
org.netbeans.lib.cvsclient.connection.PServerConnection.openConnection(PServerConnection.java:194)
        ... 3 more




Thanks and Regards
Ruchira

-- 
View this message in context: 
http://www.nabble.com/org.netbeans.lib.cvsclient.connection.AuthenticationException-tf2349023.html#a6541081
Sent from the Gnu - Cvs - Bugs mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]