Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8674657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:45:42+00:00 2026-06-12T19:45:42+00:00

I have a JSF page that displays a table from an object called TableQuery

  • 0

I have a JSF page that displays a table from an object called TableQuery that supports stateful pagination, sorting, etc. The bean that accesses the object is a RequestScoped object, and it attempts to preserve the TableQuery by storing it the flash map. The accessor method looks like this:

public TableQuery<SysLog> getQuery() {
    if (query != null) return query;
    Flash flash = FacesContext.getCurrentInstance().
            getExternalContext().getFlash();
    query = (TableQuery) flash.get("Query");
    if (query != null) System.out.println("TableSysLog.getQuery() Got query from flash!");
    if (query == null) {
        query = slc.getNewTableQuery();
        System.out.println("TableSysLog.getQuery() Created new query");
    }
    flash.put("Query", query);
    return query; }

The Links to go between pages are implemented with p:commandLInks. I use Primefaces command link in AJAX mode so just the link gets processed when it is clicked. The action listener looks like this:

public void doNextPage(ActionEvent evt) {
    getQuery().doNextPage();
}

When it doesn’t work I get the error message:

WARNING: JSF1095: The response was already committed by the time we tried to set the outgoing cookie for the flash.  Any values stored to the flash will not be available on the next request.

I found this thread when looking up this problem. When I turned of HTTP chunking as the article suggests, the error message went away but the problem remained.

Does anyone know what is going on and how this might be fixed?

UPDATE:

In working with this problem I believe I have uncovered a bug in how the cookie that is used to store the flash object. The cookie it stores is named csfcfc, and the path parameter to the cookie is the root of my application, in my case “/A/”.

However when it fails, I get a second csfcfc cookie, this time with the path parameter as “/A//”. My working theory is that the cookie generator is sometimes adding an extra “/” to the path parameter, which means that the cookie is not seen on the next request even though the browser sent it.

It is notable that this happens very intermittently. I do NOT always get the JSF1095 message but I do get the extra cookie every time I looked.

I don’t know if this is a Mojarra bug or a Glassfish bug, but I am adding the Mojarra tag to this post. I am not familiar with the bug data bases for those pro.ducts, but could someone here comment on what the next step should be?

I would appreciate any suggestions for a work around

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:45:43+00:00Added an answer on June 12, 2026 at 7:45 pm

    It turns out the problem is with Glassfish in its protocol hander as suggested by the link provided in the question. If HTML “chunking” mode is turned off, this problem goes away.

    Originally I thought that this was not the case, but in fact I had another bug that was causing flash objects to be lost.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JSF page that displays a RichFaces Treeview, from a TreeNodeImpl model
i have a jsf page which displays an image from an url http://ichart.finance.yahoo.com/z?s=^NSEI&t=1d&q=l&l=on&z=l&p=s&a=v&p=s i
I have a JSF page that is included in other JSF pages (basically a
If I have a JSF page that I want to link to where I
I have a JSF page that contains a form with several elements, that correspond
I'm using JSF/ICEFaces. I have a table that have many rows with values and
I've got a JSF page with a ui:repeater tag that simply displays a list
I have a PrimeFaces checkbox on a JSF page that I'd like to check/uncheck
I have a JSF page on which I want to have a checkbox that,
Suppose i have JSF page <h:body> <h:form id=formID prependId=false> <h:outputText id=randomID value=#{randomNumber.random}/> <h:commandButton id=buttonID

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.