[webservices] dataselect and duration

Bruce Weertman bruce at iris.washington.edu
Mon Jun 6 11:22:04 PDT 2011


Philip:

Thanks for the feedback and good suggestion.

I'll add this to the next release of ws-dataselect and ws-timeseries.

This should be done within the next couple of weeks.

Cheers,
-Bruce Weertman

On Jun 6, 2011, at 9:35 AM, Philip Crotwell wrote:

> Hi
>
>
> I am trying to get a new release out of seisFile (that includes client
> support for the station web service) and so was testing the other
> parts. I am now getting an error from the data select web service that
> I am pretty sure used to work. It appears that the duration being a
> float instead of an int is causing this as if I remove the ".0" it
> works. I can fix my client to only send ints, but it seems like the
> server should be able to accept a float duration.
>
> thanks,
> Philip
>
> http://www.iris.edu/ws/dataselect/query?net=IU&sta=BBSR&loc=00&cha=BHZ&start=2010-10-01T04:00:00&dur=120.0
> java.lang.IllegalArgumentException: bad duration string (network: IU
> station: BBSR location: 00 channel: BHZ quality: B starttime:
> 2010-10-01T04:00:00 duration: 120.0)
> 	at  
> edu 
> .iris 
> .dmc.dataselect.RequestParser.generateException(RequestParser.java: 
> 266)
> 	at edu.iris.dmc.dataselect.RequestParser.<init>(RequestParser.java: 
> 111)
> 	at  
> edu 
> .iris 
> .dmc 
> .dataselect.DataSelectServlet.serviceRequest(DataSelectServlet.java: 
> 137)
> 	at  
> edu 
> .iris.dmc.dataselect.DataSelectServlet.doGet(DataSelectServlet.java: 
> 85)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> 	at  
> org 
> .apache 
> .catalina 
> .core 
> .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
> 290)
> 	at  
> org 
> .apache 
> .catalina 
> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at  
> org 
> .apache 
> .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 
> 233)
> 	at  
> org 
> .apache 
> .catalina.core.StandardContextValve.invoke(StandardContextValve.java: 
> 191)
> 	at  
> org 
> .apache 
> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> 	at  
> org 
> .apache 
> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at  
> org 
> .apache 
> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 
> 109)
> 	at  
> org 
> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
> 293)
> 	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java: 
> 190)
> 	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java: 
> 291)
> 	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
> 	at  
> org 
> .apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 
> 698)
> 	at org.apache.jk.common.ChannelSocket 
> $SocketConnection.runIt(ChannelSocket.java:891)
> 	at org.apache.tomcat.util.threads.ThreadPool 
> $ControlRunnable.run(ThreadPool.java:690)
> 	at java.lang.Thread.run(Thread.java:662)
> _______________________________________________
> webservices mailing list
> webservices at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/webservices



More information about the webservices mailing list