java.lang.NullPointerException: null

JFrog JIRA | Arturo Aparicio | 3 months ago
  1. 0

    Deploying a GEM with a non-numeric character in the version will produce a server error when calculating the metadata. These non-numeric values should be supported: http://guides.rubygems.org/patterns/#prerelease-gems For example, if an artifact with the name *some-valid-gem-0.1.1.beta32.gem* is uploaded, it will cause the meta-data calculation to fail with this error: h3. Error in artifactory.log {noformat} java.lang.NullPointerException: null at org.codehaus.mojo.versions.ordering.NumericVersionComparator.compare(NumericVersionComparator.java:48) ~[versions-maven-plugin-1.3.1.jar:na] at org.artifactory.addon.gems.index.merge.NvpComparator.compare(NvpComparator.java:30) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.index.merge.NvpComparator.compare(NvpComparator.java:1) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.index.merge.DoubleIterator$Merge.computeNext(DoubleIterator.java:47) ~[artifactory-addon-gems-4.11.1.jar:na] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:na] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:na] at com.google.common.collect.Iterators$7.computeNext(Iterators.java:650) ~[guava-18.0.jar:na] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:na] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:na] at org.artifactory.addon.gems.helpers.UpdateIndexHelper$LatestVersionIterator.computeNext(UpdateIndexHelper.java:196) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.helpers.UpdateIndexHelper$LatestVersionIterator.computeNext(UpdateIndexHelper.java:1) ~[artifactory-addon-gems-4.11.1.jar:na] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:na] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:na] at org.artifactory.addon.gems.index.merge.DoubleIterator$Delete.computeNext(DoubleIterator.java:64) ~[artifactory-addon-gems-4.11.1.jar:na] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:na] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:na] at org.artifactory.addon.gems.helpers.UpdateIndexHelper.calcEstimatedSize(UpdateIndexHelper.java:163) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.helpers.UpdateIndexHelper.updateAndSave(UpdateIndexHelper.java:120) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.index.GemsLocalIndexHandler.doUpdateIndex(GemsLocalIndexHandler.java:192) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.index.GemsLocalIndexHandler.updateIndex(GemsLocalIndexHandler.java:141) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.index.GemsLocalIndexHandler$UpdateIndicesJob.onExecute(GemsLocalIndexHandler.java:260) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:52) ~[artifactory-storage-common-4.11.1.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-2.2.1.jar:na] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:104) [artifactory-storage-common-4.11.1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_91] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_91] 2016-08-26 01:28:28,203 [art-exec-4] [ERROR] (o.q.c.ErrorLogger :2425) - Job (artifactory.UpdateIndicesJob#ab1373e1-ac14-45e8-a2c5-d6eb0d7319bc threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. at org.quartz.core.JobRunShell.run(JobRunShell.java:213) ~[quartz-2.2.1.jar:na] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:104) [artifactory-storage-common-4.11.1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_91] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_91] Caused by: java.lang.NullPointerException: null at org.codehaus.mojo.versions.ordering.NumericVersionComparator.compare(NumericVersionComparator.java:48) ~[versions-maven-plugin-1.3.1.jar:na] at org.artifactory.addon.gems.index.merge.NvpComparator.compare(NvpComparator.java:30) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.index.merge.NvpComparator.compare(NvpComparator.java:1) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.index.merge.DoubleIterator$Merge.computeNext(DoubleIterator.java:47) ~[artifactory-addon-gems-4.11.1.jar:na] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:na] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:na] at com.google.common.collect.Iterators$7.computeNext(Iterators.java:650) ~[guava-18.0.jar:na] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:na] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:na] at org.artifactory.addon.gems.helpers.UpdateIndexHelper$LatestVersionIterator.computeNext(UpdateIndexHelper.java:196) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.helpers.UpdateIndexHelper$LatestVersionIterator.computeNext(UpdateIndexHelper.java:1) ~[artifactory-addon-gems-4.11.1.jar:na] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:na] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:na] at org.artifactory.addon.gems.index.merge.DoubleIterator$Delete.computeNext(DoubleIterator.java:64) ~[artifactory-addon-gems-4.11.1.jar:na] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:na] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:na] at org.artifactory.addon.gems.helpers.UpdateIndexHelper.calcEstimatedSize(UpdateIndexHelper.java:163) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.helpers.UpdateIndexHelper.updateAndSave(UpdateIndexHelper.java:120) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.index.GemsLocalIndexHandler.doUpdateIndex(GemsLocalIndexHandler.java:192) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.index.GemsLocalIndexHandler.updateIndex(GemsLocalIndexHandler.java:141) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.addon.gems.index.GemsLocalIndexHandler$UpdateIndicesJob.onExecute(GemsLocalIndexHandler.java:260) ~[artifactory-addon-gems-4.11.1.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:52) ~[artifactory-storage-common-4.11.1.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-2.2.1.jar:na] ... 4 common frames omitted {noformat} h3. To Reproduce 1. Create a gems repository 2. Upload a gem with a name like this: pacojp-skutil-0.0.8.beta12.gem For example (Gem Attached): curl -XPUT -u admin:password http://192.168.99.100:8081/artifactory/gems-local/gems/pacojp-skutil-0.0.8.beta12.gem --upload-file pacojp-skutil-0.0.8.gem

    JFrog JIRA | 3 months ago | Arturo Aparicio
    java.lang.NullPointerException: null
  2. 0

    HQL Exception (org.hibernate.dialect.Dialect$3)

    Stack Overflow | 4 years ago | Hari
    java.lang.NullPointerException: null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Error loading model properties in JPA on play 2.0.3

    Stack Overflow | 4 years ago | Chappies
    java.lang.NullPointerException: null
  5. 0

    Why lift can't find my "db.properties"

    Stack Overflow | 5 years ago | Freewind
    java.lang.NullPointerException: null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at org.codehaus.mojo.versions.ordering.NumericVersionComparator.compare()
    2. Versions Maven Plugin
      NumericVersionComparator.compare
      1. org.codehaus.mojo.versions.ordering.NumericVersionComparator.compare(NumericVersionComparator.java:48)[versions-maven-plugin-1.3.1.jar:na]
      1 frame
    3. org.artifactory.addon
      DoubleIterator$Merge.computeNext
      1. org.artifactory.addon.gems.index.merge.NvpComparator.compare(NvpComparator.java:30)[artifactory-addon-gems-4.11.1.jar:na]
      2. org.artifactory.addon.gems.index.merge.NvpComparator.compare(NvpComparator.java:1)[artifactory-addon-gems-4.11.1.jar:na]
      3. org.artifactory.addon.gems.index.merge.DoubleIterator$Merge.computeNext(DoubleIterator.java:47)[artifactory-addon-gems-4.11.1.jar:na]
      3 frames
    4. Guava
      AbstractIterator.hasNext
      1. com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)[guava-18.0.jar:na]
      2. com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)[guava-18.0.jar:na]
      3. com.google.common.collect.Iterators$7.computeNext(Iterators.java:650)[guava-18.0.jar:na]
      4. com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)[guava-18.0.jar:na]
      5. com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)[guava-18.0.jar:na]
      5 frames
    5. org.artifactory.addon
      UpdateIndexHelper$LatestVersionIterator.computeNext
      1. org.artifactory.addon.gems.helpers.UpdateIndexHelper$LatestVersionIterator.computeNext(UpdateIndexHelper.java:196)[artifactory-addon-gems-4.11.1.jar:na]
      2. org.artifactory.addon.gems.helpers.UpdateIndexHelper$LatestVersionIterator.computeNext(UpdateIndexHelper.java:1)[artifactory-addon-gems-4.11.1.jar:na]
      2 frames
    6. Guava
      AbstractIterator.hasNext
      1. com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)[guava-18.0.jar:na]
      2. com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)[guava-18.0.jar:na]
      2 frames
    7. org.artifactory.addon
      DoubleIterator$Delete.computeNext
      1. org.artifactory.addon.gems.index.merge.DoubleIterator$Delete.computeNext(DoubleIterator.java:64)[artifactory-addon-gems-4.11.1.jar:na]
      1 frame
    8. Guava
      AbstractIterator.hasNext
      1. com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)[guava-18.0.jar:na]
      2. com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)[guava-18.0.jar:na]
      2 frames
    9. org.artifactory.addon
      GemsLocalIndexHandler$UpdateIndicesJob.onExecute
      1. org.artifactory.addon.gems.helpers.UpdateIndexHelper.calcEstimatedSize(UpdateIndexHelper.java:163)[artifactory-addon-gems-4.11.1.jar:na]
      2. org.artifactory.addon.gems.helpers.UpdateIndexHelper.updateAndSave(UpdateIndexHelper.java:120)[artifactory-addon-gems-4.11.1.jar:na]
      3. org.artifactory.addon.gems.index.GemsLocalIndexHandler.doUpdateIndex(GemsLocalIndexHandler.java:192)[artifactory-addon-gems-4.11.1.jar:na]
      4. org.artifactory.addon.gems.index.GemsLocalIndexHandler.updateIndex(GemsLocalIndexHandler.java:141)[artifactory-addon-gems-4.11.1.jar:na]
      5. org.artifactory.addon.gems.index.GemsLocalIndexHandler$UpdateIndicesJob.onExecute(GemsLocalIndexHandler.java:260)[artifactory-addon-gems-4.11.1.jar:na]
      5 frames
    10. org.artifactory.schedule
      QuartzCommand.execute
      1. org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:52)[artifactory-storage-common-4.11.1.jar:na]
      1 frame
    11. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)[quartz-2.2.1.jar:na]
      1 frame
    12. org.artifactory.schedule
      ArtifactoryConcurrentExecutor$RunnableWrapper.run
      1. org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:104)[artifactory-storage-common-4.11.1.jar:na]
      1 frame
    13. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_91]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_91]
      3. java.lang.Thread.run(Thread.java:745)[na:1.8.0_91]
      3 frames