2 Replies Latest reply: Jul 30, 2008 8:01 AM by 843807 RSS

    Unable to open pserver connection in cvs

    843807
      Hai
      I am using java cvs for my application.First i created the pserver
      connection but It didn't work well. It gives null Pointer Exception. I don't know why. Anyone plz help me?


      Thnx in advance

      Here is my Source Code
      try{
      PServerConnection c =new PServerConnection();
      PServerConnection connection = c;
      Scrambler scrambler = StandardScrambler.getInstance();
      c.setUserName("kirank");
      c.setHostName("fileserver.cash-tech.com");
      c.setRepository("/source/repository/triton");
      c.setEncodedPassword(scrambler.scramble("123456"));

      c.open(); //Exception -- NullPointerException
      System.out.println("connection created");
      }
      catch(Exception e)
      {
      System.out.println("connection not created");
      e.printStackTrace();
      }


      Regards
      Raviraj Gangrade