title: Connecting to Quality Center v11 using COM4J
body: <p>I am trying to connect to HP Quality Center V11 using Java code and com4j but i keep getting following error. Can someone please take a look at the error?</p>
  
  <p>When I use the URL in my browser and log-in with same credentials, I was able to login. I double checked all the spelling of my domain, url, Id and password..</p>
  
  <p>Error I get:</p>
  
  <pre><code>    com4j.ComException: 800403ea (Unknown error) : Failed to Login : .\invoke.cpp:517
      at com4j.Wrapper.invoke(Wrapper.java:166)
      at $Proxy5.connectProjectEx(Unknown Source)
      at com.testpack.TestClass.main(TestClass.java:23)
  Caused by: com4j.ComException: 800403ea (Unknown error) : Failed to Login : .\invoke.cpp:517
      at com4j.Native.invoke(Native Method)
      at com4j.StandardComMethod.invoke(StandardComMethod.java:35)
      at com4j.Wrapper$InvocationThunk.call(Wrapper.java:340)
      at com4j.Task.invoke(Task.java:51)
      at com4j.ComThread.run0(ComThread.java:153)
      at com4j.ComThread.run(ComThread.java:134)
  </code></pre>
  
  <p>Code I use to connect</p>
  
  <pre><code>public static void main(String[] args) {
  String url="http://XXXX/qcbin/";
      String domain="ACTIVE";
      String project="QC_2013_Projects";
      String username="XXXX";
      String password="XXXXX";
      try{
          ITDConnection itd=ClassFactory.createTDConnection();
          itd.initConnectionEx(url);
          System.out.println("Test1:"+ itd.connected());
  
          itd.connectProjectEx(domain,project,username,password);
  
          //System.out.println(itd.connected());
      }catch(Exception e){
  
          e.printStackTrace();
      }
  }
  </code></pre>