Forums

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

Bitbucket server backup client fails with java.lang.ClassCastException when parsion 'version'

S S
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!
March 29, 2018

Hi there,

I tried to make a backup from my Bitbucket server with bitbucket-backup-client.

It failes with the response below:

 

2018-03-29 09:53:01,220 DEBUG        GET http://192.168.1.169:7990/mvc/maintenance:
------------
{"db-state":"AVAILABLE","scm-state":"AVAILABLE"}
------------
2018-03-29 09:53:01,229 DEBUG        Failed to parse JSON response from http://192.168.1.169:7990/mvc/maintenance. Response:
{"db-state":"AVAILABLE","scm-state":"AVAILABLE"}
2018-03-29 09:53:01,229 DEBUG        GET http://192.168.1.169:7990/rest/api/latest/application-properties:
------------
{"version":"4.8.5","buildNumber":"4008005","buildDate":"1471843790056","displayName":"Bitbucket"}
------------
2018-03-29 09:53:01,248 DEBUG        Failed to parse JSON response from http://192.168.1.169:7990/rest/api/latest/application-properties. Response:
{"version":"4.8.5","buildNumber":"4008005","buildDate":"1471843790056","displayName":"Bitbucket"}
2018-03-29 09:53:01,251 ERROR        A backup could not be created
java.lang.ClassCastException: [B (in module: java.base) cannot be cast to [C (in module: java.base)
        at groovy.json.internal.FastStringUtils.toCharArray(FastStringUtils.java:175)
        at groovy.json.internal.BaseJsonParser.parse(BaseJsonParser.java:103)
        ... 12 more frames available in the log file

 

 

I'm running bitbucket server 4.85 and bitbucket-bakcup-client 3.34

Thanks in advance

 

1 answer

0 votes
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 5, 2018

Hi @S S,

 

It could be that the Java version used to run the Backup client is Java 9.

 

If that's the case, can you try to use any version of Java 8 (for example 1.8.0_162) and see if that makes a difference?

 

Cheers,

Caterina - Atlassian 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events