Merge Check plugin problem -Plugin not responding / not working

Hi All,

In my atlas-sdk, in current merge check plug-in , I used atlas-run.Suddenly after showing Live Reload Ended message in command prompt, it is showing a error message

i.e., "ERROR [localhost-startStop-1] c.a.plugin.manager.PluginEnabler Unable to start the following plugins due to timeout while waiting for plugin to enable: com.mycompany.is-admin-merge-check-tests".

My stash server is working fine, but the plugin is not working properly..

Can anyone suggest me how to resolve this...

-Regards

Anil

18 answers

I stuck with this error. How to overcome this...

Any update for this..Pls..

Hi Anil,

What happens if you run jstack on the stash server, what is your plugin doing that is causing the timeout?

Is it possible to share the source of your plugin?

Charles

hi charles,

May I know how to do this "jstack on the stash server".

After downloading the Atlas sdk, I created the plugin and I tried to run with atlas-run. then its giving me the error meesage like I mentitioned in above.

I got struck here..

Can you help here please.

Regards

Anil

hi,

any suggestion please. Right now i'm alternately checking on other machine.

Any suggestion . pls..

Any suggestion . pls..

I'm a starter in this stash development. I struck with this error. Any sugestion to overcome this please.

Thigs I would try:

1.: Inspect the code for places where it could be
a) waiting for a resource which is not available or
b) stuck in an infinite loop.

2.: Set a breakpoint in the beginning of your plugin's constructor, start the server in debug mode using atlas-debug, attach the debugger and step through the code to see where it gets stuck.

Hi,

I'm not using Eclipse IDE / other. I think I cant do the debug properly.. like putting breakpoints..etc.,

I just installed SDK and created a plugin. i.e., Merge check plugin created. This plugin I'm not able to run.

I didn't add any sorce code. I just run the "atlas-run" there it is giving me error message like in which I shared the image.

And I addded some print statements inorder to know whether my created plugin is not responding or not, but its no where given the i client closole or somewhere.

Any suggestion please. If the created plugin works fine then only I can able to do my use cases.

Regards,

Anil

Hi,

If your plugin does not yet do anything, perhaps you could re-create it?
Also, unless you have a good reason not to, you should use an IDE (Even if you do not want to use debug/breakpoints, it makes your life easier).

Hi Balazs Szakmary , I tried to import the created project in eclipse but I failed. Within eclipse once I installed maven related software, and I have given path for apache and I created able to see & set the commandprompt tool. And from here i unable to import the atlassdk's project in my workspace of eclipse. Can you suggest me any link inorder to get the sdk's project in eclipse. Inorder to check for more as per one stash doc I changed the company name in POM.xml and it's getting effected in my stash server's addons. But when I added some print statements in pre repository hook's onResponse(){System.out.println("****")/ hookResponse.out.println("***") then nothing happening in client console or in command prompt editor...earlier It worked smoothly. If I add some wrong syntax or if I missed the import statement after hitting atlas run it shown earlier the compile time error.. but now it's not happenning.. It's showing "Live Enabled". With pluginEnabler problem like in that shared image initially. Regards, Anil
Hi Balazs Szakmary , I tried to import the created project in eclipse but I failed. Within eclipse once I installed maven related software, and I have given path for apache and I created able to see & set the commandprompt tool. And from here i unable to import the atlassdk's project in my workspace of eclipse. Can you suggest me any link inorder to get the sdk's project in eclipse. Inorder to check for more as per one stash doc I changed the company name in POM.xml and it's getting effected in my stash server's addons. But when I added some print statements in pre repository hook's onResponse(){System.out.println("****")/ hookResponse.out.println("***") then nothing happening in client console or in command prompt editor...earlier It worked smoothly. If I add some wrong syntax or if I missed the import statement after hitting atlas run it shown earlier the compile time error.. but now it's not happenning.. It's showing "Live Enabled". With pluginEnabler problem like in that shared image initially. Regards Anil

Sorry, I cannot help you with Eclipse, I use IDEA. There is a good description here: https://developer.atlassian.com/display/DOCS/Set+up+the+Atlassian+Plugin+SDK+and+Build+a+Project

Actually, Though the plugin giving me the error message. I manually uninstalled and installed the target plugin add-ons in stash server then it started working normally.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,758 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you