• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

cacheSeconds issues in Solaris OS

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

I am having Standalone JAVA application(1.6) with Spring 2.5.6 framework and using ReloadableResourceBundleMessageSource for reloading the messages at run time. The issue is when it comes to Windows 7, it is working perfectly. If I am putting the same application into SUN Solaris Box, messageSource bean itself not taking the property data.

Bean config working in Windows 7:


Above configuration is not at all loaded while putting into Solaris OS, so I made the changes like


and property contents loaded but it is of no use since data is cached for ever. Please find the log also:

Windows 7 log:
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [file: D:\workspace\propfile_en_IN] - neither plain properties nor XML
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [file: D:\workspace\propfile_en] - neither plain properties nor XML
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:544] Loading properties [propfile.properties]

Solaris log for error:

DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [/opt/propfile] - neither plain properties nor XML
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [/opt/propfile] - neither plain properties nor XML
ERROR [com.TestReload:424] Exception : No message found under code '0' for locale 'null'.
org.springframework.context.NoSuchMessageException: No message found under code '0' for locale 'null'.
at org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:136)
at java.lang.Thread.run(Thread.java:619)

Solaris log after setting cacheSeconds value to -1:

DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [file:/opt/propfile_en] - neither plain properties nor XML
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:544] Loading properties [rtgs.properties]


Please help me out to get rid of this issue.

Thanks in advance,

Pons.
 
reply
    Bookmark Topic Watch Topic
  • New Topic