Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Applet and Java Plug-in

843807Dec 5 2002 — edited Dec 11 2002
I am using Java Plug-in with an applet.
The applet is invoked from the JSP page.
When I resize the container frame I want to resize the applet frame so I have a resize() function in the JSP which invokes the setSize() function in the applet on resize and on Load.

I am getting an error "Object does not support this property or method" when the resize() invokes the "document.ViewerApplet.setSize(w_newWidth,w_newHeight);"

What might be the reason?
Here is my JSP code:

<SCRIPT LANGUAGE="JavaScript">
function resize()
{
var w_newWidth,w_newHeight;
.....
document.ViewerApplet.setSize(w_newWidth,w_newHeight);
window.scroll(0,0);
}
window.onResize = resize;
window.onLoad = resize;
</SCRIPT>
<BODY onResize="resize()" onLoad="resize()">
....
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
NAME = "ViewerApplet" WIDTH = 400 HEIGHT = 500 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<PARAM NAME = CODEBASE VALUE = "." >
<PARAM NAME = CODE VALUE = "com.plx.ifo.client.gui.imageViewer.imgViewerApplet.class" >
<PARAM NAME = ARCHIVE VALUE = "Viewer.jar" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
<PARAM NAME = "pagecount" VALUE ="<%=strPageCount%>">
<PARAM NAME = "url" VALUE ="<%=strURL%>">
</OBJECT>
</BODY>

Comments

Christopher Jones-Oracle
Answer

Read the documentation: https://python-oracledb.readthedocs.io/en/latest/user_guide/connection_handling.html#connecting-to-oracle-cloud-autonomous-databases
The default 'Thin' mode of python-oracledb you are using needs the wallet in PEM file format. This is a requirement of the Python libraries now being used, since Thin mode doesn't use the Oracle Client libraries (which use a .sso file). Recent wallet.zip files include a .pem file. If you don't have one, then re-download the wallet.zip file. Or you can convert the .p12 file in your wallet.zip to a .pem file using the utility script in the documentation.
Pass the directory (not including the filename) containing the wallet when you connect. You also need to specify the wallet password:
connection = oracledb.connect(user='northwind', password=pw, dsn='db21cpresent_medium',
config_dir="c:\the\dir\containing\the\tnsnames\file",
wallet_location=r"c:\the\dir\containing\the\pem\file", wallet_password=wpw,
)
Alternatively, enable 'Thick' mode and you won't need the above.
A third option is to use 1-way TLS. That is also in the documentation

Marked as Answer by fmz · May 31 2022
fmz

Great thanks, Christopher!
It works with the specification of the three parameters (Windows 10) now:
connection = oracledb.connect(user='northwind', password=pw, dsn='db21cpresent_medium',
config_dir="c:\\my\\wallet\\dir",
wallet_location="c:\\my\\wallet\\dir",
wallet_password=wpw
)
In my wallet-dir there are the tnsname.ora and ewallet.pem files after unzipping of the wallet.zip file.
Ciao, Friedhold

dversoza

Thanks! Fixed the issue for me here!

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 8 2003
Added on Dec 5 2002
5 comments
127 views