Home » Developer & Programmer » Forms » Oracle forms 12c - OLE function not running (Oracle Form 12c / Windows server 2012 R2 / Office 2013)
Oracle forms 12c - OLE function not running [message #647590] Wed, 03 February 2016 09:20 Go to next message
Horus06
Messages: 3
Registered: February 2016
Junior Member
Hello,

I'm trying to install oracle form 12c.

My environment :

Server : Windows server 2012 R2
Word : Office 2013
Java : 1.8

I tried to write in a word document and to save by using client_ole2 function but the programm does'nt work after the following code line :

app := CLIENT_OLE2.CREATE_OBJ('Word.Application');


I have the following error in the java console :

Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "jacob.dll.path" "read")

Thanks for any help

Sam

==> For information, all messages I have in the java console :

Plug-in Java 11.66.2.18
Utilisation de la version JRE 1.8.0_66-b18 Java HotSpot(TM) Client VM
Répertoire de base de l'utilisateur = C:\Users\Administrateur
----------------------------------------------------
c: effacer la fenêtre de la console
f: finaliser les objets de la file d'attente de finalisation
g: nettoyer la mémoire
h: afficher ce message d'aide
l: vider la liste des chargeurs de classes
m: imprimer le relevé d'utilisation de la mémoire
o: déclencher la journalisation
q: masquer la console
r: recharger la configuration des règles
s: vider les propriétés système et de déploiement
t: vider la liste des threads
v: vider la pile des threads
x: effacer le cache de chargeurs de classes
0-5: fixer le niveau de trace à <n>
----------------------------------------------------
network: Connexion de http://srv2012d:9001/forms/lservlet;jsessionid=xmmnUTnm3NC21QmIagIrw5xiJnz7Af5kOiXq4VqotB6s8DGpbZn4!1759099984 avec proxy=DIRECT
network: Connexion de http://srv2012D:9001/ avec proxy=DIRECT
network: Connexion de http://srv2012d:9001/forms/lservlet;jsessionid=xmmnUTnm3NC21QmIagIrw5xiJnz7Af5kOiXq4VqotB6s8DGpbZn4!1759099984 avec proxy=DIRECT
security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://srv2012d:9001/forms/java/frmall.jar
security: Valider la chaîne de certificats à laide de lAPI CertPath
network: Entrée de cache introuvable [URL : http://srv2012d:9001/forms/java/oracle/ewt/alert/resource/AlertBundle_en.class, version : null]
network: Connexion de http://srv2012d:9001/forms/java/oracle/ewt/alert/resource/AlertBundle_en.class avec proxy=DIRECT
network: Entrée de cache introuvable [URL : http://srv2012d:9001/forms/java/oracle/ewt/alert/resource/AlertBundle_en.properties, version : null]
network: Connexion de http://srv2012d:9001/forms/java/oracle/ewt/alert/resource/AlertBundle_en.properties avec proxy=DIRECT
network: Entrée de cache introuvable [URL : http://srv2012d:9001/forms/java/oracle/ewt/alert/resource/AlertBundle_en.properties, version : null]
network: Connexion de http://srv2012d:9001/forms/java/oracle/ewt/alert/resource/AlertBundle_en.properties avec proxy=DIRECT
network: Connexion de http://srv2012d:9001/forms/lservlet;jsessionid=xmmnUTnm3NC21QmIagIrw5xiJnz7Af5kOiXq4VqotB6s8DGpbZn4!1759099984 avec proxy=DIRECT
network: Connexion de http://srv2012d:9001/forms/lservlet;jsessionid=xmmnUTnm3NC21QmIagIrw5xiJnz7Af5kOiXq4VqotB6s8DGpbZn4!1759099984 avec proxy=DIRECT
network: Connexion de http://srv2012D:9001/ avec proxy=DIRECT
network: Entrée de cache introuvable [URL : http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader.properties, version : null]
network: Connexion de http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader.properties avec proxy=DIRECT
network: Entrée de cache introuvable [URL : http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader.properties, version : null]
network: Connexion de http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader.properties avec proxy=DIRECT
network: Entrée de cache introuvable [URL : http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader_fr.class, version : null]
network: Connexion de http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader_fr.class avec proxy=DIRECT
network: Entrée de cache introuvable [URL : http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader_fr.properties, version : null]
network: Connexion de http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader_fr.properties avec proxy=DIRECT
network: Entrée de cache introuvable [URL : http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader_fr.properties, version : null]
network: Connexion de http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader_fr.properties avec proxy=DIRECT
network: Entrée de cache introuvable [URL : http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader_fr_FR.class, version : null]
network: Connexion de http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader_fr_FR.class avec proxy=DIRECT
network: Entrée de cache introuvable [URL : http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader_fr_FR.properties, version : null]
network: Connexion de http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader_fr_FR.properties avec proxy=DIRECT
network: Entrée de cache introuvable [URL : http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader_fr_FR.properties, version : null]
network: Connexion de http://srv2012d:9001/forms/java/com/jacob/com/LibraryLoader_fr_FR.properties avec proxy=DIRECT
Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError
at oracle.forms.webutil.ole.OleFunctions.create_obj(Unknown Source)
at oracle.forms.webutil.ole.OleFunctions.getProperty(Unknown Source)
at oracle.forms.handler.UICommon.onGet(Unknown Source)
at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "jacob.dll.path" "read")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at com.jacob.com.LibraryLoader.loadJacobLibrary(LibraryLoader.java:143)
at com.jacob.com.ComThread.<clinit>(ComThread.java:167)
... 32 more


Re: FORM 12C [message #647688 is a reply to message #647590] Fri, 05 February 2016 06:06 Go to previous messageGo to next message
Horus06
Messages: 3
Registered: February 2016
Junior Member
Please, Any help will be welcomed !

The problem is still running Sad

Many thanks
Re: FORM 12C [message #647802 is a reply to message #647688] Mon, 08 February 2016 08:50 Go to previous messageGo to next message
Horus06
Messages: 3
Registered: February 2016
Junior Member
For information, the following command as been added in the java.policy file :

==> grant {
...
permission java.util.PropertyPermission "jacob.dll.path", "read";
...
}

But client_ole2 is still not running
Re: FORM 12C [message #650640 is a reply to message #647802] Thu, 28 April 2016 10:19 Go to previous messageGo to next message
javigarsan
Messages: 4
Registered: April 2016
Location: Spain
Junior Member
Hi Horus06,

I've the same problem. Have you solved it?

In my case I want to open a Excel file. When I execute:

xlApp := client_ole2.create_obj('Excel.Application');

I get the same error. But when I use:

xlApp := ole2.create_obj('Excel.Application');

It works!! but open the file in the sever.

I can use others function like client_get_file_name(null, null, null, null, open_file, false);

do it mean that webutil is configurated correctly?

I have worked with forms 6i a lot, but I'm new with this version and it's very dificoult for me.

Some idea?

Thanks

[Updated on: Thu, 28 April 2016 10:26]

Report message to a moderator

Re: FORM 12C [message #668531 is a reply to message #650640] Wed, 28 February 2018 09:26 Go to previous message
orafaq321
Messages: 8
Registered: February 2018
Junior Member
Hi...I also facing same issue. Did you find any solution?
Previous Topic: Send Oracle report as email from oracle form
Next Topic: TNS NAMES ERROR
Goto Forum:
  


Current Time: Sun Jan 19 09:59:11 CST 2020