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.
Hi Mobi- > Full Name: Mobushir Khan > Email Address: address@hidden > Organization: ITC > Package Version: 2.5b1 build date:2008-03-11 07:05 UTC > Operating System: Windows XP > Hardware: Java: home: C:\Program Files\Java\jre1.6.0_03 version: 1.6.0_03 > j3d:1.3.2 fcs (build12) > Description of problem: Hi- > > I'm trying to load an HTML data source, but get the following error on "Add > Source": > > There was an error loading the data: > Error creating data source:file.text with: > http://www.itc.nl/personal/venus/IDV/n52/processing/nl/itc/cropspecificproductionlevels/MaximumAssimilationAlgorithm.html > java.lang.String cannot be cast to ucar.unidata.data.DerivedNeed > > Any ideas? For some reason, it's trying to use the URL in a derived quantity. I don't have this problem on my system, so I'm wondering if there is something defined in your derived.xml in the plugin that is causing this problem. Can you send me a copy of: C:\Documents and Settings\khan\.metapps\DefaultIdv\plugins\T%3A%5Cvenus%5Cformulas_0.2.jar and your local derived.xml in: C:\Documents and Settings\khan\.metapps\DefaultIdv/derived.xml Thanks. Don > ****************** > Stack trace: > java.lang.ClassCastException: java.lang.String cannot be cast to > ucar.unidata.data.DerivedNeed > at > ucar.unidata.data.DerivedDataDescriptor.initForSearch(DerivedDataDescriptor.java:572) > at > ucar.unidata.data.DerivedDataDescriptor.getDerivedDataChoicesInner(DerivedDataDescriptor.java:1166) > at > ucar.unidata.data.DerivedDataDescriptor.getDerivedDataChoices(DerivedDataDescriptor.java:1141) > at > ucar.unidata.idv.IntegratedDataViewer.getDerivedDataChoices(IntegratedDataViewer.java:1078) > at ucar.unidata.data.DataSourceImpl.getDataChoices(DataSourceImpl.java:1665) > at ucar.unidata.data.DataManager.createDataSource(DataManager.java:1335) > at > ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataViewer.java:1847) > at > ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1766) > at > ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1700) > at > ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java:1554) > at ucar.unidata.idv.DefaultIdv.handleAction(DefaultIdv.java:112) > at > ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java:1486) > at ucar.unidata.idv.chooser.UrlChooser.loadURLInner(UrlChooser.java:249) > at ucar.unidata.idv.chooser.UrlChooser.loadURL(UrlChooser.java:221) > at ucar.unidata.idv.chooser.UrlChooser.doLoadInThread(UrlChooser.java:268) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at ucar.unidata.util.Misc$2.run(Misc.java:990) > at ucar.unidata.util.Misc$3.run(Misc.java:1018) > > > Ticket Details =================== Ticket ID: GQR-803317 Department: Support IDV Priority: Normal Status: Open