Bug 1355948

Summary: [abrt] zanata-client-3.8.4-1.fc24: Uncaught exception java.lang.NoClassDefFoundError in method org.zanata.client.ZanataClient.processArgs()
Product: [Fedora] Fedora Reporter: Petr Lautrbach <plautrba>
Component: zanata-clientAssignee: Patrick Huang <pahuang>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: dchen, jberan, jean-baptiste, pahuang, sflaniga
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/9b2551d437bf7f78a35cbbe065d3ed111570fb3a
Whiteboard: abrt_hash:b753ccddce90c399e0cd6bf4ccddd0788a44b836;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-06 01:31:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1352091    
Bug Blocks:    
Attachments:
Description Flags
File: backtrace
none
File: environ
none
File: jvm_environment none

Description Petr Lautrbach 2016-07-13 06:36:35 UTC
Description of problem:
I ran

$ zanata-cli init
...
     ======= Available version(s) for project [selinux (policycoreutils)] ======
    1)    master
    2)    rhel6
    3)    rhel7
[?] Please select a version (index number): 1
[!] If you want to customize your project's translatable language list, do so now on the following web page. Continue once it is done.
    - Go to your project-version homepage to view details and change advanced options: https://fedora.zanata.org/iteration/view/selinux/master
[?] Do you want to continue (y/n)? y
[>] Now working with "gettext" project "selinux" on version "master".

Exception in thread "main" java.lang.NoClassDefFoundError: org/zanata/rest/service/CopyTransResource
 ...

Version-Release number of selected component:
zanata-client-3.8.4-1.fc24

Additional info:
reporter:       libreport-2.7.1
abrt-java-connector: 1.0.10
cmdline:        /etc/alternatives/jre_1.8.0/bin/java -agentpath:/usr/lib/abrt-java-connector/libabrt-java-connector.so=abrt=on -classpath /usr/share/java/zanata-client/stub-server.jar:/usr/share/java/zanata-client/zanata-cli.jar:/usr/share/java/zanata-client/zanata-client-commands.jar:/usr/share/java/zanata-client/zanata-rest-client.jar:/usr/share/java/slf4j/log4j12.jar:/usr/share/java/opencsv.jar:/usr/share/java/apache-commons-lang3.jar:/usr/share/java/maven/maven-artifact.jar:/usr/share/java/findbugs-annotations.jar:/usr/share/java/classmate.jar:/usr/share/java/jersey1/jersey-core-1.19.jar:/usr/share/java/log4j-1.2.17.jar:/usr/share/java/xalan-j2.jar:/usr/share/java/xerces-j2.jar:/usr/share/java/xalan-j2-serializer.jar:/usr/share/java/slf4j/slf4j-api.jar:/usr/share/java/jaxb-api.jar:/usr/share/java/apache-commons-lang.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/slf4j/jcl-over-slf4j.jar:/usr/share/java/antlr.jar:/usr/share/java/jersey1/jersey-client-1.19.jar:/usr/share/java/enunciate-core-annotations/enunciate-core-annotations.jar:/usr/share/java/bea-stax-api.jar:/usr/share/java/commons-codec.jar:/usr/share/java/zanata-api/zanata-common-api.jar:/usr/share/java/jsr-311.jar:/usr/share/java/jsr-305.jar:/usr/share/java/xom/xom.jar:/usr/share/java/commons-io.jar:/usr/share/java/apache-commons-beanutils.jar:/usr/share/java/jackson/jackson-mapper-asl.jar:/usr/share/java/bean-validation-api.jar:/usr/share/java/mimepull/mimepull.jar:/usr/share/java/apache-commons-collections.jar:/usr/share/java/jackson/jackson-jaxrs.jar:/usr/share/java/jgettext/jgettext.jar:/usr/share/java/guava.jar:/usr/share/java/jboss-logging/jboss-logging.jar:/usr/share/java/jersey1/jersey-multipart-1.19.jar:/usr/share/java/jackson/jackson-xc.jar:/usr/share/java/zanata-common/zanata-common-util.jar:/usr/share/java/zanata-common/zanata-adapter-po.jar:/usr/share/java/jackson/jackson-core-asl.jar:/usr/share/java/jaxen.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.77-1.b03.fc24.i386/lib/tools.jar:/usr/share/java/hibernate-validator/hibernate-validator.jar:/usr/ [B1][C8]*N
executable:     /usr/share/java/zanata-client/zanata-cli.jar
java_executable: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.92-3.b14.fc24.x86_64/jre/bin/java
kernel:         4.6.3-300.fc24.x86_64
pid:            16966
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
reproducible:   Not sure how to reproduce the problem
runlevel:       N 5
uid:            13558

