Uploaded image for project: 'Nuxeo Java Client'
  1. Nuxeo Java Client
  2. JAVACLIENT-99

Fix error reporting on some invalid reponses

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.2
    • Component/s: API

      Description

      See NXP-19716: a NullClientException error is produced on every rest call producing an error, see for instance https://qa.nuxeo.org/jenkins/job/master/job/FT-nuxeo-master-webdriver-cap-tomcat/80/testReport/junit/org.nuxeo.ftest.cap/ITUsersGroupsTest/testCreateSubGroupMember/

      Stacktrace
      
      org.nuxeo.client.internals.spi.NuxeoClientException: null
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at com.fasterxml.jackson.databind.introspect.AnnotatedConstructor.call1(AnnotatedConstructor.java:119)
      	at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromString(StdValueInstantiator.java:291)
      	at com.fasterxml.jackson.databind.deser.std.ThrowableDeserializer.deserializeFromObject(ThrowableDeserializer.java:111)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:133)
      	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3807)
      	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2797)
      	at org.nuxeo.client.api.marshaller.NuxeoConverterFactory.readJSON(NuxeoConverterFactory.java:100)
      	at org.nuxeo.client.api.objects.NuxeoEntity.getResponse(NuxeoEntity.java:145)
      	at org.nuxeo.client.api.objects.user.UserManager.createGroup(UserManager.java:57)
      	at org.nuxeo.functionaltests.RestHelper.createGroup(RestHelper.java:197)
      	at org.nuxeo.ftest.cap.ITUsersGroupsTest.before(ITUsersGroupsTest.java:79)
      
      Standard Output
      
      01:39:54,615 ERROR [AbstractTest] Test 'org.nuxeo.ftest.cap.ITUsersGroupsTest#testCreateSubGroupMember' failed
      Exception:
        status: 500
        code: org.nuxeo.ecm.webengine.WebException
        type: Error
        exception: Group already exists
      
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: