Can anyone help resolve Default Value provider not found issue with Java API application?
I have a Java app that creates work items from a CSV file. The application works fine for most of our projects (either 3.0.1.1 based or 4.0.2 based). However, I tried running it today against a project that has a script based Default Value provider setup for the description field. Whenever the application is executed, the following error is logged in the output:
Apr 2, 2013 2:43:32 PM com.ibm.team.foundation.common.util.FoundationLog unexpectedError SEVERE: Default value provider not found: com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider The work item is created successfully, although if no Description was provided in the CSV, then the default isn't used. I have included the Plain Java API libraries in my Java project and in looking through the libraries available, it looks like the com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider isn't in any of the jar files. It seems like I am missing some jar file to add the shared classes. The Default Value works fine when the work item is created via the GUI (Eclipse or Web). Does anyone know what I need to add to my Java project to make this error go away? Thanks, Jamie. |
3 answers
Hello Jamie,
verified - the 4.0.2 SDK contains com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider
class
Ensure com.ibm.team.workitem.shared.common_3.1.200.v20121022_1010.jar is on you Java app path.
Hope it helps.
Eric.
Comments
Jamie Berry
commented Sep 04 '13, 6:08 p.m.
Eric,
|
I am guessing that this is a RTC design limitation.. I don't think the full execution environment for scripts is enabled for plain java clients. Similar for private plugins. you need the eclipse runtime and configuration.
I was never able to get scripts working reliably from commadline plainjava apps.. we were just starting to use them. |
Ralph Schoon (63.3k●3●36●46)
| answered Sep 06 '13, 3:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Sep 06 '13, 3:10 a.m.
Jamie,
I just tried this with 4.0.3. I set up my projects as described in http://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ . I have set up the SDK as well. My project references the whole Plain Java Client Libraries. I prepared a script based default and a script based calculated value for a string type attribute. If I run out of Eclipse I get these errors If I run out of a shell Some more observations: At least the default value is not processed when I run the Plain Java Code. The Calculated value shows if I open the item, but I suspect this is calculated when opening the Item in the UI. Summary, I get these errors too and I think something is broken. So I think you have a valid point and should file a PMR. Comments
Lukas Steiger
commented Dec 10 '13, 10:13 a.m.
Did anyone of you ever log a work item for this issue?
If yes could you provide the work item link so that I can subscribe on it?
|
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.