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!

Generate File in a BEAN!

608509Nov 14 2007 — edited Nov 15 2007
Hi Friends,

I have a big problem here!

I'm using Forms 10.1.2.0.2 with Java Plugin 1.6 instead of JInitiator!

I created a bean with JDeveloper 10.1.3.3 because i needed to use a JDK 1.6 compiler version!

I want to create a XML file inside a bean with de Marshaller Class of JAVA! This class make a binding of the attribute class serializing in a XML file!

I have done some preeliminar tests and see that if i try gto generate a Simple File in a bean Method i have the exception!

java.security.AccessControlException: access denied (java.io.FilePermission veiodobean.xml write)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkWrite(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at oracle.forms.testeXML.TesteXMLClass.init(TesteXMLClass.java:65)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(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.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


I read about this and i put the line code in java.police file from the JRE:
permission java.util.PropertyPermission "user.dir", "read";

Even this way it doesnt work?

Anyone can help me?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2007
Added on Nov 14 2007
4 comments
303 views