[zanata-users] Client problems
Bryan Kearney
bkearney at redhat.com
Fri Jun 13 21:02:12 UTC 2014
I am trying to upload a new pot file to translate.zanata.org, and again,
the client is not working for me. I tried to upload pot files from the
webui.. but I get errors there too. Can someone point me at how to fix
any of hte clients below?
I am on fedora 20, I used the latest in the f20 repo and got
zanata-cli push -s . -t . -e
/usr/bin/build-classpath: Could not find zanata-rest-client Java
extension for this JVM
/usr/bin/build-classpath: Could not find zanata-cli Java extension for
this JVM
/usr/bin/build-classpath: error: Some specified jars were not found
so I upgraded to the latest from f21, and I get his error:
[bkearney at dhcp137-92 locale]$ zanata-cli push -s . -t . -e
/usr/bin/build-classpath: Could not find zanata-rest-client Java
extension for this JVM
/usr/bin/build-classpath: Could not find zanata-cli Java extension for
this JVM
/usr/bin/build-classpath: error: Some specified jars were not found
Exception in thread "main" java.lang.NoClassDefFoundError:
org/kohsuke/args4j/CmdLineException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
at java.lang.Class.getMethod0(Class.java:2774)
at java.lang.Class.getMethod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException:
org.kohsuke.args4j.CmdLineException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
In both cases, I am not sure why an rpm install does not bring in all
the requires pacakges.
Then, I switched to the latest zanata-client-ivy and I get this exception:
/home/bkearney/bin/zanata-cli push -s . -t . -e
zanata-cli-3.3.0-ivy-1: resolving dependencies with Ivy...
[INFO] Loading project config from zanata.xml
[INFO] Loading user config from /home/bkearney/.config/zanata.ini
[WARN] exception processing request
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at
sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:397)
at
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
at
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:397)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at
org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor.execute(ApacheHttpClient4Executor.java:201)
at
org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:41)
at
org.jboss.resteasy.plugins.interceptors.encoding.AcceptEncodingGZIPInterceptor.execute(AcceptEncodingGZIPInterceptor.java:40)
at
org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:47)
at
org.zanata.rest.client.TraceDebugInterceptor.execute(TraceDebugInterceptor.java:74)
at
org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:47)
at
org.zanata.rest.client.ApiKeyHeaderDecorator.execute(ApiKeyHeaderDecorator.java:41)
at
org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:47)
at org.jboss.resteasy.client.ClientRequest.execute(ClientRequest.java:440)
at
org.jboss.resteasy.client.ClientRequest.httpMethod(ClientRequest.java:671)
at
org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:110)
at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:88)
at com.sun.proxy.$Proxy38.get(Unknown Source)
at
org.zanata.rest.client.ZanataProxyFactory.<init>(ZanataProxyFactory.java:82)
at
org.zanata.client.commands.OptionsUtil.createRequestFactory(OptionsUtil.java:155)
at
org.zanata.client.commands.PushPullCommand.<init>(PushPullCommand.java:96)
at org.zanata.client.commands.push.PushCommand.<init>(PushCommand.java:86)
at
org.zanata.client.commands.push.PushOptionsImpl.initCommand(PushOptionsImpl.java:69)
at org.zanata.client.commands.ArgsUtil.runCommand(ArgsUtil.java:47)
at org.zanata.client.ZanataClient.processArgs(ZanataClient.java:168)
at org.zanata.client.ZanataClient.main(ZanataClient.java:93)
[ERROR] Execution failed: IOException
[ERROR] Use -e/--errors for full stack trace (or when reporting bugs)
More information about the zanata-users
mailing list