Problem with decorator in xWork, the page is displayed without tabs and lot of exceptions in the log

Use workaround while there’s no fix for this issue:
Add these code to any of your class, it might be better to create new one just for this purpose

@ComponentImport
    private BambooPermissionManager bambooPermissionManager;
    @ComponentImport
    private BambooAuthenticationContext bambooAuthenticationContext;
    @ComponentImport
    private JiraApplinksService jiraApplinksService;
    @ComponentImport
    private WebInterfaceManager webInterfaceManager;
    @ComponentImport
    private VcsRepositoryConfigurationService vcsRepositoryConfigurationService;
    @ComponentImport
    private PlanExecutionManager planExecutionManager;
    @ComponentImport
    private TriggerManager triggerManager;
    @ComponentImport
    private PlanManager planManager;

The problem that when Bamboo initialise action from plugin it doesn’t scan for required dependencies so class loader doesn’t see classes which BambooActionSupport class requires to render page menu. Workaround above forces adding of missing dependencies to Spring configuration of plugin.

Workaround works if you use spring-scanner to generate dependencies

2 Likes