Skip to Main Content

Oracle Forms

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!

Java.IO.tmpdir

211403Feb 6 2006
Hello,

I have a button to invoke a Java Bean.
Button code --> SET_CUSTOM_PROPERTY('BLK1.KNOBBEAN',1,'CHECK_FILE',2);

Inside the bean KNOBBEAN, I added a code as follows,

if (id == CHECK_FILE )
{
log("AM HERE");
log("AM HERE");
log("AM HERE");
log("AM HERE");
log("AM HERE");
log("AM HERE");
log("AM HERE");
log("AM HERE");
log("tmp dir value" + System.getProperty("java.io.tmpdir"));
File aFile = new File(System.getProperty("java.io.tmpdir") + "statexcel.vbs");
}

Am getting all the 8 messages. But when it tries to execute System.getProperty("java.io.tmpdir") i get the misleading FRM-92100. I clicked on the details of the error. THE MAIN ERROR IS

JAVA.SECURITY.ACCESSCONTROLEXCEPTION:ACCESS DENIED(JAVA.UTIL.PROPERTYPERMISSION JAVA.IO.TMPDIR READ).

If I create a Java Class file and run without form integration like,

public class T {
public static void main( String[] args) {
System.out.println(System.getProperty("java.io.tmpdir"));
}
}

I get the output as, C:\DOCUME~1\d44290\LOCALS~1\Temp\.

But the problem comes only when we integrate with Forms.

How to solve the above error. Your help is appreciated.

My software details:
Oracle Forms:
10g Version
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production

Oracle Database:
9.2.0.6.0

Java VM & other properties:
java.runtime.name=Java(TM) 2 Runtime Environment, Stand...
sun.boot.library.path=D:\oracle\dev10g\jdk\jre\bin
java.vm.version=1.4.2_06-b03
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
path.separator=;
java.vm.name=Java HotSpot(TM) Client VM
file.encoding.pkg=sun.io
user.country=US
sun.os.patch.level=Service Pack 4
java.vm.specification.name=Java Virtual Machine Specification
user.dir=C:\
java.runtime.version=1.4.2_06-b03
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs=D:\oracle\dev10g\jdk\jre\lib\endorsed
os.arch=x86
java.io.tmpdir=C:\DOCUME~1\d44290\LOCALS~1\Temp\
line.separator=

java.vm.specification.vendor=Sun Microsystems Inc.
user.variant=
os.name=Windows 2000
sun.java2d.fontpath=
java.library.path=D:\oracle\dev10g\jdk\bin;.;C:\WINNT\s...
java.specification.name=Java Platform API Specification
java.class.version=48.0
java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFac...
os.version=5.0
user.home=C:\Documents and Settings\d44290
user.timezone=
java.awt.printerjob=sun.awt.windows.WPrinterJob
file.encoding=Cp1252
java.specification.version=1.4
user.name=d44290
java.class.path=D:\oracle\dev10g\jdk\bin;
java.vm.specification.version=1.0
sun.arch.data.model=32
java.home=D:\oracle\dev10g\jdk\jre
java.specification.vendor=Sun Microsystems Inc.
user.language=en
awt.toolkit=sun.awt.windows.WToolkit
java.vm.info=mixed mode
java.version=1.4.2_06
java.ext.dirs=D:\oracle\dev10g\jdk\jre\lib\ext
sun.boot.class.path=D:\oracle\dev10g\jdk\jre\lib\rt.jar;D...
java.vendor=Sun Microsystems Inc.
file.separator=\
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport...
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.isalist=pentium i486 i386
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2006
Added on Feb 6 2006
0 comments
610 views