Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

TeamPlatform.startup(); throws exception

Why does TeamPlatform.startup(); throw the following exception when i run my java code?What are the source files to be added to solve this?I have already extended the Plain Java Client Libraries.



Exception in thread "main" java.lang.ExceptionInInitializerError
    at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source)
    at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source)
    at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source)
    at java.lang.reflect.Field.getFieldAccessor(Unknown Source)
    at java.lang.reflect.Field.get(Unknown Source)
    at com.ibm.team.repository.common.internal.util.InternalTeamPlatform$1.handleExtensionAdded(InternalTeamPlatform.java:284)
    at com.ibm.team.repository.common.util.ExtensionReader.internalReadElement(ExtensionReader.java:202)
    at com.ibm.team.repository.common.util.ExtensionReader.readRegistry(ExtensionReader.java:350)
    at com.ibm.team.repository.common.util.ExtensionReader.start(ExtensionReader.java:380)
    at com.ibm.team.repository.common.util.ExtensionReader.earlyStart(ExtensionReader.java:127)
    at com.ibm.team.repository.common.internal.util.InternalTeamPlatform.initializeGeneratedPackages(InternalTeamPlatform.java:317)
    at com.ibm.team.repository.common.internal.util.InternalTeamPlatform.start(InternalTeamPlatform.java:108)
    at com.ibm.team.repository.client.TeamPlatform.startup(TeamPlatform.java:50)
    at snippets.SnippetPost2.main(SnippetPost2.java:17)
Caused by: java.lang.NullPointerException
    at org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl.initializePackageContents(CommonPackageImpl.java:1460)
    at org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl.init(CommonPackageImpl.java:297)
    at org.eclipse.jst.j2ee.common.CommonPackage.<clinit>(CommonPackage.java:243)
    ... 15 more

0 votes


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,930

Question asked: Mar 06 '18, 7:09 a.m.

Question was seen: 1,921 times

Last updated: Mar 06 '18, 8:08 a.m.

Confirmation Cancel Confirm