Bug 874983

Summary: Misleading error message when server returns 503 error
Product: [Retired] Zanata Reporter: Pravin Satpute <psatpute>
Component: Component-Maven, UsabilityAssignee: Patrick Huang <pahuang>
Status: CLOSED CURRENTRELEASE QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: dchen, pahuang, sflaniga, sshedmak, zanata-bugs
Target Milestone: ---Keywords: Reopened
Target Release: 3.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.2-SNAPSHOT (20131127-0039) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-18 06:46:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pravin Satpute 2012-11-09 09:15:42 UTC
Description of problem:
getting error while po file push

/usr/lib/jvm/java
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building null 0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- zanata-maven-plugin:1.7.4:push (default-cli) @ null ---
[INFO] Please report Zanata bugs here: https://bugzilla.redhat.com/enter_bug.cgi?format=guided&product=Zanata
[INFO] Loading project config from /NotBackedUp/svn/system-config-language/trunk/po/zanata.xml
[INFO] Loading user config from /home/psatpute/.config/zanata.ini
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.676s
[INFO] Finished at: Fri Nov 09 14:41:42 IST 2012
[INFO] Final Memory: 12M/100M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.zanata:zanata-maven-plugin:1.7.4:push (default-cli) on project null: Zanata mojo exception: Could not find JAXBContextFinder for media type: text/html;charset="iso-8859-1" -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException



Version-Release number of selected component (if applicable):
maven-3.0.4-14.fc17.noarch

How reproducible:
everytime

Steps to Reproduce:
1. trying to push po files for system-config-language
2. mvn zanata:push -Dzanata.pushType=both
3.
  
Actual results:
error

Expected results:
should work properly

Additional info:

Comment 1 sandeep shedmake 2012-11-09 09:55:52 UTC
The said error could be reproduced with zanata-maven-plugin version 1.7.5 .

Also, the error is similar to following RH bz:
Bug 805775 - confusing error: failed to upload glossary due to wrong an API key

Comment 2 Sean Flanigan 2012-11-11 23:49:49 UTC
Please run with the '-e' option and give us the stack trace.  Thanks.

$ mvn -e zanata:push -Dzanata.pushType=both

Comment 3 Pravin Satpute 2012-11-12 06:44:05 UTC
working with mentioned command. Thanks.

Comment 4 Sean Flanigan 2012-11-12 07:39:51 UTC
Actually -e just tells Maven to generate longer error messages, it wouldn't fix anything.   

I think this happened because the server was down, the Apache proxy returned 503, and the client produced an unhelpful error message.

Comment 5 Sean Flanigan 2012-11-20 06:10:36 UTC
I think we still need to improve the error handling in the case of a 503.

Comment 6 Patrick Huang 2013-11-13 04:42:42 UTC
https://github.com/zanata/zanata-client/pull/3

Comment 7 Sean Flanigan 2013-11-27 04:19:06 UTC
Should we mark this ON_QA now?

Comment 8 Ding-Yi Chen 2013-11-27 07:08:36 UTC
VERIFIED with Zanata version 3.2-SNAPSHOT (20131127-0039)
zanata-maven-plugin:3.1.2