You are not logged in. Click here to log in.

codebeamer Application Lifecycle Management (ALM)

Search In Project

Search inClear

Tags:  not added yet



Word export fails on codeBeamer running in a Docker environment

Important: This is a quick, unverified solution that helped to resolve the issue in one of our test environments. Before applying it, users are responsible to verify that it is compatible to their environment.


Issue: After successful codeBeamer startup on Docker, 3 behaviors will be observed:


1) Word export will fail with "Export failed with unknown error, please check your logs". The interface will show:


2) The logs will print:

ERROR export.job.ExportJob - Error inside export application: Caused by: java.lang.IllegalStateException: Not a JSON Object: "<!DOCTYPE" [DocumentExportScheduler_Worker-1] [83] {Req#=export-job-ad0011a2-457b-4218-a9ee-86cad55a81d0, Sess#=export-job-ad0011a2-457b-4218-a9ee-86cad55a81d0, serverId=server}
com.intland.codebeamer.controller.importexport.export.mergefieldword.DocxMergeFieldExporter$ExportAppError: Error inside export application: Caused by: java.lang.IllegalStateException: Not a JSON Object: "<!DOCTYPE"
    at com.intland.codebeamer.controller.importexport.export.mergefieldword.DocxJvmExportManager.checkIfAnyExceptionOrError(DocxJvmExportManager.java:234) ~[cb.jar:?]

3) The warning message "Invalid API callback url is configured, check here" will be shown on codeBeamer's pages:


Workaround:

1) As a System Administrator, go to System Admin > Word Export Configuration

2) Get the IPV4 address of the server where the docker image is running.

3) In the Callback URL text box, replace the domain with the IP and remove the /cb part, for example: http://localhost:8080/cb ➡️ http://192.168.1.3:8080

4) (Important) Logout and login again into codeBeamer.


Solution: This is a known issue, the solution will appear in upcoming codeBeamer docker releases.