Editing or Adding a "Gradle" task spits out "An unexpected error has occurred. Internal Server Error"
Asked by guy moore:

Last Friday I upgraded from Bamboo 5.9.7 to 5.12.2.1.

Today, a user and myself, cannot successfully edit an existing "Gradle" task nor add one.

Upon clicking "Save", in the browser pane I get:

```
An unexpected error has occurredInternal Server Error
```

In the Bamboo log file I get these 3 lines:

```
2016-07-05 10:50:49,383 INFO [http-nio-8085-exec-30] [AccessLogFilter] gmoore POST http://bamboo.hq.viviport.com:8085/build/admin/edit/createTask.action 997412kb2016-07-05 10:50:49,397 WARN [http-nio-8085-exec-30] [AuthorizationLoggerListener] Authorization failed: org.acegisecurity.AccessDeniedException: Access is denied; authenticated principal: org.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@9054b1a2: Username: anonymousUser; Password: [PROTECTED]; Authenticated: true; Details: org.acegisecurity.ui.WebAuthenticationDetails@1c07a: RemoteIpAddress: 192.169.0.163; SessionId: DAFF9B0ECFBA30A1A56004E36BD4A1F2; Granted Authorities: ROLE_ANONYMOUS; secure object: com.atlassian.bamboo.ww2.actions.build.admin.config.task.CreateTask@47880621; configuration attributes: [WW_EDIT, WW_NEWOBJECT, GLOBAL_READ]2016-07-05 10:50:49,399 WARN [http-nio-8085-exec-30] [BambooActionSupport] java.lang.IllegalStateException: HttpServletRequest not found
```

I can successfully edit an "Inject Bamboo variables" task, a "Source Code Checkout" task, a "Command" task , and a "File - Create ZIP" task.

I will continue to see what other Bamboo plan editing tasks I am prevented from doing.


Answers:
author: guy moore
body: I will be upgrading the "Groovy" plugin from 2.4.1 to 2.5.0 which I think could be the cause of my problem. Stay tuned....

Finished upgrading both my backup Bamboo server and Production.

The problem is resolved.

(Since connection to Atlassian Marketplace uses https and not http I had to add these arguments to the JVM_REQUIRED_ARGS flag:

-Dhttps.proxyHost=\<host ip address\> -Dhttps.proxyPort=\<port #\>

so that I can be notified of all the other plugins that are out of date, etc.

)

I also noticed the error message in my backup Bamboo server way longer, but had some lines it it that led me to this specific Groovy plugin:

```
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.upm.osgi.impl.Versions        at com.atlassian.upm.license.storage.lib.VersionChecker.isUpmVersionEqualToOrAfter(VersionChecker.java:66)        at com.atlassian.upm.license.storage.lib.VersionChecker.isUpm201OrLaterInstalled(VersionChecker.java:40)        at com.atlassian.upm.license.storage.lib.ThirdPartyPluginLicenseStorageManagerImpl.isUpmLicensingAware(ThirdPartyPluginLicenseStorageManagerImpl.java:187)        at com.atlassian.upm.license.storage.lib.ThirdPartyPluginLicenseStorageManagerImpl.execute(ThirdPartyPluginLicenseStorageManagerImpl.java:257)        at com.atlassian.upm.license.storage.lib.ThirdPartyPluginLicenseStorageManagerImpl.getLicense(ThirdPartyPluginLicenseStorageManagerImpl.java:75)        at org.swift.bamboo.groovy.LicenseUtilities.validateLicense(LicenseUtilities.java:39)        at org.swift.bamboo.groovy.LicenseUtilities.validateLicense(LicenseUtilities.java:69)        at org.swift.bamboo.groovy.BaseTaskConfigurator.validate(BaseTaskConfigurator.java:138)
```

Sorry for the trouble.