Announcement Announcement Module
Collapse
No announcement yet.
strange logout-success-url trace error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • strange logout-success-url trace error

    Hi,
    It is not severe, and my logout-success-url works fine, BUT its little bit strange that when I activate trace mode for logging, following declaration seems to cause next exception.

    żDoes somebody knows why?

    Code:
    <logout logout-success-url="/app/comun/loggedout.jsp" ...
    TRACE org.springframework.beans.TypeConverterDelegate - Field [/app/comun/loggedout.jsp] isn't an enum value
    java.lang.NoSuchFieldException: /app/comun/loggedout.jsp
    at java.lang.Class.getField(Unknown Source) ~[na:1.6.0_23]
    at org.springframework.beans.TypeConverterDelegate.at temptToConvertStringToEnum(TypeConverterDelegate.j ava:290) [org.springframework.beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]


    etc...

  • #2
    it looks to be a &quot;normal&quot; trace

    Hi,

    In TypeConverterDelegate :

    Code:
    		if (convertedValue == currentConvertedValue) {
    			// Try field lookup as fallback: for JDK 1.5 enum or custom enum
    			// with values defined as static fields. Resulting value still needs
    			// to be checked, hence we don't return it right away.
    			try {
    				Field enumField = requiredType.getField(trimmedValue);
    				convertedValue = enumField.get(null);
    			}
    			catch (Throwable ex) {
    				if (logger.isTraceEnabled()) {
    					logger.trace("Field [" + convertedValue + "] isn't an enum value", ex);
    
    				}
    			}
    		}
    So it looks to be a "normal" trace if your "logout-success-url" is not an Enum.
    But i think it could be preferable not write the Stack in this case...

    Comment

    Working...
    X