[Thread Prev][Thread Next][Index]

Re: [las_users] problems of LAS in-situ demo



Mipuchun,

I'm guessing that this problem relates to the Java localization for the time libraries.  In other words, it's looking for a month name in the language of the default Locale for the host on which your LAS is running.  I should probably set the Locale to us_EN for those classes that depend on English names and offer a way to configure the localization in LAS in case you use different month names in your data, but it will take me a while to sort that all out and release new code.  In the meantime you can force the localization yourself by changing all the:

DateTimeFormat.forPattern("dd-MMM-yyyy").withZone(DateTimeZone.UTC);

calls to

DateTimeFormat.forPattern("dd-MMM-yyyy").withZone(DateTimeZone.UTC).withLocale(new Locale("us", "EN"));

I will add this to our bug database and try to address in a release soon.

Roland

to all of the
米浦春(MiPuchun) wrote:
Hi,
    I have installed LAS7/Armstrong and the demo data attached.The LAS in-situ demo could not work properly.I could select the variable of the dataset ,define the constraint,but failed at the last step.
    The fllowing error messages are copied from the catalina.out:

2007-11-07 06:31:43,489 INFO  service.database.DatabaseBackendService - Database backend request failed: Could not create SQL command file:
2007-11-07 06:31:43,493 DEBUG product.server.ProductServerRunner - Found error response.  Breaking out.
2007-11-07 06:31:43,495 DEBUG product.server.ProductServerRunner - ProductServerRunner finished.
2007-11-07 06:31:43,495 ERROR product.server.ProductServerAction - Could not create SQL command file:
2007-11-07 06:31:43,495 ERROR product.server.ProductServerAction - org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRegionAsConstraint' in  class gov.noaa.pmel.tmap.las.jdom.LASBackendRequest threw exception class org.joda.time.IllegalFieldValueException : Cannot parse "01-Jan-1977": Value "Jan" for monthOfYear is not supported
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246)

    I thought the time format was wrong.So I looked into the table--'Indian' of database--'LAS_insitu_demo'.Type of time field is int(11) .

Any help you can provide would be greatly appreciated.
Thanks,
Mipuchun

 






[Thread Prev][Thread Next][Index]


Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement