Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-reviews-dev] Gerrit connector Exception stacktrace

I think I got it. The Java control panel does not really add the server certs to cacerts. I really had to import the certificate into the cacerts file using keytool. 

The exception is now gone, but there's a few new errors that pop up. Please see attached. Thanks again.

-----Original Message-----
From: Fadi Mehanna 
Sent: August-01-11 1:13 PM
To: 	
Subject: Re: [mylyn-reviews-dev] Gerrit connector Exception stacktrace


Hello Sacha,

I have imported and verified with the Java control panel that the certificate of that server is indeed in the trusted certificates category. I am assuming that the java control panel retrieves the certificates from my java keystore. However the same exception still occurs. Any clues ? thanks.

----------------------------------------------------------------------

Message: 1
Date: Mon, 1 Aug 2011 08:31:18 +0200
From: Sascha Scholz <sascha.scholz@xxxxxxxxx>
To: Mylyn Reviews Project <mylyn-reviews-dev@xxxxxxxxxxx>
Subject: Re: [mylyn-reviews-dev] Gerrit connector Exception stacktrace
Message-ID:
	<CAGzjTTkPO7VPOz49K3CodEuiLqFyDEgK1VTLteZhPJQn27Aw3w@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=windows-1252

Hi Fadi,

the certificate of the server you are trying to connect to isn't
trusted. You have to either get a certificate for the server that is
signed by a root authority or add your root or the server's
certificate to your java keystore. The latter can be achieved using
the 'keytool' command. See
http://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html
for some examples.

Sascha

On Fri, Jul 29, 2011 at 9:03 PM, Fadi Mehanna <fadi.mehanna@xxxxxxxxxxxx> wrote:
> Hello,
>
>
>
> Gerrit connector throws an exception when attempting to ?publish comments?
> to gerrit server. Here?s the following software I am using:
>
> - Eclipse Indigo 3.7
>
> - Eclipse IDE for C/C++ Developers? 1.4.0.20110615-0550
> epp.package.cpp??????? null
>
> - Mylyn Reviews Connector: Gerrit (Incubation)
> 0.9.0.I20110719-1531
> org.eclipse.mylyn.gerrit.feature.feature.group?????????? Eclipse Mylyn
>
> - Gerrit 2.1.8-SNAPSHOT-GerritForge-B194
>
>
>
> Please see attached exception log file. Please let me know if you need other
> information. Many thanks, Fadi
>
> _______________________________________________
> mylyn-reviews-dev mailing list
> mylyn-reviews-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/mylyn-reviews-dev
>
>


------------------------------

_______________________________________________
mylyn-reviews-dev mailing list
mylyn-reviews-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-reviews-dev


End of mylyn-reviews-dev Digest, Vol 17, Issue 1
************************************************
eclipse.buildId=I20110613-1736
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.cpp.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.cpp.product

Error
Mon Aug 01 14:18:43 EDT 2011
Operation Failed: Failed to obtain Gerrit configuration

org.eclipse.mylyn.internal.gerrit.core.client.GerritException: Failed to obtain Gerrit configuration
	at org.eclipse.mylyn.internal.gerrit.core.client.GerritClient.refreshConfig(GerritClient.java:514)
	at org.eclipse.mylyn.internal.gerrit.core.operations.RefreshConfigRequest.execute(RefreshConfigRequest.java:30)
	at org.eclipse.mylyn.internal.gerrit.core.operations.RefreshConfigRequest.execute(RefreshConfigRequest.java:1)
	at org.eclipse.mylyn.internal.gerrit.core.operations.GerritOperation.execute(GerritOperation.java:55)
	at org.eclipse.mylyn.internal.gerrit.core.operations.GerritOperation.run(GerritOperation.java:45)
	at org.eclipse.mylyn.internal.gerrit.ui.operations.GerritOperationDialog$1.run(GerritOperationDialog.java:102)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA
Framework arguments:  -product org.eclipse.epp.package.cpp.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.cpp.product

