Loading the repositories list in the Administration panel fails with 500 Server Error
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
After upgrading Fisheye to 4.8.9, attempting to load repositories list in the administration panel results in a 500 Server Error.
Environment
Fisheye 4.8.9
Diagnosis
In addition to the 500 error, the application log reports the following error:
2022-04-12 11:00:37,455 ERROR [qtp123456789-32327 url: /cru/home, /cru/home.do, /WEB-INF/jsp/crucible/home/dashboard.jsp; user: test_user ] fisheye DefaultSCMModuleManager-getRepositories - problem getting repositories for SCMModule FileSystem [LightSCM]
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.RuntimeException: Error reading configuration: [B@409c4eb3
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) [atlassian-util-concurrent-3.0.0.jar:?]
... (truncated)
Caused by: java.lang.RuntimeException: Error reading configuration: [B@409c4eb3
at com.atlassian.fisheye.plugins.scm.utils.ConfigurableSCMModule.getConfiguration(ConfigurableSCMModule.java:59) [?:?]
... (truncated)
Caused by: com.thoughtworks.xstream.converters.ConversionException:
---- Debugging information ----
... (truncated)
Caused by: com.thoughtworks.xstream.security.ForbiddenClassException: com.atlassian.crucible.plugins.scm.filesystem.FileSystemRepositoryConfiguration
at com.thoughtworks.xstream.security.NoTypePermission.allows(NoTypePermission.java:26) [xstream-1.4.18.jar:1.4.18]
... (truncated)
The error in the logs indicates there is at least one repository configured via the legacy Light SCM plugin, which has been configured by following these steps:
Go to Administration > Repositories.
Click the Plugins tab.
Go to in Configure Plugin... under the FileSystem [LightSCM] tab.
Add a repository.
Enter anything for the Name and Base Path values.
Save.
Reload the repositories list in the Administration panel after following these steps will lead to this error.
Cause
This is a confirmed bug in 4.8.9 that was introduced by a recent upgrade of the XStream
library, and it will be fixed in 4.8.10
Solution
Open
FISHEYE_INST\var\plugins\config\com.atlassian.crucible.plugins.crucible-filesystem-scm-plugin_scmprovider.config
with a text editorClear out all the entries found in this file in order to remove all repositories configured via Light SCM. The only remaining lines in that file should be:
<list> </list>
Save the changes to the file
Restart the Fisheye service
Was this helpful?