Remote debug with Intellij IDEA 14.1.2, Jira 6.3.x, Java 7 and Groovy 2.4.3?

Hi!

Well I worked all through the ScriptRunner docs. But those appears rather outdated. Well I've tried to try out a little script:

import com.atlassian.jira.ComponentManager

import com.atlassian.jira.project.ProjectManager

ProjectManager manager = ComponentManager.getInstance().getProjectManager()
return "There are ${manager.getProjects().size()}"

And tried to remotly excecute it. But the only result I've got so far is:

 

"C:\Program Files\Java\jdk1.7.0_25\bin\java" "-Dtools.jar=C:\Program Files\Java\jdk1.7.0_25\lib\tools.jar" -Dgroovy.home=D:\jiradevel\groovy-2.4.3 -Dgroovy.starter.conf=D:\jiradevel\groovy-2.4.3\conf\groovy-starter.conf -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:51150,suspend=y,server=n -javaagent:C:\Users\xn09303\.IdeaIC14\system\groovyHotSwap\gragent.jar -classpath "D:\jiradevel\idea\IntelliJ IDEA Community Edition 14.1.2\lib\idea_rt.jar;D:\jiradevel\idea\IntelliJ IDEA Community Edition 14.1.2\lib\util.jar" -Dfile.encoding=UTF-8 com.intellij.rt.execution.CommandLineWrapper C:\Users\xn09303\AppData\Local\Temp\classpath3.tmp org.codehaus.groovy.tools.GroovyStarter --conf D:\jiradevel\groovy-2.4.3\conf\groovy-starter.conf --main groovy.ui.GroovyMain --classpath .;C:\Users\xn09303\IdeaProjects\TryoutScriptRunner\out\production\TryoutScriptRunner;D:\jiradevel\groovy-2.4.3\lib\ant-1.9.4.jar;D:\jiradevel\groovy-2.4.3\lib\ant-antlr-1.9.4.jar;D:\jiradevel\groovy-2.4.3\lib\ant-junit-1.9.4.jar;D:\jiradevel\groovy-2.4.3\lib\ant-launcher-1.9.4.jar;D:\jiradevel\groovy-2.4.3\lib\bsf-2.4.0.jar;D:\jiradevel\groovy-2.4.3\lib\commons-cli-1.2.jar;D:\jiradevel\groovy-2.4.3\lib\commons-logging-1.2.jar;D:\jiradevel\groovy-2.4.3\lib\gpars-1.2.1.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-ant-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-bsf-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-console-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-docgenerator-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-groovydoc-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-groovysh-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-jmx-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-json-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-jsr223-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-nio-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-servlet-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-sql-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-swing-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-templates-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-test-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-testng-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\groovy-xml-2.4.3.jar;D:\jiradevel\groovy-2.4.3\lib\hamcrest-core-1.3.jar;D:\jiradevel\groovy-2.4.3\lib\ivy-2.4.0.jar;D:\jiradevel\groovy-2.4.3\lib\jansi-1.11.jar;D:\jiradevel\groovy-2.4.3\lib\jcommander-1.47.jar;D:\jiradevel\groovy-2.4.3\lib\jline-2.12.jar;D:\jiradevel\groovy-2.4.3\lib\jsp-api-2.0.jar;D:\jiradevel\groovy-2.4.3\lib\jsr166y-1.7.0.jar;D:\jiradevel\groovy-2.4.3\lib\junit-4.12.jar;D:\jiradevel\groovy-2.4.3\lib\multiverse-core-0.7.0.jar;D:\jiradevel\groovy-2.4.3\lib\openbeans-1.0.jar;D:\jiradevel\groovy-2.4.3\lib\qdox-1.12.1.jar;D:\jiradevel\groovy-2.4.3\lib\servlet-api-2.4.jar;D:\jiradevel\groovy-2.4.3\lib\testng-6.8.13.jar;D:\jiradevel\groovy-2.4.3\lib\xmlpull-1.1.3.1.jar;D:\jiradevel\groovy-2.4.3\lib\xstream-1.4.7.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\classes;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\csv-20.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\bsf-2.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jdom-1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\bsh-1.2b7.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\dom4j-1.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\oro-2.0.7.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\glue-5.0b2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\mail-1.4.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\xmlrpc-2.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\fugue-2.1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jsoup-1.3.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jzlib-1.0.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\rhino-1.7R4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\xalan-2.7.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jmxutils-1.8.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\quartz-1.8.6.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\wsdl4j-1.6.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\xmlsec-1.4.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\axis-saaj-1.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\ehcache-2.7.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jcommon-1.0.8.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\joda-time-2.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\xstream-1.3.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\beehive-db-0.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-io-1.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\datafile-1.3.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jai-core-1.1.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jai_core-1.1.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\wstx-asl-3.2.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\aopalliance-1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\axis-jaxrpc-1.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\beehive-api-0.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\filters-2.0.235.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jai_codec-1.1.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jira-api-6.3.15.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\nekohtml-1.9.19.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\propertyset-1.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\sal-api-2.10.20.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\sal-spi-2.10.20.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\xml-apis-1.3.04.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\activation-1.1.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-ip-3.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\beehive-core-0.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-dbcp-1.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-jexl-1.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-lang-2.6.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\osworkflow-2.8.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\spring-web-2.0.6.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\xercesImpl-2.9.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\xfire-core-1.2.6.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\xpp3-1.1.3.4-RC8.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\cglib-nodep-2.1_3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-codec-1.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-jelly-1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-lang3-3.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jfreechart-1.0.13.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jtidy-r8-20050104.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\xfire-aegis-1.2.6.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\analytics-api-3.53.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\applinks-api-4.2.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\applinks-spi-4.2.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-pool-1.5.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\modz-detector-0.12.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\velocity-tools-1.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\antlr-runtime-3.5.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\applinks-host-4.2.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\bcprov-jdk15on-1.50.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\entityengine-1.0.60.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\quartz-oracle-1.8.6.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-mail-2.5.6.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\axis-1.3-atlassian-1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jcaptcha-2.0-alpha-1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jcip-annotations-1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\picocontainer-2.14.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-config-0.15.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-core-4.6.17.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-event-2.3.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-logging-1.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-discovery-0.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\package-scanner-0.9.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\spring-tx-2.5.6.SEC01.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-extras-2.2.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-json-api-0.9.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-seraph-2.6.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-spring-2.0.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-velocity-1.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-compress-1.8.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-digester-1.4.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jackson-core-asl-1.9.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\lucene-analyzers-3.3.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\urlrewritefilter-4.0.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-johnson-1.1.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-profiling-1.9.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\beehive-single-node-0.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-beanutils-1.6.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-jrcs-diff-0.1.7.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-validator-1.4.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\sanselan-0.97-incubator.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\spring-core-2.5.6.SEC01.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-bandana-0.1.13.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-renderer-8.0.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-httpclient-3.0.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jackson-mapper-asl-1.9.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jcaptcha-api-2.0-alpha-1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\oscore-2.2.7-atlassian-1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\spring-beans-2.5.6.SEC01.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\webwork-1.4-atlassian-30.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\activeobjects-spi-0.23.12.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-cache-api-2.4.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-gzipfilter-1.21.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-localhost-1.1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-oauth-api-1.9.8.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-threadlocal-1.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\bndlib-1.43.0-atlassian-1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-collections-3.2.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-configuration-1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\entityengine-share-1.0.60.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\guava-11.0.2-atlassian-02.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\sitemesh-2.5-atlassian-10.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-annotations-0.14.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-html-encoder-1.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-secure-xml-3.2.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\auiplugin-spi-5.6.7-jira-1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-dbcp-jmx-jdbc4-0.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-jelly-tags-log-1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-jelly-tags-sql-1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jira-attachment-dmz-6.3.15.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\spring-context-2.5.6.SEC01.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\velocity-1.6.4-atlassian-5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\velocity-htmlsafe-1.2.1-m2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-gadgets-api-3.5.7.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-gadgets-spi-3.5.7.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-jdk-utilities-0.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-scheduler-api-1.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-tenancy-api-1.4.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\blobstore-client-api-1.0.26.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\botocss-core-4.4-spudbean-2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-jelly-tags-http-1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-jelly-tags-soap-1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-cache-memory-2.4.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-cookie-tools-3.2.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-plugins-core-3.2.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-plugins-osgi-3.2.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-scheduler-core-1.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-secure-utils-3.2.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-jelly-tags-email-1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-api-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-cache-ehcache-2.4.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-secure-random-3.2.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-jelly-tags-regexp-1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\commons-jelly-tags-util-1.1.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-core-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-ldap-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jira-screenshot-applet-6.3.15.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\jstyleparser-1.16-atlassian-1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\lucene-core-3.3.0-atlassian-1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\pell-multipart-request-1.31.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\radeox-1.0b2-forked-22Apr2004.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-image-consumer-1.0.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-p4package-2007.12.14.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-plugins-schema-3.2.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\spring-ldap-core-1.3.1.RELEASE.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-plugins-servlet-3.2.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-scheduler-quartz1-1.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-util-concurrent-2.6.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-events-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-remote-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\lucene-extras-3.3.0-atlassian-3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\soy-template-renderer-api-2.7.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-password-encoder-3.2.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\guava-bridge-11.0.2-atlassian-02.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\org.apache.felix.framework-3.0.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-cache-common-impl-2.4.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-trusted-apps-core-3.0.8.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-plugin-point-safety-0.10.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\spring-security-core-3.1.0.RELEASE.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-plugins-osgi-events-3.2.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-plugins-webfragment-3.0.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-plugins-webresource-3.1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-server-api-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-instrumentation-core-1.8.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-persistence-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\spring-context-support-3.2.5.RELEASE.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\spring-security-crypto-3.1.0.RELEASE.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-plugins-eventlistener-3.2.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\embedded-crowd-api-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\embedded-crowd-spi-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-server-common-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\embedded-crowd-core-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-plugins-webfragment-api-3.0.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-plugins-webresource-api-3.1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-flushable-gzipoutputstream-1.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-integration-api-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-plugins-webresource-common-3.2.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-password-encoders-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-integration-seraph25-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\atlassian-trusted-apps-seraph-integration-3.0.8.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-integration-client-rest-2.8.0-OD-6-JIRA-05.jar;D:\jira\atlassian-jira-6.3.15-standalone\atlassian-jira\WEB-INF\lib\crowd-integration-client-common-2.8.0-OD-6-JIRA-05.jar;D:\jira\jirahome\plugins\installed-plugins\plugin_3728647830481104545_scriptrunner-jira-3.0.14.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\el-api.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\jasper.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\ecj-4.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\jsp-api.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\catalina.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\jasper-el.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\jotm-1.4.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\jta-1.0.1B.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\jtds-1.3.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\tomcat-api.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\carol-1.5.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\catalina-ha.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\ots-jts-1.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\servlet-api.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\tomcat-dbcp.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\tomcat-jdbc.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\tomcat-util.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\catalina-ant.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\log4j-1.2.16.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\xapool-1.3.1.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\tomcat-coyote.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\websocket-api.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\hsqldb-1.8.0.5.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\tomcat-i18n-es.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\tomcat-i18n-fr.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\tomcat-i18n-ja.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\annotations-api.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\catalina-tribes.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\slf4j-api-1.6.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\jonas_timer-1.4.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\ojdbc6-11.2.0.2.0.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\tomcat7-websocket.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\jul-to-slf4j-1.6.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\slf4j-log4j12-1.6.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\jcl-over-slf4j-1.6.4.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\jotm-iiop_stubs-1.4.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\jotm-jrmp_stubs-1.4.3.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\carol-properties-1.5.2.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\postgresql-9.0-801.jdbc4.jar;D:\jira\atlassian-jira-6.3.15-standalone\lib\objectweb-datasource-1.4.3.jar --encoding=windows-1252 c:\Users\xn09303\IdeaProjects\TryoutScriptRunner\src\LittleScript.groovy
Connected to the target VM, address: '127.0.0.1:51150', transport: 'socket'
Caught: java.lang.NullPointerException
java.lang.NullPointerException
    at com.atlassian.jira.ComponentManager.getProjectManager(ComponentManager.java:1113)
Disconnected from the target VM, address: '127.0.0.1:51150', transport: 'socket'
    at com.atlassian.jira.ComponentManager$getProjectManager$0.call(Unknown Source)
    at LittleScript.run(LittleScript.groovy:11)
    at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:130)
Process finished with exit code 1

I am quite sure that i left out something important, but what is it? Is there any better (newer) documentation out there?

 

Greetings, Ulf

1 answer

0 vote

You need to set up a Remote debug configuration... that much is in the doc, pretty sure of that.

Well, I've already did that. I start debugging with these VM ARGS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 And jira is started with set JDPA_TRANSPORT=dt_socket set JDPA_ADDRESS=8000 catalina.bat jdpa start Then I've seen, that just the start command wpuld be enough. The JDPA_TRANSPORT and JDPA_ADDRESS will be set by the catalina.bat script.

right, so create and debug remote debug target, with address = 8000

Well, found it. Had been in the wrong debug catagory of IDEA. Now I can the Groocy-Script remotly debug.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

175 views 0 4
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