Re: Unable to trace
On 5/9/2013 12:53 PM, RVic wrote:
Related to my previous post here, I have a simple piece of code in a servlet:
HttpServletRequest request = RequestData.getRequest();
HttpServletResponse response = RequestData.getResponse();
request.getRequestDispatcher("/something").forward(request, response);
The last line of which throws an error (below) which I am unable to trace further from this line in the stack. The error is :
javax.el.ELException: Cannot convert beta of type class java.lang.String to class com.cblnet.web.data.Env
and com.cblnet.web.data.Env is:
public enum Env {
local,
mirror,
production;
}
Just a guess: What happens if you change the Env enum to
public enum Env {
local,
mirror,
production,
beta; // this is the guess
}
? If somebody somewhere calls Env.valueOf("beta") they should get
an IllegalArgumentException (using the original Env), but perhaps
they're catching it and throwing an ElException instead.
--
Eric Sosman
esosman@comcast-dot-net.invalid