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

  • SEARCH
  • Home
  • 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 8973375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:25:53+00:00 2026-06-15T18:25:53+00:00

I’m running a JSF-Webapplication on a GlassFish v3.1.2 If I test it locally everything

  • 0

I’m running a JSF-Webapplication on a GlassFish v3.1.2

If I test it locally everything works fine. Now I only change the datasource and I get some strange bevavior:

For example I have a command button which invokes some action to receive data from a database and I want to display this data in a datatable on the same page.
With my local database this works fine, but if I use the other database (which is running on a different server in the local intranet), the action is fired (I have checked this with some System.out’s) but the ajax-update of my datatable does not work. If I reload the page after clicking my ajax-button the correct data is displayed, also if I use a non-ajax-button.

I do not even know what I should look for .. any ideas?


Im using

  • Primfaces 3.4.2
  • JSF 2 (Mojarra)
  • local Database is Oracle 10g XE
  • server Database is Oracle 11g
  • jdbc-driver is the latest ojdbc6.jar from oracle-website

Please let me know if you need more information.

Thanks in advance, Fant


Http-response-header:
HTTP/1.1 200 OK
X-Powered-By: Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.2 Java/Oracle Corporation/1.7), JSF/2.0
Server: GlassFish Server Open Source Edition 3.1.2
Cache-Control: no-cache
Content-Type: text/xml;charset=UTF-8
Content-Length: 5610
Date: Sat, 08 Dec 2012 02:05:08 GMT

I also tried to write a PhaseListener to give me some feedback, but this was not very helpful either. Every phase is finished succesful and after my action is performed, an response is send to the client (and the client receives the response as I can see in the Firefox-Addon)
Even the Getter-method of the List that I want to display in my dataTable is called before the htpp-response is send, so I think there is everything fine with the response itself. But the dataTable that I want to rerender is still showing the old data.

  • 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-15T18:25:55+00:00Added an answer on June 15, 2026 at 6:25 pm

    but the ajax-update of my datatable does not work

    This is most likely caused by a XML syntax error. The ajax update involves the steps of retrieving the XML response from the server, parsing it and finding the to-be-updated elements in the HTML DOM tree and replacing their content with new HTML which is enclosed in the XML response. Using webbrowser’s builtin (Chrome/IE9) or 3rd party (Firebug) webdeveloper toolset you can track the HTTP traffic and inspect the HTTP response in its entirety and you can also debug JavaScript code with breakpoints. This should give you clues as to the cause of the problem.

    Provided that the generated HTML code in the XML response is exactly the same (which is a fair assumption, provided that webapp’s code is not been changed when you change the datasource), then that can only be caused by a difference in the data which is obtained from the DB. Apparently the change in the datasource also involved a change in the physical database server which in turn thus provides somewhat different data.

    Based on the comments on the question, the root cause turns out to be a NUL character coming straight from the other DB which ended up in the XML response, causing the webbrowser’s XML parser to choke because it’s an illegal character in XML. The XML specification specifies only the following characters as valid:

    2.2 Characters

    …

    Character Range

    Char   ::=   #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD]  /* any Unicode character, excluding the surrogate 
                 | [#x10000-#x10FFFF]                               blocks, FFFE, and FFFF. */
    

    The #x0 (the NUL character) is not among them.

    You should have noticed a XML parsing error in the console of the webbrowser’s webdeveloper toolset.

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

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I am currently running into a problem where an element is coming back from

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.