VBean

I get this when running Jinitiator
Netscape security model is no longer supported.
Please migrate to the Java 2 security model instead.
*** VBean Setting beanName to se.retail.util.print.AcrobatViewer
*** VBean Failed to instantiate class: se.print.AcrobatViewer java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.misc)
It works when I use the SUN 1.4.2 plugin.

Anders,
not sure what it means when saying "Netscape security model". Before Java 2 Permission the security available was the Sandbox, which was used with Java versions 1.x. JInitiator 1.3.x should support the Java 2 Permission security.
If you properly signed the jar file of the bean and the called Acrobat reader files, then I suggest to contact customer support to track the issue with JInitiator.
Frank

Similar Messages

  • How can I draw image in a vbean?

    How can I draw image in a vbean?
    this is my code :
    import java.awt.BorderLayout;
    import java.awt.Image;
    import java.awt.Graphics;
    import java.net.MalformedURLException;
    import java.net.URL;
    import com.sun.jimi.core.Jimi;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class PrintEmailLogo extends VBean {
         URL url;
         Image img;
         boolean ImageLoaded = false;
         public void paint(Graphics g) {
              if (ImageLoaded) {
                   System.out.println("yes~~~");
                   g.drawImage(img, 0, 0, null);
              } else
                   System.out.println("no~~~");
         public boolean imageUpdate(Image img, int infoflags, int x, int y, int w,
                   int h) {
              if (infoflags == ALLBITS) {
                   System.out.println("yes");
                   ImageLoaded = true;
                   repaint();
                   return false;
              } else
                   return true;
         public void init(IHandler arg0) {
              super.init(arg0);
              try {
                   url = new URL("file:print/77G.gif");
                   img = Jimi.getImage(url);
                   Image offScreenImage = createImage(size().width, size().height);
                   Graphics offScreenGC = offScreenImage.getGraphics();
                   System.out.println(offScreenGC.drawImage(img, 0, 0, this));
              } catch (MalformedURLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    but when I run it in forms
    when it run Graphics offScreenGC = offScreenImage.getGraphics();
    It throw a exception:
    java.lang.NullPointerException     at com.avicit.aepcs.calendar.PrintEmailLogo.init(PrintEmailLogo.java:72)     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.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.LightweightDispatcher.retargetMouseEvent(Unknown Source)     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.EventQueue.dispatchEvent(Unknown Source)     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.run(Unknown Source)
    I change it to:
    import java.awt.BorderLayout;
    import java.awt.Image;
    import java.awt.Graphics;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.swing.JFrame;
    import com.sun.jimi.core.Jimi;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class PrintEmailLogo extends VBean {
         URL url;
         Image img;
         public void paint(Graphics g) {
              try {
                   url = new URL("file:print/77G.gif");
                   img = Jimi.getImage(url);
                   g.drawImage(img, 0, 0, this));
              } catch (MalformedURLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public void init(IHandler arg0) {
              super.init(arg0);
    But it display nothing.
    It isn't paint continuous.
    what's wrong in my vbean?
    please help me.

    The following code works fine for me:
    package oracle.forms.fd;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.CustomEvent;
    import oracle.forms.ui.VBean;
    public class test extends VBean {
      private URL url;
      private URL m_codeBase; 
      private Image img;
    public void paint(Graphics g) {
      // draw the image
      g.drawImage(img, 0, 0, this);
    public void init(IHandler arg0) {
       super.init(arg0);
       // load image file
       img = loadImage("file:///c:/coyote.jpg");   
    public test()
        super();
       *  Load an image from JAR file, Client machine or Internet URL  *
      private Image loadImage(String imageName)
        URL imageURL = null;
        boolean loadSuccess = false;
        Image img = null ;
        //JAR
        imageURL = getClass().getResource(imageName);
        if (imageURL != null)
          try
            img = Toolkit.getDefaultToolkit().getImage(imageURL);
            loadSuccess = true;
            return img ;
          catch (Exception ilex)
            System.out.println("Error loading image from JAR: " + ilex.toString());
        else
          System.out.println("Unable to find " + imageName + " in JAR");
        //DOCBASE
        if (loadSuccess == false)
          System.out.println("Searching docbase for " + imageName);
          try
            if (imageName.toLowerCase().startsWith("http://")||imageName.toLowerCase().startsWith("https://"))
              imageURL = new URL(imageName);
            else if(imageName.toLowerCase().startsWith("file:"))
              imageURL = new URL(imageName);
            else
              imageURL = new URL(m_codeBase.getProtocol() + "://" + m_codeBase.getHost() + ":" + m_codeBase.getPort() + imageName);
            System.out.println("Constructed URL: " + imageURL.toString());
            try
              img = createImage((java.awt.image.ImageProducer) imageURL.getContent());
              loadSuccess = true;
              System.out.println("Image found: " + imageURL.toString());
              return img ;
            catch (Exception ilex)
              System.out.println("Error reading image - " + ilex.toString());
          catch (java.net.MalformedURLException urlex)
            System.out.println("Error creating URL - " + urlex.toString());
        //CODEBASE
        if (loadSuccess == false)
          System.out.println("Searching codebase for " + imageName);
          try
            imageURL = new URL(m_codeBase, imageName);
            System.out.println("Constructed URL: " + imageURL.toString());
            try
              img = createImage((java.awt.image.ImageProducer) imageURL.getContent());
              loadSuccess = true;
              System.out.println("Image found: " + imageURL.toString());
              return img ;
            catch (Exception ilex)
                    System.out.println("Error reading image - " + ilex.toString());
          catch (java.net.MalformedURLException urlex)
            System.out.println("Error creating URL - " + urlex.toString());
        if (loadSuccess == false)
          System.out.println("Error image " + imageName + " could not be located");
        return img ;
    }Francois

  • Jar file of VBean Class

    Hi All !
    When I am trying to import oracle.forms.webutil.file.FileFunctions class in my forms its giving an error message....
    Importing Class oracle.forms.webutil.file.FileFunctions...
    Exception occurred: java.lang.NoClassDefFoundError: oracle/forms/ui/VBean
    Please tell me which jar file is missing to load?
    Regards,
    Neeraj

    Why are you importing a Webutil class in this way? FileFunctions is a client side bean and will not be usable from Mid teir Java.

  • Center component frame in VBean area

    I have a component that I want to show in a VBean container area in Forms. All works fine except that the component is not centered in VBean area. It sitts to the right and down a bit outside the bean container. When I add the component to the bean container I do this. Where m_jax is the component being added to the bean area.
    try {
    super.addImpl(m_jax, BorderLayout.CENTER, -1);
    } catch (IllegalArgumentException ex) {
    ex.printStackTrace();
    super.validate();

    Hi Prashant,
    Go to Trans OKKP
    Step 1:Simply double click the COArea which you wanted to configure.
    Step2: In the Assignment Control
    CoCd->CO Area - Change to Cross-Company-Code Cost Accounting
    Note:Only if you change this setting the CoCd Validation will get activated.
    Step 3: Go Back & select the COArea & Double click the Activate components/control indicators
    Step 4:Double click the Fiscal Year in which you wanted to set.
    You can see the CoCd Validation key activated..else you can tick to activate it
    Regards
    Andrew

  • Accessing database from VBean

    My adventures in vbean-land continues:
    Is there a way to access the database connection of the forms process from somewhere in the VBean/IHandler contexts?

    I'm searching for a long time a way to extract the data from a BLOB, then transfert it to a Bean, via Forms Set_Custom_Property() to share the standard Forms connection. I'm trying to use the Base64 encoding to transfert the chunks of data from database to the bean,but, with images, some characters are misinterpreted. Don't know why but the image is corrupted and the result is unreadable.
    If you can find something, I will take !
    Francois

  • VBean, IView and oracle.forms.* classes

    What do I have to do to extend/implement those classes? When I try to compile any of the classes in OTN Forms6i JavaBean demos I get an error telling me it cannot find oracle/forms/ path neither VBean or IView interfaces (classes). Any help will be appreciated.
    Cristian

    This might be better answered in the Forms forum if there is one. However, there used to be an archive called f60all.jar
    that contained the class files necessary for compilation. You would have to include in your project the library that contained
    this archive, else create a new library containing it. It's possible that the archive name itself has changed if the version of
    forms has changed (e.g. f<version>all.jar).

  • Where is oracle/forms/Ui/VBean in webutil.jar?

    Hi All, I tried implementing Webutil for migrating OLE for opening a word document using Oracle 9iDS (with PatchSet 3) on Windows2000 platform. I have tried various combinations of classpath settings and fiddled with the default.env and formsweb.cfg and server environment settings. I am getting the error:
    Importing Class oracle.forms.webutil.ole.OleFunctions...
    Exception occurred: java.lang.NoClassDefFoundError: oracle/forms/ui/VBean
    I find there is no VBean or ui directory in the webutil.jar. Can anyone please let me know how this has been solved in respect of classes which are using this file.

    Thanks, I am able to setup webutil.
    Now I have other problem in context of migrating OLE functionality using Webutil. I have an OLE Container item 'OLE_FIELD' in block 'Blk_name' which contains a word document. 'OLE_FIELD' corresponds to a long raw column in the table . I want to put the contents of this into a newly created word document and run a macro on this document. This was done using Forms_Ole.Activiate_Server, Forms_Ole.Execute_verb earlier. Can someone let me know how this is achieved in 9iDS using Webutil since 9iDS does not support the ole container? I am sending the code as it was in earlier version of Forms.
    Declare
    arglist OLE2.LIST_TYPE;
    application OLE2.OBJ_TYPE;
    BEGIN
    FORMS_OLE.ACTIVATE_SERVER('Blk_name.OLE_FIELD');
    application := OLE2.CREATE_OBJ('Word.Application.8');
    -- Open the embedded document for editing
    FORMS_OLE.EXEC_VERB('Blk_name.OLE_FIELD',1);
    -- Run Macro for document
    arglist := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(arglist, 'MACRO_NAME.MAIN');
    OLE2.INVOKE(application, 'Run', arglist);
    OLE2.DESTROY_ARGLIST(arglist);
    OLE2.INVOKE(application, 'Quit');
    -- Close Word
    FORMS_OLE.CLOSE_SERVER('Blk_name.OLE_FIELD');
    -- Release the OLE object
    OLE2.RELEASE_OBJ(application);
    END;
    Thanks in advance,
    Ravi

  • Can anyone help me to Create a TreeTable extends VBean implements

    Hi all,
    I would like to create a Javabeen for Treetable which extends VBean impliments focuslistner.I got some example for TreeTable from Sun Forums, but i got stuck by modifying this as a javabeen.Can anyone help me out to solve this issue or if anyone can suggest me a treetable kind of javabeen to use in Oracle Forms.
    Thanks & Regards
    Najeeb
    Edited by: MayanNajeeb on Jul 4, 2009 4:30 AM

    If you have Keynote, you could do this in Keynote on a green background. Then drag into iMovie as a green screen effect.

  • Can't find VBean, IView and oracle.forms.* classes

    I posted this on the JDeveloper's forum, with no luck obviously.
    What settings need to be changed to be able to browse through oracle.forms.* classes?. I cannot extend VBean neither implement IView; when I try to recompile the demos from OTN I get errors telling me the directory oracle\forms\handler and others alike cannot be found.
    Something curious is I can compile the source in JD 3.2 version and I cannot in version 9i.
    Other thing is, when I create a new project in version 3.2 I can no longer see classes in the oracle.forms package.

    To get the "Javadoc" for the iview interface check the online help of Forms for iView.
    You didn't mention which version of oracle forms are you using. Are you using the Oracle9iDS install?
    The oracle.forms.* classes are usually under the Java directory of a Forms installation.
    If you are using Oracle9i JDeveloper you should be using Oracle9i Forms as well.

  • Cannot tab through fields in a VBean

    Hello,
    We have a VBean, basically a Java Applet which has sucessfully been integrated into our forms environment.
    Unfortunately tabbing in the browser only moves the focus between the Oracle Forms fields and at no point can the use tab into the VBean.
    This is somewhat counter intuitive if the a control in the VBean already has the focus.
    Is there a way to make the tab order work correctly within the VBean ?
    thanks
    David

    Key Events
    Keystrokes from form items and bean area items in a Forms applet should produce consistent results. By default, Ctrl+K invokes the runtime Keys help screen for the form item that has focus. Tab moves the input focus from the current to the next form item. Shift+PageDown moves the input focus to the first form item in the next block. By default, however, keystrokes on bean area items do not produce these results.
    To maintain consistent input focus and keystroke navigation in a Forms applet that contains a bean area, send most keystrokes from a bean area to the server using the KeyListener, KEY_EVENT registered property, and the mHandler.setProperty(KEY_EVENT, e) method. The server then performs the appropriate action. For example, pressing Ctrl+K causes the server to display the runtime Keys help screen for the bean area that has focus and pressing Shift+PageDown causes the server to move the focus to the first form item in the next block.
    In some bean area keyboard navigation, however, it is important to not send certain keystrokes—some instances of Tab and Shift+Tab—to the server, depending on the position of the component in the bean area. The general rule is to send all bean area keystrokes to the server that should move the focus from the bean area. For keystrokes that move the focus between components in the same bean area, for example, Tab and Shift+Tab, do not send the keystrokes to the server.
    Sending Tab and Shift+Tab keystrokes from a bean area component to the server causes the server to move the focus from the bean area to the next or previous form item respectively. With this in mind, there are situations where Tab and Shift+Tab keystrokes should be sent to the server: for the first component in a bean area, send Shift+Tab to the server, and for the last component in a bean area, send Tab to the server.
    It is the responsibility of the developer to program what keystrokes are sent and what keystrokes are not sent to the server for components in a bean area.

  • API for VBean needed

    Hello,
    Where can i download the API for VBean and other classes from oracle.forms.*?
    thx,
    Johannes

    VBean is actually documented in the help system, where each item type is described and the properties IDs that you can get and set when building a custom PJC are listed.
    All of the Items including the bean area implement the IView interface which is again documented in the help.
    Unfortunatley the JavaDoc for these classes and interface is not available.

  • GetAppletContext from within VBean

    Hi all,
    I'm in the need to call an external applet from within my VBean. The applet is in the same JInitiator web page.
    The question is: how to get the AppletContext? Is this possible? I didn't find any method to do such a task.
    When given the AppletContext, could be quite easy to call getApplet, crossing my fingers :)
    Any help or documentation would be appreciated
    TIA
    Maurizio

    Save the IHandler in the init() method of the PJC:
    public void init(IHandler handler)
    mHandler = handler;
    super.init(handler);
    and then use mHandler.getApplet
    you can find more details in the Forms Demos

  • Not able to get the class file PrintService

    Hi,
    I am trying to use the following program to get the Printer name from my Registry.. this program has been taken from Forums.
    package yourpackage;
    import java.awt.Graphics;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import java.awt.print.PrinterException;
    import java.awt.print.PrinterJob;
    import oracle.forms.ui.VBean;
    import oracle.forms.properties.ID;
    public class printDialog extends VBean
    private static final ID PRINTER = ID.registerProperty("PRINTER");
    public printDialog()
    class PrintObject implements Printable
    public int print (Graphics g, PageFormat f, int pageIndex)
    return NO_SUCH_PAGE;
    public Object getProperty(ID id)
    if (id == PRINTER) {
    PrinterJob job = PrinterJob.getPrinterJob();
    job.setPrintable(new PrintObject());
    if (job.printDialog())
    return job.getPrintService().getName();
    } else {
    return null;
    } else {
    return null;}
    This program when compiled gives me the error as
    Error(32,12): method getPrintService() not found in class java.awt.print.PrinterJob
    I did set the project settings from Project-Project Settings and included Oracle Forms Libraries. But I still continue to get the error.
    I understood from the web that I need to put PrintService class which downloaded from the web as part of jnlp.jar
    How should I set this if this is the correct one?
    Early response would be highly appreciated
    Thanks a lot for your time and help
    Narain.

    Dude , I tried the very same thing ..
    but I used a slightly different java program .. and it works ..remeber u need java plugin 1.4 at the client browser for it to work finally .
    let me know if u need anything else
    package mypackage2;
    import oracle.forms.ui.VTextField;
    import oracle.forms.properties.ID;
    import javax.print.*;
    import javax.print.attribute.*;
    public class Trial1 extends VTextField
    PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
    private final static ID getprinter= ID.registerProperty("getprinter");
    public Trial1()
    try
    jbInit();
    catch(Exception e)
    e.printStackTrace();
    private void jbInit() throws Exception
    public boolean setProperty(ID property, Object value)
    if (property==getprinter)
    this.setText("The default printer is "+ defaultService.getName()) ;
    return true;
    }else {
    // TODO: Override this oracle.forms.ui.VTextField method
    return super.setProperty(property, value);
    }

  • Show the print dialog when running a report from an Oracle form.

    I would like to be able to print an Oracle report from an Oracle form but
    in addition show the print dialog. My PL/SQL code is shown at the bottom of this post.
    I have set the 'printjob' system parameter to 'YES' in the
    report and I can bring up a print dialog using the reports runtime.
    However, as soon as I run it from my form I lose this capability. Setting
    'printjob' to 'YES' in the code has no apparent effect.
    Many thanks,
    Ben
    -- Launch a report
    DECLARE
      v_pl_Id   paramlist; -- parameter list
    BEGIN
      -- add the parameters to the list.
      v_pl_id := CREATE_PARAMETER_LIST ('summary');
      ADD_PARAMETER (v_pl_id, 'destype', text_parameter, 'PRINTER');
      ADD_PARAMETER (v_pl_id, 'printjob', text_parameter, 'YES');
      -- run the report
      RUN_PRODUCT (
        reports
      , 'C:\Test Reports\Test.rep'
      , synchronous
      , runtime
      , filesystem
      , v_pl_id
      , NULL
    END;

    At 10g not 9i using a bean area on my canvas implementing the following class ...
    import java.awt.Frame;
    import java.awt.JobAttributes;
    import java.awt.PrintJob;
    import java.awt.Toolkit;
    import javax.swing.JPanel;
    import java.io.*;
    import oracle.forms.ui.VBean;
    public class Select_Printer extends VBean {
    public Select_Printer()
         super();
    public String getPrinterName()
    String PrinterName=null;
              JobAttributes jobAttributes;
              try{
                   jobAttributes = new JobAttributes();
                   jobAttributes.setDialog(JobAttributes.DialogType.NATIVE);
                   Frame dummyFrame = new Frame();
                   PrintJob pJobDialog = Toolkit.getDefaultToolkit().getPrintJob(
                   dummyFrame, "Printtest", jobAttributes, null);
                   PrinterName = jobAttributes.getPrinter();
              } catch (Exception e) {
                   System.out.println("Printer error!");
              return PrinterName;
    public static void main(String[] args)
    Select_Printer select_Printer = new Select_Printer();
    System.out.println(select_Printer.getPrinterName() );
    }

  • How to add a jar files to a project in JDeveloper 10g?

    I had created a sample appln using below imports
    import oracle.forms.handler.IHandler;
    import oracle.forms.ui.CustomEvent;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    The above packages are available in frmall.jar only know?
    I tried to add the above jar in JDeveloper IDE (10.1.2.1.0).
    But i can't fild a exact menu in my iDE?
    How to add the above jar through menu?
    Thanks

    1. Select Tools>Project Properties.
    2. In Project properties window select Libraries.
    3. Add a project JAR with Add Jar/Zip button.

Maybe you are looking for

  • Can not connect to wi if after resetting networks

    iPad2 no longer connects to Internet with safari and apps loaded (Facebook) will not connect either.  Gmail account works though Reset networks but that did not solve e problem

  • Printing 4 photos on A4 paper

    Hallo, in ps elements 2 I created a text file to make a print lay out of 4 photographs on an A4 paper possible. I looked into the file structure of Elements 4 but it seems not possible to do the same in Elements 4. Is this true? I use Photoshop Eleme

  • Is it possible to build Octave filter in LV?

    Hello masterminds I have a request for an noise measurement application being able to filter around a few select frequencies at 1 / oct bandwith.  I know this is available in the sound and vibration tool kit, but adding such an expensive suite of too

  • Bad scaling using measurement automation explorer

    I have tried about a million times now to properly create a scale in MAX 3.0.2 Essentially, all I want to be able to do - fairly simple you would think - is apply a linear multiplication to an input channel of an AC signal voltage. Without any scalin

  • Best hard drive options..

    hi, I want to add additional 1 TB hard drive to my mac pro ( 2.66 ghz ).. What are the best performing options at the moment ? GY