Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-574

NullPointerException in ConnInstanceDataBinder with Java 8

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 2.0.0-M1
    • Fix Version/s: 1.2.1, 2.0.0-M1
    • Component/s: common, core
    • Labels:
      None
    • Environment:
      jdk-8u25-windows-x64, Tomcat 7.0.56

      Description

      Not sure if this can be reproduced, but in my environment, when building Syncope core with Java 8, the ConnnectorTestITCase fails with a NullPointerException (see stack trace below).

      17:18:22.561 ERROR org.apache.syncope.core.rest.utils.RestServiceExceptionMapper - Exception thrown by REST method: null
      java.lang.NullPointerException
      	at org.apache.syncope.common.types.ConnConfProperty.compareTo(ConnConfProperty.java:67) ~[syncope-common-1.2.1-SNAPSHOT.jar:?]
      	at org.apache.syncope.common.types.ConnConfProperty.compareTo(ConnConfProperty.java:30) ~[syncope-common-1.2.1-SNAPSHOT.jar:?]
      	at java.util.HashMap.compareComparables(HashMap.java:371) ~[?:1.8.0_25]
      	at java.util.HashMap$TreeNode.treeify(HashMap.java:1920) ~[?:1.8.0_25]
      	at java.util.HashMap.treeifyBin(HashMap.java:771) ~[?:1.8.0_25]
      	at java.util.HashMap.putVal(HashMap.java:643) ~[?:1.8.0_25]
      	at java.util.HashMap.put(HashMap.java:611) ~[?:1.8.0_25]
      	at java.util.HashSet.add(HashSet.java:219) ~[?:1.8.0_25]
      	at org.apache.syncope.core.rest.data.ConnInstanceDataBinder.getConnInstanceTO(ConnInstanceDataBinder.java:225) ~[ConnInstanceDataBinder.class:?]
      	at org.apache.syncope.core.rest.controller.ConnectorController.list(ConnectorController.java:142) ~[ConnectorController.class:?]
      
      

        Attachments

          Activity

            People

            • Assignee:
              wimmelg Guido Wimmel
              Reporter:
              wimmelg Guido Wimmel
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: