Problem to generate Java package PL SQL in Jdeveloper
Hello
I have problem to create the java class package PL SQL in JDeveloper.
I use jdeveloper database navigator and right-click on a package and choose generate Java then in the Jpublisher window choose my controller view and accept other default values.
I call methods in the generated class in the Action of a button in my JSP page, but when I click the button it throws null pointer exception! I Fund one of the generated method return null and it lead to this exception.
protected DefaultContext __tx = null;
public DefaultContext getConnectionContext() throws SQLException {}
If (__tx == null) {}
__tx = (getConnection () == null)? DefaultContext.getDefaultContext (): new DefaultContext (getConnection ());
}
Return __tx;
};
public connection getConnection() throws SQLException
{
If (__onn! = null) return __onn;
ElseIf (__tx! = null) return __tx.getConnection ();
ElseIf (__dataSource! = null) __onn = __dataSource.getConnection ();
Return __onn;
}
I'm trying to generate the class in the model project and create DataControl to it and use the action method, but noting the change and I get null pointer again!
JDeveloper Versino = 11.1.1.7.0
I would like to ask you another question: why generate java packaging at all?
Where you want to call the package?
Back to your question: you should see the code as
Public Sub setDataSourceLocation (String dataSourceLocation) throws SQLException {}
javax.sql.DataSource dataSource;
try {}
Class cls = Class.forName ("javax.naming.InitialContext");
Object ctx = cls.newInstance ();
Meth java.lang.reflect.Method is CL. GetMethod ("search", new class [] {String.class});
dataSource = (javax.sql.DataSource) meth.invoke (ctx, new Object() {"java: comp/env /" + dataSourceLocation});
setDataSource (dataSource);
} catch (Exception e) {}
again throw java.sql.SQLException ("data source initialization error in" + dataSourceLocation + ":" + e.getMessage ());
}
}
in the generated code. This code search a data source (that you have defined for example on the Weblogic Server) by calling the method
setDataSourceLocaltion("jdbc/HRConnDS");
That look to the top of the n data source stores in the class variable.
Timo
Tags: Java
Similar Questions
-
I tried to install the latest version of itunes with windows 10 but he said "there is a problem with the installation package. A program to complete the installation could not be executed. Please contact the support staff. No matter what guys?
(1) temporarily disable your security/antivirus software
(2) download iTunes from the official source: http://www.apple.com/itunes/download/
(3) try to reinstall
(4) turn on your anti-virus
-
Original title: problem WIndows Installer to install the latest version of i tunes
When I try to install the latest I tunes version 10, I get a message "there is a problem with this windows package installer. a program run as part of the set up did not complete as expected "the downloads version, but will not be installed." How can I fix? I have an earlier version, but I need to update to use my i pad.
Hello
You can try the steps of troubleshooting provided in the link below and check if the problem persists.
Problem installing iTunes or QuickTime for Windows
http://support.Apple.com/kb/HT1926
To get help on the issue, you can get in touch with support for ITunes.
-
Error 1720. There is a problem with this windows package install. a script required fpr this installation to complete could not be run. Contact your provider to support personal or package. action Coustom DelAppData error script-2146828283. Argument or appeal of Microsoft VbScript runtime error: invalid procedures: "Left" line 22, column 1.
Contact the technical support for the program that you are trying to install. MS - MVP - Elephant Boy computers - don't panic!
-
iTunes does not install it: there is a problem with the installation package
When I try to install itunes on my computer, it says "' there is a problem with this windows package install, a program required for this installation could not be executed." What is happening and I can fix it? I have
There are various different problems which give rise to similar messages. Here are a few things that can help. If you get any errors along the way, please register completely for display in case you can not install it to succeed.
Re-download the package iTunes, but before that in this case, temporarily disable your antivirus (if you download directly from Apple, the file will be safe).
Open a command prompt window (start > run > cmd > OK) and type the 2 following lines, pressing ENTER after each line
misexec / unsubscribe
msiexec/regserverClose the command prompt window and see if the installation works.
Otherwise, download and install the latest Windows Installer: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8483
Click Start > run > services.msc > OK
Scroll down to Windows Installer
the "Startup type" should be "manual".
Start the Windows Installer service
Close the Services appletTry installing iTunes
Download the Windows Installer Cleanup of http://majorgeeks.com/Windows_Installer_CleanUp_Utility_d4459.html know that Microsoft has removed this utility of its servers to download because in certain circumstances he removed more than it was supposed to. For security, back up the registry first (see http://windowsxp.mvps.org/registry.htm ) or create a disc image/clone.
Use the free Revo Uninstaller(or cleaning) and repeat the installation of iTunes.
-
Error 1720. There is a problem with this windows package install.
Can I uninstall the Ask.com a toolbar script
Philip black [09:46]: Error 1720. Contact technical support staff or the seller-impossible packaging run vbisff open uninstall script error-not found script path?
There is a problem with this windows package install.
I can't uninstall the Ask.com toolbar script and program icon I
E-mail address is removed from the privacy *.Hey Thechiflows,
Welcome to the Microsoft Answers Forum!
Step 1:
To get rid of this error, I suggest you to install the latest version of Windows Installer, which you can download from the link:
Step 2:
Start the Windows Installer service.
1. Click Start, type Services.msc and press [ENTER]2. double-click on Windows Installer.
3. set the Windows Installer to Manual startup type.
4. Click Start to start the service. Note the error message, if any.
5. click on OK.
Step 3:
The Windows Installer CleanUp utility deletes all files and registry settings associated with the configuration of Windows Installer of a program.
Read the following article which talks about the description of the Windows Installer CleanUp utility:
http://support.Microsoft.com/kb/290301
Let us know if the steps above will help.
We look forward to hearing from you.Kind regards
Manasa P-Microsoft Support
-
Original title: after recent update, the installation software WONT work properly! Help!
- I am in desperate need of aid. I didn't something again on my computer, but these recent software updates. I've recently updated my my itunes and from itunes then will opens not or install it. It was working fine before that was last updated, but now used. I tried to uninstall several times, in a variety of versions. Still nothing. Is not specific to the user and system wide as well.
I get a message saying "there is a problem with this windows package install." A program required for this install to complete could not be run. Contact your supplier of staff or the package of support ".
Anyone know what I need to do? Or how to fix it?
Hi MxGurl,
If this occurs after the installation of update Itunes, then go to the following link and check if it helps.
iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits unexpectedly, freezes, or launch issues
http://support.Apple.com/kb/TS1717
If this does not help, you should contact Apple support or post in the Apple discussion forums.
http://discussions.Apple.com/category.jspa?categoryID=149
You can also check out the following link and try the steps by Suresh I Support Microsoft, moderator and Andre.Ziegler and check if this may help
Hope this information is useful.
Jeremy K
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think.If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
- I am in desperate need of aid. I didn't something again on my computer, but these recent software updates. I've recently updated my my itunes and from itunes then will opens not or install it. It was working fine before that was last updated, but now used. I tried to uninstall several times, in a variety of versions. Still nothing. Is not specific to the user and system wide as well.
-
He said: "there is a problem with this installation package. a program required for this installation could not be completed, contact your provider of batch
original title: itunes is not installed.Hello
Did you change your computer?
Method 1:
I suggest you to see the links and check.
Problem installing iTunes or QuickTime for Windows
http://support.Apple.com/kb/HT1926
See also:
Solve problems with programs that cannot be installed or uninstalled http://support.microsoft.com/mats/Program_Install_and_Uninstall
How to solve problems when you install or uninstall programs on a Windows computer
http://support.Microsoft.com/kb/2438651
I also suggest you to contact the Apple support and check.
-
Original title: windows installer
I could not able to install iTunes on computer whenever I try to install a pop up according to "there is a problem with this windows package install." A program required for this install to complete could not be run. How can contact your provider staff or the support package"I solve this problem?
Hello
Try the procedure described in the following article.
How to solve the problems when you install or uninstall programs on a Windows computer?
-
Problem Windows install
When you try to download iTunes I get the following error ' there is a problem with this windows package install a program required for this install complete could not be run.
I looked at several forums and tried cleaning patches, etc they suggest. I also tried to download Windows Installer 4.5 but keep says "the update does not apply to my system" (I tried all.)
I am running Windows Vista and have downloaded the service pack 2 (one remedy suggestions!) Someone out there has a solution?
Hello, Atwitsend...,
Try to repair.
Go into Add Remove Programs, then select Apple Software Update > change > repair.If this does not work, try to uninstall. .
Remove and reinstall ITunes, Quicktime, and other software components
http://support.Apple.com/kb/HT1923Download the iTunes Installer and save it on your desktop.
http://www.Apple.com/iTunes/download/
Try to install iTunes using the installer that you saved.
-
original title: problems with the installation!
I'm trying to reinstall iTunes I have experienced problems with it. However, when I try to install an error pops up saying something along the lines of "there is a problem with this windows package install." A program to complete this installation could not be run "." I have no idea why this happens and no idea how to solve this problem.
Any help would be great.
Error 9010
To disable the Desktop Window Manager by process - response: this is a normal message when a process requires exclusive access to the desktop (e.g. use DirectDraw /OpenGl in exclusive mode) or just likes to turn off the Messenger of the window of the Office for some reason any. It is not an error.
Error 9013
Press Windows Flag + R
Type %windir%\system32\SystemPropertiesAdvanced.exe
Press OkUnder performance, click the Settngs
Check enable the Composition of the Bureau
Click on apply, Ok
Error 1002 - I need the specific message
Installation of the Windows Installer Application
http://TechNet.Microsoft.com/en-us/library/cc735604 (WS.10) .aspx
Error 1001-
Installation of the Windows Installer Application
http://TechNet.Microsoft.com/en-us/library/cc735588 (WS.10) .aspx
Reset the Web browser
Tools > Internet Options > Advanced tab
Click on the Reset button
Check delete all personal settings
Click on the Reset button
Click Ok
Close the window
Restart the computer for the changes to take effect
Retry Installation
Error 100 - support contact Apple
http://TechNet.Microsoft.com/en-us/library/cc774985 (WS.10) .aspx
-
Update iTunes says "there is a problem with this windows package install.
the Windows Installer
My new update for itunes tells me "there is a problem with this windows package install. A program required for this install to complete could not be run. Contact your vendor for support "help?
Hi andypee,
You have made no changes to the computer before the broadcast took place?
Try the steps from the following link:
Problems installing and uninstalling programs on Windows computers
http://support.Microsoft.com/kb/2438651/Additional information:
Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7
http://support.Apple.com/kb/HT1923 -
I tried to update my iPhone to the latest version, but when I tried to download the latest version of iTunes, it gives me an error in the middle of the download, which says:
"There is a problem with this windows package install." A program required for this install to complete could not be run. Contact your supplier of staff or the package of support ".Then I opened my old iTunes again and tried to update my iPhone once again and then he started to back up my iPhone and delete the existing version if it might update the last being but then I got an error saying he needs the iTunes 9.2 update my iPhone. So I'm stuck with my iPhone can not be used and I can't download the new iTunes also. Please, need help on this issue?
Thanks in advance.
Now iTunes10 is underway, I downloaded and everything seems to work very well.
Thank you.
-
I need to uninstall the Apple software update program, but cannot. Message reads as follows: "there is a problem with this Windows package install." A requirement of the program to complete this installation could not be executed. Contact your provider to support personal or package. I have Windows 7 Professional.
I need to uninstall the Apple software update program, but cannot. Message reads as follows: "there is a problem with this Windows package install." A requirement of the program to complete this installation could not be executed. Contact your provider to support personal or package. I have Windows 7 Professional.
Hi, CA Bill.
Start the Windows Installer service.
1. Click Start, type Services.msc and press [ENTER]
2. double-click on Windows Installer.
3. set the Windows Installer to Manual startup type.
4. Click Start to start the service. Note the error message, if any.
5. click on OK.
Start uninstalling software Apple
If the above fails, use CCleaner uninstaller
http://www.Piriform.com/CCleaner/screenshots
See the help link - below
To remove, and then reinstall iTunes to windows 7.http://support.Apple.com/kb/HT1923
Web site support Contact Apple for additional assistance on the issue:
http://discussions.info.Apple.com/index.jspa -
Error1722 problem with the windows package install.
I try to install the Cisco VPN software and I get error 1722. Says that there is a problem with the windows package install. How can I fix it?
This is a general error and often a problem with the installation program itself, not Windows.
Download the installer for the latest version taken support your version of Windows (32-bit / 64-bit),
and give him another chance.
If problem persistst, redirect your question to the Forum of Cisco's Support of TechNet.
They will be able to help you the best.
https://supportforums.Cisco.com/
http://social.technet.Microsoft.com/forums/en-us/category/w7itpro
Maybe you are looking for
-
Set up the URL on the desktop with the icon of the site
How to create a desktop icon which is a 'shortcut' to a website URL. When I try dragging it in the address bar of Safari I get the web block but not the unique icon for the site.
-
Portege R100 USB2 CD-RW/DVD-Rom - Bootable?
Hello I bought a Toshiba R100 last year and I decided to wait before buying the reader of CD/DVD Toshiba I thought that bios should be updated to support booting from a USB stick or SD card. So far, I don't think that this has been done, so the CD/DV
-
Someone next to the circuit board inside the SCB-68? Thank you.
-
Outsourcing of the controls on the front panel for a panel floating Subvi
Hello! I already found a few similar topics, but I still don't know which is the best way to solve my problem. I will try to describe my problem in detail first: I have a main VI that acquires data from a device and displays these data in a large wav
-
PC laptop Pavilion 15: mousepad scrollfunction
Hello The scrollfunction on my mousepad does not always work. It works, and then out of the blue, it stops working. It seems that the only way to get back running again is to restart my computer, but obviously I don't want to always do this. Why is t