Error
Mon Aug 01 14:26:11 EDT 2011
Failed to deserialize configration: '{"gitweb":{"baseUrl":"gitweb","type":{"revision":"?p\u003d${project}.git;a\u003dcommit;h\u003d${commit}","project":"?p\u003d${project}.git;a\u003dsummary","branch":"?p\u003d${project}.git;a\u003dshortlog;h\u003d${branch}"}},"useContributorAgreements":false,"useContactInfo":false,"allowRegisterNewEmail":false,"authType":"TEAMFORGE","downloadSchemes":["DEFAULT_DOWNLOADS"],"sshdAddress":"*:29418","wildProject":{"name":"-- All Projects --"},"approvalTypes":{"approvalTypes":[{"category":{"categoryId":{"id":"VRIF"},"name":"Verified","abbreviatedName":"V","position":0,"functionName":"MaxWithBlock","copyMinScore":false},"values":[{"key":{"categoryId":{"id":"VRIF"},"value":-1},"name":"Fails"},{"key":{"categoryId":{"id":"VRIF"},"value":0},"name":"No score"},{"key":{"categoryId":{"id":"VRIF"},"value":1},"name":"Verified"}],"maxNegative":-1,"maxPositive":1},{"category":{"categoryId":{"id":"CRVW"},"name":"Code Review","abbreviatedName":"R","position":1,"functionName":"MaxWithBlock","copyMinScore":true},"values":[{"key":{"categoryId":{"id":"CRVW"},"value":-2},"name":"Do not submit"},{"key":{"categoryId":{"id":"CRVW"},"value":-1},"name":"I would prefer that you didn\u0027t submit this"},{"key":{"categoryId":{"id":"CRVW"},"value":0},"name":"No score"},{"key":{"categoryId":{"id":"CRVW"},"value":1},"name":"Looks good to me, but someone else must approve"},{"key":{"categoryId":{"id":"CRVW"},"value":2},"name":"Looks good to me, approved"}],"maxNegative":-2,"maxPositive":2}],"actionTypes":[{"category":{"categoryId":{"id":"FORG"},"name":"Forge Identity","position":-1,"functionName":"NoOp","copyMinScore":false},"values":[{"key":{"categoryId":{"id":"FORG"},"value":1},"name":"Forge Author Identity"},{"key":{"categoryId":{"id":"FORG"},"value":2},"name":"Forge Committer or Tagger Identity"},{"key":{"categoryId":{"id":"FORG"},"value":3},"name":"Forge Gerrit Code Review Server Identity"}],"maxNegative":-32768,"maxPositive":3},{"category":{"categoryId":{"id":"OWN"},"name":"Owner","position":-1,"functionName":"NoOp","copyMinScore":false},"values":[{"key":{"categoryId":{"id":"OWN"},"value":1},"name":"Administer All Settings"}],"maxNegative":-32768,"maxPositive":1},{"category":{"categoryId":{"id":"pHD"},"name":"Push Branch","position":-1,"functionName":"NoOp","copyMinScore":false},"values":[{"key":{"categoryId":{"id":"pHD"},"value":1},"name":"Update Branch"},{"key":{"categoryId":{"id":"pHD"},"value":2},"name":"Create Branch"},{"key":{"categoryId":{"id":"pHD"},"value":3},"name":"Force Push Branch; Delete Branch"}],"maxNegative":-32768,"maxPositive":3},{"category":{"categoryId":{"id":"pTAG"},"name":"Push Tag","position":-1,"functionName":"NoOp","copyMinScore":false},"values":[{"key":{"categoryId":{"id":"pTAG"},"value":1},"name":"Create Signed Tag"},{"key":{"categoryId":{"id":"pTAG"},"value":2},"name":"Create Annotated Tag"}],"maxNegative":-32768,"maxPositive":2},{"category":{"categoryId":{"id":"READ"},"name":"Read Access","position":-1,"functionName":"NoOp","copyMinScore":false},"values":[{"key":{"categoryId":{"id":"READ"},"value":-1},"name":"No access"},{"key":{"categoryId":{"id":"READ"},"value":1},"name":"Read access"},{"key":{"categoryId":{"id":"READ"},"value":2},"name":"Upload permission"},{"key":{"categoryId":{"id":"READ"},"value":3},"name":"Upload merges permission"}],"maxNegative":-1,"maxPositive":3},{"category":{"categoryId":{"id":"SUBM"},"name":"Submit","position":-1,"functionName":"Submit","copyMinScore":false},"values":[{"key":{"categoryId":{"id":"SUBM"},"value":1},"name":"Submit"}],"maxNegative":-32768,"maxPositive":1}]},"editableAccountFields":[],"commentLinks":[],"documentationAvailable":true}'

com.google.gson.JsonParseException: The JsonDeserializer EnumTypeAdapter failed to deserialized json object "TEAMFORGE" given the type class com.google.gerrit.reviewdb.AuthType
	at com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:63)
	at com.google.gson.JsonDeserializationVisitor.invokeCustomDeserializer(JsonDeserializationVisitor.java:88)
	at com.google.gson.JsonObjectDeserializationVisitor.visitFieldUsingCustomHandler(JsonObjectDeserializationVisitor.java:116)
	at com.google.gson.ObjectNavigator.navigateClassFields(ObjectNavigator.java:158)
	at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:131)
	at com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java:73)
	at com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:51)
	at com.google.gson.Gson.fromJson(Gson.java:568)
	at com.google.gson.Gson.fromJson(Gson.java:515)
	at com.google.gson.Gson.fromJson(Gson.java:484)
	at com.google.gson.Gson.fromJson(Gson.java:434)
	at com.google.gson.Gson.fromJson(Gson.java:406)
	at org.eclipse.mylyn.internal.gerrit.core.client.GerritClient.configFromString(GerritClient.java:126)
	at org.eclipse.mylyn.internal.gerrit.core.client.GerritClient.parseConfig(GerritClient.java:666)
	at org.eclipse.mylyn.internal.gerrit.core.client.GerritClient.refreshConfig(GerritClient.java:500)
	at org.eclipse.mylyn.internal.gerrit.core.operations.RefreshConfigRequest.execute(RefreshConfigRequest.java:30)
	at org.eclipse.mylyn.internal.gerrit.core.operations.RefreshConfigRequest.execute(RefreshConfigRequest.java:1)
	at org.eclipse.mylyn.internal.gerrit.core.operations.GerritOperation.execute(GerritOperation.java:55)
	at org.eclipse.mylyn.internal.gerrit.core.operations.GerritOperation.run(GerritOperation.java:45)
	at org.eclipse.mylyn.internal.gerrit.ui.operations.GerritOperationDialog$1.run(GerritOperationDialog.java:102)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.lang.IllegalArgumentException: No enum const class com.google.gerrit.reviewdb.AuthType.TEAMFORGE
	at java.lang.Enum.valueOf(Unknown Source)
	at com.google.gson.DefaultTypeAdapters$EnumTypeAdapter.deserialize(DefaultTypeAdapters.java:410)
	at com.google.gson.DefaultTypeAdapters$EnumTypeAdapter.deserialize(DefaultTypeAdapters.java:400)
	at com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:50)
	... 20 more

Back to the top