Forums

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

Script Runner Http Post to splunk

Rowan Matulis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 30, 2017

Hi All,

I am following this article on version 5.8.10 of Confluence and also version 6.2 but am not able to get it working. I keep getting errors.

http://www.mos-eisley.dk/display/ATLASSIAN/Logging+PageEvents+to+Splunk

Current errors are below:

 

post2splunk.groovy

  • Script38.groovy:44 [Static type checking] - Cannot find matching method java.net.URLConnection#setRequestMethod(java.lang.String). Please check if the declared type is right and if the method exists. @ line 44, column 1.
  • Script38.groovy:71 [Static type checking] - Cannot find matching method java.net.URLConnection#getResponseCode(). Please check if the declared type is right and if the method exists. @ line 71, column 15.
  • Script38.groovy:72 [Static type checking] - Cannot find matching method java.net.URLConnection#getResponseMessage(). Please check if the declared type is right and if the method exists. @ line 72, column 16.

1 answer

0 votes
Normann P_ Nielsen _Netic_
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.
July 18, 2018

Hi,

The post should happend anyway (?) Its my script and all places in JIRA i get the:

  • Script1231.groovy:85 [Static type checking] - Cannot find matching method java.net.URLConnection#setRequestMethod(java.lang.String). Please check if the declared type is right and if the method exists. @ line 85, column 7.
  • Script1231.groovy:97 [Static type checking] - Cannot find matching method java.net.URLConnection#getResponseCode(). Please check if the declared type is right and if the method exists. @ line 97, column 126.
  • Script1231.groovy:97 [Static type checking] - Cannot find matching method java.net.URLConnection#getResponseMessage(). Please check if the declared type is right and if the method exists. @ line 97, column 179.
  • Script1231.groovy:101 [Static type checking] - Cannot find matching method java.net.URLConnection#getResponseCode(). Please check if the declared type is right and if the method exists. @ line 101, column 15.
  • Script1231.groovy:106 [Static type checking] - Cannot find matching method java.net.URLConnection#getResponseCode(). Please check if the declared type is right and if the method exists. @ line 106, column 128.
  • Script1231.groovy:106 [Static type checking] - Cannot find matching method java.net.URLConnection#getResponseMessage(). Please check if the declared type is right and if the method exists. @ line 106, column 181.
  • Script1231.groovy:110

But thing do work fine anyway

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events