Troubleshooting Java API

The following are some of the troubleshooting tips for developing or running the Java™ API-based code.

  • If your stand-alone application test program terminates without any error, it is likely that you do not have the database-related jars in your class path. Add ojdbc5.jar/ojdbc6.jar or db2jcc.jar/ db2jcc_license_cu.jar, depending on the database type.
  • If you receive warnings like ‘ERROR MESSAGE ID NOT FOUND ANYMORE', most likely you are using the wrong version of the JavaAPI jar - either an older version of ccd_javaapi2.jar or ccd_javaapi.jar is being picked up.
  • If you notice that your application does not even compile when your try to run, make sure the “Source folders” on build path and “Output folders” are configured correctly.
  • Compile errors, such as the following error, indicate that you might have an error on your class path and the Java API .jar file cannot be found. Cannot resolve symbol: PIMWebServicesContextFactory
    1. In the New Project Wizard or the Project Properties screen, select the Libraries tab.
    2. Click Add External JARs.
    3. Go to the ccd_javaapi2.jar and select it. Additionally, go to the jars folder and select the files in the directory.
    4. Save the changes to your project. Any errors due to not being able to resolve the references to Java API classes should now disappear.