ConnectionFactory lost, but session not invalidated.

Hi guys!
I Have a connectionfactory object which calls Drivermanager.getConnection(...) for
new connections in my classes. and i am closing them properly.
I am using servlets for the first time to handle bussiness logic instead of jsp.
the problem i am facing is that i get the connectionfactory from the session by using
ConnectionFactory factory = (ConnectionFactory)request.getSession().getAttribute("connectionFactory");everything works fine for a while then the factory is suddenly null, i know the session did not expire because i can still get other objects out
of the session
does anyone have ideas to what may be causing the problem?
Sincerely
-epoch-

Thank you for replying, no it is not Serializable
This is a modified version of BalusC's code to work for me
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import webportal.PortalSettings;
import webportal.WebPortal;
public class ConnectionFactory {
    private String url;
    private String username;
    private String password;
    private PortalSettings settings;
    public ConnectionFactory() {
     * Construct a new ConnectionFactory Object
     * from the specified settings file.
     * @param settings
    public ConnectionFactory(PortalSettings settings)
            throws DAOConfigurationException {
        this.setSettings(settings);
     * Returns a connection to the database.
     * @return A connection to the database.
     * @throws SQLException If acquiring the connection fails.
    public Connection getConnection() throws SQLException {
        if (!WebPortal.isNull(this.username) && !WebPortal.isNull(this.password)) {
            return DriverManager.getConnection(this.getUrl(), this.getUsername(), this.getPassword());
        } else {
            return DriverManager.getConnection(this.getUrl());
     * This sets the ConnectionFactory's settings
     * and loads all the nessasary drivers
     * @param settings the settings to set
    public void setSettings(PortalSettings settings)
            throws DAOConfigurationException {
        this.settings = settings;
        this.url = settings.getDatabaseURL();
        this.username = settings.getUserName();
        this.password = settings.getPassword();
        String driverClassName = settings.getDatabaseDriver();
        if (!WebPortal.isNull(this.url)) {
            if (!WebPortal.isNull(driverClassName)) {
                try {
                    Class.forName(driverClassName);
                } catch (ClassNotFoundException e) {
                    throw new DAOConfigurationException(
                        "Driver class '" + driverClassName + "' is missing in classpath.", e);
        } else {
            throw new DAOConfigurationException("No database url specified.");
     * @return the url
    public String getUrl() {
        return url;
     * @return the username
    public String getUsername() {
        return username;
     * @return the password
    public String getPassword() {
        return password;
}

Similar Messages

  • Troubleshooting EWA, tasks run but sessions not in satellite

    I am trying to troubleshoot EWA in SolMan. It has worked for ages and then it stopped. We have now implemented the latest-and-greatest ST-PI and ST-A/PI.
    In SDCCN in the satellite system I see a "maintenance package" and a "session refresh", daily, both with the SolMan as their "task system".
    This sounds a bit excessive to me, as note 763561 says that a "maintenance package" already contains a "session refresh".
    Anyway, when I go to the SolMan, txn DSWP, and I order an "EearlyWatch alert" session for the satellite system, it never shows up in the satellite system. In SolMan it first gets the status "hour-glass" (meaning "waiting for data") and then the status "red flag" (meaning "data overdue").
    The RFC-destinations are fine. Moreover, the logs of the SDCCN tasks do not show any problems with the RFC-destination.
    I have forced a refresh of the service definitions: first the SolMan got new definitions from O01, and then the satellite systems got them from the SolMan.
    Where do I look next?
    BTW We are only monitoring ABAP.

    Re: check job /??/TASK_PROCESSOR
    Thank you. I suppose you mean /BDL/TASK_PROCESSOR? It is running fine (hourly), in the SolMan and in the satellite systems. It doe snot seem to achieve much, though... .
    The SolMan also has a number of SM* jobs, some running hourly, some running daily, some weekly.
    Anyway, I found that some of them have problem at each run.
    SM:GET CSN COMPONENTS runs weekly and always fails with this error:
    Step 001 started (program DSWP_GET_CSN_COMPONENTS, variant &0000000000074, user ID ...
    Internal error (SOLAR 001)
    SM:SYNC SAP SESSIONS runs daily and always fails with:
    Step 001 started (program RDSWPCISERVICEPLAN, variant &0000000000512, user ID
    Error during call of SAP back end system (see long text) (SOLMAN_SAP_BACKEND 005)
    The long text says:
    Error during call of SAP back end system (see long text)
    Message no. SOLMAN_SAP_BACKEND005
    Diagnosis
    Error calling SAP backend system: Name or password is incorrect. Please re-enterSAP-OSS via RFC destination
    Procedure
    Check the configuration of your connection to SAP in the Implementation Guide (IMG).
    Use note 320991 to analyze RFC error codes.
    Note 982045 contains information about repairing the RFC destination SAP-OSS
    I think I have found a clue! As I understand it, it is SolMan having a problem calling SAP SMP over RFC.

  • HT5661 i dont know what i did my says its lost but its not

    my phone says its lost i was trying to undo find my phone

    Hey dvelia,
    It sounds like your device is in Lost Mode, even though you have not lost it. You can stop Lost Mode by following these directions:
    Sign in to icloud.com/#find with your Apple ID (the one you use with iCloud).
    If you’re using another iCloud app, click the app’s name at the top of the iCloud.com window, then click Find My iPhone.
    Click All Devices, then select the device that’s in Lost Mode.
    Click Lost Mode, then change the information or click Stop Lost Mode.
    from: iPhone User Guide - Use Lost Mode
    http://help.apple.com/icloud/#/mmfc0f0165
    Welcome to Apple Support Communities!
    Have a great day,
    Delgadoh

  • Restriction password lost, but iphone not backed up,new back up would save this password  right?

    Restrictions password,not working(same one did on IPad) iphone is not backed up, to do so now would back up the restrictions  right?

    That is correct. The restrictions passcode is part of the iPhone backup.

  • Fire fox opens with tabs from preveous session not home page in tools under options and tab general I have start up with home page but all tabs from previous session open instead

    fire fox opens with tabs from preveous session not home page in tools under options and tab general I have start up with home page but all tabs from previous session open instead

    It is possible that there is a problem with the files [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • My hard drive went bad and I lost a lot of purchased items from the iTunes store. I want to re-download them but can not. They still show up on my purchased items. How do I solve this?

    My hard drive went bad and I lost a lot of purchased items from the iTunes store. I want to re-download them but can not. They still show up on my purchased items. How do I solve this?

    Update to iTunes 10.3.1
    After you have finished, you can re download your iTunes purchases without having to re purchase.
    iTunes 10.3.1
    " Download Previous Purchases. Download your past music purchases again at no additional cost. Your purchases are available in the iTunes Store on your Mac or in the iTunes app on your iPhone, iPad, or iPod touch. Previous purchases may be unavailable if they are no longer on the iTunes Store."
    "Available on iTunes in the U.S. and Canada only. Title availability is subject to change."
    From here.  http://www.apple.com/itunes/

  • I had to erase my data to upgrade my iPhone software from an older version. I backed up first, but seem to have lost all my notes.   Does anyone know how retrieve my old notes?

    I had to erase my data to upgrade my iPhone software from an older version. I backed up first, but seem to have lost all my notes.   Does anyone know how retrieve my old notes?

    Is this the note you are referring to:
    Not sure if this can help you.
    I checked my notes. They are stored here:
    MacintosHD/Users/MYHOME/Library/Containers/com.apple.notes/Data/Library/CoreData /ExternalRecords/
    xxxxxserie.of.numbers.probably.yours.are.different/IMAPNote/_records/0/
    If I go tot this window on finder and enter Time Machine I can go back and find old notes...
    If so, am I doing this on my new hard drive on on the time machine? When I do this on the time machine, what is "my home"? Also, I am unable to find "containers".
    If I go to users/jeff/library, then I see components, compositions, contextual, etc, but not containers.
    Thanks

  • I use an Epson Stylus Office BX320FW printer with my IMac.  Since upgrading OSX, I have lost the ability to print and scan.  I have downloaded printer drivers from both Epson and Apple.  I am using the printer in wifi mode but can not get it print or scan

    Hi Everybody,
    I use an Epson Stylus Office BX320FW printer with my IMac.  Since upgrading OSX, I have lost the ability to print and scan.  I have downloaded printer drivers from both Epson and Apple.  I am using the printer in wifi mode but can not get it print or scan.  How do I uninstall the Epson software and start all over again?
    nickel_man_65

    Not using any mouse pad, I have a very smooth desktop. But I just tried to use a sheet of A4 printing paper, but no result, the problem persisted.
    Someone on this forum suggested, that USB3 may interfere with the magic mouse.
    I have 2 LaCie HDD's about 70 cm away from the mouse, I use them on Thunderbolt. But in operation or not - the result is the same, the mouse plays up! Just now I was clicking the desktop and the mouse created a new folder!!
    Thanks for the advice, Bee
    Cheers, Gerd

  • Iget this when I try to open a session....Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.task mngr shows no open firefox processes.

    I get this when I try to open a session....Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.The task manager shows no open Firefox processes.I had two users on this laptop running Firefox and I tried deleting the program on both users. I then downloaded the newest version, installed it and I still get the error message as before. HELP!!!! I loved the browser program when it was working before and would rather use it than other browsers.

    See "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * https://support.mozilla.com/kb/Firefox+hangs

  • Good evening, my name is Ludmila I have a problem. im buy second hand iphone 5 but I can not use the screen shows asking me apple id but I do not know this is my first iphone I do not know what the police thought it was stolen or lost but I you can help m

    Good evening, my name is Ludmila I have a problem. im buy second hand iphone 5 but I can not use the screen shows asking me apple id but I do not know this is my first iphone I do not know what the police thought it was stolen or lost but I you can help me. Someone told me we should stop function Find my iphone but how?? email does not even know the first lord. It cost me 400 euros but may not use iphone. someone laugh at me because I deceived. Please help me tell me his email talk to you should stop off iCloud or ID

    Scuzati de engleza google translate

  • I did an IOS update on my iphone and now I have lost all email,notes,textx and apps.  I tried to restore but to no avail.  Help

    I did an IOS software update on my iphone and now I have lost all email, notes, texts and apps from the iphone.  I tried to do a restore but to no avail.  Help

    Put the device in DFU mode (Google it) and restore.

  • Recently did upgrade from OS 10.6.8 and to Mainstage 2.2.2 and have lost lights on my Gio pedal only in Mainstage - still have them with Logic.  Tried holding button and replugging USB cable, but did not fix it.

    Recently did upgrade from OS 10.6.8 and to Mainstage 2.2.2 and have lost lights on my Gio pedal only in Mainstage - still have them with Logic.  Tried holding button and replugging USB cable, but did not fix it.

    Hi
    Chamie7 wrote:
    Recently did upgrade from OS 10.6.8 and to Mainstage 2.2.2 and have lost lights on my Gio pedal only in Mainstage - still have them with Logic. 
    I presume that you mean that the switches do not light up as appropriate when you select a Patch in MS?
    If so, in Layout Mode, select each of the buttons in turn, and check that they are a) Assigned to the correct MIDI CC number etc, and b) that "Send Value to" has the correct Port selected.
    CCT

  • HT4061 Sir i have lost my apple iphone and i do not remember IMEI number of the iphone and the sticker affiexed on the box is also not present (lost) but i have the bar code 602-7484-A printed on the box and police is asking for the IMEI number so please

    Sir i have lost my apple iphone and i do not remember IMEI number of the iphone and the sticker affiexed on the box is also not present (lost) but i have the bar code 602-7484-A printed on the box and police is asking for the IMEI number so please help

    The IMEI number is stored in iTunes:
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    I can't imagine that any police agency in the world would request this information.

  • I have two iphones , i lost one  and entered to find my iphone and as mistake i block both and delate all the data of both. how can i get it on, im trying to restore it , but its not working ...

    i have two iphones , i lost one  and entered to find my iphone and as mistake i block both and delate all the data of both. how can i get it on, im trying to restore it , but its not working ...

    Hi Roger
    Thank you for your reply.
    My original feed is: http://casa-egypt.com/feed/
    However, because I modified the feed http://feeds.feedburner.com/imananddinasbroadcast and nothing changed, I redirected it to another feed and then I deleted this feed.
    Is there any way to change the feed in itunes? The only feed I have now is  http://feeds.feedburner.com/CasaEgyptStation
    I tried to restore the feed http://feeds.feedburner.com/imananddinasbroadcast but feedburner refused.
    I know that I missed things up but I still have hope in working things out.
    Thanks is advance.
    Dina
    Message was edited by: dinadik

  • I have an imac 2009 the disk drive is damaged and I have lost the passwords I need to reset passwords I tried booting with a macosx disk from an external hard drive but did not read the drive how else can I reset password ?

    I have an imac 2009 the disk drive is damaged and I have lost the passwords I need to reset passwords I tried booting with a macosx disk from an external hard drive but did not read the drive how else can I reset password ?
    I have a 2012 mac book pro can I use that to connect with firewire and load osx that way? and how woudl I do that?
    Thanks so much!

    To what password are you referring? Do you mean your user account's admin password? Or do you mean the master password for File Vault or do you mean a Firmware Password?
    For an admin password:
    Forgot Your Account Password
    For Snow Leopard and earlier
         Mac OS X 10.6- If you forget your administrator password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password and
         OS X Lion- Apple ID can be used to reset your user account password.
    If you cannot do the above then try this:
      1. Boot to Safe Mode by restarting and after the chime press and hold down the COMMAND-S keys until a black screen with white type appears.
      2. At the prompt, type the following commands pressing return after each command line:
         /sbin/fsck -yf
         If you do not receive a "Filesystem OK" message then repeat this command until
         you do.  If after seven tries you still do not receive a "Filesystem OK" message,
         then the system is corrupted and needs to be reinstalled.
         mount -uw /
         cd /private/var/db/netinfo
         mv local.nidb local.old
         rm ../.AppleSetupDone
         shutdown -r now
    The second-to-last command above will cause OS X to think that the operating system is newly installed, and when the new owner starts up the computer it will send him/her to the startup wizard where he/she can start a new user without reinstalling.
    This last method does not actually change a password. It simply removes the user accounts and lets you create an initial admin account as if the computer were new out of the box.
    How to reset the OS X password without a startup CD:
    Reboot into Single-user Mode. Enter the following and press RETURN after each command line
       1. Type fsck -fy
       2. Type mount -uw /
       3. Type passwd <username>
    I have never tried this method myself.

Maybe you are looking for

  • USB 6009, DLL

    Dear Friends, I would like to control USB 6009 through a C# DLL. Do you have any samples or document to develop a DLL for USB 6009. Could you please provide, If you have any samples Thanks, Best Regards, Rathan

  • Webdynpro Application and RFC problem

    Hi all, I have a webdynpro application that has a model with a RFC that allow users store a file into the disk, but when I try to run the application and pressed the button that make the call to the RFC I get the following error: Exception condition

  • Regarding  logical system

    Hi can any body help me how to assign logical system to business system in SAP XI.please send me screen shots if anybody have it.

  • Windows installer service can't be accessed

    I reinstalled my pc using original CD from Lenovo, but I got a problem saying" windows installer service can't be accessed" when I tried to install other programm, like microsoft, skype, acrobat and any others. I tried to fix that with all means, but

  • Authorization to display Net Price (NETPR) in purchase orders

    Hi, Where is the authorzation configured to hide the net price in purchse orders? I think it's a configuration setting (the IMG, SPRO) but I don't know where. Thanks.