•  
      request #8403 enalean/tuleap-aio: cannot access with eclipse tulip mylyn connector
    Infos
    #8403
    Benedikt Heinen (beh)
    2016-09-15 17:15
    2015-09-06 22:59
    8521
    Details
    enalean/tuleap-aio: cannot access with eclipse tulip mylyn connector
    I've set up a docker instance of the enalean/tuleap-aio. The setup worked fine and I was able to use via the web browser.
    But, when I try and access the same tuleap instance using eclipse's tuleap-mylyn connector, I'm getting an exception - not entirely sure whether the problem is on tuleap's side or on eclipse's. Though - it looks like the response eclipse is getting back from tuleap, that is the problem:


    java.lang.reflect.InvocationTargetException
    at org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage$29.run(AbstractRepositorySettingsPage.java:2051)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
    Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 11
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
    at com.google.gson.Gson.fromJson(Gson.java:803)
    at com.google.gson.Gson.fromJson(Gson.java:768)
    at com.google.gson.Gson.fromJson(Gson.java:717)
    at com.google.gson.Gson.fromJson(Gson.java:689)
    at org.tuleap.mylyn.task.core.internal.client.rest.RestOperation.checkServerError(RestOperation.java:343)
    at org.tuleap.mylyn.task.core.internal.client.rest.RestOperation.checkedRun(RestOperation.java:319)
    at org.tuleap.mylyn.task.core.internal.client.rest.TuleapRestClient.login(TuleapRestClient.java:209)
    at org.tuleap.mylyn.task.core.internal.client.rest.TuleapRestClient.validateConnection(TuleapRestClient.java:136)
    at org.tuleap.mylyn.task.ui.internal.repository.TuleapValidator.validate(TuleapValidator.java:84)
    at org.tuleap.mylyn.task.ui.internal.repository.TuleapRepositorySettingsPage$TuleapRepositoryValidator.run(TuleapRepositorySettingsPage.java:194)
    at org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage$29.run(AbstractRepositorySettingsPage.java:2041)
    ... 1 more
    Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 11
    at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:374)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:165)
    ... 14 more
    Root exception:
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 11
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
    at com.google.gson.Gson.fromJson(Gson.java:803)
    at com.google.gson.Gson.fromJson(Gson.java:768)
    at com.google.gson.Gson.fromJson(Gson.java:717)
    at com.google.gson.Gson.fromJson(Gson.java:689)
    at org.tuleap.mylyn.task.core.internal.client.rest.RestOperation.checkServerError(RestOperation.java:343)
    at org.tuleap.mylyn.task.core.internal.client.rest.RestOperation.checkedRun(RestOperation.java:319)
    at org.tuleap.mylyn.task.core.internal.client.rest.TuleapRestClient.login(TuleapRestClient.java:209)
    at org.tuleap.mylyn.task.core.internal.client.rest.TuleapRestClient.validateConnection(TuleapRestClient.java:136)
    at org.tuleap.mylyn.task.ui.internal.repository.TuleapValidator.validate(TuleapValidator.java:84)
    at org.tuleap.mylyn.task.ui.internal.repository.TuleapRepositorySettingsPage$TuleapRepositoryValidator.run(TuleapRepositorySettingsPage.java:194)
    at org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage$29.run(AbstractRepositorySettingsPage.java:2041)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
    Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 11
    at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:374)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:165)
    ... 14 more
    Mylyn
    Empty
    CentOS 6
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2016-09-15
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    Using http:// doesn't work with the current version of the connector. The server url has to be https. so I will close this one for now.

    • Status changed from Acknowledged to Closed
    • Reported in version cleared values: 8.5
    • Close date set to 2016-09-15
    User avatar
    Benedikt Heinen (beh)2015-09-07 19:20
    A proxy wouldn't help much if the connection is https...

    But - in this case, it wasn't; and so in wireshark I saw that the response
    is that connections have to be https. (i.e. changing the hostname to
    https://hostname fixed it)...

    Suggest improving the error message / or adapting the tuleap connector to
    automatically use https...






    On Mon, 7 Sep 2015, Tuleap wrote:

    [citation removed]
    User avatar
    Is it possible for you to inject a proxy between Eclipse and Tuleap so that we can see if there are some errors in the responses?

    Best regards,
    Nicolas Terray

    • Status changed from New to Acknowledged