Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to inject TraceLinkService.

Sergey K August 16, 2021

Hi! How can I inject TraceLinkService to my Java class?

I've tried inject this via @ComponentImport and ComponentAccessor.getOSGiComponentInstanceOfType. But it didn't help.

I've got "java.lang.ClassCastException: Cannot cast com.adaptavist.tm4j.service.tracelink.DefaultTraceLinkService to com.adaptavist.tm4j.api.service.tracelink.TraceLinkService".

Second way works via ScriptRunner, but I can not use ScriptRunner.

 

Thank you

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events