Why is getDBTransaction().createPreparedStatement not recoginzed even after importing ApplicationModuleImpl?
Hi everyone,
The code below compiles fine from my ServicesAMImpl class (which extends ApplicationModuleImpl). But, when I move this to a "common" class, the code below is not found even when I import the ApplicationModuleImpl class.
protected void callStoredProcedure(String statement,
Object[] bindVariables) {
PreparedStatement preparedStatement = null;
try {
// 1. Create a JDBC PreparedStatement.
preparedStatement =
getDBTransaction().createPreparedStatement("begin " +
statement +
"end; ", 0);
if (bindVariables != null) {
// 2. Loop over values (if any) for the bind variables.
for (int i = 0; i < bindVariables.length; i++) {
// 3. Set the value of each bind variable in the statement.
preparedStatement.setObject(i + 1, bindVariables[i]);
// 4. Execute the statement.
preparedStatement.executeUpdate();
} catch (SQLException e) {
throw new JboException(e);
} finally {
if (preparedStatement != null) {
try {
// 5. Close the statement.
preparedStatement.close();
} catch (SQLException e) {
System.out.println("Exception in callStoredProcedure(" +
"String statement, " +
"Object[] bindVariables): " + e);
e.printStackTrace();
James
James,
This is simple java. The method you have problems with, getDBTransaction, is a method which is implemented in the application module implementation class. When you move the method into a common class you move it outside of the application module and the getDBTransaction is not reachable.
As only the application module handles transactions it doesn't make sense to move your method outside the application module.
Timo
Similar Messages
-
Spoken work files will not play even after importing/converting?
I have some audio files recorded on my Android phone with the basic recording app and the files play when I press the spacebar to preview them in Mavericks. However, after importing them into iTunes using various import settings, including the podcast spoken word ones, they just will not play. When I double click on the file it looks like it is about to play, the apple icon at the top switches to what looks like a progress bar, though it is different from other tracks that do play, and then it immediately switches back to the apple icon and does not play.
Any ideas of anything I can do?
Thanks.I've found an issue with movies when the audio is IMA format. Is that the format of your audio?
-
Why is my iPhone not responding even after restoring
some one please help me !
Hello Hello Katrina,
It sounds like you are unable to restore your phone successfully, as it keeps getting stuck at the loading screen. I recomend putting the phone into recovery mode and attempting the restore again. The following article will assist you with that:
If you can't update or restore your iOS device
http://support.apple.com/kb/ht1808
Use recovery mode
Recovery mode erases your device and restores it, which should resolve the issue. If you previously synced with iTunes or iCloud, you may be able to restore from your backup after recovery.
Turn off your device. If you can't turn it off, press and hold the Sleep/Wake and Home buttons at the same time and wait a few seconds for it to turn off.
Plug the device's USB cable into your computer only.
Hold down the device's Home button as you connect the USB cable to it.
When you see the Connect to iTunes screen, release the Home button. If you don't see this screen, try steps 1 through 3 one more time.
iTunes should open and display a message such as: "iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes."
Use iTunes to restore your device.
If you don't see your device in iTunes, follow these steps for Mac or these for Windows.
Thank you for using Apple Support Communities.
Cheers,
Sterling -
Firefox installed but not working even after importing settings from IE
I've just downloaded firefox and installed with settings imported from IE which is working very fine.but i couldn't get firefox worked.it keeps on saying 503 error,but IE and chrome are working excellent at the same time.i prefer firefox than those for addons.i terribly need it.help me where is it going wrong?
== User Agent ==
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4Create a new profile as a test to check if your current profile is causing the problems.
See "Creating a profile":
*https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
*http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
If the new profile works then you can transfer some files from an existing profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem.
*http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox -
Why can I not disable the guest user in the 10.8.2 update? I have never enabled the guest user, but after the update, it was automatically enabled with a "managed" tag. It is not selectable even after entering my admin password to unlock the options. I was able to select the account under "parental controls", but again, could not delete it. Why Apple? Why?!!????
SOLVED Ok. I actually was able to disable it. I had to actually log in as the guest user to make it accessible in the preference window. Then I disabled it and logged out. Apologies if this was obvious for some people, but I have had some sort of issue with something every update since Snow Leopard.
-
Why ill the flash player not intialize even after disabling firewall and antivisurs software
Why will the flash player not intialize even after disabling firewall and anitvirus software?
Windows XP and internet exployer? I can get the flash player to begin the
download but stops at about 50% initalization
Greenleaf Compaction, Inc.
142 W. Main
P.O. Box 265
Hopkins, MI 49328
Phone: 1-877-552-9369
Fax: (269) 793-7298
New email address: [removed] -
After installing iOS6, my Maps are not working at all, anything i search it says "result not found" even after placing a pin and selecting "Direction to here" i get the same result not found. Very disappointed with the new iOS.
Have you run it in a debugger? That will show you exactly what is happening and why.
-
Iphone 4 front camera not working even after reboot,resets and restore.
i am using iphone 4 .I have problem that front camera is not working even after reboot,resets and restore with itunes.I thing there is a hardware problem.
Now i wont to go apple store for replace the phone because phone is under warranty period.But problem is that i lost the receipt.Will apple store help me without my receipt ?please help meIf setting up as new device without using the latest backup does not bring the camera function back, get it looked at or serviced by Apple:
How to back up your data and set up as a new device
Apple - Support - Service Answer Center -
My iPod Touvh 4th Generation won't turn on. It will not charge even after I used a few chargers and will not connect to a computer. The Home button is broken and I don't know if the Lock/Sleep button is now broken or stuck as well. I believe there may be a problem with the battery or the backlight. I've had my screen replaced once by some stooges. What should I do?
Try:
- iOS: Not responding or does not turn on
When it says place the iPod in recoverymode use one of these programs.
For PC
RecBoot: Easy Way to Put iPhone into Recovery Mode
If necessary:
Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
and
RecBoot tip
For MAC or PC
The Firmware Umbrella - TinyUmbrella
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
CS5.5 and OSX 10.9.4: Most applications will not launch even after uninstalling and reinstalling the Creative Suite 5.5. After my 2011 MacBook Pro 17 died, I had to purchase a new MacBook Pro 15 to replace it. I performed a Time Machine installation from that 2011 machine, and only Distiller and Acrobat would launch (none of the rest of the creation apps). So I ran the CS5.5 installer, uninstalled, then reinstalled, producing the same result. When I try to launch, nothing happens. What next?
Try...
Adobe Creative Suite Cleaner Tool
helps resolve installation problems for CS3 thru CS6 and for Creative Cloud
http://www.adobe.com/support/contact/cscleanertool.html -
Social App not working even after update from noki...
nokia n8 social loading feeds.
My wife and i have the same problem now, only last week she said my phone will not work on facebook the widget on main home screen will not load feeds at all, and the widget is now blank saying refresh all the time, so i linked the phone up to the computer and did a scan for new updates with nokia updater which you can download from nokia site.
Its now the 4th jan and the phones still will not work even after and update from a socail app,
nothing , facebook will load after a few pushes, and looks like its loading till it says loading feeds then it says the (wording unable to load news feeds)Uninstall the social app and reboot your phone. Then go to software updates and reinstall from the offering given in the updates. I've uninstalled and reinstalled social twice and it has worked both times.
blitZkid
Nokia C7: Running on Nokia Belle
"If I'm helpful in anyway, a click of appreciation on the star would be nice" -
The g, h and backspace on my keyboard are not working even after replacing with a new one. I have also updated my BIOS still d same. Please help me ASAP.
...am waiting for a QIUCK RESPONSEHow does a usb keyboard attached externally work?
You might try a "hard reset" where you remove battery and AC charger, hold down power button 20-30 seconds and then reassemble and turn on. Reset BIOS (F10) to default settings, too. -
Why does my iMessage not work even with my apple ID signed in?
Why does my iMessage not work even with my apple ID signed in?
Using FaceTime http://support.apple.com/kb/ht4319
Troubleshooting FaceTime http://support.apple.com/kb/TS3367
The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
http://tinyurl.com/a7odey8
Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/TS4268
iOS: FaceTime is 'Unable to verify email because it is in use'
http://support.apple.com/kb/TS3510
Using FaceTime and iMessage behind a firewall
http://support.apple.com/kb/HT4245
iOS: About Messages
http://support.apple.com/kb/HT3529
Set up iMessage
http://www.apple.com/ca/ios/messages/
iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
http://support.apple.com/kb/HT5538
How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
Troubleshooting Messages
http://support.apple.com/kb/TS2755
Troubleshooting iMessage Issues: Some Useful Tips You Should Try
http://www.igeeksblog.com/troubleshooting-imessage-issues/
Setting Up Multiple iOS Devices for iMessage and Facetime
http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
FaceTime and iMessage not accepting Apple ID password
http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
FaceTime, Game Center, Messages: Troubleshooting sign in issues
http://support.apple.com/kb/TS3970
Unable to use FaceTime and iMessage with my apple ID
https://discussions.apple.com/thread/4649373?tstart=90
How to Block Someone on FaceTime
http://www.ehow.com/how_10033185_block-someone-facetime.html
My Facetime Doesn't Ring
https://discussions.apple.com/message/19087457
Send an iMessage as a Text Message Instead with a Quick Tap & Hold
http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
How to Send SMS from iPad
http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
You can check the status of the FaceTime/iMessage servers at this link.
http://www.apple.com/support/systemstatus/
Cheers, Tom
BTW- Your profile shows you have iOS 6.1.4 installed. The max iOS for an iPad is 6.1.3. iOS 6.1.4 is for iPhones only. -
Change Button Not Active even after Delivery Completion Indicator is Remove
Hi ,
In SRM 5.0 ,Change Button Not Active even after Delivery Completion Indicator is Removed for Completed PO to cancel the GR or make changes.
Thanks & Regards,Hi,
Please check these notes.
Note 1267916 - PO item flags do not stay checked
Note 1174982 - Return/deletion of confirmation does not update the PO flag
Thanks
Zameer -
my sytem preferences remains in hang and is not responding even after force quit,may i have suggestion la
Hello: Welcome to Apple Support Communities!
Could you specify the Mac OS X version and also what computer you
are using it on, with some detail? Some of these kinds of issues, while
they may seem the same across various years of OS X, can have
different causes and also different cures.
With that information, someone may be capable of researching a reply
most suited to try & see if it works in your computer + OS X system.
One idea, which may/may not help, would be to start the computer
from its most recent OS X DVD install disc, unless it has OS X 10.7
or Later, where there is a Recovery partition on the HDD to boot from.
Then use Disk Utility> repair disk, while there, also repair permissions.
Thanks.
Good luck & happy computing!
Maybe you are looking for
-
i get the following error message: 'an error occurred while connecting to the remote speaker. an unknown error occured (-3256). I've reset the airport and it's connected back to my network but this error persists -- anybody have any ideas?? thanks in
-
I want to publish the site that I just made and it said that it won't go live until I have a paid membership. So then I paid for a membership and when I go to manage the site and click launch site it still says it's on the trial version. Will someone
-
Computer not recognizing external harddrive
I just did a software update and now my macbook pro will not see my external hard drive
-
Greetings, -if my question violates forum policy I apologize I was reading a document....every DBA check list...and among the list of activities one is verify undo/rollback segment.. and it says the roll back segment should be of status ONLINE. and i
-
How to Disable\Remove Registration option under Help menu in Lightroom 5.3
Hi, Could someone kindly guide as to how can we remove\Disable the Lightroom Registration option under help menu for Adobe lightroom 5.3? I intend to deploy the application for enterprise users and do not wish that the users should be able to see the