10g Form Developer Quits on compiling Forms connected to Sybase tables.

Dear Experts,
We have configured the connectivity for Sybase database with our oracle 9i database. using Hetero Geneous Service i.e using System_dsn ..etc.
On this Sybase connectivity 6i Forms are compiling and running successfully But with 10g Forms while compling it just close the 10g form developer.
For example....!
In 6i forms On Button Press trigger below insert command works perfectly.
But In 10g forms it say nothing and Just Quit.
begin     
insert into *"sybase_table"@SYBASE_DSN_DBLINK*
("colum1","colum2")
values
('value1','value2');                         
commit;
end;
Please help to resolve this problem.
Thanks
Eidy

Hello,
1.) does it with with the forms compiler (frmcmp)?
2.) did you try creating a synonym for your object:
create synonym my_syn for sybase_table@SYBASE_DSN_DBLINK;and use this synonym?
3.) Did you try it with the latest patchsets if you didn't apply them (10.1.2.3 for forms)?
4.) Did you try it with another database version (9i reached sustaining support btw. so you might try it with e.g. 10.2)?
5.) If everything fails you can put your logic in a database procedure and use that?
cheers

Similar Messages

  • Inner Query is excuting properly in 10g SQL developer, but not in Form 6i

    Hi All,
    I am able to excute below query in Oracle SQL developer in 10g , but when I tried to excute it in Forms 6i on WHEN-NEW-FORM_INSTANCE trigger, it is giving me below error message
    SELECT okl2.line_number subline_number, okl2.sts_code subline_status,
    okl2.start_date subline_start_date, okl2.end_date subline_end_date,
    okl2.date_terminated,oks.cognomen line_ref,okl2.ID subline_id,okl2.lse_id,
    (SELECT orig_model_no
    FROM apps.emcoks_msh_subst_models sm
    WHERE okh.contract_number = sm.contract_number
    AND okl.line_number = record_line_id) orig_model_no,
    (SELECT orig_model_qty
    FROM apps.emcoks_msh_subst_models sm
    WHERE okh.contract_number = sm.contract_number
    AND okl.line_number = record_line_id) orig_model_qty
    FROM apps.okc_k_lines_b okl2,
    apps.okc_k_headers_b okh,
    apps.okc_k_lines_b okl,
    apps.okc_k_items oki ,
    apps.okc_k_lines_tl oks
    WHERE 1 = 1
    AND okl2.dnz_chr_id = okl.chr_id
    AND okl.lse_id = 1
    AND okl2.lse_id IN (7, 9)
    AND okl.ID = okl2.cle_id
    AND okl.ID = oki.cle_id
    AND okl2.ID = oks.ID
    AND okl.chr_id = okh.ID
    AND okl2.dnz_chr_id = okh.ID
    AND okl.ID = 130246066126590818122526020119476052469
    order by subline_id;
    Error 103 : Encountered the symbol "Select" when expecting one of the following
    ( - + mod not null others <an identifier>

    I am new to Oracle Forms. Could you please guide me, how to create this statement as a view in the database ?
    I have tried to rewrite it using OUTER JOIN, but I am not getting same results.
    SELECT okl.line_number subline_number, okl.sts_code subline_status,
    okl.start_date subline_start_date, okl.end_date subline_end_date,
    okl.date_terminated,oks.cognomen line_ref,okl.ID subline_id,okl.lse_id,
    sm.orig_model_no orig_model_no,
    sm.orig_model_qty orig_model_qty
    FROM apps.okc_k_lines_b okl2,
    apps.okc_k_headers_b okh,
    apps.okc_k_lines_b okl,
    apps.okc_k_items oki ,
         apps.okc_k_lines_tl oks
    , apps.emcoks_msh_subst_models sm
    WHERE 1 = 1
    AND okl2.dnz_chr_id = okl.chr_id
    AND okl.lse_id = 1
    AND okl2.lse_id IN (7, 9)
    AND okl.ID = okl2.cle_id
    AND okl.ID = oki.cle_id
    AND okl2.ID = oks.ID
    AND okl.chr_id = okh.ID
    AND okl2.dnz_chr_id = okh.ID
    AND okl.ID = 130246066126590818122526020119476052469
    AND okh.contract_number (+) = sm.contract_number
    AND okl.line_number (+) = sm.record_line_id
    order by subline_id;
    Edited by: Swarup_C on May 8, 2013 6:46 AM

  • Forms developer Crashes while compile

    I am using Forms 6i on windows 2000 ... i have a 4 mb form .. when ever i do incremental compile(ctrl + shift + k .. developer 2000 forms crashes and shuts down ...
    some times the message given is program error and sometimes no message is given the the form exits
    Please help i cant make a single change to the form easily
    thanks
    Ashish

    Problem solved!
    I ran the frmbld.exe from DeveloperHome\BIN and then I could use File->Open normally. I figured out that it opens in the same folder for the first time (DeveloperHome\BIN). Before that, I used a shortcut to run forms builder. That shortcut didn't have the working directory set to anything. So, it seems that the open dialog wanted to open in the working directory (as it was the first time to open any file) (and this maybe the case also when the latest directory to open from was deleted or moved). So the solution was simple, just add the working directory to the shortcut..

  • 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).

  • How To Compile Forms 10g Devloped in Windows For Deployment In RHEL

    can any budy give me script file for compiling forms 10g ,which i developed in windows and need to be deployed in RHEL 5
    How To Compile Forms 10g Devloped in Windows For Deployment In RHEL 5
    any budy plzzz help

    You could try something like this:
    for i in `ls *.pll`
    do
    echo Compiling Library $i ....
    frmcmp.sh userid=me/me@medb batch=no module=$i module_type=library compile_all=yes window_state=minimize
    done
    for i in `ls *.mmb`
    do
    echo Compiling Library $i ....
    frmcmp.sh userid=me/me@medb batch=no module=$i module_type=menu compile_all=yes window_state=minimize
    done
    for i in `ls *.fmb`
    do
    echo Compiling Library $i ....
    frmcmp.sh userid=me/me@medb batch=no module=$i module_type=form compile_all=yes window_state=minimize
    done

  • How To Compile Forms 10g Devloped in Windows For Deployment In RHEL 5

    can any budy give me script file for compiling forms 10g ,which i developed in windows and need to be deployed in RHEL 5
    How To Compile Forms 10g Devloped in Windows For Deployment In RHEL 5
    any budy plzzz help

    Why not ask over at the Forms forum?
    Forms
    This is the Oracle Designer forum

  • Connecting Oracle Forms Developer to E-Business Suite

    Hi,
    I have downloaded the Oracle DevSuite (10g) and BITools, I have managed to connect Oracle Discoverer to the db without any issues however, I am trying to connect Oracle Forms Developer 10g to our E-Business Suite 11i db and I keep getting the ORA- 01017 invalid username/password logon denied error message.
    Should I be able to connect Oracle Forms Developer to the Oracle Business Suite databse without any issues or am I missing something,
    any help would be greatly appreciated,
    thanks
    Chris

    Hi Chris
    First, You should know that the developer certified version for Oracle Apps development is 6i patch 18 (there's a new patch 19 also). On Discoverer, it's Ok to use 10G.
    Now, on the connection issue, by the message it is related to the user/pass entered. If in Discoverer You are using oracle apps integration You may be using and application user and password, but that can be used to connect to the database.
    Ask in Your project for apps password (may be apps or welcome12 if and on demand environment) for the development environment, or check if there's is a custom schema defined for development and get the user/pass for that one also. You may try with applsyspub/pub meanwhile to check connection but it's a restricted user.

  • Compiling forms 10g on AIX

    Hi list,
    I have installed Forms and Reports Standalone 10g on AIX system.
    My forms are developed on windows.
    I can compile and test successfully my forms on AIX.
    I would like to know if it is possible (and how) to compile forms with an other user than the oracle user where standalone is installed.
    I have tested it with a user with dba group, but I always have the FRM-91500 error message (I don't know how to trace the compiling process).
    Thanks for any reply.
    Regards.
    Didier QUIMERCH

    Hi Craig,
    from another source I got the following suggestion, which I am hoping to try out in the test environment ASAP:
    AIXTHREAD_SCOPE=S The default value for this variable is P, which signifies process-wide contention scope (M:N). For Java applications, you should set this value to S, which signifies system-wide contention scope (1:1).
    AIXTHREAD_MUTEX_DEBUG=OFF Maintains a list of active mutexes for use by the debugger.
    AIXTHERAD_COND_DEBUG=OFF Maintains a list of condition variables for use by the debugger.
    AIXTHREAD_RWLOCK_DEBUG=OFF Maintains a list of active mutual exclusion locks, condition variables, and read-write locks for use by the debugger. When a lock is initialized, it is added to the list if it is not there already. This list is implemented as a linked list, so searching it to determine if a lock is present or not has a performance implication when the list gets large. The problem is compounded by the fact that the list is protected by a lock, which is held for the duration of the search operation. Other calls to the pthread_mutex_init() subroutine must wait while the search is completed. For optimal performance, you should set the value of this thread-debug option to OFF. Their default is ON.
    SPINLOOPTIME=500 Number of times that a process can spin on a busy lock before blocking. This value is set to 40 by default. If the tprof command output indicates high CPU usage for the check_lock routine, and if locks are usually available within a short amount of time, you should increase the spin time by setting the value to 500 or higher.
    Cheers,
    Morten

  • Still not able to CONNECT to Forms Developer

    Yesterday I received gernerous help from forum participant Shay,
    who walked me through the setup process (TNS Listener and
    TNSNAMES.ora, etc.) but I still cannot connect. I'm missing
    something fundamental.
    I have MS Windows 2000 version of Oracle Personal Edition 8i
    installed in directory ora81. The version of SQL*Plus that
    came with it works fine--I can connect to the database, create,
    drop, insert, etc.
    Oracle Forms Developer 6 is installed in directory orant. I can open
    the application but not connect. I tried to use Net8 Easy Config to
    define a new entry in tnsnames.ora, but every attempt fails in the
    GUI's test. (I told Shay that I got the test to work, but I was
    mistaken.) Next I manually changed the the tnsnames.ora file in
    orant\NET80\ADMIN\tnsnames.ora, which then shows up in the Config
    tool but still fails the test to connect. How does this tnsnames.ora
    file work with the tnsnames.ora file in ora81\network\ADMIN?
    Meanwhile, Personal Edition is running fine. The tnslsnr is running.
    I looked both in Services and, using Task Manager, in Processes.
    Oracle.exe is also running. I ran lsnrctl status and got the following:
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)
    (KEY=EXTPROC1)))
    ...and then it gives status info, which indicates listener is on.
    How do you get Forms Developer to connect to the database that is
    clearly running?

    Start the Oracle Net8 Easy Config from the start menu. Add a new service name:add the name of your database. Choose "Bequeath" as a type of protocole because you are connecting to a local database which is on your own machine. Change the default SID to the name of your database.
    I think it will work .

  • 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>

  • 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...

  • 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]

  • 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

  • Problems Connecting to Database in Forms Developer

    Please can someone help me, I installed Oracle9i personal edition on my PC (OS XP PRO) about 4 months ago. But I've only just started using the forms developer. When I try to run the form in the browser window I can't connect to the database. The application freezes and won't respond. Occasionally I get the error message
    ORA-12514 saying TNS listener cannot resolve the service name. My tnsnames.ora file seems to be correct but I'm not sure if it is in the right directory?
    Can someone please give me some advice.
    Thankyou.

    Guys,
    I have been doing this for years - on solaris, linux and windows. You have 2 Oracle homes - one for the database and one for the forms. 6i - or iDS does not matter - 2 Oracle Homes. Same on Linux/Solaris/Windows - ok.
    Define the TNS_ADMIN environment variable (applies to all 3 OS above). Set it to a directory of your choice - better yet create one. On solaris and linux /var/opt/oracle is a good choice. On windows create a directory of your choice. Also define the TWO_TASK and ORACLE_SID environment variables to match your database server settings.
    Ftp the database server's tnsnames.ora and sqlnet.ora files to the directory you created (TNS_ADMIN points to).
    To be certain that you are not using the Forms' Home/network/admin/tnsnames.ora and sqlnet.ora files - rename them. You will not use them and you won't need them (unless you want to edit them to include the tnsnames.ora and sqlnet.ora entries from your Database server's /network/admin/tnsnames.ora and sqlnet.ora files.
    That is it - next time you connect from the forms you should be able to connect. If you want provide the connect string (3rd field in the connection window) to ensure you pointing to the right db server.
    You don't need to configure your Forms' network services again - all you do is use the Oracle database server's network configuration files.
    Hope this proves useful.

  • 10g Forms Developer and Bluetooth

    Hi,
    Is there any way to use bluetooth on 10g forms developer?
    Thanks.

    Please start here:
    http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo
    We are going to need much more information if you would like assistance.

Maybe you are looking for

  • HP Officejet 6500A won't scan.

    My HP Officejet 6500A Plus E710n (purchased late 2011) won't scan. Prints just fine. I have a MacBook Pro with OS X Lion 10.7.5 (11G63) purchased late 2011. I haven't scanned anything in over a year. When I tried to scan a document a few days ago, th

  • TS1369 Windows 8 & ipod nano

    Does anyone have a fix for newer ipod nano's syncing up to Windows 8? I went thru the list on the apple web site but still nothing.

  • Budget control for automatic Purchase orders

    Hi All, We are facing problem in budget availability check for automatically generated Purchase orders through MRP run. We are able to control the budget check for manual Purchase orders  but how can we control budgets for automatically generated Pur

  • Info about eCATT Testing Tool

    Hi All, I have read various blogs/threads regarding eCATT Testing tool. I can see how to create eCATT scripts but my questions is how do we open eCATT tool. I ve read that we have to enter "SECATT" as tcode, but where? I ve SAP Netweaver Application

  • System error at PCUI Lead, while entering Partner.

    Hi Gurus, While working on Leads in PCUI after entring Specific partner at Header level the below mesage appears "More complex error messages determined for this document" , i m not able to understand the reason for this error, is this because of GUI