I think this is a bug in oracle

I have put some threads to show those problems i met before, no one has given the right solutions. Then I reinstall the whole system, and those problems occur again when I repeat what I did before.
What I did is as follows:
I created 400 event-based jobs, and one periodic job to trigger them by sending message into a queue. When I let the attribute of "parallel_instance" at default (it should be false). Everything goes fine. I can calculate the CPU utilization in the database, and calculate the average execution time of those event-based jobs. Since I wanna the CPU overloaded, which means when those 400 jobs have not finished until the next triggering comes( the running of that periodic job). So I changed the attribute of "parallel_instance" to be TRUE.
OK, the problems come. After running my experiments for a while, I stopped it. I found the following problems:
1. Those event-based jobs cannot record its own execution time and its job name. everything is 0 in a table I created to record those values.(I calculate the execution time at the end of the job by deducting the start time from the current time. The job name is passed by metadata.)
2 I cannot purge those event-based job logs. I have done all what I have imaged to purge those logs of event-based jobs, no one works. Those job logs always stay in those views which record logs. But I can purge those logs of periodic jobs.
3 If I delete those event-jobs and create them again. Then the scheduler crashes. That means, the periodic jobs I create in the database cannot run any more.
As for the last two problems, I have put a lot of threads in the forum to ask for help last week. But I failed.
Anyone can take deeper insight into the database and give me some help? Perhaps I can delete those disgusting job logs manually from a local file in the hard disk? Because I think those job views should be read from a local file somewhere.
I really appreciate your kind help.

