Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

ScalarType name already used ?

Hi,

I'm developing an application that needs to display several times the
same data model, based on different imput files. This application
creates a new instance of a class, let's call it VisADViewer, for each
file. When the second instance of the class is created, the following
exception is thrown:

Visad.TypeException : ScalarType: name already used

This happens in this section of my code:
...
RealType xRT = new RealType("latitude", null, null);
RealType yRT = new RealType("longitude", null, null);
RealType zRT = new RealType("temperature", null, null);
...

I have nothing declared static... in my code. Did anybody ever
experience something like that ? Any idea to solve the problem ?
(My first thought is that something may be declared static in the visad
package...)

Thanks for any help,
Alex.



 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690