Description of problem: When pulling an XLIFF project, following error is shown: [ERROR] Failed to execute goal org.zanata:zanata-maven-plugin:1.4.4-SNAPSHOT:pull (default-cli) on project null: Zanata mojo exception: Error generating XLIFF file format: Underlying stream encoding 'ASCII' and input paramter for writeStartDocument() method 'utf-8' do not match. -> [Help 1] Version-Release number of selected component (if applicable): Server: Zanata version 1.4.5-SNAPSHOT (20111212-1307). Client: 1.4.4-SNAPSHOT How reproducible: Always Steps to Reproduce: 1. Push the project Spacewalk (git://git.fedorahosted.org/spacewalk.git) in to zanata 2. Pull the project using maven client with: mvn -B -e org.zanata:zanata-maven-plugin:push "-Dzanata.includes=**/StringResource_en_US.xml" -Dzanata.pushTrans Actual results: Failed with error Expected results: Pull successfully. Additional info:
Similar error when running standard tests on Windows machine. Fixed for test, may also prevent this error. See: https://github.com/zanata/zanata-common/commit/d7b8549bcbbbd934cb19abf2bfe98999ac4199f9
Tested with Zanata version 2.2-SNAPSHOT (20130215-1232) It failed on document java/code/src/com/redhat/rhn/frontend/strings/java/StringResource with following cause: [ERROR] Failed to execute goal org.zanata:zanata-maven-plugin:2.0.2-SNAPSHOT:push (default-cli) on project null: Zanata mojo exception: Failed while pushing document translations: [] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.zanata:zanata-maven-plugin:2.0.2-SNAPSHOT:push (default-cli) on project null: Zanata mojo exception at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Zanata mojo exception at org.zanata.maven.ConfigurableMojo.execute(ConfigurableMojo.java:133) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: java.lang.RuntimeException: Failed while pushing document translations: [] at org.zanata.client.commands.push.PushCommand.pushTargetDocToServer(PushCommand.java:576) at org.zanata.client.commands.push.PushCommand.access$100(PushCommand.java:52) at org.zanata.client.commands.push.PushCommand$1.visit(PushCommand.java:392) at org.zanata.client.commands.push.XliffStrategy.visitTranslationResources(XliffStrategy.java:86) at org.zanata.client.commands.push.PushCommand.pushCurrentModule(PushCommand.java:385) at org.zanata.client.commands.push.PushCommand.run(PushCommand.java:205) at org.zanata.maven.ConfigurableMojo.runCommand(ConfigurableMojo.java:158) at org.zanata.maven.AbstractPushPullMojo.runCommand(AbstractPushPullMojo.java:35) at org.zanata.maven.ConfigurableMojo.execute(ConfigurableMojo.java:129) ... 21 more
This is another example of async push not returning error messages to the client. Carlos, do we have a bug for that?
Yes, it's bug 903964.
Ding, could you please try this again, and check the server-side error log?
Seems this error has been fixed. VERIFIED with Zanata version 2.3-SNAPSHOT (20130304-0035) maven client 2.2.1-SNAPSHOT
Closing VERIFIED bugs for Zanata versions <= 3.1.