Need help re applet and oracle thin
I'm having with applets when it comes to connection to the database. Here's what happened I want to integrate my Elixir report to my applet application I compiled it and I saw no error. But when I tried to run a dialog box appeared into my screen with a message
"java.security.AccessControlException:access denied(java.util.PropertyPermission oracle.jserver.version read)"
what's wrong with this I don't know what to do already hope you can help me figure out what's wrong with my program tnx.
here's my html code:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Shem Kua">
<meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; I) [Netscape]">
<title>PPI Reports</title>
</head>
<body>
<applet codebase="./" code="ReportApplet" archive ="report.jar,elxrt.jar, ojdbc14.jar" width=780 height=480>
<param name=mode value="appletviewer">
<param name=dsmfile value="sav/ppi.sav">
<param name=template value="templates/ppi.template">
</applet>
</body>
</html>
In contrast to what many people say in this forum, it is possible to have an unsigned applet access a database. You don't even have to manipulate the client's policy-file. The requirement is that the database is located on the same machine as the applet is downloaded from.There are however other things that can break this possibility. One is the database-driver itself.
In the case of Oracle we have tried using different versions of the driver. When using version 8.1.7 or 9.0.1 things work nicely, but when switching to version 9.2 it stops working. There is a question on OTN [1]. Let's see what Oracle has to say about it.
[1] Problem connecting using Oracle JDBC drivers
Similar Messages
-
I need help with Applets and Multithreading
[hello all. first time poster. big fan of java.]
now to the important matter: Applets and Threads
=======================================
1) I have an applet with that implements the runnable interface, and has one thread (and a simple animation). If I try to view this applet in the applet viewer with JGrasp, it spits an insane error telling me
"java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)"
but, if I run the applet through a web browser, by putting it in an html document, it runs correctly, without error
What on earth is wrong, and how do I fix it?!?
2) I want to put 2 threads in my applet?
If I implement the Runnable interface, I can only have one Run() method in my applet, right?
So how do I define behaviour for 2 threads when I only have one run method in which to define the behaviour? Can I use two threads with the runnable interface, or do I have to make objects of my own defined thread classes?
3) I tried to make 2 threads in my applet by creating my own thread classes, and instantiating them in my applet (instead of implementing the runnable interface).
I still get the same insane error as I mentioned in my first point (which I expected), except now, the applet won't work even when viewed through a web browser!!
Please please help me. I am frustrated beyond belief (at what is probably a very simple problem)
I have searched and searched all over and found no answers on thisIf I try to view this applet in the applet viewer with JGrasp, it spits an insane error telling me
"java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)"Don't know anything about JGrasp, but it runs with pretty tight security - thats what this insane error is all about. Use the appletviewer or a browser.
If I implement the Runnable interface, I can only have one Run() method in my applet, right?Correct
So how do I define behaviour for 2 threads when I only have one run method in which to define the behaviour?
Can I use two threads with the runnable interface, or do I have to make objects of my own defined thread classes?You can create two Runnable implementations (classes) in your applet.
example (missing code)
class MyApplet extends Applet {
void doSomething() {
void doSomethingElse() {
void startThreads() {
Thread t = new Thread(new Runnable() { public void run() { doSomething();}});
t.start();
t = new Thread(new Runnable2());
t.start();
class Runnable2 implements Runnable {
public void run() {
doSomethingElse();
}If the above seems confusing, read up on anonymous and inner classes.
3) I tried to make 2 threads in my applet by creating my own thread classesTry not subclassing thread - this causes a security check -
Need help solving listener and Oracle problems with Mac OS X 10.4 "Tiger"
I have Oracle 10g working on Mac OS X 10.4 "Tiger" except for the listener and Oracle net 8 configuration. I have not been able to get the Oracle listener to work with my built in Mac Airport wireless network card or built in ethernet card. I keep getting the errors
connection refused cannot start listener. Can anyone offer help?
Thanks
Ben
[email protected]Hi Ben,
how does your listener.ora look like ?
Mine is:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ronald-g4-eth)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = ronald-g4-wifi)(PORT = 1521))
and listens to the ethernet and airport address.
When do you get the problems ?
regards,
Ronald
http://ronr.nl/unix-dba -
NEED HELP IN JSPX AND ORACLE INTEGRATION
Dear friends ,
I stored all images in my Tomcat web server where the url of them is as
http://localhost:8081/img/xyz.PNG etc.
and I stored the same url in the database table.
jspx code of the file is as follows which query the database and return images url from database oracle 10g server to generate image-
*<?xml version="1.0"?>*
*<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"*
xmlns:c="http://java.sun.com/jstl/core"
xmlns:sql="http://java.sun.com/jstl/sql"
version="1.2">
*<jsp:directive.page contentType="text/html"/>*
*<jsp:directive.page import="java.util."/>*
*<jsp:directive.page import="java.text."/>*
*<html>*
*<head>*
*<title>MAP OF THE CITY</title>*
*</head>*
*<body bgcolor="white">*
*<sql:query var="img">*
SELECT citymap FROM map_service
WHERE cityname =?
*<sql:param value="${param.cityname}" />*
*</sql:query>*
*<img src="${img.citymap}" />*
*<p>*
*<form action="AAA.jsp" method="post" >*
*<input type="submit" value=" AAA " />*
*</form>*
*<form action="ZZZ.jsp" method="post" >*
*<input type="submit" value="ZZZ" />*
*</form>*
*</p>*
*</body>*
*</html>*
*</jsp:root>*
THE OUTPUT OF THIS CODE SHOWS A X MARK IN PLACE OF IMAGE AND THE HTML OF THE PAGE IS AS-
*<html><head><title>MAP OF THE CITY</title></head><body bgcolor="white">*
Snap Diary
*<img src="${img.citymap}"/><p><form method="post" action="AAA.jsp"><input value=" AAA " type="submit"/></form><form method="post" action="ZZZ.jsp"><input value=" ZZZ" type="submit"/></form></p></body></html>*
In place of image there is a cross
*the right click on image show this url http://localhost:8081/map_project/${img.citymap}*
where the actual folder in which I stored snap is http://localhost:808/img/ and the url which I stored in the database
is also as http://localhost:8081/img/axz.PNG etc...
*Query should return the value as http://localhost:8081/img/axz.PNG not as http://localhost:8081/map_project/${img.citymap}.*
What's the reason?
*<img src=<c:out value="${img.citymap}" /> is working well with jsp page but show error in jspx format why?*TNSTAAFL
I DO NOT work for Best Buy, Geek Squad and any way affiliated with them. I am a self-employed repairman. I specialize in TV's and desktop computers. I do not take sides. If BB is wrong I will say so. If you are a moron with a false sense of entitlement, then I will tell you. -
Method getCustomDatum() and Oracle thin client
Hello All,
I am using WL6.1 and an Oracle thin driver. I am using the Oracle Intermedia classes
for Java in order to retrieve images for jsps and servlets.
Trying to use the Oracle classes caused class cast exceptions. When using the
weblogic.jdbc.vendor.oracle.OracleResultSet, I got the error
"java.sql.SQLException: getCustomDatum is not supported by the Weblogic JDBC Driver".
I was wondering if anyone else has run into this problem? Any help would be greatly
appreciated.
Thanks,
RichSlava,
Thank you for your help.
- Richard
"Slava Imeshev" <[email protected]> wrote:
Hi Richard,
"Richard Dedeyan" <[email protected]> wrote in message
news:3d2638f5
Do you mean that I need to get to get a connection directly to thedatabase using
the Thin driver instead of getting the connection via the pool?Yes, this is the first option. Note that with using thin driver directly
you loose all advantages of using weblogic JDBC subsystem like
transactions, connection pooling and caching of prepeared statements.
I'd go with a stored procedure.
Regards,
Slava Imeshev
Thanks for your help.
- Richard
"Slava Imeshev" <[email protected]> wrote:
Hi Richard,
This feature is not supported by weblogic because
oracle Datum is not serializable. In case you have a
strict requirement, you will need to switch to using
oracle thin driver directly. You could also consider
moving processing to stored procedure.
Regards,
Slava Imeshev
"Richard Dedeyan" <[email protected]> wrote in message
news:3d260294$[email protected]..
Hello All,
I am using WL6.1 and an Oracle thin driver. I am using the OracleIntermedia classes
for Java in order to retrieve images for jsps and servlets.
Trying to use the Oracle classes caused class cast exceptions. Whenusing the
weblogic.jdbc.vendor.oracle.OracleResultSet, I got the error
"java.sql.SQLException: getCustomDatum is not supported by the
Weblogic
JDBC Driver".
I was wondering if anyone else has run into this problem? Any helpwould be greatly
appreciated.
Thanks,
Rich -
I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?
What file format did you export it to?
-
Need help to import and syncronize HCM pagelets with Interaction Hub, how can I do that?
Hi,
I need help to import and synchronize HCM pagelets with Interaction Hub, how can I do that? The default page "Select Remote Content" of the WorkCenter "Unified Navigation WorkCenter" is not working as well, when I run the import/sync button I get the following error message:
Integration Gateway: General Connection Failed (158,10836)
This error is thrown when there is no valid response.
Possible errors include:
Bad gateway URL
Sync Service Timeout set and Service actually timed out.
Java exception thrown - Check Application Server for possible Java exceptionDo you have integration configured between the two systems? It sounds like you don't from the error. Here is a walk-through on setting up Unified Navigation although it assumes you have integration already working. If you haven't done that, it's documented a hundred different places.
http://remotepsadmins.com/2013/03/04/peoplesoft-unified-navigation-with-peoplesoft-applicatations-portal-interaction-hub/ -
I need help in downloading and installing a previously purchased version of Photoshop Elements 12: AD012822594 1057-0247-4177-3303-6451-8067 or 1057-0904-6949-7119-8323-9165
Please do not share serial numbers or Order numbers on Forums . Serial numbers and order numbers are very confidential.
You can only share serial number with Adobe Customer support staff. -
I need help in downloading and installing a previously purchased version of Photoshop Elements 12: <Serial number removed by moderator>
Hi There,
Kindly try: Troubleshoot installation | Photoshop Elements, Premiere Elements | Windows
Thanks,
Atul Saini -
Need Help in installations and connecting displays. Please!
Hello Everyone,
Need Help in installations and connecting displays. Please!
Im planning on installing in a cafe shop : (Store Self improvement)
4 TV's (can be Built in Wi-Fi) Store menus
2 touch screen tablets. To be use as Emenu (digital Menu)
1 60' TV ( Built in Wi-Fi) as Entrainment displays and in store advertising
What do I need to organize my project and make it looks cool and how to manageand controll all of the displays TV.TNSTAAFL
I DO NOT work for Best Buy, Geek Squad and any way affiliated with them. I am a self-employed repairman. I specialize in TV's and desktop computers. I do not take sides. If BB is wrong I will say so. If you are a moron with a false sense of entitlement, then I will tell you. -
I need help from chile and use a language translator to write and not turn my iphone4
I need help from chile and use a language translator to write and not turn my iphone4
http://support.apple.com/kb/TS3281
Not turn on -
Please help me!--rendering makes the images or video blurry (very pixelated) deteriorates the image Adobe Premier Elements 13 need help! .jpg and mpeg images, but I have never "rendered" before since I got APE 13 about 6 weeks ago. I am desperate for assistance!
That's going to be a ridiculous waste of money and energy.
First of all, the current ATI drivers don't support multiple GPUs, so at the moment even a single 4870X2 would be only a 'normal' 4870 (which is quite a speed beast already). GFX drivers evolve rapidly, so things might look different next month, but when it comes to Linux and hardware there's one Golden Rule: stay away from the newest stuff and wait for proper support to get coded.
I also wonder what power supply could possibly cope with the differences between idle and full load; that's way beyond 400W. But then, I'm one of those "quiet&green" types where >100W idle is already a bit much.
I kind of understand that you want to get it done and not worry about hardware for the next 10 years or so, but that's simply not how the hardware world works and never did. At least not for the average consumer. -
I am new to this but need help. Lion and iCloud have never worked on my desk top or MacBook Pro. Slow or Stop! Is there any way to fix the problem?
We need more information. I'm not sure what you mean by both Lion and iCloud have never worked.
-
I need help locating where and how to update Mac OS-X to Mountain Lion.....Thanx....Jay
First update your 10.6 version to 10.6.8 from the software update under the Apple Menu.
This will add direct access to the Mac App store via a new application.
Now launch the App Store from your Applications folder - Its the new icon a letter A formed from a ruler pencil and pen on a blue circle !
Once launched you need to add your iTunes account details or create an account add payment details etc...
Sign in purchase download and follow install processes to upgrade to 10.8 Mountain Lion.
OH and to be safe BEFORE you install backup your current system to an external drive ! -
This is a second try to get help. I need help to uninstall and reinstall Photoshop cc 2014
Bridge is not working well, I need to reinstall Photoshop cc 2014 . Someone from Communities was suppose to help me.
Hi John,
I used the chat "Creative chat support" this afternoon at around 14:40
and the person, Karthik M , gave me a link to Technical Support. I
guess he could not help me, but he said he understood the issue. With
the link "Help, Adobe Installation problems", I will follow the
instructions to clean ps cc2014 with CCleaner and reinstall the app.
It looks quite complicated but I will give it a try and hopefully succeed.
You have to understand when reading my previous messages, the issue is
no longer "Retreiving Photoshop CC" but reinstalling Phoshop 2014 to try
to repair Bridge.
Thanks for caring,
Suzanne Lanthier
Le 2014-08-13 15:50, John T Smith a écrit :
>
This is a second try to get help. I need help to uninstall and
reinstall Photoshop cc 2014
created by John T Smith <https://forums.adobe.com/people/JohnTSmith>
in /Adobe Creative Cloud/ - View the full discussion
<https://forums.adobe.com/message/6637788#6637788>
Maybe you are looking for
-
DVD-ROM Feature (DVD@ccess)
I recently finished creating a DL DVD and in one of the videos I put a DVD@cces marker to connect to a website. I followed the instructions in many tutorials and books to a tee. I burned the DVD and tried it in my Apple DVD player (after enabling DVD
-
A4Tech USB mouse detected as Joystick
I hope there isn't a duplicate to this, I couldn't find one, but my searching skills aren't exactly superb. Hello, I'm trying to play FEZ on steam but the game is unplayable due to, what appears to be, my mouse being picked up as a joystick by steam.
-
CIN: Excise Accounts not available
Dear Friends, In SPRO-> CIN-> A/c Determination-> Specify Excise Accounts per Excise Transaction, we donu2019t have following options: 1. PLA AT1 2. PLA ECS 3. RG23 AT1 4. RG23 ECS Can we bring these options from std. configuration wi
-
Hi All , I am trying to prepare for MDM 5.5 , I have gone through some materials like MDM100 , MDM 101 , MDM 400 and MDM 300 . I also have seen some sample questions given in the SAP certification site. I do not have work experience in
-
Bug: identity plate setup
This is just a small bug but annoying to me because of the font I use in the identity plate. When setting the Identity plate, the program ignores the style drop down (centre one ) for the module picker buttons. It simply uses the first default style