[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFJava #KVU-414608]: Netcdf file wont open in 4.0...does in 2.2 okay th ough

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [netCDFJava #KVU-414608]: Netcdf file wont open in 4.0...does in 2.2 okay th ough
  • Date: Mon, 09 Feb 2009 12:30:35 -0700

Hi Tom,

> OK, I just tried this with the WebStart 4.0 version, and here's the
> Exception.  The file size on my disk is : 20,776,584 bytes.  Got me.
> Don't spend a lot of time on this one.....

The exception below sounds like a bug that Don saw and fixed last week. 
Basically, if none of the convention parsers recognized the dataset, we tried 
to use the last parser in our list which resulted in a null pointer exception. 
Now, the code should recognize that no convention parser was found and not call 
one.

So, it should work now. And, ToolsUI 4.0 Webstart works for me on my copy of 
your file (which is the same size). You might try clearing your webstart cache 
and reloading ToolsUI 4.0.

Ethan
 
> ERROR: Class ucar.nc2.dataset.conv.Nimbus Exception invoking isMine method
> java.lang.reflect.InvocationTargetException
> Feb 9, 2009 12:06:16 PM ucar.nc2.ui.ToolsUI openFile
> SEVERE: NetcdfDataset.open cant open C:/DATA_DRIVE/kris/test22.nc
> java.lang.NullPointerException
> at ucar.nc2.Variable.setDataType(Variable.java:1268)
> at ucar.nc2.dataset.VariableDS.<init>(VariableDS.java:88)
> at ucar.nc2.ncml.NcMLReader.readVariableNew(NcMLReader.java:915)
> at ucar.nc2.ncml.NcMLReader.readVariable(NcMLReader.java:788)
> at ucar.nc2.ncml.NcMLReader.readGroup(NcMLReader.java:720)
> at ucar.nc2.ncml.NcMLReader.readNetcdf(NcMLReader.java:443)
> at ucar.nc2.ncml.NcMLReader.wrapNcMLresource(NcMLReader.java:119)
> at 
> ucar.nc2.dataset.conv.NsslRadarMosaicConvention.augment2D(NsslRadarMosaicConvention.java:118)
> at 
> ucar.nc2.dataset.conv.NsslRadarMosaicConvention.augmentDataset(NsslRadarMosaicConvention.java:85)
> at 
> ucar.nc2.dataset.CoordSysBuilder.addCoordinateSystems(CoordSysBuilder.java:379)
> at ucar.nc2.dataset.NetcdfDataset.enhance(NetcdfDataset.java:411)
> at ucar.nc2.dataset.NetcdfDataset.<init>(NetcdfDataset.java:975)
> at ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:378)
> at ucar.nc2.dataset.NetcdfDataset.acquireDataset(NetcdfDataset.java:457)
> at ucar.nc2.dataset.NetcdfDataset.acquireDataset(NetcdfDataset.java:433)
> at ucar.nc2.ui.ToolsUI.openFile(ToolsUI.java:920)
> at ucar.nc2.ui.ToolsUI.access$3700(ToolsUI.java:102)
> at ucar.nc2.ui.ToolsUI$ViewerPanel.process(ToolsUI.java:2349)
> at ucar.nc2.ui.ToolsUI$OpPanel.doit(ToolsUI.java:1128)
> at ucar.nc2.ui.ToolsUI$OpPanel$1.actionPerformed(ToolsUI.java:1040)
> at javax.swing.JComboBox.fireActionEvent(Unknown Source)


Ticket Details
===================
Ticket ID: KVU-414608
Department: Support netCDF Java
Priority: Normal
Status: Open