[dhi-servers] network server error

Philip Crotwell crotwell at seis.sc.edu
Wed Jul 25 08:42:31 PDT 2007


OK, thanks.

Also, I am not getting any channels back from retrieve_for_station()  
on the _US-TA virtual network. No exception, just a zero length array  
returned.

Below is the sample code I am running, and the output. I think this  
worked in the past.

thanks,
Philip

// Pick a name server to get FISSURES servers.
         FissuresNamingService namingService = new  
FissuresNamingService(orb);
         namingService.setNameServiceCorbaLoc 
("corbaloc:iiop:dmc.iris.washington.edu:6371/NameService");
         NetworkDCOperations netDC = namingService.getNetworkDC("edu/ 
iris/dmc",
                                                                 
"IRIS_NetworkDC");
         NetworkFinder netFinder = netDC.a_finder();
         String networkCode = "_US-TA";
         NetworkAccess net = netFinder.retrieve_by_name(networkCode)[0];
         Station[] stations = net.retrieve_stations();
         logger.info("Network "+networkCode+" has "+stations.length+"  
stations");
         logger.info(stations[0].get_code()+", "+stations[0].name+"  
is located at "+stations[0].my_location.latitude+", "+stations 
[0].my_location.longitude);
         logger.info(StationIdUtil.toString(stations[0]));
         Channel[] chans = net.retrieve_for_station(stations[0].get_id 
());
         logger.info("Got "+chans.length+" channels");

INFO - Network _US-TA has 414 stations
INFO - PFO, Pinon Flats Observatory, CA, USA is located at 33.6117,  
-116.4594
INFO - AZ.19821001T00:00:00.000Z:PFO:1982274T000000.0000Z
INFO - Got 0 channels



On Jul 25, 2007, at 11:36 AM, Sue Schoch wrote:

> Yes, this was caused by the erroneous virtual network code.  I will  
> look at the code to see why it didn't throw a NetworkNotFound.
>
> Sue
>
> On Jul 25, 2007, at 11:30 AM, Philip Crotwell wrote:
>
>>
>> Hi
>>
>> I just got an UNKNOWN frmo the network server on get_attributes().  
>> You might want to look in your logs to see what caused it. I was  
>> looking at the _US-TA virtual network, but I think I sent 'US-TA'  
>> when the error happened.
>>
>> thanks,
>> Philip
>> _______________________________________________
>> dhi-servers mailing list
>> dhi-servers at iris.washington.edu
>> http://www.iris.washington.edu/mailman/listinfo/dhi-servers
>
> _______________________________________________
> dhi-servers mailing list
> dhi-servers at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/dhi-servers



More information about the dhi-servers mailing list