java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Short

GitHub | msdsoftware | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    IospHelper cast error, Integer to Short

    GitHub | 6 months ago | msdsoftware
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Short

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Integer cannot be cast to java.lang.Short

      at ucar.nc2.iosp.IospHelper.makePrimitiveArray()
    2. NetCDF
      Variable.read
      1. ucar.nc2.iosp.IospHelper.makePrimitiveArray(IospHelper.java:678)
      2. ucar.nc2.iosp.IospHelper.readDataFill(IospHelper.java:78)
      3. ucar.nc2.iosp.hdf4.H4iosp.readData(H4iosp.java:104)
      4. ucar.nc2.NetcdfFile.readData(NetcdfFile.java:2020)
      5. ucar.nc2.Variable.reallyRead(Variable.java:913)
      6. ucar.nc2.Variable._read(Variable.java:898)
      7. ucar.nc2.Variable.read(Variable.java:709)
      8. ucar.nc2.dataset.VariableDS.reallyRead(VariableDS.java:557)
      9. ucar.nc2.dataset.VariableDS._read(VariableDS.java:537)
      10. ucar.nc2.Variable.read(Variable.java:709)
      11. ucar.nc2.Variable.read(Variable.java:655)
      11 frames