There is no information you have provided which is of any help with this problem and nor is the link you have provided at all helpful.
I have noticed this problem with non PF JSF Apps (pure JSF in fact) using View Scoped so this problem is most likely to be a Mojarra problem rather than a PF one.
The "problem" seems to be harmless enough and you may be able to avoid it by either stopping this from being logged (because the Log entries are blocking your log files needlessly) or simply have Session Scoped Bean which you call at least once to establish a Session. Either way I have not found that this Exception causes my App to become broken.
This also happens with Request Scoped beans (where nothing requires a Session Scope) too.
I am using the same GF version as you but no PF or any other JSF Framework.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules
read them now
As I said, the problem is gone simply switching from view to session scoped controller. What it's happening to me is that the page is partially rendered when the exception is thrown. After retrying, reloading the page, etc, eventually the page is fully rendered.
I suspect the problem could be a invocation to a bean from javascript but to be honest, I am not fully sure. This Javascript function calls a google visualization servlet but I don't understand why this problem could be linked to the JSF view/session scoped bean.
Code: Select all
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1', {'packages':['annotatedtimeline']});
google.setOnLoadCallback(init);
// Send the query to the data source.
function init(parid, start, stop, clk) {
var id = parid;
var start = start;
var stop = stop;
var click = clk;
// Specify the data source URL.
var query = new google.visualization.Query('http://host:8080/graphicservice'.concat('?id=', id,'&start=', start,'&stop=', stop,'&but=', click));
query.send(handleQueryResponse);
function handleQueryResponse(response) {
if (response.isError()) {
alert('Error in query. Try a lower time-range: ' + response.getMessage() + ' ' + response.getDetailedMessage());
return;
// Draw the visualization.
var data = response.getDataTable();
var chart = new google.visualization.AnnotatedTimeLine(document.getElementById('chart_div'));
chart.draw(data, {displayAnnotations: true});
</script>
Code: Select all
<p:commandButton id="bt" value="Plot" onclick="init('${bean.parameterId}', '${bean.selectedStartDate}', '${bean.selectedStopDate}', 'true')"/>