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

RTC SDK throws Exception when using findRequiredProperties in WorkItemCommon class

Hi,

I have a standalone Java swing application, which will create a "Task" workitem on our RTC server. However, it throws exceptions when I tried to get the required attributes of new work items.

I am using the findRequiredAttributes() method in com.ibm.team.workitem.common.internal.WorkItemCommon class, and got the exception:
Exception in thread "Thread-7" java.lang.ExceptionInInitializerError    at java.lang.J9VMInternals.initialize(J9VMInternals.java:250)    at org.eclipse.core.runtime.FileLocator.find(FileLocator.java:84)    at com.ibm.team.rtc.common.scriptengine.environment.FileScriptFeature.findFile(FileScriptFeature.java:107)    at com.ibm.team.rtc.common.scriptengine.environment.FileScriptFeature.create(FileScriptFeature.java:50)    at com.ibm.team.rtc.common.scriptengine.environment.FileScriptFeature.create(FileScriptFeature.java:46)    at com.ibm.team.rtc.common.scriptengine.environment.dojo.DojoFeature.<clinit>(DojoFeature.java:62)    at java.lang.J9VMInternals.initializeImpl(Native Method)    at java.lang.J9VMInternals.initialize(J9VMInternals.java:228)    at com.ibm.team.rtc.common.scriptengine.environment.dojo.DefaultDojoEnvironment.createDojoFeature(DefaultDojoEnvironment.java:60)    at com.ibm.team.rtc.common.scriptengine.environment.dojo.DefaultDojoEnvironment.createFeatures(DefaultDojoEnvironment.java:44)    at com.ibm.team.rtc.common.scriptengine.environment.dojo.DefaultDojoEnvironment.createFeatures(DefaultDojoEnvironment.java:33)    at com.ibm.team.workitem.shared.common.internal.ScriptEnvironmentManager.updateCache(ScriptEnvironmentManager.java:53)    at com.ibm.team.workitem.common.internal.util.CacheHelper.internalCheckCache(CacheHelper.java:107)    at com.ibm.team.workitem.common.internal.util.CacheHelper.checkCache(CacheHelper.java:73)    at com.ibm.team.workitem.common.internal.util.CacheHelper.checkCache(CacheHelper.java:65)    at com.ibm.team.workitem.shared.common.internal.ScriptEnvironmentManager.getScriptEnvironment(ScriptEnvironmentManager.java:58)    at com.ibm.team.workitem.shared.common.internal.ScriptEnvironmentManager.getScriptEnvironment(ScriptEnvironmentManager.java:39)    at com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider$ProviderCall.getProvider(ScriptAttributeValueProvider.java:202)    at com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider$ProviderCall.<init>(ScriptAttributeValueProvider.java:188)    at com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider.matches(ScriptAttributeValueProvider.java:156)    at com.ibm.team.workitem.common.internal.attributeValueProviders.AttributeValueProviderRegistry$SafeWorkItemFilter.matches(AttributeValueProviderRegistry.java:151)    at com.ibm.team.workitem.common.internal.RequiredAttributesByConditionAdvisor.getRequiredAttributes(RequiredAttributesByConditionAdvisor.java:92)    at com.ibm.team.workitem.common.internal.PropertiesManager.findRequiredAttributes(PropertiesManager.java:101)    at com.ibm.team.workitem.common.internal.WorkItemCommon.findRequiredProperties(WorkItemCommon.java:579)    at com.ibm.webfm.model.repositories.RTCWorkItemUtil.getRequiredAttriubutes(RTCWorkItemUtil.java:327)    at com.ibm.webfm.model.repositories.RTCWorkItemUtil.populateWorkItemRequiredAttrDefaultValues(RTCWorkItemUtil.java:390)    at com.ibm.webfm.model.repositories.RTCHelper.getNewWorkItem(RTCHelper.java:263)    at com.ibm.webfm.rtc.SetXlateProp.run(SetXlateProp.java:111)    at com.ibm.webfm.rtc.swing.XLATE_UI$1.run(XLATE_UI.java:608)    at java.lang.Thread.run(Thread.java:779)Caused by: java.lang.NullPointerException    at org.eclipse.core.internal.runtime.FindSupport.buildNLVariants(FindSupport.java:37)    at org.eclipse.core.internal.runtime.FindSupport.<clinit>(FindSupport.java:31)    at java.lang.J9VMInternals.initializeImpl(Native Method)    at java.lang.J9VMInternals.initialize(J9VMInternals.java:228)    ... 29 more

I think the WorkItemCommon class in SDK is trying to get the the script engines for the custom work item types on my RTC server, but failed because it's not running in eclipse framework and then "Platform.getBundle(bundleSymbolicName)" returns null in com.ibm.team.rtc.common.scriptengine.environment.FileScriptFeature

Please advise, thanks.

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,938

Question asked: Nov 10 '15, 2:26 p.m.

Question was seen: 1,914 times

Last updated: Nov 10 '15, 2:26 p.m.

Confirmation Cancel Confirm