we have an application made with JSF 1.2. We use JBoss 4.2 and Apache.
The issue we are having appears randomly in the production enviroment.
We have in a JSP page an static link, similar to:
<a href="https://myhost/mypage.jsp?param=MYPARAM">link</a>
MYPARAM is encoded with BASE64.
In mypage.jsp file we do the next:
<body>
<% String param = request.getParameter("param");
String decoded = new BASE64Decoder().decodeBuffer(param));%>
...
Sometimes, the string param it's NULL so then it launches a NullPointerException.
As you can see it's something pretty simple.
Some ideas about what's going on here? I've been googling for days and I don't find a clue about what's going on...
We have the same issue in another part of our code where we do a:
FacesContext facescontext = FacesContext.getCurrentInstance();
facescontext.getExternalContext().redirect("/myservlet?param=TYPE");
The var TYPE it's missing sometimes, producing another NullPointerException in other parts of our code, when it never should be NULL.
Thanks.