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 7680709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:10:39+00:00 2026-05-31T18:10:39+00:00

I have a web app that runs perfectly on Apache Tomcat. However, when I

  • 0

I have a web app that runs perfectly on Apache Tomcat. However, when I deploy it to WebLogic 10.2.3 server, it gets a NPE due to the session being null.

The app is Java 5, jQuery 1.7.1 running on Win 7 Pro. The first Ajax GET to the server causes some values to be stored in the session object. The next Ajax GET uses these values – thus the NPE due to null session.

In Firebug, I see that different session IDs are being passed – why?

Can anyone help me resolve this?
enter image description here

Another piece of information. Here’s some related jQuery:

    $.ajaxSetup ({
    cache: false,
    xhrFields: {
        withCredentials: true
     },
     crossDomain: true
});

and:

    $('#findSites').click(function() {                                // Locate HTML DOM element with ID "somebutton" and assign the following function to its "click" event...
    searchVal = document.getElementById("searchFor").value;
    searchTyp = document.getElementById("searchType").value;
    $.get('SiteSearchServlet', {searchFor: searchVal, searchType: searchTyp}, function(responseJson) { // Execute Ajax GET request on URL of "someservlet" and execute the following function with Ajax response JSON...
...
  • 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-05-31T18:10:40+00:00Added an answer on May 31, 2026 at 6:10 pm

    Turns out that adding this to the document ready function solved the problem (i.e. now I use the same session unless timeout):

        jQuery.support.cors = true; // force cross-site scripting
    

    Hope this helps someone else.
    Mark

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

Sidebar

Related Questions

I have a C# Web app that runs perfectly fine in VS2010, but when
I have a web app that runs under Tomcat on Windows XP that needs
I have a web database app that runs in IE7+ (customer requirement) It is
This a bit of strange one.... We have an internal web app that runs
i have a web app that runs locally on our network. the way users
i have developed an app that runs perfectly fine on the simulator but when
I have a web app that spawns off a script that runs a Nutch
I have deployed a Silverlight 5 PivotViewer web app that runs successfully on the
I have a web app that is heavily loaded in javascript and css. First
I have a web app that only registered users can use, therefore I should

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.