Index: java/org/apache/el/lang/ELSupport.java =================================================================== --- java/org/apache/el/lang/ELSupport.java (revision 1634236) +++ java/org/apache/el/lang/ELSupport.java (working copy) @@ -465,12 +465,24 @@ if (obj == null) return null; if (obj instanceof String) { - if ("".equals(obj)) - return null; PropertyEditor editor = PropertyEditorManager.findEditor(type); - if (editor != null) { - editor.setAsText((String) obj); - return editor.getValue(); + if (editor == null) { + if ("".equals(obj)) { + return null; + } + throw new ELException(MessageFactory.get("error.convert", obj, + obj.getClass(), type)); + } else { + try { + editor.setAsText((String) obj); + return editor.getValue(); + } catch (RuntimeException e) { + if ("".equals(obj)) { + return null; + } + throw new ELException(MessageFactory.get("error.convert", + obj, obj.getClass(), type), e); + } } }