Session and Refresh problem, Urgent, please help

          Hi, Dear Everyone:
          I have two questions to ask. (Environment: OS: Nt4.0, Server: Weblogic5.1)
          (1). When I use session to store an object in servlet (processed results
          from database) then dispatch to a jsp page to display the results, I got the following
          error message.
          Wed May 16 15:54:31 CDT 2001:<I> <ServletContext-General> Generated java file:
          C:\weblogic\myserver\classfiles\jsp_servlet\_ccproject\_subdisplay.java
          java.lang.NullPointerException
          at jsp_servlet._ccproject._subdisplay._jspService(_subdisplay.java, Comp
          iled Code)
          at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
          pl.java:106)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
          pl.java:124)
          at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
          cherImpl.java:154)
          at com.voy.CCPro.DataDumper.doPost(DataDumper.java:69)
          at com.voy.CCPro.DataDumper.doGet(DataDumper.java:85)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
          pl.java:106)
          at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
          textImpl.java:907)
          at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
          textImpl.java:851)
          at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
          ContextManager.java:252)
          at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
          a:364)
          at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
          Here is my servlet code:
          HttpSession session = req.getSession(true);
          Vector temp = buildData.BuildForDisplay(rst);
          session.setAttribute("PostTitlePool", temp);
          String url = "/ccproject/subdisplay.jsp";
          RequestDispatcher dis = getServletContext().getRequestDispatcher(url);
          dis.forward(req, res);
          Here is my jsp
          <%@ page import="com.voy.CCPro.*" %>
          <%@ page import="java.util.*" %>
          <%
          Vector v = new Vector();
          v = (Vector)session.getAttribute("PostTitlePool");
          Enumeration enum = v.elements();
          SequenceData sq = new SequenceData();
          while(enum.hasMoreElements())
               sq = (SequenceData)enum.nextElement();
               if(sq.getIndicator()==0)
                    out.println(sq.getTitle());
               else
               out.print(sq.getTitle());
          %>
          Please tell me what I did wrong or What more do I need to do?
          (2). If I changed to use request.setAttribute in servlet, it works. But I got another
          strange
          result from browser. That is, if I keep on clicking refresh (IE5.5), the same result
          appending
          the previous one on the same page.
          Here is my code in servlet:
          req.setAttribute("PostTitlePool",temp);
          String url = "/ccproject/subdisplay.jsp";
          RequestDispatcher dis = getServletContext().getRequestDispatcher(url);
          dis.forward(req, res);
          Here is my jsp:
          <%@ page import="com.onvoy.CCPro.*" %>
          <%@ page import="java.util.*" %>
          <%
          Vector v = new Vector();
          v = (Vector)request.getAttribute("PostTitlePool");
          Enumeration enum = v.elements();
          SequenceData sq = new SequenceData();
          while(enum.hasMoreElements())
               sq = (SequenceData)enum.nextElement();
               if(sq.getIndicator()==0)
                    out.println(sq.getTitle());
               else
               out.print(sq.getTitle());
          %>
          Please explain it to me why that and how to fix it. I appreciate it very much.
          

I control this as follows
--> all JSP's don't create session (<@page session="false">)
--> my FrontServlet checks
session=request.getSession(false);
if(session==null)
//invoke method from LoginHandler (Helper Class)
//for check logindata and create session
else
//invoke method from ProtectedResource (Helper Class)
//for check, if user logged on
--> LoginHandler
//method UserAllowed returns true or false
if(!UserAllowed())
//invoke ServiceDispatcher method who displays
//the 'AccessDenied'Page
else
//set loggedIn into the session
session.setAttribute("loggedIn","OK");
//invoke ServiceDispatcher method to display the requested Page
--> ProtectedResource
//check if user logged in
Object o=session.getAttribute("loggedIn");
if(o==null)
//User not logged in
//invoke ServiceDispatcher method to display 'Login' Page
else
//User logged in
//invoke ServiceDispatcher method to display the requested Page
--> URL of the Application
Welcome: http://localhost:8000/APP/login.jsp
submitted FORM sent to FrontServlet
(FORM ACTION="servlet/FrontServlet")
When everything is alright (username/password)
new URL http://localhost:8000/APP/servlet/FrontServlet
and the 'Main' Page is shown
when session is timed out and i refresh page
data is sent again (without asking for username and password)and new
session is created and the 'Main' Page is shown again.
How can i fix this problem
thank you in advance :-)

