Task #5400 (closed)
Bug: IConfig fails on missing properties
| Reported by: | jamoore | Owned by: | jamoore |
|---|---|---|---|
| Priority: | minor | Milestone: | OMERO-Beta4.3 |
| Component: | Services | Version: | n.a. |
| Keywords: | n.a. | Cc: | |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | 2011-06-02 (13) |
Description
Various error conditions can occur when a configuration property is unknown (see below)
Change History (5)
comment:1 Changed 8 years ago by jmoore
comment:2 Changed 8 years ago by jmoore
Caused by the changes in SqlAction:
Caused by: org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected 1, actual 0
at org.springframework.dao.support.DataAccessUtils.requiredSingleResult(DataAccessUtils.java:71)
at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:729)
at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:744)
at org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForObject(SimpleJdbcTemplate.java:143)
at ome.util.SqlAction$Impl.configValue(SqlAction.java:273)
comment:3 Changed 8 years ago by jmoore
- Status changed from new to accepted
comment:4 Changed 8 years ago by jmoore <josh@…>
- Remaining Time changed from 0.25 to 0
- Resolution set to fixed
- Status changed from accepted to closed
(In [d3ca3c64fa63909af5a90b8eac9e996a27e90db1/ome.git] on branch dev_4_1_custom) Fix unknown configuration handling (Fix #5400)
comment:5 Changed 8 years ago by jmoore <josh@…>
(In [fd4d8f28ba9e6fc7f47ac77dcd318d940cf13a87/ome.git] on branch develop) Fix unknown configuration handling (Fix #5400)
Caused by change in the exception thrown by Spring:
java.lang.IllegalArgumentException: Could not resolve placeholder 'omero.cluster.redirect' at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:153) at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:103) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.parseStringValue(PropertyPlaceholderConfigurer.java:371) at ome.system.PreferenceContext.getProperty(PreferenceContext.java:102) at ome.logic.ConfigImpl.getInternalValue(ConfigImpl.java:228) at ome.logic.ConfigImpl.setConfigValueIfEquals(ConfigImpl.java:285) at ome.services.blitz.redirect.ConfigRedirector$1.doWork(ConfigRedirector.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)