Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the problme with this script runner plugin it is not getting downlaoded?

Nagmani Nagmani
Contributor
January 19, 2012

I tried to downloal the SCRIPT RUNNER plugin from my jira application and through net also but i amunable to downlaod this plugin.

I amgetting this message "Script Runner" cannot be installed by the UPM. Visit the plugin homepage to read the installation instructions:

please help

Nagmani

3 answers

1 accepted

2 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2012

Guess what! It can't be installed by UPM. Visit the plugin homepage: https://studio.plugins.atlassian.com/wiki/display/GRV/Script+Runner#ScriptRunner-Installation to read the installation instructions.

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2012

And you gave the plugin a downvote too... brilliant.

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2012

One reason why there should be an option to challenge the down votes on the plugin exchange!

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2012

Well you can report as inappropriate... I did that, we'll see if they remove it.

Nagmani Nagmani
Contributor
January 22, 2012

I have gone through the link you have mentioned above..but still I have a problem and that is the script runner plugin is in zip format and you mentioned that .jar format (groovy-runner.N.jar) of groovy runner need to be downloaded and placed in WEB-INF/lib .so how do i do that as .zip format is available not the .jar format.

I kept the zipped format in the same folder (as .jar was not available in your link) but it is not working.

Need your help.

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2012

You must be using Internet Explorer and not a proper browser? If so just rename it back to .jar.

Nagmani Nagmani
Contributor
January 22, 2012

Thanks a lot jamie..It was because of IE..Gr8 help..:)

Nagmani Nagmani
Contributor
January 22, 2012

I have gone through the the installation guide and installed whatever is required for following code to run on JIRA but Still I am not finding the correct way to use this code as I didn't get any additional post function under workflow. Can you help me with this code which you have posted against an answer to creation of automatic pages in confluence for any issue in jira under the same project....This is the code you have mentioned

package examples

import org.swift.common.soap.confluence.ConfluenceSoapServiceServiceLocator

def locator = new ConfluenceSoapServiceServiceLocator()
def service = locator.getConfluenceserviceV2(new URL("http://confluence.acme.com"))
def token = service.login("admin", "password")
def page = service.getPage(token, "MYSPACE", issue.summary)
page.content = issue.description
service.updatePage(token, page)
 
I am very  new to JIRA and confluence so don't have much idea of how to implement this code....
 
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2012

I'm afraid I don't have time to walk you through it unless you're willing to self-help. As I said in the other thread, it sounds like you are better-off waiting for a non-progamming solution.

Nagmani Nagmani
Contributor
January 23, 2012

I have resolved the above issue as such..Thanks for your help and this plugin is really of great work..

Now I am facing one problem that is whenvever I run the baove code in jira with all modifications required I get following error..

"javax.script.ScriptException: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages"

I have changed the url to the one of confluence of my srever still the problem exists..

any suggestions from your side.

Nagmani Nagmani
Contributor
January 23, 2012

I have resolved the above issue as such..Thanks for your help and this plugin is really of great work..

Now I am facing one problem that is whenvever I run the above code in jira with all modifications required I get following error..

"javax.script.ScriptException: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages"

I have changed the url to the one of confluence of my srever still the problem exists..

any suggestions from your side.

Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2012

Hi ,

Are you able to see any output when you simply return some value, like inserting a code return true in the area provided for your script by selecting the groovy radio button. ?

just to check whether you did this step properly.

Download Groovy. Copy <GroovyDistro>/embeddable/groovy-all-n.n.n.jar to WEB-INF/lib. Groovy 1.7.10 recommended.

Nagmani Nagmani
Contributor
January 23, 2012

yes I have tested this script post function for a sample code returning a value and it worked properly but for the code of my interest(which I have posted) its showing above error...

Thanks for your concern

Nagmani Nagmani
Contributor
January 23, 2012

Jamie,

Sorry about the downvote,I shall revise the voting shortly. I tried implementing the code but encountered 404 error on script runner while accessing the URL defined on

def service = locator.getConfluenceserviceV2(new URL("http://localhost:8090/confluence/rpc/soap-axis/confluenceservice-v1"))

I have confluence on my local system & it is on same port. I access it thru URL http://localhost:8090. Is there anything I need to enable on confluence to expose soap-axis? I have enables remote API access already.

Your help is very much appreciated.

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2012

You probably need to remove the /confluence if you've installed it yourself.

Double check you can browse to http://localhost:8090/rpc/soap-axis/confluenceservice-v1?wsdl

and then try http://localhost:8090/confluence/rpc/soap-axis/confluenceservice-v1?wsdl

Use whichever works, remove the ?wsdl.

If that works check that jira is not using a proxy server, ie you have not set one up in your setenv.sh. Also try using the FQDN of your host instead of localhost.

0 votes
Nagmani Nagmani
Contributor
January 23, 2012

I think the problem is in the line

def token = service.login("admin", "password");
as I have debugged above lines individually and the message: "javax.script.ScriptException: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages"
comes after returning token value after this code.


Please Help out to get any feasible solution.

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2012

This works for me:

import org.swift.common.soap.confluence.ConfluenceSoapServiceServiceLocator

def locator = new ConfluenceSoapServiceServiceLocator()
def service = locator.getConfluenceserviceV2(new URL("http://localhost:8090/confluence/rpc/soap-axis/confluenceservice-v1"))
def token = service.login("admin", "admin")

def page = new RemotePage (
        content: issue.description,
        creator: "admin",
        title: issue.summary,
        space: "DS",
        homePage: false,
        created: Calendar.getInstance(),
        modifier: "admin",
        version: 1,
        modified: Calendar.getInstance(),
)

service.storePage(token, page)

Could of problems I had was that I had a system proxy set so localhost didn't work. And make sure you copy the jar from Bob's plugin I mentioned: confluence-soap-4.0.0.jar

I never got the error you got.

Now, could you: a) remove your downvote from my plugin and b) if you have further problems create a new thread or return to the other thread you created when I put my sample code.

Nagmani Nagmani
Contributor
January 23, 2012

Thanks jamie..and sorry for the down vote..I couldnot find the way to remove it...But that will be done soon.

And I think this code could work..Still the problem exists.

could you please contact me on my email id nagmanisinha1988@gmail.com or skype name nagmani_sinha because I really need your help as I am new to Groovy.

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2012

I don't want to leave you hanging, but I'm not going to be doing that unless I'm getting paid, and I'm not taking paid work right now. You need to start a new thread and actually include the error you are getting, and answer the questions in my comment above. I'm asking you questions so that you can help me help you.

Nagmani Nagmani
Contributor
January 24, 2012

Thanks again Jamie,

I have posted the question in new thread and need your help https://answers.atlassian.com/questions/31213/problem-creating-remote-pages-in-confluence-usin-jira-both-on-my-local-server

Please go through this and see if you could help...

Nagmani Nagmani
Contributor
January 24, 2012

I would look forward for your in that link..And I have removed the downvote too..That was just a mistake..

0 votes
Nagmani Nagmani
Contributor
January 23, 2012

I have resolved the above issue as such..Thanks for your help and this plugin is really of great work..

Now I am facing one problem that is whenvever I run the above code in jira with all modifications required I get following error..

"javax.script.ScriptException: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages"

I have changed the url to the one of confluence of my srever still the problem exists..

any suggestions from your side.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events