You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hi,
I want to implement a Webservice Client at one customer but I'm not able to use the @Grab command. At other customers it works but not for the special on.
My sample code is
@Grab('com.github.groovy-wslite:groovy-wslite:1.1.2')
import wslite.soap.*
def client = new SOAPClient('http://www.thomas-bayer.com/axis2/services/BLZService?wsdl')
def response = client.send(SOAPAction:'http://www.thomas-bayer.com/axis2/services/BLZService') {
body {
getBank(xmlns:'http://thomas-bayer.com/blz/') {
mkp.yieldUnescaped "<blz>66050101</blz>"
}
}
}
// result will be "Karlsruhe, Baden"
return response.getBankResponse.details.ort
The error is
The script could not be compiled: <pre>org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: General error during conversion: Error grabbing grapes -- /home/jira/.groovy/grapes/resolved-caller-all-caller-working33.xml (No such file or directory)
I found some documentation but I can manage it to work.
I also tried a custom plugin with resolved dependency in POM but I have no knowledge how to configure the plugin modules correctly and how to fetch with @WithPlugin and @PluginComponent
Can anybody help?
Berst regards
Christof
Just a guess here but does the customer's jira instance have proper outbound connectivity to the internet?
There could be some networking issues preventing groovy from accessing the package repository
Maybe. But how do I know what is wrong in the connectivity?
At the moment I don't blame it on the connectivity but on the missing user home directory. It seems that @Grab tries to create .groovy directory in users home but there is no user home depending on the OS distribution system
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Christof Hurst _kreuzwerker_ ,
did you manage to use wslite in your Scriptrunenr script and if so how did you go about it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, for this installation it didn't work. I developed my own small request method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.