Xml Push failure.

Description

I am currently operating Zanata on a local server. The version uses 4.5.5 and the following error occurred while pushing the translation file for 4.5.0 .

[INFO] Found source documents:
[INFO] l_AchievementEventMessageEn_vi-VN
[WARN] pushType set to 'Trans': existing translations on server may be overwritten/deleted
[?] This will overwrite existing TRANSLATIONS on the server.

Are you sure (y/n)? y
[ERROR] Operation failed: org.zanata.rest.dto.resource.TranslationsResource cannot be cast to org.zanata.rest.dto.resource.Resource

To retry from the last document, please set the following option(s):

--from-doc "l_AchievementEventMessageEn_vi-VN"

.
[ERROR] Execution failed:
java.lang.RuntimeException: org.zanata.rest.dto.resource.TranslationsResource cannot be cast to org.zanata.rest.dto.resource.Resource
at org.zanata.client.commands.push.PushCommand.pushCurrentModule(PushCommand.java:458)
at org.zanata.client.commands.push.PushCommand.run(PushCommand.java:221)
at org.zanata.client.commands.ConfigurableCommand.runWithActions(ConfigurableCommand.java:110)
at org.zanata.client.commands.ArgsUtil.runCommand(ArgsUtil.java:49)
at org.zanata.client.ZanataClient.processArgs(ZanataClient.java:182)
at org.zanata.client.ZanataClient.main(ZanataClient.java:103)
Caused by: java.lang.ClassCastException: org.zanata.rest.dto.resource.TranslationsResource cannot be cast to org.zanata.rest.dto.resource.Resource
at org.zanata.client.commands.push.XmlStrategy.loadSrcDoc(XmlStrategy.java:95)
at org.zanata.client.commands.push.PushCommand.pushCurrentModule(PushCommand.java:403)
... 5 more

Environment

None

Activity

Show:

Former user 29 July 2018 at 23:34

  • What is your Zanata server and Zanata client version?

  • Are you trying to push a xml file?

  • What command you used?

Details

Assignee

Reporter

Tested Version/s

Affects versions

Priority

More fields

Created 26 July 2018 at 09:21
Updated 29 July 2018 at 23:34

Flag notifications