No constructor in JFrame matches init (String)

Hello,
I am using Forte for Java 2.0 build 1160 to compile my Java code. Upon compilation I get the following error message:
DemoShape.java [33:1] No constructor in JFrame matches <init>(String)
        super("DemoShape Applet");
        ^
1 errorThe odd thing is this code worked before. Also, when I use javac in a DOS prompt, the program compiles and runs fine. What is causing this problem.
My code is below. I cannot seem to find any error:
//import the necessary java packages
import java.awt.*;   //for the awt widgets
import javax.swing.*;  //for the swing widgets
import java.awt.event.*;  //for the event handler interfaces
public class DemoShape extends JFrame
    //declare private data members of the DemoShape class
    //requires seven control buttons
    private JTextField xShapeText, yShapeText, messageText, fontSizeText;
    private JComboBox shapeTypeDrop, shapeColorDrop, fontTypeDrop,fontColorDrop;
    //declare the entry and display panel containers
    private Panel entryPanel;
    private Panel displayPanel;
    //panels to be within the grid
    private Panel row1, row2, row3, row4, row5, row6, row7;
    //declare public data members of the DemoShape class
    //constructor to initialize private data members
    public DemoShape()
        //call the superclass (JFrame) constructor with the name argument
        //this must be done first (as in C++)
        super("DemoShape Applet");
        //arrays of string to be used later in combo boxes
        //some are used more than once
        String fonts[] = {"Dialog", "Dialog Input", "Monospaced",
                            "Serif", "Sans Serif"};
        String shapes[] = {"Rectangle", "Round", "Oval"};   
        String colors[] = {"Black", "Blue", "Cyan", "Dark Gray",
                            "Gray", "Green", "Light Gray", "Magenta", "Orange",
                            "Pink", "Red", "White", "Yellow"};
        //get the content pane of the class we are in
        Container entire = this.getContentPane();
        entire.setLayout(new GridLayout(1,2));
        //create the entry panel and add it to the entire pane
        entryPanel = new Panel(new GridLayout(10, 1));
        entire.add(entryPanel);
        //create the display panel and add it to the entire pane
        //this will display the output
        displayPanel = new Panel(new FlowLayout());
        entire.add(displayPanel);       
        //initialize the 7 row panels
        row1 = new Panel(new FlowLayout(FlowLayout.CENTER));
        row2 = new Panel(new FlowLayout(FlowLayout.LEFT));
        row3 = new Panel(new FlowLayout(FlowLayout.LEFT));
        row4 = new Panel(new FlowLayout(FlowLayout.CENTER));
        row5 = new Panel(new FlowLayout(FlowLayout.LEFT));
        row6 = new Panel(new FlowLayout(FlowLayout.LEFT));
        row7 = new Panel(new FlowLayout(FlowLayout.LEFT));
        //entry panel code
        //add the form elements to the boxes
        //the first box should have the shape label
        row1.add(new JLabel("Enter Shape Parameters:"));
        //second box should have the shape type
        row2.add(new JLabel("Select Shape:"));
        shapeTypeDrop = new JComboBox(shapes);
        row2.add(shapeTypeDrop);
        row2.add(new JLabel("Select Shape Color:"));
        shapeColorDrop = new JComboBox(colors);
        row2.add(shapeColorDrop);
        //the third box should have the x coord
        row3.add(new JLabel("Enter X:"));
        xShapeText = new JTextField("200", 3);
        row3.add(xShapeText);
        row3.add(new JLabel("Enter Y:"));
        yShapeText = new JTextField("200", 3);
        row3.add(yShapeText);
        //fourth box should have the message header
        row4.add(new JLabel("Enter Message Parameters:"));
        //the fifth box should have the message       
        row5.add(new JLabel("Enter Message:"));
        messageText = new JTextField(25);
        row5.add(messageText);
        //the sixth box should have the font type      
        row6.add(new JLabel("Select Font:"));
        fontTypeDrop = new JComboBox(fonts);
        row6.add(fontTypeDrop);
        //the seventh box should have the font size
        row7.add(new JLabel("Enter Font Size:"));
        fontSizeText = new JTextField("12", 2);
        row7.add(fontSizeText);
        row7.add(new JLabel("Select Font Color:"));
        fontColorDrop = new JComboBox(colors);
        row7.add(fontColorDrop);
        //add the rows to the grid rows
        entryPanel.add(row1);
        entryPanel.add(row2);
        entryPanel.add(row3);
        entryPanel.add(row4);
        entryPanel.add(row5);
        entryPanel.add(row6);
        entryPanel.add(row7);
        //display panel code
        //debugging
        JLabel test = new JLabel("Display Output Here");
        displayPanel.add(test);      
        //set the size of the entire window and show the entire applet
        this.setSize(800,600);
        this.show();
    }   //end the DemoShape constructor
    //call the main class
    public static void main(String args[])
        //create an instance of the DemoShape class
        DemoShape DemoShapeRun = new DemoShape();
        //add the window listener to the applet
        DemoShapeRun.addWindowListener(
            new WindowAdapter()
                public void windowClosing(WindowEvent e)
                    System.exit(0);
    }   //end main
}   //end DemoShape class

The problem must be something with the Forte configuaration because there is most definatley a JFrame(String str) constructor and you are calling Super as the first line in your constructor so I would check and make sure that Forte is using the right JDK, maybe its trying to use Java 1 and thats causing the problem, I'm really not sure I don't use Forte but I can tell you its not the code thats the problem.

