Run form developer 10g

Hi, i installed forms developer 10g and when i try tu run a form, open de browser but inmediatly appears a message 'internet explorer not working' and close the internet explorer.
I setted the application server URL and
web browser location
check the port 8899
How can i do ?
Regards

OC4J in Developer Suite is started manually. On Windows installation, a shortcut is created for you. It will appear as "Start OC4J Instance" with the other shortcuts used for Forms, for example the one used to start the Builder. When you start OC4J a DOS window will appear. Do NOT terminate this window or OC4J will be terminated.
Typically, there is no reason to change anything after the installation has been completed. The only settings which need to be made are those on the RUNTIME tab in the Builder, but this has nothing to do with actually running the form from the Builder. These settings simply determine how to pass the necessary URL from the Builder to a browser in order to start a form.

Similar Messages

  • Unable to run forms in oracle forms developer 10g

    I am using oracle forms developer 10g on oracle application Release 12.
    When i run form i am getting error that weblistener is not running on default port 8888. Then i changed it to 8000. But still i am not able to run the forms.

    Nivas,
    In addition to running OC4J, you must also have your browser configured to use a Java Runtime Environment. The easiest - and preferred - method is to install the Oracle JInitiator as there is not configuration needed other than the installation. You can also use Sun's JRE, but you would have to research how to configure your PC correctly. The other option is to change your FormsWeb.cfg file to use the Browser Native JRE. Edit the formsweb.cfg file and find the IE= directive. The Default is IE=jinitiator. Change this to IE=Native, save your changes and you are done. This is not the preferred solution, but it does work.
    Craig...

  • Blank browser when run oracle form developer 10g

    Hi, all
    I'm newbie on oracle developer.
    I'm using oracle form developer 10g, database also 10g and default browser firefox.
    I made a form n give EMPLOYEE_MDL for the name.
    I got problem when i try to run form, first time shown "*ORACLE FORMS.*" on browser and then the browser getting blank(just white space), the url is:
    http://red-erie:8889/forms/frmservlet
    Hope you can help me.
    Regards n Thanks
    eRie

    It worked for me in Windows 7 Home premium, both in 32 and 64 bit operating systems...
    What I did was,
    After successful instalaltion of developer suite, I've installed latest JRE from www.java.com and configured formsweb.cfg and default.env file.
    I've used IE8 only. I haven't tested on any other browsers.
    Do modify these lines to configure formsweb.cfg to change to JRE from Jinitiator (As said by CraigB )
    # Page displayed to users to allow them to download Sun's Java Plugin.
    # Sun's Java Plugin is typically used for non-Windows clients.
    # (NOTE: you should check this page and possibly change the settings)
    ### Original
    #jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
    ### New
    jpi_download_page=http://www.oracle.com/technetwork/java/javase/downloads/index.html
    # Parameter related to the version of the Java Plugin
    ### Original
    #jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
    ### New
    jpi_classid=clsid:CAFEEFAC-0016-0000-0024-ABCDEFFEDCBA
    # Parameter related to the version of the Java Plugin
    ### Original
    #jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
    ### New
    jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,24
    # Parameter related to the version of the Java Plugin
    ### Original
    #jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
    ### New
    jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_24I also recommend you change the following variable as well.
    # System parameter: base HTML file for use with JInitiator client
    #baseHTMLjinitiator=basejini.htm
    baseHTMLjinitiator=basejpi.htmEdited by: Charan on Jul 1, 2011 8:46 AM

  • Forms Developer 10g Release 2 - new features?

    Hi,
    Does anybody know if Forms Developer 10g Release 2 (10.1.2) is any different from Forms Developer 10g (9.0.4)?
    I wasn't able to find a document with new features.

    <p>I am sure the link was under your eyes ;o)
    <br>
    http://www.oracle.com/technology/products/forms/techlisting10gR2.html<br>
    Oracle Forms 10g Technical Overview</p>

  • Issues in calling Sql Loader through forms developer (10g)

    Hi,
    I am developing a form(in 10g) ,in which I am calling sql loader for loading data onto a oracle database table from external source (e.g. data file is a .CSV file).
    But , somehow the sql loader is not getting executed.
    Here , I am giving the environment settings , approach i am taking;
    This is a distributed system , both the application server,and database server are mounted on two different servers.
    The form is delpoyed on the application server.
    The database table , and the sql loader are configured on the databse side.
    I am using host(<sql loader command>) command to invoke the Operating System command through forms.
    The sql loader is working ok , and the data is getting loaded successfully onto the required database table when I am executing the sql loader command on Unix prompt , but through the forms , it's not working.
    Do I need to change some environmental setting to make this work...
    Any quick help in this regard is highly appreciated.
    Thanks.

    Hi Craig,
    I have already tried out the option of calling sql loader through stored procedure,but this is not working ...
    could you please share any examples to do so ...
    code snippet i am using in forms:
    declare
    usid get_application_property(userid);
    pwd get_application_property(password);
    db get_application_property(host);
    msqlldr varchar2(250);
    begin
    msqlldr:='/u01/oracle/formss/bin/sqlldr' username=<uid/pwd@db> control=<control file name> data=<data file name> log=<log file name>
    hosts(msqlldr);
    end;
    Note that sqlldr command ,for that matter any unix shell command is not working through the hosts() command ...
    could you please suggest any way out ...
    Thanks.

  • Oracle Form Developer 10G Version ?

    Could you please let me know which version is realsed for Form develper 10G and from where i can get its user/developer guide.

    Also check metalink for updates. There is a 10gR1 Forms Builder technical version 9.0.4 and there is a 10gR2 Forms Builder technical version 10.1.2.0.2. For both versions there are updates available.

  • Greek (alfa) character in forms developer 10g

    Hi everyone,
    I'm trying to assign the first letter of the Greek alphabet to a text_item, but I don't know how to get it. I get no problem when trying to show ß using chr(223) or µ using chr(181) but no idea how to write the alfa char.
    By the way, registry/server/client settings cannot be modified in the environment, so the solution should be done inside forms developer, as in this case is a "developer problem" ( mine's :( ).
    Any idea?
    Thanx in advance.
    Regards

    Hi,
    May be this link will help
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/sql_elements002.htm#g195937
    declare
    i number := 1;
    res varchar(10);
    begin
    loop
    select chr(i) into res from dual;
    dbms_output.put_line(i||' , '||res);
    i := i+1;
    exit when i=255;
    end loop;
    end;

  • How can i run report in form developer 10g

    hi plz help me
    i type code
    web.show_document('http://127.0.0.1:8889/reports/rwservlet? server=test report=c:\1.rdf & desformat=htmlcss &userid=scott/tiger@test & destype= cache','_blank');
    then i receive a message with error code REP-51002
    plz plz help

    I noticed that you have several blanks (white spaces) in the url. Please remove them and try again!
    Link should be:
    web.show_document('http://127.0.0.1:8889/reports/rwservlet?server=test report=c:\1.rdf&desformat=htmlcss&userid=scott/tiger@test &destype=cache','_blank');
    This should work perfecly (if of course you have started the Reportsserver 'test'). Also try copy that link and paste it directly into your browser. If it works there, it should work in Forms!!!
    You can check the environment of that Report with following link:
    http://127.0.0.1:8889/reports/rwservlet/showenv?server=test
    And what you can additional do is to check the Reports Que:
    http://127.0.0.1:8889/reports/rwservlet/showjobs?server=test
    The Reports Que is my number one to check for errors. You'll see a red circle/x after an unsessfull Report. Click on that icon for complete error message.
    Regards,
    Martin

  • Help running forms in 10g

    I have compiled all the forms fmb files and generated fmx respectively. Now, how do I run these forms. All the forms fmb and fmx files are residing on Application Server where the OC4J instance is also running. I want to run the forms 10g on the client end. Also can you provide me the correct document regarding this.

    Hi Craig,
    Actually, you need to identify each configuration by giving it a name inside square brackets []. So, based on your example above, you would need to modify it as follows:
    # System parameter: file setting environment variables for the Forms runtime processes
    [department1]
    envFile=department1.env
    # System parameter: file setting environment variables for the Forms runtime processes
    [department2]
    envFile=department2.env
    # System parameter: file setting environment variables for the Forms runtime processes
    [department3]
    envFile=department3.env
    # System parameter: file setting environment variables for the Forms runtime processes
    [department4]
    envFile=department4.env
    # System parameter: file setting environment variables for the Forms runtime processes
    [department5]
    envFile=department5.env
    You have to have name the configuration section so the App Server can find it when you pass this configuration variable in the URL. Each department will have a >slightly different URL that they will use. For example:
    Department 1: http://server_name.com:7777/forms/frmservlet?config=department1
    Department 2: http://server_name.com:7777/forms/frmservlet?config=department2
    Department 3: http://server_name.com:7777/forms/frmservlet?config=department3
    Department 4: http://server_name.com:7777/forms/frmservlet?config=department4
    Department 5: http://server_name.com:7777/forms/frmservlet?config=department5
    So, after this my configuration file name will still be formsweb.cfg only, right?
    And on the client side, when we call the form in department 1, as you said
    Department 1: http://server_name.com:7777/forms/frmservlet?config=department1
    here, how does it picks formsweg.cfg file, as we are mentioning config=department1
    And, if it picks, then we also need to mention the top level form, right??
    For Ex:
    http://server_name.com:7777/forms/frmservlet?config=department1&form=form_1.fmx
    OR
    Can we just give http://server_name.com:7777/forms/frmservlet?config=department1 and in the department1.env file, can we give as
    FORMS_PATH=C:\department1\form_1.fmx or .fmb
    And, I have some reports to call in the forms and menus. But they are in older versions. Can I still use them, or need to be upgraded to 10g?
    Edited by: Charan on Mar 24, 2011 8:49 AM

  • Forms developer 10g and video file

    hi,
    using developer forms 10g,
    when user press play button, any video file is played that i want. is it possible ? any idea ? how can i do ?
    thanks..

    In order to play a video from a Forms you have at least two options:
    1. Create a custom java bean. This could give you the ability to play the video directly in the form. This code would be completely custom, so remember that Oracle Support won't be able to assist you with it. Java bean examples can be found in the Forms Demo set or on the following third party web site:
    http://forms.pjc.bean.over-blog.com/
    2. If the video is accessible via a URL, you can call it from a form using WEB.SHOW_DOCUMENT and display it in a browser. You can also load it in a frame of the same browser hosting the form assuming you prepared for it before the form started.
    3. If the video file is on the local machine, you can use WEBUTIL to call and open it. If the file is not on the local machine and you would prefer that it was rather than playing over the network, you could also use WEBUTIL to download the file locally, play it, they if desired, delete it.

  • Weight scale input into oracle forms developer 10g

    Dear All Experts
    it is request to you kindly guide me full code and description of
    weight scale device input in oracle form show digits continuously in form 10g kindly proved me data device connect through port so plz help me

    Make a PJC (plugable java component) and look at RXTX library for java...
    I have done a PJC  to use a POS terminal over RS232 from oracle forms..
    It's not complicated..
    here is my example for POS terminal and RXTX library (JControl)
    [code]
    package in2.pos;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Arrays;
    import java.util.Enumeration;
    import java.util.Properties;
    import java.util.ResourceBundle;
    import java.util.StringTokenizer;
    import javax.swing.JOptionPane;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.CustomEvent;
    import oracle.forms.ui.VBean;
    import gnu.io.*;
    * PosTerminalPjc, PJC component for Hypercom POS terminal data exchange
    * @author Peter Valencic, [email protected]
    public class PosTerminalPjc extends VBean {
      private static final long serialVersionUID = -8814623494538014849L;
      Properties res = new Properties();
      SerialPort serialPort;
      OutputStream os;
      InputStream is;
      CommPortIdentifier portId;
      Enumeration portList;
      IHandler mHandler;
      char STX = (char) 0x02;
      char ETX = (char) 0x03;
      char EOT = 4;
      char ACK = 6;
      char NAK = 15;
      char FS = 28;
      private static final ID COMPORT = ID.registerProperty("COMPORT"); // serial
      // port
      // (COM1,COM2,COM3,...)
      private static final ID AMOUNT = ID.registerProperty("AMOUNT"); // amount of
      // the
      // transaction
      // (12)
      private static final ID TRANSACTIONTYPE = ID
      .registerProperty("TRANSACTIONTYPE"); // 01-sale, 05-refund, 13
      // ticket duplicate
      private static final ID AMOUNTCURRENCY = ID
      .registerProperty("AMOUNTCURRENCY"); // ISO currency code
      private static final ID TRANSACTIONNUMBER = ID
      .registerProperty("TRANSACTIONNUMBER"); // transaction number
      private static final ID EVT_OK = ID.registerProperty("EVT_OK"); //custom event if all ok
        private static final ID EVT_ERR = ID.registerProperty("EVT_ERR"); //custom event if error occured
      // state machine variables
      long l_timeout;
      long l_wait_for = 5000; // pos terminal wait for command (5 seconds)
      long l_wait_for_transaction = 62000 * 2; // pos terminal timeout
      long l_second = 1000; // one second
      byte b_retry = 0;
      String dataValue = "";
        byte[] readBuffer = new byte[2000]; //2000 bytes buffer to read rs232 stream
      String comPort = ""; // local variable to store com port name
      // (COM1,COM2,...)
      String transactionType = "SALE"; // type of transaction to be executed (SALE
      // or REFUND) default SALE
      String amount = "0"; // default amount value is set to 0
      String transactionNumber =""; //store a transaction number from POS trminal
      String transactionProcessed;
        String transactionFlag;
        String transactionDate;
        String transactionTime;
        String transactionBatchNumber;
        String terminalTid;
        String terminalCard;
        String errDesc;
        public PosTerminalPjc() {
      super();
      System.out.println("============================");
      System.out.println("== State machine POS v1.0 ==");
      System.out.println("== Peter Valencic (c)     ==");
      System.out.println("== 03.04.2012             ==");
      System.out.println("============================");
      try {
      res.load(this.getClass().getResourceAsStream(
      "/res/language.properties")); // load language file
      } catch (Exception ex) {
      System.err.println("Err loading language.properties file: "
      + ex.toString());
      private void doTransaction() throws Exception {
      String phase = null; // initial null value for state machine phase
      long l_ack_timeout = 0; //initial value for acknowledge timeout
      // com port check
      if (getComPort().trim().equalsIgnoreCase("")) {
      this.showError(res.getProperty("s_dlg_err_title"),
      res.getProperty("s_com_invalid"));
      return;
      // transaction type chek
      System.out.println(this.getTransactionType());
      if (!getTransactionType().equalsIgnoreCase("REFUND")
      & !getTransactionType().equalsIgnoreCase("SALE")) {
      this.showError(res.getProperty("s_dlg_err_title"),
      res.getProperty("s_tran_invalid_type"));
      return;
      portList = portId.getPortIdentifiers();
      while (portList.hasMoreElements()) {
      portId = (CommPortIdentifier) portList.nextElement();
      if (portId.getName().equalsIgnoreCase(this.getComPort())) {
      System.out.println("Port is used : "
      + portId.isCurrentlyOwned());
      serialPort = (SerialPort) portId.open("ComDriver", 2000);
      serialPort.setSerialPortParams(9600, SerialPort.DATABITS_7,
      SerialPort.STOPBITS_1, SerialPort.PARITY_EVEN);
      // serialPort.addEventListener(this);
      serialPort.notifyOnDataAvailable(true);
      serialPort.notifyOnOutputEmpty(true);
      os = serialPort.getOutputStream();
      is = serialPort.getInputStream();
      break;
      if (portId == null) {
      throw new Exception(res.getProperty("s_com_not_found")
      + this.getComPort() + "\n");
      // state machine infinite loop
      while (true) {
      // SEND DATA TO POS TERMINAL
      if (phase == null) {
      System.out.println("start phase");
      byte[] req = null;
      //verify transaction type to be SALE or REFUND
      //if REFUND then transaction number must be specified
      if (getTransactionType().equalsIgnoreCase("SALE")) {
      System.out.println("--> SALE send message to the pos terminal");
      System.out.println("--> amount: " + amount);
      req = protocolStream("000000123401100" + FS + amount + FS
      + FS + "+0" + FS + "978" + FS + FS + FS + FS + FS
      + FS + FS + ETX);
      else if (getTransactionType().equalsIgnoreCase("REFUND")) {
      System.out.println("--> REFUND send message to the pos terminal");
      System.out.println("--> amount: " + amount);
      System.out.println("--> transaction number: " + getTransactionNumber());
      req = protocolStream("000000123405100" + getTransactionNumber() + FS + amount
      + FS + FS + "+0" + FS + "978" + FS + FS + FS + FS
      + FS + FS + FS + ETX);
      } else {
      // maybe VOID in the future..
      os.write(req);
      os.flush();
      l_ack_timeout = System.currentTimeMillis() + 1500;
      //wait for half second
      try {
      Thread.sleep(500);
      } catch (Exception ee) {
      l_timeout = System.currentTimeMillis() + l_wait_for; //add some time for timeout
      phase = "TO_POS_ACK";
      System.out.println("phase: " + phase);
      }//phase null
      //CHECK IF THE TIMEOUT OCCURED
                if (phase.equalsIgnoreCase("TO_POS_ACK") &
                        (l_timeout < System.currentTimeMillis()) & (b_retry < 4)) {
                    b_retry += 1;
                    System.out.println("TIMEOUT: " + b_retry);
                    l_timeout = System.currentTimeMillis() + l_wait_for;
                    if (b_retry >= 4) {
                        System.out.println("Timeout occured");
                        try {
                            serialPort.close();
                            is.close();
                            os.close();
                        } catch (Exception ee) {
                        //Timeout occured show error
                        //s_timeout
                        this.showError(res.getProperty("s_dlg_err_title"),
            res.getProperty("s_timeout"));
                        break;
              //CHECK FOR THE ACKNOWLEDGE (FIRST RESPONSE FROM POS TERMINAL)
                if (phase.equalsIgnoreCase("TO_POS_ACK") &
                        (l_ack_timeout < System.currentTimeMillis())) {
                    try {
                        int numBytes = 0;
                        dataValue = "";
                        while ((numBytes = is.read(readBuffer)) > 0) {
                            dataValue += new String(readBuffer, 0, numBytes, "ASCII");
                        if (dataValue.getBytes().length > 0) {
                            System.out.println("->first byte: " +
                                dataValue.getBytes()[0]);
                            System.out.println("total length: " +
                                dataValue.getBytes().length);
                            //check for ack byte
                            if (dataValue.getBytes()[0] == 6) {
                                System.out.println(
                                    "<--ACKNOWLEDGE received from pos terminal");
                                phase = "WAIT_FOR_TRANSACTION";
                                l_timeout = System.currentTimeMillis() +
                                    l_wait_for_transaction;
                    } catch (IOException ev) {
              //WAIT FOR TIMEOUT ON MESSAGE
                if (phase.equalsIgnoreCase("WAIT_FOR_TRANSACTION") &
                        (l_timeout < System.currentTimeMillis())) {
                    System.out.println(
                        "Error receiving response from pos terminal!!!");
                    try {
                        serialPort.close();
                        is.close();
                        os.close();
                    } catch (Exception ee) {
                    this.showError(res.getProperty("s_dlg_err_title"),
        res.getProperty("s_response_error"));
                    break;
              //WAIT FOR SOME DATA TO COME FROM POS TERMINAL OVER RS232
                if (phase.equalsIgnoreCase("WAIT_FOR_TRANSACTION")) {
                    try {
                        int numBytes = 0;
                        dataValue = "";
                        while ((numBytes = is.read(readBuffer)) > 0) {
                            dataValue += new String(readBuffer, 0, numBytes, "ASCII");
                        if (dataValue.getBytes().length > 0) {
                            System.out.println("->first byte: " +
                                dataValue.getBytes()[0] + "|" +
                                dataValue.getBytes()[1]);
                            System.out.println("->ascii: " + dataValue);
                            System.out.println("total length: " +
                                dataValue.getBytes().length);
                            if (dataValue.indexOf("PREKINIL UPORABNIK") != -1) {
                                System.out.println(
                                    "Uporabnik je prekinil povezavo!");
                                try {
                                    serialPort.close();
                                    is.close();
                                    os.close();
                                } catch (Exception ee) {
                                //transaction cancelled by user s_user_cancel
                                this.showError(res.getProperty("s_dlg_err_title"),
                    res.getProperty("s_user_cancel"));
                                break;
                            if (dataValue.indexOf("NAPACEN VNOS") != -1) {
                                System.out.println("Napačen vnos");
                                try {
                                    serialPort.close();
                                    is.close();
                                    os.close();
                                } catch (Exception ee) {
                                //invalid user entry
                                this.showError(res.getProperty("s_dlg_err_title"),
                    res.getProperty("s_user_invalid_entry"));
                                break;
                            if (dataValue.indexOf("PROSIM POCAKAJ") != -1) {
                                System.out.println("<-- PROSIM POCAKAJ");
                                continue;
                            //preberemo podatke iz stringe terminala
                            if (dataValue.indexOf("SPREJETO") != -1) {
                                try {
                                    serialPort.close();
                                    is.close();
                                    os.close();
                                } catch (Exception ee) {
                                System.out.println("<-- TRANSAKCIJA SPREJETA");
                                System.out.println(dataValue);
                                System.out.println("Prožimo event v formse");
                                this.transactionProcessed = dataValue.substring(1, 3); //podatek mora biti 10
                                this.transactionFlag = dataValue.substring(13, 15);
                                this.transactionNumber = dataValue.substring(16, 21);
                                System.out.println("transaction number: " + this.transactionNumber);
                                this.transactionDate = dataValue.substring(25, 31);
                                this.transactionTime = dataValue.substring(31, 37);
                                this.transactionBatchNumber = dataValue.substring(21, 25);
                                StringTokenizer st = new StringTokenizer(dataValue, "" + FS);
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                this.terminalTid = st.nextToken();
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                System.out.println(st.nextToken());
                                this.terminalCard = st.nextToken();
                                if (transactionProcessed.equalsIgnoreCase("10")) {
                                else
                                    CustomEvent ce = new CustomEvent(mHandler,
                                            EVT_ERR);
                                    if (transactionProcessed.equalsIgnoreCase("00")) {
                                        System.out.println(
                                            "Error in the format of the request message");
                                        this.errDesc = res.getProperty("s_tf_00");
                                    } else if (transactionProcessed.equalsIgnoreCase(
                                                "01")) {
                                        System.out.println(
                                            "Transaction accepted without authorization code");
                                        this.errDesc = res.getProperty("s_tf_01");
                                    } else if (transactionProcessed.equalsIgnoreCase(
                                                "02")) {
                                        System.out.println(
                                            "Transaction accepted with authorization code");
                                        this.errDesc = res.getProperty("s_tf_02");
                                    } else if (transactionProcessed.equalsIgnoreCase(
                                                "03")) {
                                        System.out.println("Needs voice referall");
                                        this.errDesc = res.getProperty("s_tf_03");
                                    } else if (transactionProcessed.equalsIgnoreCase(
                                                "04")) {
                                        System.out.println("Transaction refused");
                                        this.errDesc = res.getProperty("s_tf_04");
                                    } else if (transactionProcessed.equalsIgnoreCase(
                                                "05")) {
                                        System.out.println(
                                            "Needs manual card data entry");
                                        this.errDesc = res.getProperty("s_tf_05");
                                    } else if (transactionProcessed.equalsIgnoreCase(
                                                "06")) {
                                        System.out.println(
                                            "Authorization call failure");
                                        this.errDesc = res.getProperty("s_tf_06");
                                    dispatchCustomEvent(ce);
                                    return;
                                //če gre skozi potem je vse ok
                                CustomEvent ce = new CustomEvent(mHandler, EVT_OK);
                                dispatchCustomEvent(ce);
                                return;
                    } catch (IOException ev) {
                //wait 200 ms
                try {
                    Thread.sleep(200);
                } catch (InterruptedException ex) {
                    ex.printStackTrace();
                System.out.print('*');
      }//end state machine loop
      * protocolStream prepare the stream to be send over RS232 to POS terminal
      * with LRC cheksum control
      * @param data
      * @return byte[]
      private byte[] protocolStream(String data) {
      char STX = (char) 0x02;
      String tmp = "" + STX + STX + data + "" + getLRC(data);
      System.out.println("PStream: " + tmp);
      for (int i = 0; i < tmp.getBytes().length; i++) {
      System.out.print(tmp.getBytes()[i] + ":");
      // System.out.println("čeksum: " + chksm);
      return tmp.getBytes();
      * Longitudinal Redundancy Check (LRC)
      * @param packet
      * @return String
      private String getLRC(String packet) {
      char[] splitPacket = packet.toCharArray();
      char lrc = 0x00;
      for (int x = 0; x < splitPacket.length; x++) {
      lrc = (char) (lrc ^ splitPacket[x]);
      return "" + (char) lrc;
      private String paddingString(String s, int n, char c, boolean paddingLeft) {
      if (s == null) {
      return s;
      int add = n - s.length(); // may overflow int size... should not be a
      if (add <= 0) {
      return s;
      StringBuffer str = new StringBuffer(s);
      char[] ch = new char[add];
      Arrays.fill(ch, c);
      if (paddingLeft) {
      str.insert(0, ch);
      } else {
      str.append(ch);
      return str.toString();
      * Display error message inside oracle form
      * @param title
      * @param exceptionString
      private void showError(String title, String exceptionString) {
      JOptionPane.showMessageDialog(this, exceptionString, title, 0);
      public String getComPort() {
      return comPort;
      public void setComPort(String comPort) {
      this.comPort = comPort;
      public String getTransactionType() {
      return transactionType;
      public void setTransactionType(String transactionType) {
      this.transactionType = transactionType;
      public String getAmount() {
      return amount;
      public void setAmount(String amount) {
      this.amount = amount;
      public String getTransactionNumber() {
      return transactionNumber;
      public void setTransactionNumber(String transactionNumber) {
      this.transactionNumber = transactionNumber;
      public static void main(String[] args) {
      PosTerminalPjc pjc = new PosTerminalPjc();
      pjc.setComPort("COM1");
      pjc.setTransactionType("SALE");
      pjc.setAmount("1000");
      try
      pjc.doTransaction();
      catch(Exception ex)
      System.err.println(ex.toString());
    [/code]

  • Error running form developer

    hi
    i try to run the form in under windows operating system but the following error always occurred
    "config.nt The system file is not suitable for running MS-Dos and Microsoft Windows application. choose close to terminate the application"
    can any one help me in fixing this error

    Looks like this may be a Microsoft issue. Have you tried google for your error. Try following:
    http://support.microsoft.com/kb/889506

  • Projects in forms developer 10g

    hi all,
    i need forms based projects for study purpose.
    is there any websites providing such projects for free.
    plz help me to get it

    otn.oracle.com/products/forms and have a look around the sample code and papers.
    Also http://www.oracle.com/technology/products/forms/files/summit.zip is a sample Forms application
    Hope this helps
    Grant

  • Run Form 10g through Form 9i

    Hi
    I want to run a form which is created by form developer 10g through form 9i, but there is a error that means not matching a version!
    Any solution?
    Thanks

    I want to run a form which is created by form developer 10g through form 9i, You mean, form builder 10gR2 and deployed from OAS 9?
    If that is true, the answer is:
    Builder and deployed nust be same version, and I add, (may be ??) also patching must be same release( e.g Forms [32 Bit] Version 10.1.2.0.2 (Production) must be = OAS 10.1.2.0.2 Forms services)

  • Problems with SCM server 10g and Forms Developer 6i&9i

    Hi,
    I installed SCM server 10g and try to use it with Forms developer 6i and 9i. The connection to the server works ok but when I choose the container from Source Control Options to check in forms they always go one level higher in the container hierarchy. With Forms developer 10g it is working fine. What might cause this?
    Thanks,
    Tomi

    You are missing one key piece of information from your email - the error message that you got.
    can you specify what was the error number?
    Once you have this number I'll suggest that you look it up on the online documentation of the database available on otn (just do a search on OTN with the error number).

Maybe you are looking for

  • Issue with OSI PI WCF Web Service with wshttpbinding

    Hi Experts, System Details: SAP MII 14 SP4 OSI PI Web Service: PITimeSeries I am having issue when trying to call OSI PI web service using http post. it is returning status 0 when i am using exception handler in BLS. Same web service works fine with

  • Problem in trigger when inserting in mtl_transactions_interface there is an added row

    hi, i have a problem in the trigger when i have a command of 2 lines and do a reception and insertion in table mtl_transactions_interface i found 3 lines, i didn't know where come the 3 row create or replace TRIGGER TOP_RCV_TRANSACTION_ACC_T2 AFTER  

  • My 24"iMac won't upgrade past 10.7.5. How can I find PAGES for me?

    I just need Word Processing for this desktop gem/antique. I have Pages for both my iPads (iOS7 and 8.1) but cannot upgrade my iMac past OSX10.7.5. Pages would be fine if I can find Vers.3 or 4 (I think). Is there something easier, as good, and availa

  • AS2 setup

    I am in process to configure AS2 setup. I did configuration in biztalk and trying to work with vendor to test it. During that all messages getting suspended with following reason. A BTS MIME error was encountered when attempting to encode a message.

  • Stop Re-triggering of PR release strategies for closed PR's.

    Hi, Scenario is like, PR raised and converted it into PO and material has been received. After Receipt of material, system is allowing to change the quantities by un-releasing the release strategies. Once material receipt is completed, system should