Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #5400 (closed)

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

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

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)

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)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.81483 sec.)

We're Hiring!