Similar Messages

  • Illustrator CS6 opening and saving problem. Please help

    Hello
    I have Illustrator CS6 installed on windows 8.1. Every time I save a file as ai. format, it will automatically create a copy on the desktop. When I deleted the copy and try opening the original file, the error message "The file is an unknown format and cannot be opened" pops up. I've checked that the file is not "read only", deleted the pref files and even reinstalled Illustrator CS6 but none of these have solved the problem. I have also noticed that I cannot copy or rename the file as the same error message pops up. Any solutions? please help

    (1) When I go to open files, raw or jpeg, I now need to enter a value for 'enable' on the open dialog.  That never was necessary before.
    Could you please post a screenshot with the pertinent Panels/Dialogs visible?
    (2) When I go to save as jpeg, the file type defaults to eps. 
    So you select jpg from the dropdown list and it switches to eps?

  • Installation problem - urgent, PLEASE help!!

    I'm trying to install Java3D and somehow it doesn't seem to be working. I'm not sure whether I should be installing the opengl or the
    directx version, but I've tried both with no luck. I'm running Windows
    M.E.
    I downloaded the JSDK beta 1.4 version (I have previously tried also
    with the 1.3 version, this didn't work either), and now have the
    jdk1.3.1 as a folder on my C drive ( C:\jdk1.3.1) . Then I downloaded
    Java3D from the website, onto C, as an executable file. When I clicked
    it, it went through the installation process (not giving me any
    options for where to install it, i was just clicking on 'next') and
    seemed to complete ok, but I'm trying to test it by running the
    helloUniverse demo, and the file isn't even there. There's a Java3D
    folder which has been created in Windows, but this just contains a
    folder called uninstall_info.
    On my Java plug-in control Panel, it is currently set to 'use java
    plug-in default'. The other options are to use JRE or JDK, in folders
    Program Files\JavaSoft or JDK1.3.1 respectively. I don't know which
    one I should be choosing! I think I tried it with the JDK option
    before and that didn't work either.
    If anyone can please help I'd be really grateful, this is getting
    quite urgent!

    Hi there!
    Well, try installing java3d in the same directory as ur java(which is c:\jdk1.3.1 for u).
    If i am not mistaken, java3d, by default, installs in c:\jdk1.2.2 directory.
    U also have 2 set the path and classpath in the autoexec.bat to addr to \bin and \lib sub-directories resp.

  • ISight Built in Camera on iMovie09 and speed problem. Please Help

    Hello,
    I recently installed imovie09 after using imovie06 for quite sometime. I am getting two problems for now. First, when my videos from iPhoto got imported to iMovie, the audio is working fine but the actual clip is skipping. Is this normal? For me to able to fix it, I have to go to clip adjustment and do convert clip all the time. This is really annoying specially My video will consist at least 7 clips. Is there any other way? Second, I tried to use the isight built in camera so it can be only one clip. I noticed that when I was filming, my audio and my actual video is not on the right timing and when its time for me to save it and play it back, it was skipping also! I recorded 1 minute video and it will only play for 12 seconds! To top it off, it's not the first 12sec of the video but it's actually skipping through out the one minute clip I did.
    Can anyone please help me with this situation. I will very much appreciate it. I don't want to end up regretting that I upgraded to imovie09 only to find out things will be much complicated
    Thanks,
    Ashtoush

    Hello Ashtoush
    As you now know, iMovie '09 work differently than our iMovie HD 6.
    Although your iMovie '09 offers many improvements over the previous iMovie '08 version, the older version imports the same way your iMovie version does, i.e., differently from iMovie HD 6.
    User Jon Walker gives a complete explanation of your problem and offers workable solutions in this iMovie '08 forum thread:
      http://discussions.apple.com/thread.jspa?threadID=1134921
    It seems you will have to convert your existing clips using one of the methods detailed there.
    For future video clips, you may want to choose a different video capture device that is more compatible with your new iMovie so you will not need to do separate conversion.
    For Apple Help on importing into your new iMovie, take a look at the suggestions here:
      http://docs.info.apple.com/article.html?path=iMovie/8.0/en/11612.html
      http://docs.info.apple.com/article.html?path=iMovie/8.0/en/10359.html
      http://docs.info.apple.com/article.html?path=iMovie/8.0/en/11497.html
      http://docs.info.apple.com/article.html?path=iMovie/HD/en/im6.html
      http://support.apple.com/kb/HT3290
      http://docs.info.apple.com/article.html?path=iMovie/8.0/en/10331.html
      http://docs.info.apple.com/article.html?path=iMovie/8.0/en/9835.html
    EZ Jim
    G5 DP 1.8GHz w/Mac OS X (10.5.7) PowerBook 1.67GHz (10.4.11)   iBookSE 366MHz (10.3.9)  External iSight

  • Wrt54gs problem URGENT PLEASE HELP

    hello, i have had the wrt54gs for about 4 months and my internet has been perfect but about a few a days ago, when i play counter strike source online or anything else i get ridiculous lag and it not able to play (500-600 ping), i have not changed settings or anything. when i watch the network monitor it shows about 4-5 bars on signal strength and link quality but every like 30 seconds it says you are connected to the access point but the internet cannot be found then like 30 seconds later it goes back to normal.
    i have upgraded the firmware of my router and linksys helped me change some of the settings on the router but nothing happened.
    can you please help me
    thanks
    pete
    Message Edited by Stelth2k1 on 10-27-2007 07:14 PM

    If it's working well all the while and only have the problem recently, then I guess it can be the problem on Internet connection link, or ISP side.
    Try to connect your computer directly to the DSL/cable modem, then play the game, see anymore lagging..
    picoHat
    Home Network, Wireless Network and Computer Networking Made Easy

  • Red Light and iTunes problems! Please help!

    My macbook is a little more than a year old. Just recently a little red light came on inside the headphone jack and the internal speakers will not work any longer.
    Well, I searched online and read about the "switch" that sometimes gets thrown off or whatever. I've tried locating this switch with a toothpick and small metal rod, but I can't find it. If I hold the metal rod in a certain way, the light will go off momentarily. And if I hold the headphone jack in a certain way, the internal speakers will work momentarily.
    And just recently, iTunes has started acting up. I play a song, and it will play through the speakers. I take the plug to the speakers out of my macbook and plug it back in, and iTunes will not play the song. It states that it is playing, but no sound is coming out of the speakers that had just worked prior to unplugging them. I have to restart iTunes for it to work.
    I can't afford to send my Macbook in.
    Please Help!
    =(

    Now, on top of all of this, I have to jiggle the headphone switch around to even get full sound; otherwise sound only comes out of one side
    Someone please help
    I can neither afford to call Apple, or afford to send my computer in
    And it's been a little over a year since I've had it
    This is seriously horrible, horrible customer service
    I'm extremely disappointed
    I've never been rough with my macbook. I take the headphone plug out one day and this happens
    Please help!!!

  • Huge icloud problem, urgent please help

    So I broke my old iphone and my dad gave me his old one, i restored it to factory settings and then set about putting my icloud recoery on, I signed into to my apple id and icloud, then i got to a terms and conditions page which I agreed to.
    HOWEVER and here is the problem, after a small wait of 'it may take a few minutes to set up your apple id' i am presented with a screen saying choose your backup, with various dates on it. I click on the latest one, and it it says
    "enter the apple id password for 'email address' to use for store purchases (including the appstore) iTunes store, and iBooks store"
    problem is, the email address isn't one i own, i have never seen this email address before in my life it certainly doesnt belong to me, or anybody I know, and I am really rather concerend as all of my backups are in this persons email from aol...
    HELP!

    Try the following :
    1.convert your string to a unicode format and than
    compress.
    2.decompress and than convert it back to the normal
    format.
    use following code suitably :
    byte []  bytes = null;
    try {
    bytes =     string1.getBytes ("UTF8");//encode
    string2  = new String (bytes, "UTF8");//decode
    } catch (UnsupportedEncodingException e) {
    e.printStackTrace();}
    Unless my understading of Java is completely wrong, after the code you've written, string1.equals(string2) should be true.
    And that is because string1 is a Java String, in unicode format (all Java strings are in unicode format). So, with
    bytes =     string1.getBytes ("UTF8");//encodeyou get the bytes of that String coresponding to it's UTF-8 representation. Then,
    string2 = new String (bytes, "UTF8");//decodeyou create a new String (in unicode) from the UTF8 bytes representation. In my opinion, string1 is always equal with string2.
    Please correct me if I'm wrong...

  • New to this iPOD game, and having problems! Please help!

    So I finally got my hands on a Nano yesterday, and ever since then some odd things have been happening. I would appreciate any help to the following questions/problems I've been having, because the applecare stuff does not seem to really be either helping or addressing my issues.
    1. When starting iTunes, I was told (once it reconized my nano) that I neeed to install the new software for the nano, i expected this and downloaded it, and followed the directions. As soon as I did that though I started getting "Corrupted Error" messages in iTunes. To get this to stop I just reinstalled iTunes...I was able to transfer things now, but now the system does not seem to reconize that the nano has the new software, and asks if I want to install it, and when I do...(again) I start getting those corrupt errors again.
    2. I will move some songs from my iTunes library, to my nano, and it says they transfer over. I then eject my nano from iTunes, wait for the "do not disconnect" to go away, and unplug it, and sometimes, my newly transfered songs are no longer on my nano. Am I doing something wrong?
    3. I went to update my iPod with some playlists from my library, I went to the options, and said "only update from these lists" It updated my ipod...and deleted everything else off of it, and to add insult to injury, it only added the title of the play list, and NOT the actual song files
    I know this is a lot, but I'm really frustrated, so any help would be appreciated.
    Thank you so much for your time.

    Hi,
    Read this link if it happens again: iPod: What to do if Windows displays an "itunes.exe - Corrupt File" message
    There is another post I think it is in the User Tips Library that goes into more detail as well.
    Regards
    Colin R.

  • Patchmix Direct Monitoring and MIDI problems. Please Help

    Here is my equipment:
    Microsoft Windows XP Professional
    version 2002 with service pack 2
    Pentium(R)CPU 3.2GHZ
    1Gig of RAM
    Audio Equipment:
    E-MU 1820m
    Cubase VST 5.1.1
    Korg Triton LE
    Boss Dr. Rhythm 770
    I have patchmix setup for direct monitoring in Cubase VST 5.1.1. The audio portion works fine. My problem is when recording MIDI in cubase vst, I can't hear the midi notes being recorded. I can see the notes in the MIDI key editor, they just have no sound when in playback. What am I doing wrong? Is using direct monitoring a good way to go for recording MIDI? Or, should I just use a regular send in patchmix to record midi since I can see and hear the notes being recorded? what is Direct Monitoring good for while using cubase vst?

    Hey Red Havoc-
    Considering how much this issue seems to plague your business- as I can well understand- I think it would be worthwhile to verify your OSX installation with Pacifist. Possibly a package was installed improperly or not at all- hope this helps.
    --Justin S.

  • Ipod touch restore problem *URGENT PLEASE HELP*

    Ok well I just inherited an Ipod touch from my friend who upgraded to a iPhone and it has a lock code, which I don't know. I called up my friend and asked him the code, he didn't know it of course... so i just guessed passwords and it said it was locked, I only have one more try until it locks permanently. So, I tried resetting it and it didn,t work. so i put it in recovery mode and it was gonna be ok, but my problem is I have slow dial-up internet and cannot re-download the software because my internet turns off randomly and it takes about 35 hours straight to download the 280MB, my other problem is that every time the download is disrupted, what itunes has already downloaded deletes itself and I have to start over from zero. I cannot fully download the software and have no access to hi-speed internet, I need a solution please otherwise im sitting here with a $300 piece of junk.

    Just bring it over to your friends house and have him reset it for you. Then bring it to your house to put your music on it.
    It is as simple as that. Too bad you have dial-up still. I use broadband and it is very fast.
    Timothy Z.

  • Clean install OSX and now problems! Please help

    G4 tower 933
    We did a clean install of the original OSX 10.1.3 cd to wipe clean the hard drive.
    However, now the CD eject button now doesn't work. F12 will eject the CD but the 'eject' button in the upper right of the keyboard no longer works.
    How can we get it to operate again?
    it is the apple extended keyboard, all worked fine prior to clean install and all original Apple equipment.
    We used the "Power Mac G4 Mac OSX Install" CD that came w/ the computer.
    There are a bunch of other cds (5 'software restore' cds, OS9 cd) we did not use
    Apple hardware test CD was run and all is normal
    tried to run the OSX install CD again but only comes up with a blank white screen
    thanks for your help!

    10.1.3 is obsolete junk. No one wants to spend their time and energy helping you fix it.
    Install 10.2 or later and lots of folks would be willing to help.

  • IPhone 5 app store and update problems! Please help!

    Okay so I have a iPhone 5 and all my software is up to date. I'm not able to download or update any of my apps. Whenever I press on update, it asks to enter my apple id password and after I do, it stalls for a few seconds and then says "update" again. It does the same thing when I try to downlaod a new app. My apple I.d and password are both correct. This has been going on for several days and I honestly have tried just about everything. I've turned off my phone, made sure my restrictions were off, ect. Pleeease help, it would be greatly appreciated

    Reset the device instead of simply restarting it.
    If that doesn't work, pick one of the apps that is least important to you.  Delete it.  Then try to redownload it.

  • [Athlon64] K8T NEO2-F motherboard and memory problem. Please help :(

    I just recently built my first computer and everything seemed to be working fine.  However, my two RAM chips had corrupt memory sectors so I had to replace them.  Upon buying 4x256mb chips to replace the 2x512mb chips, I discover that 1 & 2 DIMM slots worked and the 3 & 4 DIMM slots do not.  When i try to put RAM chips in there (which work when put in slots 1 & 2) the computer will not even start up. I've tried diff. combinations of slots, even using the old chips (which work but causes programs to crash occationally). But nothing seems to make DIMM slots 3 & 4 to work.  Any ideas?  Thanks for the help.
    -Ender811

    How about giving complete specs. I am pretty sure I have an answer that will fix you up but I want to know which CPU core you have and what Bios your running. Those are the two important things on this issues at the moment but save us all trouble and do a complete set of specs for your signature. and then we will help you.

  • IPhone 3GS and iOS4 problems! PLEASE help!!

    yesterday i updated to iOS4 on my iPhone 3GS. everything was going well except my iphone would restart whenever it liked.
    so i connected to iTunes & decided to restore it back to its factory settings to try and resolve the issue. now, the iphone screen says connect to itunes with the picture of the usb and itunes. and when i try to restore, "unknown error 29" comes up.
    i don't know what to do anymore.

    Ok this is wat happened to my iPhone 3GS after I opted to upgrade to iOS4.0:
    After the upgrade file finished downloading, the installation process got initiated. However, after a few minutes, the process crashed throwing up an Error 1602. My phone just displayed the connect to itunes logo. I did a hard reset (by pushing the home button & the power on/off button simultaneously) and the phone entered the recovery mode (or DFU or watever it is called). I reopened itunes and connected the iphone again. This time, I was told that the phone has been detected on recovery mode. I clicked RESTORE & it told me that the phone would be restored to factory settings,which I chose. The recovery process started and after a coupla minutes, I got another error. This time it was Error 1601.
    After spending a good 2 hrs researching the internet, I found the solution that did work for me. Here goes...U would need another computer for this (not the one u have been using to sync ur iphone with):
    1) Install itunes 9.2 on another computer.
    2) Connect ur iphone (while it displays the connect to itunes logo).
    3) itunes will detect an iphone on recovery mode.
    4) Click Restore. itunes will tell u that ur phone can be restored to factory settings. Choose OK.
    5) itunes will automatically download iOS 4.0
    6) once the download is complete, installation of iOS 4 should start immediately. if for some weird reason it doesnt initiate, press shift+restore and select the installation file (it is located in C:\Documenst & Settings\User\Application Data\Apple Computer\itunes\iphone software updates\xxxxx.ipsw )
    7) Once u've selected this file, installation will start & ull get a progress bar on ur iphone as well.
    8) The installation should come around fine & after a coupla automatic reboots, ur iPhone should now be up & running with iOS 4.0
    9) Itunes will ask you to name ur iphone. at this point, eject the iphone from the computer & connect it to the other computer (the one which u previously used to sync the iphone with). open itunes & ull get 2 options: Create a new iphone or restore backup from "Sandy's iPhone" [ur iphone's name]. Choose the 2nd option & watch ur iphone being restored with all ur backup.\
    10) once the sync is complete, eject & enjoy iOS 4
    Phew
    Cheers!!!

  • Have a big problem with report. Very urgent please help

    I have a report rep1. When I run the report via batch thru command rwclient to create a file it failed. I got the follwoing error message:
    REP-0177: Error while running in remote server
    Job 1413 is terminated due to connection timeout.
    It does not even try for few seconds before gives this message. I ran some other batch reports whihc took 15 minutes and they were fine.
    So, I stopped running the bad report for the day thinking the report is still not dead. I ran the same rep1 next day I still get the same error message. But this time when I ran I looked at the appserver showjobs (which lists the reports that were running and that already ran). The job number is different But still it fails in 3 seconds with the job number 1413 and connection time out. Can any one tell what might be the problem.
    Any number of times I run this job I get the same job number with same error (all this is only if I run it as batch using rwclient). If I run this as online by calling it from a form it returns the results without any problems.
    Please help. Very urgent.
    Thanks in advance.
    Asha

    You might want to delete the report server .dat file and restart the server and try
    his also could be one of the issues we had seen and fixed in 9.0.2.3. Please ensure you have the latest patch applied
    Thanks
    The Oracle Reports team

Maybe you are looking for