Editing or Adding a "Gradle" task spits out "An unexpected error has occurred. Internal Server Error"

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 occurred
Internal 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 997412kb
2016-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.

1 answer

1 accepted

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.

 

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 May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,819 views 0 6
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