DB connection close issue - help
Hello
I use jDev 11.1.15, I have a scenario where I'm passing my form values to a stored procedure to db operations. To do this, I get the values in my grain of support form. Then I will pass these values of java class AMImpl.
pageDef Action method:
<methodAction id="deleteMapping" InstanceName="AppModuleDataControl.dataProvider" DataControl="AppModuleDataControl" RequiresUpdateModel="true" Action="invokeMethod" MethodName="deleteMapping" IsViewObjectMethod="false" ReturnName="data.AppModuleDataControl.methodResults.deleteMapping_AppModuleDataControl_dataProvider_deleteMapping_result"> <NamedData NDName="mapId" NDType="java.lang.String"/> <NamedData NDName="modBy" NDType="java.lang.String"/> </methodAction>
I use in my grain of support
OperationBinding mapDelete = bindings.getOperationBinding("deleteMapping"); --- --- Map params = mapDelete.getParamsMap(); params.put("mapId", mapId); params.put("modBy", currentUser); output = (String)mapDelete.execute();
in my AMImpl Java class
public String deleteMapping(String mapId, String modBy) { String output = null; Connection conn = null; CallableStatement st = null; try { conn = getDBTransaction().createStatement(1).getConnection(); if (conn != null) { System.out.println("DB Connected"); String execProc = "begin PKG_NM.SP_DEL_MAPPING(:ip_mapId," + ":ip_modBy," + ":op_errMsg); end;"; st = getDBTransaction().createCallableStatement(execProc, this.getDBTransaction().DEFAULT); try { st = (OracleCallableStatement)getDBTransaction().createCallableStatement(execProc, 0); st.setObject("ip_mapId", mapId); st.setObject("ip_modBy", modBy); st.registerOutParameter("op_errMsg", Types.VARCHAR); st.execute(); output = (String)st.getObject("op_errMsg"); } catch (SQLException se) { System.out.println("Exception @ deleteMapping ::" + se); } } } catch (Exception e) { System.out.println("Exception @ deleteMapping :: " + e); } finally { try { if (conn != null) { conn.close(); } if (st != null) { st.close(); } } catch (Exception ex) { System.out.println("Exception @ deleteMapping finally :: " + ex); } } return output; }
My class is able to hit the stored procedure and passing the params, after that he throw below mentioned exception
oracle.jbo.JboException: Houston-29000: Unexpected exception caught: java.sql.SQLException, msg = connection is closed
If disconnection below the code in my class, his works very well. but I want to close the db connection after the process.
if (conn != null) { conn.close(); }
Kindly help me to solve this problem.
Thanks in advance...
--
Virginia
Hello
is your application a typical ADF Application?
If you use the connection of the Application Module (AM) you must not close this (ADF Resource Manager do this work for you, for a 'normal' ADF application)!
Do you you only close the statement. So to remove this code tight connection.
Greetings
Martin
Tags: Java
Similar Questions
-
IM TRYING TO CONNECT TO HP HELP AND SUPPORT, BUT GET ERROR MASSAGE?
original title: network programs network networking Internet Web site Site Web Web Site URL
IM TRYING TO CONNECT TO HP HELP AND SUPPORT, BUT GET ERROR MASSAGE?
Hello
· What is the exact error message you get?
· What web browser do you use?
· The problem is specific with HP and support?
· What operating system do you use?
Please provide us with more information about the issue so that we can help you further. If you are facing this problem using Internet explorer, then I suggest to follow the troubleshooting steps form the article and check if that helps.
Can't access some Web sites in Internet Explorer
Warning: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings
-
I'm logged into my email on a public computer. Now, I can't close. Help, please!
What do you mean exactly with "I can't disconnect?
In general, you would not use Thunderbird on a public computer.
-
"Skype cannot connect. Get help with this problem.
Well, I downloaded Skype. Then, I connect to my account. And an error on my computer screen that says "Skype cannot connect. Get help in solving this problem. " Someone help me solve this problem?
Make shure that your firewall is disabled. If you have installed.
-
Skype opens then closes! Help please...
Skype opens then closes! Help please...
When I open Skype a white window opens and then it closes. On the small icons to the right to open also to the Skype logo in offline mode. (There is an arrow that goes upward, there on the taskbar), some assistance please.
Have you uninstalled DroidCam and other applications of virtual screenshot?
See also this:
http://community.Skype.com/T5/Windows-desktop-client/Skype-closes-on-startup/m-p/3478525#M290321
-
My new 6 iPhone says: unable to connect. Your identifier Apple is not enabled for iTunes Connect ~ (2002) Please help!
Hello
Have you used this Email address & apple id on another device from apple
Before the address e-mail is able to send & receive emails?
See you soon
Brian
-
Unable to connect to Microsoft Help
I can't connect to Microsoft Help. Get the error message. Same for other devices to aid programs. I have an internet connection that works very well... just unable to connect to the operating system or other program sites. All of the suggestions. Thanks, FZ
You said that you get an error message. What did he say?
While I wait, you can try to disable all the automatic detection of proxy:
(1) options open Internet
(2) on the connection tab, click LAN settings
(3) uncheck (all off), and then click OK and restart the computer.
-
"you are not connected to online help, that introduces you to our latest content. Check your internet connection and then again connect to online help. If you see this message, the online help service may be temporarily unavailable.
- You have problems with programs
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
Remember - this is a public forum so never post private information such as numbers of mail or telephone!
OK after rebooting in safe mode and try to help online which worked. I stop, rebooted and worked in the online help. He has never before. Turns off again, installed 27updates windows assistance online dhte still works!
Worth a try?
-
Not able to connect to MWAGUI
Telnet works, but MWAGUI giving the error "connection failed". Help, please...
We bounced back the application and services many times MWA. Also, we have disabled enabled several port but no solution yet.
There are 3 work of the plates for MWA GUI on the Windows Machine.
Patch # 12574324 for 11i
Patch # 12780257 for 11i
Patch # 20983924 for R12
All these patches work on Windows 7 and 8, with all versions of Java.
The first two patches for 11i work on R12 also but with a minor problem. When you press tab even though visually the cursor moves to the next field, but in reality, it remains in the previous filed and what you enter is taken as a stream in the previous field. The replacement of the tab in the first two tasks is
. To solve this problem the 3rd patch was created, which is the latest patch to work for R12 too but this patch after a few ORS and Patch requests (other modules) does not work anymore and gives the error "unable to connect". The first two patches can be used s a solution until a new patch coming to replace 20983924.
Please note that CMD/batch of all three patches files is performed differently, so follow the guideline strictly for the respective patch.
Kind regards
Pierre Paul
-
Downloaded CC and could open only once. Tried to download PS and the computer is off Mid-download. Now I can open is more than CC. It does nothing or said there was a problem and windows have to close. Help, please!
ininstall all cc
clean a http://www.adobe.com/support/contact/cscleanertool.html
Restart your computer
Reinstall the cc desktop application, https://creative.adobe.com/products/creative-cloud
-
Hello, I bought the download of Lr 5 6 Lr, and I want to validate the serienumber. But Adobe is still asking to connect to internet. Why, I'm connected. Please help ;-)
Refer to this:
Mylenium
-
Reason for NetConnection.Connect.Close
Hello
I use EdgeCast Flash Media Server to play streaming video. In my office most of the time I get the message video and NetConnection.Connect.Close stop working but same time I can play the other video streaming like jaman mtv.com and other files from the Flash media server, I can play on their site. When I'm not able to play the video because of the NetConnection.Connect.Close, at the same time my friends can play video from outside my office and the reigion. The problem I am facing at the beginning of the video, as well as in the middle of the video too.
Our office network administrator found still one problem in network so not able to diagnos the problem. It would be better if you can send me the reason why NetConnection.Connect.Close passing in the middle of the video with your suggession.
I use the single setting in NetConnection.connect() ("Conn Url");
Please me suggess what I have to do.
Thanks and greetings
Sunil Kumar
Are you sure that you use the same SWF to connect to FMS that you placed on the side for SWF verification Server?
You're on Flash Player version 9.0.115.0 or above?
Would you be able to see logs of FMS, if so is the application.00.log for the FMS application whereby you connect so that every trace that says "SWFVerfication failed" when you try to connect?
Thank you
Mamata
-
I can not get connected to Windows Live Messenger.
Whenever I connect it comes up "Windows Live Messenger has stopped working, a problem caused the program to close down."
Can you help me pleasehttp://www.windowslivehelp.com/forums.aspx?ProductID=2
They will help you with your WLM questions when repost you your questions in the Forums above Windows Live Messenger.
See you soon.
Mick Murphy - Microsoft partner
-
I installed CC Office om my laptop some time ago. All of the CC Apps and updates work perfectly on this laptop.
For about half a year, the apps also worked well on my PC (Windows 7 Pro Service Pack 1).
I recently upgraded to Photoshop, Illustrator, Acrobat Pro for CC (2015). Since then, whenever I try to open the software on the PC, I get the same errors
Above errors translated:
"Unable to connect this PC / device.
This Adobe ID is already in use on two or more other devices. »
This is not true, because I only installed and activated the CC on my laptop (1) and my PC (2).
Whenever I try to "disconnect on the other computers and devices", I get another error that States:
"Please connect to the Internet and try again, your computer is offline for the computer clock is out of adjustment," he said.
which causes a connection error. Internet connection is required.
Connect to the Internet, set the time / date setting and try again.
Please contact Adobe Support if you continue to get this error"
Despite the fact that this error doesn't make really sense (I'm online and only connected on 2 devices), I did as suggested and contacted by chat and phone customer service.
Both by myself and with the support of Adobe's cat, I tried:
1 disconnect and reconnect to the application of CC Office.
2 close Adobe all associates of processes in the Task Manager > run %LocalAppData% > Adobe > OOBE > delete the opm.db file > sign up again on the desktop CC application.
3 stop the Windows Firewall and McAfee VirusScan
4 remote support / access
All of these have been unsuccessful.
Then, using the language Dutch on my PC as being the problem, by Chat and phone customer service is not able to help me any further.
So, unfortunately, after many hours of conversations told me that - because my CC apps are defined in Dutch-, no one is able to help me.
I reallyreally hope someone can help me solve these problems CC in this way, because I was not able to produce anything on my PC for over a week now!
Best wishes
Marleen < deleted by the moderator >
Please see: 'please connect to the Internet to continue' error guard popping up.
Setup error to connect to the Internet, your computer appears to be offline
Log, activation, or connection errors. CS5.5 and later, Acrobat DC
I hope this helps.
Concerning
Megha Rawat
-
Satellite L50 - B - 21 G: abandon WLan connection / power issue
I bought my laptop about six weeks ago and its driving me crazy. I could be sitting with him and suddenly I lose the internet connection, I try to reconnect, but cannot as he seems to have "abandoned" the Broadcom 802.11n network adapter. I'm not very irritable but sees someone else has had this problem and follow a few instructions to restore the previous driver for the network adapter, but it just made things worse.
In addition, I can never turn my laptop. If I choose the "shut down" option then it turns off, but there is always a light flashing around the power button. I heard he's going a few hybrid sleep, but I had instructions to stop this, but again its happening. I can't just press the power button to restart the laptop it restarts with the loss of the network adapter (see above), so I sit in pressing and holding the button several times until it restarts finally with the back working network adapter.
If I just stopped the lid (as I applied this option overall upwards), then three hours I can just return, press a button and begin to work, however, once again, I can not because the network adapter is down and I have to then push and hold the power button (that choose shut down doesn't seem to work).
This laptop was designed to replace an old ADVENT that caused me grief, but I'm done with nothing else than a box of junk that I want to throw. Worse yet, I'm not at all way techy am so not able to do what many of you can do to correct problems so I tried to find a phone number to call Toshiba and never get an option to type in what is my problem and then follow the online help that I tried and does not work! Y at - there someone who can give me a number for Toshiba that I can call for help if I need help more than anybody can give me here? Thank you.
I have already answered in another thread with the similar question of Wlan and I guess it could be a related issue of energy saving:
Reach:
Windows power options - choose the right central - advanced power options.
Search of the WLan card settings and set it to "best performance".
You must also set the parameters for the PCI express for the 'best performance '.In addition, go to the Device Manager. Choose here the Wlan card properties
Switch to the last tab called "Power Management" and make sure that the option available in this tab is not checked!
Maybe you are looking for
-
I don't want to charge my laptop I already use Firefox. I need to know how to download on a USB key that I can load and then in the other laptop.
-
Cannot move the bookmarks in the bookmarks toolbar... I get the slash instead
When I try to drag a web address in the bookmarks toolbar... I get the circle with a slash in there... I can't add all the bookmarks in the bookmarks toolbar. This never happened in older versions of the combustion chamber, only in version 31. Any he
-
Why not uninstall it on my computer work for the cards galaxy toolbar?
I tried for about four hours to uninstall the toolbar from Galaxy of cards because my computer is mess with it and it does not work, uninstall on my computer ceases to appear with it please wait it is complete the uninstall, but there is no progress.
-
Refresh the screen after the change of Focus
I'm trying to color the background of the complete handler, when one of its fealds leaf receives focus. I am against the version 4.3 programming. For this, I replaced the paint for this method (the m_ prefix designates a member of the object variable
-
How to view images by default in an e-mail message
I get bad emails that have images. I have to continue until you reach the "show images" button to view images and this can get quite tedious. Is it possible to set up so I can't continue to rise at this button?