Truncated backtrace:
#1 java.lang.ClassNotFoundException: org.zanata.rest.service.CopyTransResource
#2 	at java.net.URLClassLoader.findClass(URLClassLoader.java:381) [file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.92-3.b14.fc24.x86_64/jre/lib/rt.jar]
#3 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.92-3.b14.fc24.x86_64/jre/lib/rt.jar]
#4 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) [file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.92-3.b14.fc24.x86_64/jre/lib/rt.jar]
#5 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.92-3.b14.fc24.x86_64/jre/lib/rt.jar]
#6 	at java.lang.ClassLoader.defineClass1(Native Method) [file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.92-3.b14.fc24.x86_64/jre/lib/rt.jar]
#7 	at java.lang.ClassLoader.defineClass(ClassLoader.java:763) [file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.92-3.b14.fc24.x86_64/jre/lib/rt.jar]
#8 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.92-3.b14.fc24.x86_64/jre/lib/rt.jar]
#9 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) [file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.92-3.b14.fc24.x86_64/jre/lib/rt.jar]
#10 	at java.net.URLClassLoader.access$100(URLClassLoader.java:73) [file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.92-3.b14.fc24.x86_64/jre/lib/rt.jar]

Potential duplicate: bug 1350743

Comment 1 Petr Lautrbach 2016-07-13 06:36:41 UTC
Created attachment 1179066 [details]
File: backtrace

Comment 2 Petr Lautrbach 2016-07-13 06:36:43 UTC
Created attachment 1179067 [details]
File: environ

Comment 3 Petr Lautrbach 2016-07-13 06:36:44 UTC
Created attachment 1179068 [details]
File: jvm_environment

Comment 4 Ding-Yi Chen 2016-07-13 08:06:24 UTC
It is currently in an interesting condition;

It is dependencies (i.e zanata-api and zanata-common) are all update to 3.9.1.
However, this bring in new dependency: enunciate, which is currently under package review


https://bugzilla.redhat.com/show_bug.cgi?id=1352091

Comment 5 jibecfed 2016-07-15 18:25:04 UTC
*** Bug 1357103 has been marked as a duplicate of this bug. ***

Comment 6 jibecfed 2016-07-15 18:34:00 UTC
hi there, I assume this bug is close to be fixed.

But why do we have the whole server as a dependency for zanata-client ?

Here is what I had to install only to have the client http://paste.fedoraproject.org/391557/7571146/

Comment 7 Patrick Huang 2016-07-18 07:08:26 UTC
(In reply to jibecfed from comment #6)
> hi there, I assume this bug is close to be fixed.
> 
> But why do we have the whole server as a dependency for zanata-client ?
> 
> Here is what I had to install only to have the client
> http://paste.fedoraproject.org/391557/7571146/

This is because some java packages are not packaged in a modular way. In this particular case, resteasy (the rpm) package declares its entire dependencies. Even though what we really need is just a subset of resteasy (resteasy-client module in maven sense). We filed a bug to resteasy package a few years ago but no response yet. Unlike maven or any other java package manager, rpm won't allow us to selectively pick dependencies. If you want to use a smaller sized and also more up-to-date version of zanata-client, please use 0install and install zanata-client from there. 
http://zanata-client.readthedocs.io/en/latest/installation/linux-installation/

Comment 8 Ding-Yi Chen 2016-07-18 07:26:30 UTC
*** Bug 1350743 has been marked as a duplicate of this bug. ***

Comment 9 Fedora Update System 2016-07-18 07:44:45 UTC
zanata-client-3.9.1-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c12d709142

Comment 10 Fedora Update System 2016-07-18 22:25:41 UTC
zanata-client-3.9.1-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-c12d709142

Comment 11 Fedora Update System 2016-07-27 18:54:45 UTC
zanata-client-3.9.1-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.