heartbeatManager.startActivity(String, User) causes NoSuchMethodError

Hi,

We are getting the error below from ServiceRocket Scaffolding plugin. :

Caused by: java.lang.NoSuchMethodError: com.atlassian.confluence.core.HeartbeatManager.startActivity(Ljava/lang/Object;Lcom/atlassian/user/User;)V
at net.customware.confluence.plugin.scaffolding.action.ScaffoldHeartbeatAction.startActivity(ScaffoldHeartbeatAction.java:35)

Any method calls to the HeartbeatManager service results in the error above except for getHeartbeatInterval().

Below is how we’re wiring the service,

<osgi:reference id="heartbeatManager" interface="com.atlassian.confluence.core.HeartbeatManager" />

We are already using the following method suggested by Atlassian and we are still seeing the error in the log. :

void startActivity(String activity, User user); 

Any insights from your Developers team would be highly appreciated.

Thank you.

Regards,
Suresh

2 Likes

I assume you have declared this plugin in pom.xml is the scope provided? If not make it

Yes the scope is declared provided.

We are only seeing this occur in Confluence 6 and above, no such issues on Conf 5.