I have put some threads to show those problems i met
before, no one has given the right solutions. You mean: nobody gave me the solutions I like.
Then I
reinstall the whole system, and those problems occur
again when I repeat what I did before.Reinstalling Oracle is usually a waste of time and resources.
>
What I did is as follows:
I created 400 event-based jobs, and one periodic job
to trigger them by sending message into a queue. When
I let the attribute of "parallel_instance" at default
(it should be false).Define 'job', define 'trigger', define 'message', define 'a queue'
Way more details are required!!!
Everything goes fine. I can
calculate the CPU utilization in the database, and
calculate the average execution time of those
event-based jobs. Since I wanna the CPU overloaded,
which means when those 400 jobs have not finished
until the next triggering comes( the running of that
periodic job). So I changed the attribute of
"parallel_instance" to be TRUE.Which means you tinkered with Oracle. Parallel_instance should only be TRUE in a RAC installation.
>
OK, the problems come. After running my experiments
for a while, I stopped it. I found the following
problems:
1. Those event-based jobs cannot record its own
execution time and its job name. everything is 0 in a
table I created to record those values.(I calculate
the execution time at the end of the job by deducting
the start time from the current time. The job name is
passed by metadata.)Sorry, but this is nonsense. AUDIT CONNECT will already record the logoff_time.
Also you can dump the session statistics to a table.
2 I cannot purge those event-based job logs.Define 'purge', define 'log'. Where is your log? A text file?
Sorry, but if you want help you should not required ouija boards, and/or hand or mind reading.
I have
done all what I have imaged to purge those logs of
event-based jobs, no one works. Those job logs always
stay in those views which record logs. But I can
purge those logs of periodic jobs.
3 If I delete those event-jobs and create them again.
Then the scheduler crashes. That means, the periodic
jobs I create in the database cannot run any more.
Define 'scheduler'
As for the last two problems, I have put a lot of
threads in the forum to ask for help last week. But I
failed.
Anyone can take deeper insight into the database and
give me some help? Perhaps I can delete those
disgusting job logs manually from a local file in the
hard disk? Because I think those job views should be
read from a local file somewhere.
I really appreciate your kind help.Really? You insulted this forum by not specifying any details, by asking for free consultancy, and by claiming you didn't get the 'right solutions'.
If you know the 'right solutions', please: help yourself!!!!!!
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • I think this is a Bug of String class

    I think this is a Bug of String class, do you agree with me ?
    String s = "1234........"; // when "1234........". length() > 65535, there will be wrong, but
    char[] c = new char[88888];...
    String s = new String(c);even if c.length >65535�Cevery thing is ok.
    so I think is a bug. Somebody give me a answer, thanks

    below is the two Constructors Of String
        public String(String original) {
         int size = original.count;
         char[] originalValue = original.value;
         char[] v;
           if (originalValue.length > size) {
             // The array representing the String is bigger than the new
             // String itself.  Perhaps this constructor is being called
             // in order to trim the baggage, so make a copy of the array.
             v = new char[size];
             System.arraycopy(originalValue, original.offset, v, 0, size);
         } else {
             // The array representing the String is the same
             // size as the String, so no point in making a copy.
             v = originalValue;
         this.offset = 0;
         this.count = size;
         this.value = v;
        }=====================
        public String(char value[]) {
         int size = value.length;
         char[] v = new char[size];
         System.arraycopy(value, 0, v, 0, size);
         this.offset = 0;
         this.count = size;
         this.value = v;
        }I don't know where has the problem.

  • Do you think this is the bug in 1.5?

    I have this applet and the tooltip for second button does not appear after clicking on first button. It only happens in java 1.5. Do you think this is the bug or I am doing something wrong. this is the code
    /*<HTML>
    <HEAD>
    <TITLE> A Simple Program </TITLE>
    </HEAD>
    <BODY>
    Here is the output of my program:
    <APPLET CODE="HelloWorld1" WIDTH=350 HEIGHT=325>
    </APPLET>
    </BODY>
    </HTML>
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.applet.Applet;
    public class HelloWorld1 extends JApplet implements ActionListener {
    CardLayout c = new CardLayout();
    JPanel lslayout = new JPanel();
         JButton n = new JButton("first");
         JButton n1 = new JButton("second");
    public void init() {
    getContentPane().setLayout(c);
         getContentPane().add("message", n);
         getContentPane().add("message1", n1);
         n.addActionListener(this);
         n.setToolTipText("firs tooltip");
         n1.setToolTipText("second tooltip");
    public void actionPerformed(ActionEvent e) {
    c.show(getContentPane(), "message1");
    }

    I have rewriten it with FlowLayout() and it still does not works. Code is below. One thing i noticed.If I minimize my browser window the tooltip appears. Does anyone knows which method the browser calles after minimizing.
    public class HelloWorld2 extends JApplet implements ActionListener {
    JPanel panel = new JPanel();
         JPanel panel2 = new JPanel();
         JPanel panel3 = new JPanel();
         JButton n = new JButton("first");
         JButton n1 = new JButton("second");
    public void init() {
    panel.setLayout(new FlowLayout());
         panel2.setLayout(new FlowLayout());
         panel.add( n);
         panel2.add(n1);
         getContentPane().setLayout(new FlowLayout());
         getContentPane().add( panel);
         n.addActionListener(this);
         n.setToolTipText("firs tooltip");
         n1.setToolTipText("second tooltip");
    public void actionPerformed(ActionEvent e) {
         getContentPane().removeAll();
         setEnabled(false);
         setEnabled(true);
         getContentPane().add( panel2);
         panel2.revalidate();
         panel2.validate();
         validate();
         repaint();
    }

  • I think this is a bug with rendering a string to a graphics2d

    Hiya,
    The following lines of code create the rendering error I am experiencing, to which I have tested on several computers.
    BufferedImage bi=new BufferedImage(100,100,BufferedImage.TYPE_INT_ARGB);
    Graphics2D g2d=bi.createGraphics();
    g2d.setColor(new Color(1f,0f,0f,0.5f));
    g2d.fillRect(0,0,100,100);
    RenderingHints renderingHints=new RenderingHints(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
    RenderingHints rh=new RenderingHints(RenderingHints.KEY_TEXT_ANTIALIASING,RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
    renderingHints.add(rh);
    rh=new RenderingHints(RenderingHints.KEY_ALPHA_INTERPOLATION,RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
    renderingHints.add(rh);
    g2d.setRenderingHints(renderingHints);
    g2d.setFont(new Font("Lucida",Font.BOLD,14));
    g2d.setColor(Color.BLACK);
    g2d.drawString("SQOWTGBC",10,30);
    When the destination image has an alpha of 1 the text is rendered with the correct antialiasing. However, in this example where the alpha is 0.5 the text is rendered with unwanted artifacts.
    [http://sphotos-b.ak.fbcdn.net/hphotos-ak-ash4/269344_590137484330481_704825569_n.jpg]
    This image has JPG artifacts but the unwanted rendering artifacts are still visible (ie the brighter edges)
    I am wondering if this is not in fact an error but the intended result. If so, how to I configure the graphics object to render the antialiased text without the artifacts?
    I could not find where to submit a bug on the oracle website for the life of me so maybe if someone would like to explain how this is achieved I will be very grateful.
    Penny
    x
    I have spent several hours trying to find if this has been reported as a bug or if there is a solution posted online but to no avail.
    Edited by: 995038 on Mar 20, 2013 5:32 AM
    Edited by: 995038 on Mar 20, 2013 5:33 AM
    Edited by: 995038 on Mar 20, 2013 5:36 AM

    I have made a work around for the moment.
    This work around uses a BufferedImage to render the antialiased text first which does not create the artefacts and then draw the image of the text to where the text should appear. I dont think this is an acceptable solution because in the case where there could be 1000s of TextLayout objects the increased overhead would be unacceptable.
    private void drawTextLayout(Graphics2D g2d,float x,float _y) {
    Rectangle r=_g2d.getClipBounds();
    bufferG2D.translate(r.x,r.y);
    Composite c=bufferG2D.getComposite();
    bufferG2D.setComposite(clearComposite);
    bufferG2D.fill(r);
    bufferG2D.setComposite(c);
    textLayout.draw(bufferG2D,_x,_y);
    bufferG2D.translate(-r.x,-r.y);
    _g2d.drawImage(buffer,r.x,r.y,null);
    the BufferedImage of bufferG2D would need to be large enough to cater for any size of text to be rendered to which I believe the size should be set to the screen size. This solution requires that there always be a _g2d clip assigned.
    Regards
    Penny

  • Think this is a bug?

    ver 10.2
    SQL> select cast(22222  as number(3,0)) from dual
    select cast(22222  as number(3,0)) from dual
    Error at line 0
    ORA-01438: value larger than specified precision allowed for this column
    SQL> select cast('XXXXX' as varchar2(1)) from dual
    C
    X
    1 row selected.seems like the casting of a varchar2 should be an error if it is to long instead of acting kind of like a trim
    Thanks
    Ox

    me also same,
    SQL> select *
      2  from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE     10.2.0.3.0     Production
    TNS for Solaris: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    SQL> select cast(22222  as number(3,0)) from dual;
    select cast(22222  as number(3,0)) from dual
    ORA-01438: value larger than specified precision allowed for this column
    SQL> select cast('XXXXX' as varchar2(1)) from dual;
    CAST('XXXXX'ASVARCHAR2(1))
    X
    from here it looks like for varchar2(1) it just tries to extract 1 letter of the string XXXXX
    if you select the following,
    SQL> select cast('XXXXX' as varchar2(2)) from dual;
    CAST('XXXXX'ASVARCHAR2(2))
    XX
    SQL> select cast('XXXXX' as varchar2(3)) from dual;
    CAST('XXXXX'ASVARCHAR2(3))
    XXX
    SQL> select cast('XXXXX' as varchar2(4)) from dual;
    CAST('XXXXX'ASVARCHAR2(4))
    XXXX
    SQL> select cast('XXXXX' as varchar2(6)) from dual;
    CAST('XXXXX'ASVARCHAR2(6))
    XXXXX
    SQL>
    *here cast works like substr and the string length is determined by varchar2(1), or varchar2(2) and so on,*
    *not sure from it looks like cast with numbers and varchar2 are treated differently,*

  • I think this is a bug for icloud on PC

    My icloud's photo stream didn't work although I had finished the setting steps on guide.
    And there is one thing that I think strange.
    I logged in icloud, with my apple ID on my PC(windows 7). Enable the photo stream option, and then I logged out.
    At the next time I login, using the same ID on the same PC, strange things happened. The photo stream option was in the status of disable.
    I think icloud might failed on storing the user's setting on windows 7.

    below is the two Constructors Of String
        public String(String original) {
         int size = original.count;
         char[] originalValue = original.value;
         char[] v;
           if (originalValue.length > size) {
             // The array representing the String is bigger than the new
             // String itself.  Perhaps this constructor is being called
             // in order to trim the baggage, so make a copy of the array.
             v = new char[size];
             System.arraycopy(originalValue, original.offset, v, 0, size);
         } else {
             // The array representing the String is the same
             // size as the String, so no point in making a copy.
             v = originalValue;
         this.offset = 0;
         this.count = size;
         this.value = v;
        }=====================
        public String(char value[]) {
         int size = value.length;
         char[] v = new char[size];
         System.arraycopy(value, 0, v, 0, size);
         this.offset = 0;
         this.count = size;
         this.value = v;
        }I don't know where has the problem.

  • U think this is a bug in Flash Professional 8????

    I have encountered this probem with Flash Professional 8
    (Windows Version). When i filled the stroke with Bitmap Color and
    tried to Rotate it with a constraint by holding a Shift Key it got
    distorted. This is not hapening everytime we do it, but does happen
    sometimes. Pros out there look into this and lets have a discussion
    of what this problem is???

    I have encountered this probem with Flash Professional 8
    (Windows Version). When i filled the stroke with Bitmap Color and
    tried to Rotate it with a constraint by holding a Shift Key it got
    distorted. This is not hapening everytime we do it, but does happen
    sometimes. Pros out there look into this and lets have a discussion
    of what this problem is???

  • I *think* this is a bug...

    Hello,
    Ah, well, I don't really know what to do... if I should stick to what I've got, restart it all over again, but I have the slight hope that Adobe might be able to help me, at least a little. I don't want to recode this all over again...
    Anyways, I'm coding this game... my first MMOG in fact, I decided to code my own server, using C#. Yesterday, I had got an incredible streak of luck and I managed to finish movement, it was crappy, really laggy, but I was so happy, like any developer would get when they achieve something. I felt I was going to, at least once, do something decent, build a nice game, just for fun.
    However, I lost all of my hope today, when about 1 hour ago, I encounter myself with one of the friendliest flash messages I've seen:
    "Can not save file to "C://[..]" please try at another location or with a different filename"
    All right, I saw it, and I instantly realized that I was going to get in some deep, horrible, problem. But, I had confidence in my beloved Flash CS5 (uh-oh) and I tried saving it one folder up (at the parent folder). error again. I change the filename. Error again. I desperately try to save it as an .xfl, or a CS4 .fla, but this only worsened the situation: My .fla, disappeared.
    OK - I though - Flash is still open, I can try to save it.
    But seems I was with the worse of my luck: Visual Studio's Just-in-time debugger pops up, saying that an "unhandled win32 occurence occured in Flash.exe" and asked me with which debugger I wished to debug the broken program. I was now sure, I had lost a load of work.
    I've tried a recovering lost files programs, to try to see if I regained the lost .fla, but not much hope. I still have the decompiled version, but as you know, it is not as good as the fresh and normal fla...
    Anyone has a suggestion? I just can't believe this happened...
    Thanks in advance,
    Lucas

    Hello,
    Ah, well, I don't really know what to do... if I should stick to what I've got, restart it all over again, but I have the slight hope that Adobe might be able to help me, at least a little. I don't want to recode this all over again...
    Anyways, I'm coding this game... my first MMOG in fact, I decided to code my own server, using C#. Yesterday, I had got an incredible streak of luck and I managed to finish movement, it was crappy, really laggy, but I was so happy, like any developer would get when they achieve something. I felt I was going to, at least once, do something decent, build a nice game, just for fun.
    However, I lost all of my hope today, when about 1 hour ago, I encounter myself with one of the friendliest flash messages I've seen:
    "Can not save file to "C://[..]" please try at another location or with a different filename"
    All right, I saw it, and I instantly realized that I was going to get in some deep, horrible, problem. But, I had confidence in my beloved Flash CS5 (uh-oh) and I tried saving it one folder up (at the parent folder). error again. I change the filename. Error again. I desperately try to save it as an .xfl, or a CS4 .fla, but this only worsened the situation: My .fla, disappeared.
    OK - I though - Flash is still open, I can try to save it.
    But seems I was with the worse of my luck: Visual Studio's Just-in-time debugger pops up, saying that an "unhandled win32 occurence occured in Flash.exe" and asked me with which debugger I wished to debug the broken program. I was now sure, I had lost a load of work.
    I've tried a recovering lost files programs, to try to see if I regained the lost .fla, but not much hope. I still have the decompiled version, but as you know, it is not as good as the fresh and normal fla...
    Anyone has a suggestion? I just can't believe this happened...
    Thanks in advance,
    Lucas

  • Bug in oracle embedded http listener

    Hi there,
    I've discovered a bug in the Oracle embedded http listener for our Oracle on RHEL database version 11.1.0.6 where it will return HTTP-400 bad request errors if a cookie is created with a bare comma in the cookie value. To see for yourself, simply create an apex application with an open door authentication and enter a username with a comma in it - page 101 writes the username to a cookie, and then you get HTTP-400 errors.
    I'll raise this as a bug at Oracle, but in the meantime I'm frantically trying to figure out a workaround. We have a production site using a standard Apache frontend that we link to Apex applications using mod_rewrite. There are other applications on the site (invision powerboard) which create cookies with bare commas, so we have no control over the creation of these maligned cookies. My thinking is that we might be able to use mod_rewrite rules to weed out the offending cookies and encode the commas so that things continue to work.
    Can anyone assist with a workaround?
    Many thanks,
    Mike

    Hi Mike,
    perhaps you can try to modify the cookies on the client?
    http://scripts.franciscocharrua.com/javascript-cookies.php
    Or is it already too late so that you cannot even run the first procedure to inject the javascript code into the first page?
    Or, you could configure the DAD to run a stored procedure before anything else:
    PlsqlBeforeProcedure
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_epg.htm
    If this is already too late, your only option seems to be to use an Apache as a proxy and modify the cookie value there.
    Regards,
    ~Dietmar.

  • Bug in Oracle's handling of transaction isolation levels?

    Hello,
    I think there is a bug in Oracle 9i database related to serializable transaction isolation level.
    Here is the information about the server:
    Operating System:     Microsoft Windows 2000 Server Version 5.0.2195 Service Pack 2 Build 2195
    System type:          Single CPU x86 Family 6 Model 8 Stepping 10 GenuineIntel ~866 MHz
    BIOS-Version:          Award Medallion BIOS v6.0
    Locale:               German
    Here is my information about the client computer:
    Operaing system:     Microsoft Windows XP
    System type:          IBM ThinkPad
    Language for DB access: Java
    Database information:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    The database has been set up using the default settings and nothing has been changed.
    To reproduce the bug, follow these steps:
    1. Create a user in 9i database called 'kaon' with password 'kaon'
    2. Using SQL Worksheet create the following table:
    CREATE TABLE OIModel (
    modelID int NOT NULL,
    logicalURI varchar (255) NOT NULL,
    CONSTRAINT pk_OIModel PRIMARY KEY (modelID),
    CONSTRAINT logicalURI_OIModel UNIQUE (logicalURI)
    3. Run the following program:
    package test;
    import java.sql.*;
    public class Test {
    public static void main(String[] args) throws Exception {
    java.util.Locale.setDefault(java.util.Locale.US);
    Class.forName("oracle.jdbc.OracleDriver");
    Connection connection=DriverManager.getConnection("jdbc:oracle:thin:@schlange:1521:ORCL","kaon","kaon");
    DatabaseMetaData dmd=connection.getMetaData();
    System.out.println("Product version:");
    System.out.println(dmd.getDatabaseProductVersion());
    System.out.println();
    connection.setAutoCommit(false);
    connection.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);
    int batches=0;
    int counter=2000;
    for (int outer=0;outer<50;outer++) {
    for (int i=0;i<200;i++) {
    executeUpdate(connection,"INSERT INTO OIModel (modelID,logicalURI) VALUES ("+counter+",'start"+counter+"')");
    executeUpdate(connection,"UPDATE OIModel SET logicalURI='next"+counter+"' WHERE modelID="+counter);
    counter++;
    connection.commit();
    System.out.println("Batch "+batches+" done");
    batches++;
    protected static void executeUpdate(Connection conn,String sql) throws Exception {
    Statement s=conn.createStatement();
    try {
    int result=s.executeUpdate(sql);
    if (result!=1)
    throw new Exception("Should update one row, but updated "+result+" rows, query is "+sql);
    finally {
    s.close();
    The program prints the following output:
    Product version:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Batch 0 done
    Batch 1 done
    java.lang.Exception: Should update one row, but updated 0 rows, query is UPDATE OIModel SET logicalURI='next2571' WHERE modelID=2571
         at test.Test.executeUpdate(Test.java:35)
         at test.Test.main(Test.java:22)
    That is, after several iterations, the executeUpdate() method returns 0, rather than 1. This is clearly an error.
    4. Leave the database as is. Replace the line
    int counter=2000;
    with line
    int counter=4000;
    and restart the program. The following output is generated:
    Product version:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Batch 0 done
    Batch 1 done
    java.sql.SQLException: ORA-08177: can't serialize access for this transaction
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2709)
         at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:796)
         at test.Test.executeUpdate(Test.java:33)
         at test.Test.main(Test.java:22)
    This is clearly an error - only one transaction is being active at the time, so there is no need for serialization of transactions.
    5. You can restart the program as many times you wish (by chaging the initial counter value first). The same error (can't serialize access for this transaction) will be generated.
    6. The error doesn't occur if the transaction isolation level isn't changed.
    7. The error doesn't occur if the UPDATE statement is commented out.
    Sincerely yours
         Boris Motik

    I have a similar problem
    I'm using Oracle and serializable isolation level.
    Transaction inserts 4000 objects and then updates about 1000 of these objects.
    Transactions sees inserted objects but cant update them (row not found or can't serialize access for this transaction are thrown).
    On 3 tries for this transaction 1 succeds and 2 fails with one of above errors.
    No other transactions run concurently.
    In read commited isolation error doesn't arise.
    I'm using plain JDBC.
    Similar or even much bigger serializable transaction works perfectly on the same database as plsql procedure.
    I've tried oci and thin (Oracle) drivers and oranxo demo (i-net) driver.
    And this problems arises on all of this drivers.
    This problem confused me so much :(.
    Maby one of Oracle users, developers nows cause of this strange behaviour.
    Thanx for all answers.

  • I think that this is a bug in text field!

    Hi!
    Steps:
    1.create Frame
    2.create text field (textFieldTest1) and add in frame
    3.create text field (textFieldTest2) and add in frame.
    4. show frame
    5.enter some text in textFieldTest1 and stay here.
    6.Minimize frame.
    7.Open again frame
    8.The caret is invisible in textFieldTest1. I double click in textFieldTest1 but caret don't show. I can enter text again in textFieldTest1 but caret is invisible. I press left and right arrows in textFieldTest1 and enter text, but caret is invisible.It's very confuse.
    9.Click mouse in textFieldTest2
    10.Click mouse in textFieldTest1 and caret is now visible.
    I think that this is a bug in swing.
    What are think about this?
    Thank you.

    I meant for you to include code that I could cut and paste and execute to see if I had the same problem on my machine. I had to play with the code you gave to get it to compile. Make it easy for me to test. Anyway I did get it to compile and again it did work for me. here is the code I ended up testing:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Main extends JFrame
         public Main()
    super("Time");
    setBounds(300, 200, 400, 200);
    Container cont = this.getContentPane();
    cont.setLayout(new GridBagLayout());
    setDefaultCloseOperation(this.EXIT_ON_CLOSE);
    JTextField textField1 = new JTextField(10);
    cont.add(textField1);
    cont.add(new JLabel("label1"));
    JTextField textField2 = new JTextField(10);
    cont.add(textField2);
    cont.add(new JLabel("label2"));
    setVisible(true);
         public static void main(String[] args)
              JFrame frame = new Main();

  • I got the same problem, I think it must be a bug of ORACLE or gcc.

    When I use gcc to make the *.cpp file which is made by Proc and I get an error that "undefined function sqlcxt". A lot of people get the same problem, so I think it must be a bug of ORACLE or gcc!!

    Can you provide the exact sequence of steps. - Also have you tried Refresh diagram from struts-config?

  • Bug in Oracle Driver 11.2.0.3.0 when handling CLOB?

    Hello,
    I got a table which is defined like this:
    CREATE TABLE FOO
    FOO_id NUMBER(18) NOT NULL ,
    xml_content sys.XMLTYPE NOT NULL
    According to the documentation Oracle is using a CLOB as internal type.
    For reading the CLOB from the database we are using Spring's org.springframework.jdbc.support.lob.OracleLobHandler (Spring 3.0.6.RELEASE) class which is implemented like this:
    public String getClobAsString( ResultSet rs, int columnIndex ) throws SQLException
    logger.debug( "Returning Oracle CLOB as string" );
    Clob clob = rs.getClob( columnIndex );
    initializeResourcesBeforeRead( rs.getStatement().getConnection(), clob );
    String retVal = ( clob != null ? clob.getSubString( 1, (int) clob.length() ) : null );
    releaseResourcesAfterRead( rs.getStatement().getConnection(), clob );
    return retVal;
    For me, this looks like the valid solution. But when reading CLOB greater than 4109 bytes, the resulting String contains a 0x0 (NULL) byte. Because the table is defined to contain XML, the XML parser is unable to handle this.
    As workaround I got the following solution:
    public String getClobAsString( ResultSet rs, int columnIndex ) throws SQLException
    logger.debug( "Returning Oracle CLOB as string" );
    Clob clob = rs.getClob( columnIndex );
    initializeResourcesBeforeRead( rs.getStatement().getConnection(), clob );
    readAllCharacter( clob );
    String retVal = ( clob != null ? clob.getSubString( 1, (int) clob.length() ) : null );
    releaseResourcesAfterRead( rs.getStatement().getConnection(), clob );
    return retVal;
    * Dummy read of all characters of the given lob. This fixes an issue that the resulting string
    * contains 0x0 bytes.
    * @param clob the clob
    * @throws SQLException
    private void readAllCharacter( Clob clob ) throws SQLException
    if( clob != null )
    Reader characterStream = clob.getCharacterStream();
    char[] buffer = new char[4 * 1000];
    try
    while( characterStream.read( buffer ) != -1 )
    catch( IOException e )
    logger.error( "Exception while reading from the clob", e );
    finally
    try
    characterStream.close();
    catch( IOException e )
    // nothing to do;
    With this dummy read, the string does not contain the 0x0 token.
    I think it's a Bug in the oracle.sql.CLOB class or did I miss something?
    Kind regards
    Michael

    >
    I'm unsure what you mean with your citation and how this affects my code?
    >
    That citation specifically tells you how the drivers (based on version) support 'the Oracle SQL XML type (XMLType)'.
    >
    A call to getSubString should give me the content of the clob. But why does the content contain some bytes (0x0) which should not be there.
    >
    A CLOB instance is just a LOB locator. A locator contains the information necessary for Oracle to 'locate' the full lob contents. It usually also contains all of the lob data that is stored 'inline' in the table row. There is a limit of around 4k for the 'inline' part of the lob data.
    A lob locator does NOT contain the part of the lob that is stored in the lob segment. The 'out-of-line' lob is generally retrieved using streams as shown in that doc.
    So the 'getSubString' call is only using the contents of the locator.
    See Inline and Out-of_Line LOB Storage in the 'Oracle® Database SecureFiles and Large Objects Developer's Guide'
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28393/adlob_tables.htm
    >
    Inline and Out-of-Line LOB Storage
    LOB columns store locators that reference the location of the actual LOB value. Depending on the column properties you specify when you create the table, and depending the size of the LOB, actual LOB values are stored either in the table row (inline) or outside of the table row (out-of-line).
    LOB values are stored out-of-line when any of the following situations apply:
    If you explicitly specify DISABLE STORAGE IN ROW for the LOB storage clause when you create the table.
    If the size of the LOB is greater than approximately 4000 bytes (4000 minus system control information), regardless of the LOB storage properties for the column.
    If you update a LOB that is stored out-of-line and the resulting LOB is less than approximately 4000 bytes, it is still stored out-of-line.
    LOB values are stored inline when any of the following conditions apply:
    When the size of the LOB stored in the given row is small, approximately 4000 bytes or less, and you either explicitly specify ENABLE STORAGE IN ROW or the LOB storage clause when you create the table, or when you do not specify this parameter (which is the default).
    When the LOB value is NULL (regardless of the LOB storage properties for the column).
    Using the default LOB storage properties (inline storage) can allow for better database performance; it avoids the overhead of creating and managing out-of-line storage for smaller LOB values. If LOB values stored in your database are frequently small in size, then using inline storage is recommended.
    Note:
    LOB locators are always stored in the row.
    A LOB locator always exists for any LOB instance regardless of the LOB storage properties or LOB value - NULL, empty, or otherwise.
    If the LOB is created with DISABLE STORAGE IN ROW properties and the BASICFILE LOB holds any data, then a minimum of one CHUNK of out-of-line storage space is used; even when the size of the LOB is less than the CHUNK size.
    If a LOB column is initialized with EMPTY_CLOB() or EMPTY_BLOB(), then no LOB value exists, not even NULL. The row holds a LOB locator only. No additional LOB storage is used.
    LOB storage properties do not affect BFILE columns. BFILE data is always stored in operating system files outside the database.
    >
    You should generally use streams to read/write LOBs as they are the most efficient way to access them. If you commonly only need a subset of the data I suggest you use a PL/SQL package/function/procedure to perform the substringing and return the results.
    >
    the first read results also in an String with the 0x0 byte
    >
    And those would be part of the lob locator.

  • BUG in Oracle SQL Developer 3.0.04 on the "generating DLL" with comments?

    I'm newbie on oracle, but I think that I found out a bug in Oracle SQL Developer version 3.0.04 on the "generating DLL" tool using "comments".
    I will describe the steps that I gave:
    I created a view, but after I test it I had to change my “where” condition, so I comment the old code and then I wrote the new “where” condition below. After I done that I tried to look at the sql code of my view using “generating DLL” tool, but oracle sql developer only shown me half of the code, a lot of code were missing. Then I began with some test trying to understand what happen and I notice that if I put an invalid sql code in my comment the generating DLL start working with no problems, for example(pseudo-code):
    (COMMENT WITH VALID SQL CODE the "Generating SQL" don't work:)
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    SELECT column1, column2
    FROM table1
    INNER JOIN
    (SELECT
    FROM table2
    INNER JOIN .....
    INNER JOIN ....
    --where time_stamp = (select max(time_stamp) from .....)
    WHERE time_stamp >= TRUNC(sysdate)
    ) t1 ON t1.ID = ....
    AND ..... >= TRUNC(sysdate)
    ORDER BY ....
    Generating DLL returns this(when the error occurs):
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    (COMMENT WITH VALID SQL CODE the "Generating SQL" work with no problems:)
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    SELECT column1, column2
    FROM table1
    INNER JOIN
    (SELECT
    FROM table2
    INNER JOIN .....
    INNER JOIN ....
    --where
    WHERE time_stamp >= TRUNC(sysdate)
    ) t1 ON t1.ID = ....
    AND ..... >= TRUNC(sysdate)
    ORDER BY ....
    I believe that "Generating DLL" tool have some problem with the comments, I also used /*...*/ to comment but the problem is still active.
    I notice as well that if I started to add some more comments along the code, the conditions migth change, so I think the problem is related with "comments" code.
    Would you mind telling me if this is a real bug or if I'm doing anything wrong.
    Thank you in advance,
    Rodrigo Campos
    Edited by: 894886 on 3/Nov/2011 5:29

    Hi Rodrigo,
    Thank you for reporting this. The only bug I see currently logged on a comment affecting the generated View DDL involves ending the last line of the definition with a comment, which treats the ending semi-colon (even if on a different line) as part of the comment. That is actually related to a low-priority bug against an Oracle database API.
    Unfortunately, your pseudo-code is a bit complex. Trying a few quick, simpler tests against the standard HR schema did not reproduce the issue. I tried INNER JOIN, and nested SELECTs. It would help greatly if you could provide a test case compilable against one of the standard schema, like HR or SCOTT.
    Regards,
    Gary
    SQL Developer Team

  • Bug in Oracle 9.2.0.1.0.

    I have found a bug in Oracle 9.2.0.1.0.
    Here is the bug analysis.
    Step 1:
    CREATE TABLE T1 ( ENO NUMBER, ENAME VARCHAR2(100));
    Step 2:
    CREATE TABLE T2 (DNAME VARCHAR2(1000));
    Step 3:
    INSERT INTO T1 VALUES (1,’KARTHIK’);
    Step 4:
    INSERINTO T2 VALUES ('VENKATRAMAN');
    Commit;
    Now try executing this command,
    Command:
    SELECT * FROM T1 WHERE ENO IN (SELECT ENO FROM T2);
    Here table T2 does not contain “ENO”.
    But the query returns,
    Output:
    =====
    ENAME
    DNAME
    1
    KARTHIK
    VENKATRAMAN
    “ENO” column is being fetched from the main query with table T1 and not from the sub query with table T1.
    Please verify this bug and kindly provide a response.
    Regards,
    Karthik

    Well, heres my test (10g, for I dont have a 9.2.0.1.0, but I think it´d show the same result):
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select *
      2  from t1;
    ENO ENAME
       1 KARTHIK
    SQL> select *
      2  from t2;
    DNAME
    VENKATRAMAN
    SQL> select *
      2  from t1
      3  where eno in (select eno from t2);
    ENO ENAME
       1 KARTHIK
    SQL> alter table t2 add (eno number);
    Table altered.
    SQL> select *
      2  from t1
      3  where eno in (select eno from t2);
    no rows selected
    SQL> alter table t2 drop (eno);
    Table altered.
    SQL> select *
      2  from t1
      3  where eno in (select t2. eno from t2);
    where eno in (select t2. eno from t2)
    ERROR at line 3:
    ORA-00904: "T2"."ENO": invalid identifier
    SQL>
    But he is getting output of table T2 too se his last postI don´t think so, because he didn´t SELECT it. Would be nice to just copy & paste the output...
    Regards,
    Gerd

Maybe you are looking for

  • How can I append an XML to SOAPHeader

    Basically what I need to do is set the XML, I have to the SOAP Header. Here is what I am trying to do. MessageFactory factory = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL); message = factory.createMessage(); DocumentBuilderFactory dbf

  • Dreamweaver MX shuts down when trying to connect to FTP

    Whenever I try to connect, the popup of it trying to connect shows up but then it shuts down my dreamweaver. I had already ran a test and the connection settings are correct but I don't know what the problem with it is. Anyone have any ideas? Thanks

  • Front row plays music but will not show photos

    When i try to view my photos in Front Row all that happens is music plays but no photos are shown. Front row says that there are 186 photos to show, however, there is nothing to view once I start the show. Any help with this?

  • Intermittent of error "ORA-12203: TNS:unable to connect to destination"

    Hi, One of my application (run 24 hours each day) face intermittent of error "ORA-12203: TNS:unable to connect to destination", any one face the same issue ? any solution for this ? The error may occur weekly, some time monthly, occur randomly. My Or

  • GRC AC v5.3 CUP "User Access Reviews" (UAR) requires implementation of ERM?

    Hi Experts, re: GRC AC v5.3 CUP "User Access Reviews" (UAR) requires implementation of ERM? After reading the guides and forum it is still not clear to me if ERM is absolutely required in order to use CUP "User Access Reviews". The guide mentions in