It's all about the answers!

Ask a question

I am getting these warnings when i try to run the following code.


shruti gudagur (2811115) | asked Jun 06 '14, 2:11 a.m.
edited Jun 06 '14, 2:15 a.m.
Hello,
These are the warnings am getting when i try to login to a repository

main DEBUG util.InternalTeamPlatform - Thread[main,5,main]
main DEBUG util.InternalTeamPlatform - start asBundlefalse
main DEBUG util.InternalTeamPlatform - set start true
Exception in thread "main" java.lang.ExceptionInInitializerError
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:223)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:182)
    at org.eclipse.core.runtime.spi.RegistryStrategy.createExecutableExtension(RegistryStrategy.java:215)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
    at com.ibm.team.repository.common.internal.util.StandaloneAdapterRegistry.loadFactory(StandaloneAdapterRegistry.java:46)
    at com.ibm.team.repository.common.internal.util.StandaloneAdapterRegistry.handleExtensionAdded(StandaloneAdapterRegistry.java:32)
    at com.ibm.team.repository.common.util.ExtensionReader.internalReadElement(ExtensionReader.java:196)
    at com.ibm.team.repository.common.util.ExtensionReader.readRegistry(ExtensionReader.java:344)
    at com.ibm.team.repository.common.util.ExtensionReader.start(ExtensionReader.java:374)
    at com.ibm.team.repository.common.internal.util.InternalTeamPlatform.initializeAdapterRegistry(InternalTeamPlatform.java:263)
    at com.ibm.team.repository.common.internal.util.InternalTeamPlatform.start(InternalTeamPlatform.java:109)
    at com.ibm.team.repository.client.TeamPlatform.startup(TeamPlatform.java:50)
    at com.bosch.mdg1t.ibmpackage.NewRtcStartUp.main(NewRtcStartUp.java:76)
Caused by: java.lang.SecurityException: Signers of 'org.eclipse.ui.IPathEditorInput' do not match signers of other classes in package
    at java.lang.ClassLoader.checkPackageSigners(ClassLoader.java:334)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:276)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:540)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:451)
    at java.net.URLClassLoader.access$300(URLClassLoader.java:79)
    at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1038)
    at java.security.AccessController.doPrivileged(AccessController.java:362)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:429)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:677)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:182)
    at org.eclipse.ui.internal.ide.IURIEditorInputAdapterFactory.<clinit>(IURIEditorInputAdapterFactory.java:54)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:201)


and here is my code,

 public static void main(final String[] args) {

      boolean result;
      TeamPlatform.startup();
      try {
        result = run(args);
      }
      catch (TeamRepositoryException x) {
        x.printStackTrace();
        result = false;
      }
      finally {
        TeamPlatform.shutdown();
      }

      if (!result) {
        System.exit(1);
      }

    }

    private static boolean run(final String[] args) throws TeamRepositoryException {

      if (args.length != 7) {
        System.out
            .println("Usage: CreateWorkItem <repositoryURI> <userId> <password> <projectArea> <workItemType> <summary> <category>");
        return false;
      }

      String repositoryURI = "https://***************";
      String userId = "******************";
      String password = "***********************";
 
      ITeamRepository teamRepository = TeamPlatform.getTeamRepositoryService().getTeamRepository(repositoryURI);
      teamRepository.registerLoginHandler(new LoginHandler(userId, password));
      teamRepository.login(null);
      teamRepository.logout();

      return true;
    }
  }

One answer



permanent link
Mike Jaworski (1.4k6) | answered Jun 06 '14, 8:36 a.m.
JAZZ DEVELOPER
Hi,

What version of CLM are you using? And assuming that you are running this code from an Eclipse-based platform, what version of Eclipse are you using? It's possible that the version of Eclipse you are using is not compatible with the version of CLM. For more information, you can go to the System Requirements page for the specific version of CLM you are using (copied from the CLM System Requirements home page):

  • For the CLM 2011 (3.0.1.x) system requirements please see this article.
  • The system requirements for CLM 2012 (v4.0) were published in this article.
  • The system requirements for v4.0.1 and v4.0.2 are published in this article.
  • The system requirements for v4.0.3 and v4.0.4 are published in this article.
  • The system requirements for v4.0.5 and 4.0.6 are published in this article.
  • The system requirements for v5.0 are published in this article.

  • Hope this helps!
    Mike Jaworski

    Comments
    shruti gudagur commented Jun 09 '14, 7:33 a.m.

    Hello Michael,

    i am using CLM v4.0.6 and Eclipse v4.3.1

    Thanks & Regards
    Shruti

    Your answer


    Register or to post your answer.


    Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.