Similar Messages

  • Using a SQL Query in an Alert and Matching a String

    I've created an alert in 12.0.4 using a SQL Query and the field that I'm trying to match is a string.  Originally the query returned multiple rows but when the alert still didn't fire, I modified the query WHERE clause to return only one row:
    NAME                                RESPONSE
    Are area lights working?            No
    My expression in the metric is RESPONSE.  In the Monitor I'm matching a string equal to No.  (Do I need double quotes around the matchvalue?  Single quotes?  No quotes?)  The metric is in the 15min scan group, the role is xMII Developers and I'm in that role. The monitor alert string is ' =  '.  Both metric and monitor are active and I've subscribed to the monitor.  Other alerts in the 15min scan group (all based on tag queries) are firing off properly.
    Why is nothing showing up in the Alert Log?
    David Macindoe

    David,
    Did you figure out the answer?  If not, I will try to find someone to address your question.
    Mike

  • SQL LOADER and ORA-01861: literal does not match format string

    Hi,
    I've to load data through control_file(.ctl) into oracle table through sqlldr. Oracle 11g, win xp.
    as soon as I use - sqlldr dss/dss control=orders.ctl I get error or nothing.
    Text file that is generated after loading fails has the following error.
    Record 1: Rejected - Error on table ORDERS, column O_ORDERDATE.
    ORA-01861: literal does not match format string
    I have checked the format of data to be loaded into Orders table is like this : *1996-01-02.*
    I checked the format of data in my database by querying sysdate from dual i.e. 10-JAN-10
    I thought that changing its format might solve my problem so i tried this:
    SQL> alter session set nls_date_format='YYYY-MM-DD';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    2010-01-10but still i'm getting the same error. I've to load millions of data. how I can solve this issue.
    Please suggest.
    Thanks alot.
    Best Regads,
    Kam

    Hi,
    It's strange ....nobody knew it?. I think this type of load problem will be very common isn't it.... where date column data is in a different format than in the db i.e.
    How to change *1996-01-02* in the Control_file to make it able to load in the table where sysdate is like this: *11-JAN-10*
    Sample data to be loaded is :
    1|36901|O|173665.47|1996-01-02|5-LOW|Clerk#000000951|0|nstructions sleep furiously among |
    Desc Orders
    O_ORDERDATE NOT NULL DATEI have tested this by creating a test table and a test control file by omitting this O_ORDERDATE and then everything was fine, data was inserted but don't know how to load this DATE also.
    Also not able to understand about POSITION in the control file...?
    Regards,
    Kam

  • SQL Error: ORA-01861: literal does not match format string

    Hello,
    I'm trying to do data mining on a web log which recorded one day web access information from a busy web server. I imported the data into Oracle Data miner, and created a table (WEBLOG). The idea is to create a new field, i.e. session, for the users so that each session could be thought as a representative of a user-intent (aka topic). Now based on this, data mining models would be used to cluster(group) the users based on their similarity. The first step is to prepare the data which involves using SQL queries. So first, all I did was to create a function for date and time. This is the following code I used,
    create or replace function ssndate(p_date in varchar2 default '03-01-18',
    p_time in varchar2)
    return number
    $if dbms_db_version.ver_le_10 $then
    deterministic
    $elsif dbms_db_version.ver_le_11 $then
    result_cache
    $end
    as
    begin
    return trunc((to_date(p_date||' '||p_time, 'dd-mm-yy hh24:mi:ss')
    - to_date('01-01-90','dd-mm-yy')) * (86400/2400));
    end ssndate;
    The function ssndate compiled successfully.
    The next step I took was to create a view through the following query,
    create or replace view WEBLOG_VIEWS
    as
    select (select ssndate(LOG_DATE, LOG_TIME) from dual) as "SESSION_DT",
    C_IP,
    CS_USER_AGENT,
    (CS_URI_STEM||'?'||CS_URI_QUERY) as WEB_LINK
    from WEBLOG;
    This was successful as well. The problem is in the next step where I try to do data grouping.
    create table FINAL_WEBLOG as
    select SESSION_DT, C_IP, CS_USER_AGENT,
    listagg(WEB_LINK, ' ')
    within group(order by C_IP, CS_USER_AGENT) "WEB_LINKS"
    from WEBLOG_VIEWS
    group by C_IP, CS_USER_AGENT, SESSION_DT
    order by SESSION_DT
    For this, I got the error,
    Error starting at line 1 in command:
    create table FINAL_LOG as
    select SESSION_DT, C_IP, CS_USER_AGENT,
    listagg(WEB_LINK, ' ')
    within group(order by C_IP, CS_USER_AGENT) "WEB_LINKS"
    from WEBLOG_VIEWS
    group by C_IP, CS_USER_AGENT, SESSION_DT
    order by SESSION_DT
    Error at Command Line:1 Column:7
    Error report:
    SQL Error: ORA-01861: literal does not match format string
    ORA-06512: at "DMUSER.SSNDATE", line 11
    ORA-06512: at line 1
    01861. 00000 - "literal does not match format string"
    *Cause:    Literals in the input must be the same length as literals in
    the format string (with the exception of leading whitespace).
    If the "FX" modifier has been toggled on, the literal must
    match exactly, with no extra whitespace.
    *Action:   Correct the format string to match the literal.
    I don't know where I'm going wrong with this.. the to_date function should be fine. In the data that I possess, the date and time are in no format. Example: 30118 and 0:00:09 respectively. If anyone has any clue about this I would be sincerely grateful for any help that I can get!! It's quite urgent..
    The Oracle version is 11.2.0.1.0
    Edited by: 975265 on Dec 5, 2012 5:31 PM

    975265 wrote:
    Ok.. Looks like I touched a nerve there. I apologize. I'm still a student, and this is the first time that I've tried something at this level. I'm still in the learning process, so I was hoping that someone could point me in the right direction in order to "fix" the data.Not so much touching a nerve as simply trying to implement a very very poor, but all too common, practice. Since you are a student (which we didn't know until this post) most people will cut you some slack. However, this little exchange should now be burned into your brain as you move forward. One of the very first rules of programming is to ALWAYS use the correct data types for your data. And along with that, never ever depend on implicit type conversions - always use the proper explicit conversion functions.
    And as a slight follow-on, when considering the appropriate data type, don't assume that just because we refer to a given element as a 'something number' that it is indeed a number. Telephone "numbers" are NOT numbers. U.S. Social Security "numbers" are NOT numbers. U.S. Postal Zip codes are NOT numbers. All are just character strings which, by convention, we limit to the same characters we use to represent numbers.
    And since this entire discussion came up around the representation of dates, you might want to take a look at http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/
    Now, go forth and be a smarter programmer than your peers.
    Edited by: EdStevens on Dec 6, 2012 6:12 AM

  • Pattern matching in String

    Hi,
    I want to do pattern matching using String. Here is my requirement.
    String file_name = (String)hash.get("DOCNAME"));
    file_name = file_name.replace("'","285745@");
    So, whereever I have '(apostrophe) I will replace it with pattern "285745@" and then at another jsp where I get this request parameter I do reverse as follows:
    String docname = (String)request.getParameter("doc_name").replace("285745@","'");
    Now I know replace function is not going to do this. It is just a indicative, for you to know what I want to achieve. which other java function / method i can implement to get the desired result.
    thanks,
    pp

    String file_name = (String)hash.get("DOCNAME"));
    file_name = file_name.replace("'","285745@");The problem here is that String.replace() operates only on char arguments, you cannot replace entire substrings with it.
    The String.replaceAll() method, on the other hand, operates on regular expressions. In many common cases (those in which the substring you want to find contains no characters with special meaning to the regular expression processor) you can use it exactly as you would String.replace() except that it operates on substrings.
    But regular expressions are much more powerful than that. The javadoc for the "Pattern" class has some information on how to use them. There is also a tutorial at http://java.sun.com/docs/books/tutorial/extra/regex/intro.html which you might find helpful.
    In the 1.4 edition of Java there is no longer any need to screw around with while loops and StringBuffers. Nearly any text processing operation can be done with regular expressions.

  • Error: ORA-01861: literal does not match format string

    Hi,
    I am doing a RFC-XI-JDBC scenario.
    In the CC monitoring , i am getting this error for the reciver CC:
    "Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. "TableNAMe"(structure 'STATEMENTNAME'): java.sql.SQLException: ORA-01861: literal does not match format string "
    Please guide me what can be the cause and how to solve it.
    Thanks,
    Puneet

    This is how my payload looks like :
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_JDBC_REC xmlns:ns1="https:namespace.scene3">
    <STATEMENTNAME>
    <TABLE_NAME action="INSERT">
    <TABLE>ggclgis</TABLE>
    <access>
    <VALVE_ID>12584</VALVE_ID>
    <EQUNR>122</EQUNR>
    <ERNAM>12122</ERNAM>
    <INVNR>1212</INVNR>
    <GROES>1212</GROES>
    <ELIEF>123</ELIEF>
    <GWLEN>21-jul-2008</GWLEN>
    <GWLDT>12-jun-2006</GWLDT>
    <SERGE>wqwqw</SERGE>
    <TYPBZ>wqwqwq</TYPBZ>
    </access>
    </TABLE_NAME>
    </STATEMENTNAME>
    </ns1:MT_JDBC_REC>
    Please tell me if it looks fine.

  • "Literal Match Doesnot match format string" error

    Hi All,
    i created a view based on the querry below.
    The view runs fine and gives me correct result.
    but when i add the view to report it trows me oracle error ORA-01861 which is literal match doesnot match format string.
    did anyone face this problem before.
    Please Help
    SELECT q, source, a_string_name, day_f, clock_time_from, clock_time_to,
              ongoing, closed,
              rejection,done,notdone
         FROM (SELECT   DECODE (q_id,2, 'LEDGER_TYPE',
                                'N/A'
                               ) q,
                        DECODE (source_code, NULL, 'NO SOURCE', source_code) source,
                        a_string_name, day_f,
                        TRUNC (TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                    'DD-MON-YY'
                                        || ' '
                                        || hr.clock_time_from,
                                        'DD-MON-YY HH:MI:SS AM'
                               'HH'
                              ) clock_time_from,
                          TRUNC (TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                      'DD-MON-YY'
                                          || ' '
                                          || hr.clock_time_to,
                                          'DD-MON-YY HH:MI:SS AM'
                                 'HH'
                        + 3599 / 86400 clock_time_to,
                        SUM
                           (CASE
                               WHEN try_dt >=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_from,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND try_dt <=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_to,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND user_id <> 'Inbound'
                                  THEN 1
                               ELSE 0
                            END
                           ) ongoing,
                        SUM
                           (CASE
                               WHEN try_finish_dt >=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_from,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND try_finish_dt <=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_to,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND ai.quit_point_id IN (5, 6)
                               AND user_id NOT IN
                                               ('Inbound', 'Nightly Maintenance')
                                  THEN 1
                               ELSE 0
                            END
                           ) closed,
                        SUM
                           (CASE
                               WHEN try_finish_dt >=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_from,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND try_finish_dt <=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_to,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND ai.quit_point_id IN (2, 4)
                               AND user_id NOT IN
                                               ('Inbound', 'Nightly Maintenance')
                                  THEN 1
                               ELSE 0
                            END
                           ) rejection,
                        SUM
                           (CASE
                               WHEN try_finish_dt >=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_from,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND try_finish_dt <=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_to,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND user_id <> 'Inbound'
                                  THEN 1
                               ELSE 0
                            END
                           ) done,
                         SUM
                           (CASE
                               WHEN try_finish_dt >=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_to,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND user_id <> 'Inbound'
                                  THEN 1
                               ELSE 0
                            END
                           ) notdone
                         FROM report.attempts ai,
                        report.log_hour hr,
                        report.client ta
                  WHERE ai.source_code = ta.agency(+)
                    AND ai.user_id <> 'InActiveAttemptsUser'
                    AND try_dt >=
                           TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1), 'DD-MON-YY')
                                    || ' '
                                    || '05:00:00',
                                    'DD-MON-YY HH24:MI:SS'
                    AND try_dt <=
                           TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1), 'DD-MON-YY')
                                    || ' '
                                    || hr.clock_time_to,
                                    'DD-MON-YY HH:MI:SS AM'
                    AND try_finish_dt >= try_dt
                    AND q_id = 2
               GROUP BY DECODE (q_id,2, 'LEDGER_TYPE', 'N/A'),
                        DECODE (source_code, NULL, 'NO SOURCE', source_code),
                        a_string_name,
                        TRUNC (TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                    'DD-MON-YY'
                                        || ' '
                                        || hr.clock_time_from,
                                        'DD-MON-YY HH:MI:SS AM'
                               'HH'
                          TRUNC (TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                      'DD-MON-YY'
                                          || ' '
                                          || hr.clock_time_to,
                                          'DD-MON-YY HH:MI:SS AM'
                                 'HH'
                        + 3599 / 86400,
                        day_f)

    Please re-post if this is still an issue to the Data Connectivity - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Pattern matching a string

    I'm trying to pattern match a string in java which has the following syntax:
    ENSMUS followed by one character which can be anything followed by 11 digits.
    I've done this in javascript using the following regex:
    var regex = /^ENSMUS(\w{1})(\d{11})$/;I'm slightly confused by the Java equivalent (having looked at the Pattern class in the API). Could anyone lend a hand please?

    ENSMUS followed by one character which can be
    anything followed by 11 digits.
    String s = ...
    boolean b = s.matches("ENSMUS.\\d{11}");Note that when matching an entire String, you don't
    need to provide a beginning (^) and end ($) in your
    regex. Also, you said "any character", this is not
    \w, but a . (a period). \w is a "word character".So I assume if it was a word character it would be
    String s = ...
    boolean b = s.matches("ENSMUS\\w{1}\\d{11}");I'll try it and see what happens. Thanks

  • ORA-01861 literal does not match format string, ORA-02063preceding line fro

    We have upgraded a client from 8.0.5 to 9.2.03. The following query is called from a report that was built using Cold Fusion5. It worked in 8.0.5, but not 9.2.03. When you run the report you get the errors
    [Oracle][ODBC][Ora]ORA-01861: literal does not match format string ORA-02063: preceding line from FRPE
    Here's the query:
    SELECT x.acct, x.obj, x.offn, x.status, x.asofdate, max( decode( x.func_id, 1, t, null ) ) UOB, max( decode( x.func_id, 12, t, null ) ) COB, max( decode( x.func_id, 24, t, null ) ) Rate_Warning, max( decode( x.func_id, 2, t, null ) ) Sector_Change, max( decode( x.func_id, 2006, t, null) ) FRRFRD , max( decode( x.func_id, 2003, t, null ) ) No_Tcode , max( decode( x.func_id, 2004, t, null) ) No_Sector FROM ( SELECT a.acct, a.func_id, count(*) cnt, 'Fail' t, b.obj, b.offn, b.status,a.asofdate FROM frpfaud@FRPE a, frpair@FRPE b WHERE a.acct=b.acct AND a.asofdate='2008-02-29 00:00:00' AND b.bnk not like 'B%' and b.obj not in ('KL') and b.obj in ('GAF') GROUP BY a.acct, a.func_id,b.obj,b.offn,b.status,a.asofdate) x GROUP BY x.acct, x.obj,x.offn,x.status,x.asofdate
    Now, this query will not work by running straight through SQL worksheet in either the 8.0.5 or 9.2.03 regions. So I guess it has something to do with Cold Fusion- which I know nothing about. Has anyone had any experience using Cold Fusion to issue a query? What would be the cause of the difference between the Oracle versions? That is the only thing that changed.
    Thanks for any input.

    I actually want the date format of DD-MON-YY. Which, from what I understand, is the default format for both Oracle 8.0.5 and 9.2.03. I'm trying to figure out why it is now displaying as 'yyyy-mm-dd hh24:mi:ss'. I could convince the client that the code needs changing if I had evidence that this version of Oracle (9.2.03) used a different default date format. Or if Cold Fusion pulls the date differently. Ughh.
    Here are the database parameters:
    SQL> show parameter nls_date_format
    NAME TYPE VALUE
    nls_date_format string
    select sysdate from dual;
    SYSDATE
    26-FEB-08
    1 row selected.
    select * from nls_session_parameters
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    17 rows selected.
    select * from v$nls_parameters
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_CHARACTERSET WE8MSWIN1252
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    19 rows selected.

  • SSIS OLE DB Data Source: literal does not match format string

    Dear All,
    this is my first post on this forum, so sorry if I choose wrong category for this question, but I stuck...
    I'm using SSIS from SQL Server 2k8 R2 in Windows Server 2k8 R2. I have installed Oracle Client 10.2.0.2 32 bits and Oracle Client 10.2.0.4 64bits. I want to connect to Oracle 8i and Oracle 9i by these clients.
    Unfortunately when I want to see a preview, only error occurs to me:
    ORA-01861: literal does not match format string (OraOLEDB)
    I have read a lot about this issue but nothing helps me (to_date, cast, convert etc.).
    This is query which I use:
    SELECT COMPANYID, TRANSACTIONTYPE, TRANSACTIONDATE,
    PRODUCT, PRODUCTIONSITE, BATCHNUMBER,
    BINNUMBER, QUANTITYSTOCKUNIT, QUANTITY,
    UNITOFMEASURE, TRANSACTIONCURRENCYID, COST
    FROM APPS.DW_PRODUCTION
    WHERE TRANSACTIONDATE >= '20050101'
    AND TRANSACTIONDATE &lt; '99991231'I have investigated that the problem is with TRANSACTIONDATE column (which is VARCHAR2 data type in database).
    I want also inform You that the same query in SSIS 2005 on Windows 2005 64 bits worked fine.
    Could You help me to find a solution?
    Thanks in advance,
    Łukasz - chalunster
    PS. Sorry for my english
    Edited by: BluShadow on 16-May-2011 15:15
    put {noformat}{noformat} tags into the message and encoded the &lt; symbol so that it formats correctly.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    user10450810 wrote:
    Dear All,
    this is my first post on this forum, so sorry if I choose wrong category for this question, but I stuck...
    I'm using SSIS from SQL Server 2k8 R2 in Windows Server 2k8 R2. I have installed Oracle Client 10.2.0.2 32 bits and Oracle Client 10.2.0.4 64bits. I want to connect to Oracle 8i and Oracle 9i by these clients.
    Unfortunately when I want to see a preview, only error occurs to me:
    ORA-01861: literal does not match format string (OraOLEDB)
    I have read a lot about this issue but nothing helps me (to_date, cast, convert etc.).
    This is query which I use:
    SELECT COMPANYID, TRANSACTIONTYPE, TRANSACTIONDATE,
    PRODUCT, PRODUCTIONSITE, BATCHNUMBER,
    BINNUMBER, QUANTITYSTOCKUNIT, QUANTITY,
    UNITOFMEASURE, TRANSACTIONCURRENCYID, COST
    FROM APPS.DW_PRODUCTION
    WHERE TRANSACTIONDATE >= '20050101'
    AND TRANSACTIONDATE < '99991231'
    I have investigated that the problem is with TRANSACTIONDATE column (which is VARCHAR2 data type in database).
    I want also inform You that the same query in SSIS 2005 on Windows 2005 64 bits worked fine.
    Could You help me to find a solution?
    Thanks in advance,
    Łukasz - chalunster
    PS. Sorry for my englishHi
    Welcome to OTN Forums!
    Are you sure you are using following code
    SELECT COMPANYID, TRANSACTIONTYPE, TRANSACTIONDATE,
    PRODUCT, PRODUCTIONSITE, BATCHNUMBER,
    BINNUMBER, QUANTITYSTOCKUNIT, QUANTITY,
    UNITOFMEASURE, TRANSACTIONCURRENCYID, COST
    FROM APPS.DW_PRODUCTION
    WHERE TRANSACTIONDATE >= '20050101'
    AND TRANSACTIONDATE < 'If yes, then youistake is there,
    WHERE TRANSACTIONDATE >= '20050101'
    AND TRANSACTIONDATE < 'your script is not ended you can use this
    WHERE TRANSACTIONDATE >= '20050101'
    AND TRANSACTIONDATE < '20110101'or
    WHERE to_date(TRANSACTIONDATE,'YYYYMMDD')  >= to_date('20050101','YYYYMMDD')
    AND to_date(TRANSACTIONDATE,'YYYYMMDD') < to_date('20110101','YYYYMMDD')Edited by: Mahir M. Quluzade on May 16, 2011 6:59 PM

  • ORA-01861: literal does not match format string

    Hi Experts,
    Whenever i am running the my procedure in oracle appliactions i am getting this error.
    ORA-01861: literal does not match format string .
    pkg is below:--->
    CREATE OR REPLACE PACKAGE Arc0471_Pending_Crc_Prc_Pkg IS
      --Insert into Custom Table
        PROCEDURE Arc_Insert_Data(P_ORG_ID VARCHAR2, P_BC_CODE VARCHAR2, P_GL_DATE VARCHAR2, P_DB_LINK VARCHAR2);
    END Arc0471_Pending_Crc_Prc_Pkg;
    CREATE OR REPLACE PACKAGE BODY Arc0471_Pending_Crc_Prc_Pkg IS
            PROCEDURE Arc_Insert_Data(P_ORG_ID VARCHAR2, P_BC_CODE VARCHAR2, P_GL_DATE VARCHAR2, P_DB_LINK VARCHAR2)
            IS
              v_val         varchar2(32000);          
              v_cursor1     integer;
              v_cursor2     integer;
              v_returncode  integer;
            BEGIN
           v_val   := ' ';
            v_val :=' INSERT INTO ARC.ARC_CRC_PRC_INVC ';
              v_val := v_val||' (CTA_TRX_NUMBER ,CTA_TRX_DATE ,DUE_DATE ,';
              v_val := v_val||' BILL_TO_CUSTOMER_NO,     BILL_TO_CUSTOMER_NAME ,     BILL_TO_LOCATION ,';
              v_val := v_val||' BILL_TO_ADDRESS ,ORIGINAL_AMOUNT ,APPLIED_AMOUNT , EXCHANGE_RATE     ,';
              v_val := v_val||' INVOICE_CURRENCY_CODE , ACCOUNT_CLASS , GL_DATE  , CTA_CUSTOMER_TRX_ID ,';
              v_val := v_val||' ORG_ID , CREATED_BY , CREATION_DATE ,LAST_UPDATE_BY , LAST_UPDATE_DATE , LAST_UPDATE_LOGIN )';
            v_val := v_val||' SELECT  CTA.TRX_NUMBER ,     CTA.TRX_DATE , APS.DUE_DATE ,';
              v_val := v_val||' HCA.ACCOUNT_NUMBER ,     HP.PARTY_NAME ,     HCSUA.LOCATION ,';
              v_val := v_val||' SUBSTR(HL.ADDRESS1 ||'||''' '''||'|| HL.ADDRESS2 ||'||'''  '''|| '||HL.ADDRESS3||'||'''  '''|| '||HL.ADDRESS4|| '||'''  ''' ||'||HL.PROVINCE||'||'''  '''||'|| HL.CITY ||'||'''  '''||'|| HL.STATE ||'||'''  '''||'|| HL.POSTAL_CODE ||'||'''  '''||'||FTL.TERRITORY_SHORT_NAME,0,1500),';
              v_val := v_val||' APS.AMOUNT_DUE_ORIGINAL , APS.AMOUNT_APPLIED,APS.EXCHANGE_RATE, APS.INVOICE_CURRENCY_CODE, CTLA.ACCOUNT_CLASS,';
              v_val := v_val||' APS.GL_DATE , CTA.CUSTOMER_TRX_ID , CTA.ORG_ID ,FND_GLOBAL.USER_ID ,';
              v_val := v_val||' SYSDATE , FND_GLOBAL.USER_ID , SYSDATE , FND_GLOBAL.LOGIN_ID '  ;  
             v_val := v_val||' FROM ' ;
             v_val := v_val||' AR.RA_CUSTOMER_TRX_ALL CTA,';
              v_val := v_val||' AR.RA_CUST_TRX_TYPES_ALL CTTA,';
              v_val := v_val||' AR.RA_CUST_TRX_LINE_GL_DIST_ALL CTLA,';
              v_val := v_val||' AR.HZ_PARTIES HP,';
              v_val := v_val||' AR.HZ_CUST_ACCOUNTS HCA,';
              v_val := v_val||' AR.HZ_CUST_SITE_USES_ALL HCSUA,';
              v_val := v_val||' AR.HZ_LOCATIONS HL,';
              v_val := v_val||' AR.HZ_PARTY_SITES HPS,';
              v_val := v_val||' AR.AR_PAYMENT_SCHEDULES_ALL APS,';
              v_val := v_val||' AR.HZ_CUST_ACCT_SITES_ALL HCASA,';
              v_val := v_val||' GL.GL_CODE_COMBINATIONS GCC,';
              v_val := v_val||' AR.AR_RECEIVABLE_APPLICATIONS_ALL ARAA,';
              v_val := v_val||' APPLSYS.FND_TERRITORIES_TL FTL ,';
              v_val := v_val||' ONT.OE_TRANSACTION_TYPES_TL'|| P_DB_LINK ||' IND_OTT, ' ;
              v_val := v_val||' ONT.OE_ORDER_HEADERS_ALL'||P_DB_LINK ||'  IND_OH, ';
              v_val := v_val||' AR.RA_CUSTOMER_TRX_ALL'||P_DB_LINK ||' IND_RCTA   ';
             v_val := v_val||' WHERE   CTA.ORG_ID = '||''''|| P_ORG_ID||'''';
             v_val := v_val||' AND   CTTA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
             v_val := v_val||' AND   CTLA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
             v_val := v_val||' AND   HCSUA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
             v_val := v_val||' AND   APS.ORG_ID =  '||''''||P_ORG_ID||'''';
             v_val := v_val||' AND   HCASA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
             v_val := v_val||' AND   CTLA.ACCOUNT_CLASS     =     '||'''REC''';
              v_val := v_val||' AND   CTLA.GL_DATE <= TRUNC(TO_DATE( '||''''||P_GL_DATE||''''||','||'''DD/MM/RRRR HH24:MI:SS'''||'))';
             v_val := v_val||' AND   NVL(ARAA.APPLY_DATE,TO_DATE( '||''''||P_GL_DATE||''''||','||'''DD/MM/RRRR HH24:MI:SS'''||')) <= TRUNC(TO_DATE ('||''''||P_GL_DATE||''''||','||'''DD/MM/RRRR HH24:MI:SS'''||'))';
             v_val := v_val||' AND   TO_DATE(APS.TRX_DATE,'||'''DD-MON-RRRR'''||') >'|| '''02-SEP-2007''' ;
             v_val := v_val||' AND     CTA.CUST_TRX_TYPE_ID    =     CTTA.CUST_TRX_TYPE_ID';
             v_val := v_val||' AND     CTLA.CUSTOMER_TRX_ID     =     CTA.CUSTOMER_TRX_ID';
             v_val := v_val||' AND     HCA.CUST_ACCOUNT_ID     =     CTA.BILL_TO_CUSTOMER_ID';
             v_val := v_val||' AND     HCA.PARTY_ID          =     HP.PARTY_ID';
             v_val := v_val||' AND     HCSUA.SITE_USE_ID     =     CTA.BILL_TO_SITE_USE_ID';
             v_val := v_val||' AND     HL.LOCATION_ID          =     HPS.LOCATION_ID';
             v_val := v_val||' AND     HPS.PARTY_ID          =     HCA.PARTY_ID';
               v_val := v_val||' AND     APS.CUSTOMER_TRX_ID     =     CTLA.CUSTOMER_TRX_ID';
             v_val := v_val||' AND     HCASA.CUST_ACCOUNT_ID     =     HCA.CUST_ACCOUNT_ID';
             v_val := v_val||' AND   HCASA.CUST_ACCT_SITE_ID =HCSUA.CUST_ACCT_SITE_ID';
             v_val := v_val||' AND   HCASA.PARTY_SITE_ID=HPS.PARTY_SITE_ID';
             v_val := v_val||' AND     ARAA.APPLIED_CUSTOMER_TRX_ID(+) = CTA.CUSTOMER_TRX_ID';
             v_val := v_val||' AND   IND_RCTA.TRX_NUMBER = CTA.TRX_NUMBER';
             v_val := v_val||' AND     TO_CHAR(IND_OH.ORDER_NUMBER) = IND_RCTA.CT_REFERENCE';
             v_val := v_val||' AND     IND_OTT.TRANSACTION_TYPE_ID = IND_OH.ORDER_TYPE_ID';
              --v_val := v_val||' AND   ARC.Arc0463_Get_Remng_Amt(APS.TRX_NUMBER,'||''''|| P_GL_DATE||''''||','||'APS.INVOICE_CURRENCY_CODE) <> 0';
             v_val := v_val||' AND   IND_OTT.NAME IN ('||'''D0M RC Imported Sale'''||','||'''D0M RC Indigenous Sale'''||')';
             v_val := v_val||' AND   GCC.CODE_COMBINATION_ID = CTLA.CODE_COMBINATION_ID';
             v_val := v_val||' AND   GCC.SEGMENT1 = '|| ''''||P_BC_CODE||'''';
             v_val := v_val||' AND   HL.COUNTRY = FTL.TERRITORY_CODE';
             v_val := v_val||' AND   FTL.LANGUAGE = USERENV('||'''LANG'''||')';          
                v_cursor1 := dbms_sql.open_cursor;
              dbms_sql.parse(v_cursor1,v_val,DBMS_SQL.NATIVE);
              v_returncode := dbms_sql.execute(v_cursor1);
              dbms_sql.close_cursor(v_cursor1);
         COMMIT;
         EXCEPTION     
                    WHEN DUP_VAL_ON_INDEX THEN
                                    NULL;
                   WHEN OTHERS THEN
                        COMMIT;
                   FND_FILE.PUT_LINE(FND_FILE.OUTPUT, 'IN WHEN OTHERS THEN OF INSERT INTO ARC.ARC_CRC_PRC_INVC'||SQLCODE || ' - ' || SQLERRM);
                -- dbms_output.put_line(sqlcode||sqlerrm);
            END Arc_Insert_Data;
    END Arc0471_Pending_Crc_Prc_Pkg;in above procdure APS.TRX_DATE having the format like this..23/3/2006. in Backend this procedure is working fine ..in toad(version 8.0.0.47). database is 9.0.
    but in oracle apps it is giving error like "literal does not match format string".
    please give me the solution...
    Thanks in ADv...

    Hi,
    It is the Date Data type...There's your problem then; NEVER, EVER, EVER to_date a date!! As you have discovered, it leads to problems when your code is run on different clients due to the different NLS settings they may have. You've been lucky, in other words, that your code has been working at all!
    What to_dating a date does is this:
    to_date(to_char(date_value, <format in NLS_DATE_FORMAT parameter>), <format in NLS_DATE_FORMAT parameter>) You've been lucky because your NLS_DATE_FORMAT has the same format as the data, on your client. On the database, however, it is clearly different.
    Simply remove the to_date from your already-a-date value, and you should find that it works fine.

  • SQL query error - Literal does not match format string

    Hi All,
    When I am removing these code form query then it is running fine else it is giving error of "Literal does not match format string."
    AND trunc((SYSDATE)) > DECODE(fifs.id_flex_structure_name, 'XXX Service Agreement', trunc(TO_DATE
    (pac.segment3, 'YYYY/MM/DD HH24:MI:SS')),trunc(SYSDATE) )
    Regards,
    Ajay

    Ajay Sharma wrote:
    It is flexfield segment so it can contain anything. For my query it is returning date.....Oh dear. Two really bad design decisions in one, there - storing dates as varchar2 and storing more than one type of data in one column. I suggest you read this: http://www.simple-talk.com/opinion/opinion-pieces/bad-carma/ in order to see just why that might be a bad design.
    If you have any influence at all over the way your tables/app is designed, then I would highly recommend changing the design, as it will save you countless headaches like the one you've currently got.
    If you are absolutely stuck with that design, then a) poor you and b) you'll have to add in some filters onto your queryto make sure you're only selecting rows with dates in that column.

  • Error: Literal does not match format string

    Can anyone help me with the query below. I am trying to insert CMPGN_ID, PGM_KEY, CMPGN_BEGIN_DT into TEMP.
    I get an error 'Literal does not match format string' for 'SELECT to_char(add_months(SYSDATE,-1),'YYYYMM') from dual'
    CMPGN_BEGIN_DT has a data type of DATE.
    INSERT INTO TEMP (CMPGN_ID, PGM_KEY, CMPGN_BEGIN_DT)
    VALUES(
    ('NCR_'|| (select to_char(add_months(SYSDATE,-1),'YYYYMM') from dual)),
    (SELECT PGM_KEY FROM PROGRAM WHERE PGM_NAME = 'NCR'),
    (SELECT to_char(add_months(SYSDATE,-1),'YYYYMM') from dual)
    Thanks

    INSERT INTO TEMP (CMPGN_ID, PGM_KEY, CMPGN_BEGIN_DT)
    SELECT 'NCR_'|| to_char(add_months(SYSDATE,-1),'YYYYMM'),
         PGM_KEY,
         to_char(add_months(SYSDATE,-1),'YYYYMM')
    FROM PROGRAM
    WHERE PGM_NAME = 'NCR';Datatypes are unclear, may need datatype casting with date column, but otherwise the above should work.
    Thx,
    SriDHAR

  • Pattern matching in Strings

    Hi,
    I need some help using pattern matching in strings .. this is what i need to do ..
    if given a string of this format
    String tempNotes="07/07/05 3:42 PM - 65. Java forum test 07/01/05 5:11 PM - 62. Trying regualt Expressions";I need to extract the number(s) after the time .. in the above case would be 65,62 .
    The string might have more than one line of the above format .. can some one help me with this .
    I tried using regular expressions .. I am pretty new to Regex's tried this
    String regex="\\d(2)/\\d(2)/\\d(2)\\s\\d+:\\d(2)\\sP|AM\\s-";
    Pattern p= Pattern.compile(regex);
    Matcher m1 = p.matcher(tempNotes);
    if(m1.find()){
    System.out.println("Num = "+tempNotes.substring(m1.end()+1,m1.end()+3));
    } I am totally lost .. can someone help me with this please. I need to extract all the numbers after the time .
    Thanks in advance.

    I see two major problems with that regex. First, you're using parentheses where you should be using braces - "\\d{2}", not "\\d(2)". Second, you need to need to limit the scope of the alternation: "(?:P|A)M", or better, use a character class instead: "[PA]M". As it is, the vbar is splitting the whole regex into two alternatives. Also, you can use a capturing group to extract the number.
      String regex="\\d{2}/\\d{2}/\\d{2}\\s\\d+:\\d{2}\\s[AP]M\\s-\\s+(\\d+)";
      Pattern p= Pattern.compile(regex);
      Matcher m1 = p.matcher(tempNotes);
      while (m1.find()) {
        System.out.println("Num = " + m1.group(1));
      }

  • Match exact string

    I´m trying to run this code that uses a string(ing) and a string array (splitwords).
    I need to run all the string(ing) and if it matches the string from the string array does something with that original string.
    Code:
    StringBuilder builder = newStringBuilder();
    ing = " " + ing + " ";
    builder.Append(@"{\rtf1\ansi");
    foreach (string word in splitwords)
    if (Regex.IsMatch(ing, @"(?<![\w])" + word + @"(?![\w])"))
    // for example put the word in UPPERCASE
    builder.Append(ing);
    builder.Append(@"}");
    return builder.ToString();
    With all the tests it runs ok, but if the word (in the splitwords) to match is "leite" and in the text it has the word "I need to run the string with the word leitelho in it"
    he thinks it  matches the word "leite".
    It returns "I need to run the string with the word LEITE lho in it"
    How can I change my if condition to solve this problem?

    Hi Leonor, 
    This following line is incomplete;
    ing = " " + ing + " ";
    Try the following code, it COMPILES and runs in Visual Studio just fine. BTW, if the split function is to work, you need to
    add a space between the words leite and
    lho. What does this phrase mean???
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Text.RegularExpressions;
    namespace MatchExactString
    class Program
    static void Main(string[] args)
    //Console.WriteLine("enter words seperated by space");
    //string[] ArrayOfWords = Console.ReadLine().Split(' ');
    String WordPhrase = "I need to run the string with the word leite << SPACE HERE >>lho in it";
    string[] ArrayOfWords = WordPhrase.Split(' ');
    String x = ReturnString(ArrayOfWords); Console.Writeline(x);
    static string ReturnString(string[] someWords)
    StringBuilder builder = new StringBuilder();
    string ing = "leite";
    string[] splitwords = someWords;
    ing = " " + ing + " ";
    builder.Append(@"{\rtf1\ansi");
    foreach (string word in splitwords)
    if (Regex.IsMatch(ing, @"(?<![\w])" + word + @"(?![\w])"))
    // for example put the word in UPPERCASE
    ing = word.ToUpper();
    //builder.Append(ing);
    //builder.Append(@"}");
    }//end foreach
    builder.Append(ing);
    builder.Append(@"}");
    return builder.ToString();
    Noticed I have commented out the following lines;
    builder.Append(... ;
    Are you trying to return a JSON string ???
    UML, then code

Maybe you are looking for

  • IPhone Not Syncing to iTunes, despite re-install

    Hi, I was having problems with iTunes on a Mac recognising iPhone, iPad, etc.  Had tried all suggested fixes and eventually re-installed iTiunes (and removed various pref files, which solved the problem.  HOWEVER, a day later the problem has returned

  • Premiere Pro Serious Error: Timeline Blacked Out! Wont Open HELP?!

    I was editing, when I nested a already nested Mulitcam Edit Sequence in order to trim it down, and when I did suddenly the Audio Tracks on the Timeline like blacked out, bets way to desrcibe it, and now it says Serious Issue, closes out and won't rep

  • User submitted Credit Card Historical Transactions Management Report by mis

    A user has submitted the 'Credit Card Historical Transactions Management Report' by mistake. They have noticed that as a result of this, the concurrent request appears to have deactivated all iExpense unused transactions up to and including the date

  • More characters  in title names?

    Thanks for your help. In CC v.7, I'm trying to figure out how to stop the title names from being abridged. With "New Title Based on Current Title", the length of my title is abridged in the Project Window List View. I can rename/restore the title nam

  • Foreign key dependency checking

    Dear all: I have a question about foreign key checking. Let's say I have two Z table, one is master table and one is transaction table. The master table contains a primary key named CustNo. The transaction table have two primary keys named CustNo and