XLA on AWT cachegroups

I write an API to watch a few tables cached, TimesTen which are caching an oracle database. Here I have some people read only and AWT

cache groups that hold tables. For the type read-only, it's ok, and whenever I make some changes directly on the database, the API notice these

changes on the tables. But I have the problem with the tables located on the cache AWT groups. When I change these tables in the

database (for example, INSERT a line), the API does not detect these changes until I refreshed this group of cache that hold the table. How can I write a

API let you detect changes on the database for tables (belong to a group of cache AWT) and update this table via a SQL statement

automatically? TimeTen has a capacity to do that?

Thank you
Shahrokh

No, that is not possible and will probably not always possible. XLA is hunted TimesTen transaction logs; only data changes that occur in and are recorded by, TimesTen generate records of newspaper that XLA can retirn. Given that caching of the AWT is not vice versa in Oracle changes TT-> Oracle will never get 'automatically' to TiemsTen unless you don't happen explicitly using GROUP of CACHE LOAD/REFRESH or dynamic load.

Chris

Tags: Database

Similar Questions

  • the log files are not purged

    Hi all

    I have a data store of TT, with layout LogPurge = 1. There are a lot of transactions, manipulating the data store. If I'm not mistaken, the log files, which are older, then the old checkpoint file is deleted automatically by TT, is there is no operation holding them. In my case, the log files are not deleted, so the ls - ltr command prints:

    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 10:49 appdbtt.res1
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 10:49 appdbtt.res0
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 10:49 appdbtt.res2
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:02 appdbtt.log0
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:03 appdbtt.log1
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:03 appdbtt.log2
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:04 appdbtt.log3
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:04 appdbtt.log4
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:04 appdbtt.log5
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:05 appdbtt.log6
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:05 appdbtt.log7
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:06 appdbtt.log8
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:06 appdbtt.log9
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:07 appdbtt.log10
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:07 appdbtt.log11
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:08 appdbtt.log12
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:08 appdbtt.log13
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:09 appdbtt.log14
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:09 appdbtt.log15
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:09 appdbtt.log16
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:10 appdbtt.log17
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:10 appdbtt.log18
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:11 appdbtt.log19
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:11 appdbtt.log20
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:12 appdbtt.log21
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:12 appdbtt.log22
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:13 appdbtt.log23
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:13 appdbtt.log24
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:14 appdbtt.log25
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:14 appdbtt.log26
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:15 appdbtt.log27
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:15 appdbtt.log28
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:16 appdbtt.log29
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:16 appdbtt.log30
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:16 appdbtt.log31
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:17 appdbtt.log32
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:17 appdbtt.log33
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:18 appdbtt.log34
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:18 appdbtt.log35
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:19 appdbtt.log36
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:19 appdbtt.log37
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:20 appdbtt.log38
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:20 appdbtt.log39
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:21 appdbtt.log40
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:21 appdbtt.log41
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:22 appdbtt.log42
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:22 appdbtt.log43
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:22 appdbtt.log44
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:23 appdbtt.log45
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:23 appdbtt.log46
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:24 appdbtt.log47
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:25 appdbtt.log48
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:25 appdbtt.log49
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:25 appdbtt.log50
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:26 appdbtt.log51
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:26 appdbtt.log52
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:27 appdbtt.log53
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:27 appdbtt.log54
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:28 appdbtt.log55
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:28 appdbtt.log56
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:29 appdbtt.log57
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:29 appdbtt.log58
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:30 appdbtt.log59
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:30 appdbtt.log60
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:31 appdbtt.log61
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:31 appdbtt.log62
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:32 appdbtt.log63
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:32 appdbtt.log64
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:33 appdbtt.log65
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:33 appdbtt.log66
    -rw-rw-rw-1 timesten, timesten 487444480 dec 07 11:33 appdbtt.ds0
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:34 appdbtt.log67
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:34 appdbtt.log68
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:35 appdbtt.log69
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:35 appdbtt.log70
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:35 appdbtt.log71
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:36 appdbtt.log72
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:36 appdbtt.log73
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:37 appdbtt.log74
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:37 appdbtt.log75
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:38 appdbtt.log76
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:38 appdbtt.log77
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:39 appdbtt.log78
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:39 appdbtt.log79
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:40 appdbtt.log80
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:40 appdbtt.log81
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:41 appdbtt.log82
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:41 appdbtt.log83
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:42 appdbtt.log84
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:42 appdbtt.log85
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:43 appdbtt.log86
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:43 appdbtt.log87
    -rw-rw-rw-1 timesten, timesten 632098816 dec 07 11:43 appdbtt.ds1
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:44 appdbtt.log88
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:45 appdbtt.log89
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:45 appdbtt.log90
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:46 appdbtt.log91
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:46 appdbtt.log92
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:46 appdbtt.log93
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:47 appdbtt.log94
    -rw-rw-rw-1 timesten, timesten 67108864 dec 07 11:47 appdbtt.log95
    -rw-rw-rw-1 timesten, timesten 4767744 dec 07 11:47 appdbtt.log96

    As you can see, I have 67 log files older than the old checkpoint file. Now, if I enter the DS in ttIsql and call ttLogHolds I get:
    Command > call ttLogHolds();
    < 0, 38034792, replication, APPDBTT:_ORACLE >
    67 44319520, checkpoint, < appdbtt.ds0 >
    88 45855168, checkpoint, < appdbtt.ds1 >
    3 lines found.

    What can be the problem?

    Thanks in advance:
    Dave

    This bookmark

    < 0,="" 38034792,="" replication="" ,="" appdbtt:_oracle="">

    indicates that the bookmark AWT has not moved since 0 log file. Since the AWT is performed by the replication agent, it retains a bookmark to follow where its has reached in reading through files looking for operations against any cachegroups AWT transaction logs. It seems that somehow an operation against a cachegroup AWT was not committed, which means that he cannot be sent to Oracle, recognized and settled the bookmark. Once the bookmark moves into a new transaction log file, all the old log files can then be purged.

    You might be able to identify any transaction cease using ttXactAdmin and looking for the locks held against AWT cachegroups.

  • TimesTen to AWT Oracle Transaction semantics

    Hello

    I had a question about the semantics of transaction being maintained between Oracle and TimesTen for an asynchronous write through to Oracle TimesTen. Suppose we have a single cachegroup AWT on TimesTen to update a single table in Oracle.

    If on TimesTen, we do the following-

    1 insert a line in the cache group TimesTen.

    Validation - end of the transaction 1.

    2. update the same row on TimesTen.

    Validation - end of the transaction 2.

    3. update the same row again on TimesTen.

    Validation - end transaction 3.

    The question is the update to Oracle via AWT would 3 operations (Insert followed by validation, followed by validation updates and another followed by a validation.) or will happen differently? I think that ranking (insertions followed by updates and another) would be maintained. How about the semantics of transaction?

    To add more, version TimesTen that we use is 11.2.2.4.11 running on a 64-bit Linux machine. We have a secure two validation architecture where we have two instances of TimesTen, a primary (active) and a secondary (standby) to Setup, with the operation of the secondary instance (standy) AWT.

    Any input would be very helpful.

    Thank you!

    Yes. AWT uses batch operations against Oracle to optimize performance. One batch can cover several transactions (complete) because they took place on the side of TimeTen. We promise each batch. If a batch operation fails, then restore us the whole lot and then re-run the transaction that made the batch using individual operations, and in this case, we will then engage on each transaction limit.

    Chris

  • stop Java download with bin\awt.dll problem, file not found

    bin\awt.dll: old file not found however a file of the same name were found no update because the contents of the file do not match.
    Java update fails to apply the changes to your system.
    Java, set up the error # 1722.
    These are the messages I get when I try to update java.

    If all else fails then I uninstall Java and download it from scratch

    Try to uninstall Java versions installed via the "Control Panel > Add and Remove Programs".

    Install the latest version of Java .

    See also http://raproducts.org/javara.html RaProducts - JavaRa documentation

  • I tried to install java and get the error message of bin\awt.dll is not found

    I tried to install java and when I try I get the dell bin\awt.dll error message cannot be found. Please help I do not know what or how I can get it back to make it work so I can download java thank you for your time.

    Look at the thread next help with your Java error:
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_install/Java-Update-failedmissing-file-binawtdll-cannot/939b47ab-d644-46AE-9553-fd55bbb160cf

    It should help.

    Marilyn

  • Exception in thread "AWT-EventQueue-0" oracle.jbo.TooManyObjectsException: Houston-25013: too many objects correspond to the oracle.jbo.Key [4 primary key].

    Mr President

    I am able to add records with the following method but when I navigate through folders and then I get the above error.

    When you use this code in my doDML()

    package model;
    
    
    import java.sql.PreparedStatement;
    
    
    import oracle.jbo.Key;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.EntityDefImpl;
    import oracle.jbo.server.EntityImpl;
    import oracle.jbo.server.SequenceImpl;
    import oracle.jbo.server.TransactionEvent;
    // ---------------------------------------------------------------------
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Tue Nov 10 11:03:43 PKT 2015
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    // ---------------------------------------------------------------------
    public class TableNameImpl extends EntityImpl {
        /**
         * AttributesEnum: generated enum for identifying attributes and accessors. DO NOT MODIFY.
         */
        public enum AttributesEnum {
            Column1,
            Column2,
            Column3,
            JoinColumn,
            HiddenColumn;
            private static AttributesEnum[] vals = null;
            private static final int firstIndex = 0;
    
    
            public int index() {
                return AttributesEnum.firstIndex() + ordinal();
            }
    
    
            public static final int firstIndex() {
                return firstIndex;
            }
    
    
            public static int count() {
                return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
            }
    
    
            public static final AttributesEnum[] staticValues() {
                if (vals == null) {
                    vals = AttributesEnum.values();
                }
                return vals;
            }
        }
        public static final int COLUMN1 = AttributesEnum.Column1.index();
        public static final int COLUMN2 = AttributesEnum.Column2.index();
        public static final int COLUMN3 = AttributesEnum.Column3.index();
        public static final int JOINCOLUMN = AttributesEnum.JoinColumn.index();
        public static final int HIDDENCOLUMN = AttributesEnum.HiddenColumn.index();
    
    
        /**
         * This is the default constructor (do not remove).
         */
        public TableNameImpl() {
        }
    
    
        /**
         * Gets the attribute value for Column1, using the alias name Column1.
         * @return the value of Column1
         */
        public Number getColumn1() {
            return (Number) getAttributeInternal(COLUMN1);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for Column1.
         * @param value value to set the Column1
         */
        public void setColumn1(Number value) {
            setAttributeInternal(COLUMN1, value);
        }
    
    
        /**
         * Gets the attribute value for Column2, using the alias name Column2.
         * @return the value of Column2
         */
        public Number getColumn2() {
            return (Number) getAttributeInternal(COLUMN2);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for Column2.
         * @param value value to set the Column2
         */
        public void setColumn2(Number value) {
            setAttributeInternal(COLUMN2, value);
        }
    
    
        /**
         * Gets the attribute value for Column3, using the alias name Column3.
         * @return the value of Column3
         */
        public Number getColumn3() {
            return (Number) getAttributeInternal(COLUMN3);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for Column3.
         * @param value value to set the Column3
         */
        public void setColumn3(Number value) {
            setAttributeInternal(COLUMN3, value);
        }
    
    
        /**
         * Gets the attribute value for JoinColumn, using the alias name JoinColumn.
         * @return the value of JoinColumn
         */
        public Number getJoinColumn() {
            return (Number) getAttributeInternal(JOINCOLUMN);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for JoinColumn.
         * @param value value to set the JoinColumn
         */
        public void setJoinColumn(Number value) {
            setAttributeInternal(JOINCOLUMN, value);
        }
    
    
        /**
         * Gets the attribute value for HiddenColumn, using the alias name HiddenColumn.
         * @return the value of HiddenColumn
         */
        public Number getHiddenColumn() {
            return (Number) getAttributeInternal(HIDDENCOLUMN);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for HiddenColumn.
         * @param value value to set the HiddenColumn
         */
        public void setHiddenColumn(Number value) {
            setAttributeInternal(HIDDENCOLUMN, value);
        }
    
    
        /**
         * @param column1 key constituent
    
    
         * @return a Key object based on given key constituents.
         */
        public static Key createPrimaryKey(Number column1) {
            return new Key(new Object[] { column1 });
        }
    
    
        /**
         * @return the definition object for this instance class.
         */
        public static synchronized EntityDefImpl getDefinitionObject() {
            return EntityDefImpl.findDefObject("model.TableName");
        }
    
    
        /**
         * Add locking logic here.
         */
        public void lock() {
            super.lock();
        }
    
    
        /**
         * Custom DML update/insert/delete logic here.
         * @param operation the operation type
         * @param e the transaction event
         */
        protected void doDML(int operation, TransactionEvent e) {
                if(operation == DML_INSERT)
                    {
                      SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
                      oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
                      setJoinColumn(seqValue);
                      insertSecondRowInDatabase(getColumn1(), getColumn2(), getColumn3(), getJoinColumn());
                    }
                   
                    if(operation == DML_UPDATE)
                    {
                      updateSecondRowInDatabase(getColumn1(), getColumn2(), getColumn3(), getJoinColumn());
                    }
                super.doDML(operation, e);
            }
          
            private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
              {
                PreparedStatement stat = null;
                try
                {
                  String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
                  System.out.println("sql= " + sql);  
                  stat = getDBTransaction().createPreparedStatement(sql, 1);
                  stat.executeUpdate();
                }
                catch (Exception e)
                {
                  e.printStackTrace();
                }
                finally
                {
                  try
                  {
                    stat.close();
                  }
                  catch (Exception e)
                  {
                    e.printStackTrace();
                  }
                }
              }
            
              private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
              {
                PreparedStatement stat = null;
                try
                {
                  String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
                  System.out.println("sql= " + sql);    
                  stat = getDBTransaction().createPreparedStatement(sql, 1);
                  stat.executeUpdate();
                }
                catch (Exception e)
                {
                  e.printStackTrace();
                }
                finally
                {
                  try
                  {
                    stat.close();
                  }
                  catch (Exception e)
                  {
                    e.printStackTrace();
                  }
                }
              }
        }
    
    
    

    To me the error.

    Exception in thread "AWT-EventQueue-0" oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[4 ].
      at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:862)
      at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:555)
      at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:9089)
      at oracle.jbo.server.EntityImpl.populate(EntityImpl.java:7664)
      at oracle.jbo.server.EntityImpl.merge(EntityImpl.java:8008)
      at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:1189)
      at oracle.jbo.server.EntityCache.add(EntityCache.java:579)
      at oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:3454)
      at oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:4062)
      at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:6351)
      at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:4145)
      at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:4000)
      at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2491)
      at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5540)
      at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3590)
      at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:2007)
      at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3859)
      at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:11845)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:473)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:300)
      at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1345)
      at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1334)
      at oracle.jbo.jbotester.app.NavigationBar._updateButtonStates(NavigationBar.java:123)
      at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1249)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      at java.awt.EventQueue.access$500(EventQueue.java:97)
      at java.awt.EventQueue$3.run(EventQueue.java:709)
      at java.awt.EventQueue$3.run(EventQueue.java:703)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    
    
    

    Concerning

    You can't repeat the value of pharmacokinetics in several lines. try to follow this:

    1. in your database to create new sequence "PK_SEQ".

    2. in doDML write this

        if (operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          setPKey(getPkSeqNextNumber())
          insertSecondRowInDatabase(getPkSeqNextNumber(), getColumn1(), getColumn2(), getColumn3(), getJoinColumn());
        }
    

    the getPkSeqNextNumber will be

    private Number getPkSeqNextNumber()
    {
      SequenceImpl pkSeq = new SequenceImpl("PK_SEQ", getDBTransaction());
      return pkSeq.getSequenceNumber();
    }
    

    or

    You can do a trigger in the database, this trigger Gets the value of the sequence and sets the pkey to insert before

  • xla

    Hello

    I have a problem with XLA.

    I need change ID in a transaction, but this new value only I find in the ORIGINAL database.

    example:

    Insert into table1 (CID, PARENTCID, Key1,...) values (?,?,?...)

    I need recover its Key1 Key2 and change it in the sentence.

    I know how to make this change, but my problem is that I don't know how I can find this new identity (key2) if it is not included in the transaction and I cannot find in the original database.

    I think that this problem has appeared before but I can't find anything about it. Perhaps he could possible found something that provide us these data in the elements of the "JMS Classes for event management".

    Is this possible? And if that were the case, how?

    Thanks in advance,

    Babs.

    Message editado por: 979209

    Well, now I understand, thanks for the explanation. I don't know why you think it's a matter of TimesTen/XLA however. You run operations to "targetDB" who needs data which is present only in "originDB". That seems to be a problem of design/implementation of the data model for me rather than a question of technology. It seems to me that the table relationship (WO. CM_TB_USERS) must also exist in "targeteDB".

    There may be workarounds rather kludgy; for example, if you update the appropriate line of this table to originDB in the same transaction you make the insert and then you would have the value via XLA. But that is very definitely a workaround and could have a negative impact in terms of performance, concurrency etc. Another possible option would be running at 'targetDB' application for connection (client/server) to "originDB", and then select the data required through that but it seems to me that the right solution is to adjust the data model / application design while you gave when you need.

    Chris

  • TimesTen - 7001: user authentication failed when using XLA

    I installed TimesTen 11.2.1.8.0 on AIX 5.3 System.* user 'oracle '. I created another user of the application 'risk' to use in my application with TimesTen.

    When running my application with the user 'risk' to connect with TimesTen it is OK. But when I want to use the XLA feature, when I call the createDurableSubscriber function, it returns the error

    javax.jms.JMSException: failure of SQLDriverConnect (XlaCommon.c, line 48): S1000 7001 [TimesTen] [driver ODBC of TimesTen 11.2.1.8.0] TT7001 [TimesTen]: user authentication failed - file "db.c", lineno 9722, procedure 'sbDbConnect '.

    It is strange that if I switch to user 'oracle', it works fine.

    Can someone please help understand the reason why.

    Thank you

    You created the user 'at risk' within your TimesTen database?

    CREATE a USER risk IDENTIFIED BY 'some password'?

    You granted the privilege of the user risk to use XLA?

    XLA GRANT at risk;

    Have you used this user name and password in the JDBC URL when connecting to the database application JMS/XLA?

    The 'oracle' user is probably your admin user of the instance (which is the database root) and therefore can use all the features without special action (but of course you never run application as that user).

    Chris

  • Cannot use jar with icon files gif and self signed certificate files (Exception in thread "AWT-EventQueue-3" java.lang.NoClassDefFoundError: oracle/ewt/laf/basic/SelColorChange)

    Hi all.

    I use Forms 11 g 11.1.2.1 and updating JRE 7 45.

    I have create a jar file containing gif icons files using this procedure:

    (1) create the jar file:

    set path = % path %; C:\Oracle\Middleware\Oracle_FRHome1\jdk\bin (my ORACLE_HOME/jdk)

    jar - cvf webfigolos.jar *.gif

    (2) self sign the file:

    c:\Oracle\Middleware\asinst_1\bin > sign_webutil.bat c:\Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar

    Jars is signed but with a warning:

    Generate a signature key certificate aaosa2015 = auto...

    keytool error: java.lang.Exception: key pair not generated, al alias < aaosa2015 >

    loan is

    .

    There are errors or warnings while generating a self signed certificate. Pleas

    e revisiting.

    .

    Backup as c: C:\Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar

    \Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar.old...

    1 file (s) copied.

    Signature using ke c:\Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar

    y = aaosa2015...

    .. own made.

    But I can use this file. The application crashes and get this error from the java console:

    network: connection http://myluism-pc:7001/forms/lservlet; jsessionid = p98GTL5Fh6XnQcykySBhLWq2823HwHlPGZ16TYHVv93006N4mmdl!-947562687 with proxy = LIVE

    network: connection http://myluism-PC:7001 / with proxy = LIVE

    Exception in thread "AWT-EventQueue-3" java.lang.NoClassDefFoundError: oracle/ewt/laf/basic/SelColorChange

    at oracle.ewt.laf.oracle.OracleTreeUI.createItemPainter (unknown Source)

    at oracle.ewt.laf.basic.BasicTreeUI._getItemPainter (unknown Source)

    at oracle.ewt.laf.basic.BasicTreeUI.getItemPainter (unknown Source)

    at oracle.ewt.dTree.DTreeBaseItem.getSize (unknown Source)

    at oracle.ewt.dTree.DTree.paintCanvasInterior (unknown Source)

    at oracle.ewt.EwtComponent.paintInterior (unknown Source)

    at oracle.ewt.lwAWT.SharedPainter._paintInterior (unknown Source)

    at oracle.ewt.lwAWT.SharedPainter.paintExtents (unknown Source)

    at oracle.ewt.lwAWT.LWComponent._paintComponent (unknown Source)

    at oracle.ewt.lwAWT.LWComponent.paint (unknown Source)

    at oracle.ewt.EwtComponent.paint (unknown Source)

    at oracle.ewt.lwAWT.SharedPainter.paintExtents (unknown Source)

    at oracle.ewt.lwAWT.LWComponent._paintComponent (unknown Source)

    This used to be a very simple procedure, but it has stopped working...!

    Don't know if the jar file is well born, or if it is corrupt.

    I can't start my application.

    Help, please!

    Best regards, Luis.

    Try again with the JRE 7 10 update, I get a problem with the update of JRE 7 45, but when I tried the update of JRE 7 10, it works fine.

    For the objective test, disable the check

    Java Panel-> advance-> mixed Code-> disable verification (unchecked)

  • The use of javafx and awt on MAC

    I've read articles on no, the use of libraries SWT and AWT together in MAC systems. Then there's their constraints for JAVAFX and AWT as well?

    Please see this link.

    I have a similar case to write an image on the drive and I use javafx, the line doesn't seem to work on my mac.

    Post edited by: abhinay_agarwal

    The link you posted on the integration of SWT/AWT is not relevant to the integration of JavaFX/AWT.

    For abount JavaFX/Swing integration, see the tutorial Oracle Trail:

    JavaFX for developers of Swing: on this tutorial. Documentation and tutorials of JavaFX 2

    Swing is based on AWT, the trail tutorial also applies if you integrate JavaFX with AWT only or with the full Swing toolkit.

    In my view, there is little reason to integrate JavaFX with just the AWT toolkit, because there is little value to AWT provide that JavaFX does not already.

    JavaFX fits very well with ImageIO to write files to disk, Oracle provides a tutorial for this (see the section "Creating a snapshot"):

    With the help of the FPO Image API | Documentation and tutorials of JavaFX 2

    //Take snapshot of the scene
    WritableImage writableImage = scene.snapshot(null);
    
    // Write snapshot to file system as a .png image
    File outFile = new File("imageops-snapshot.png");
    try {
      ImageIO.write(
        SwingFXUtils.fromFXImage(writableImage, null),
        "png",
        outFile
      );
    } catch (IOException ex) {
      System.out.println(ex.getMessage());
    }
    
  • AWT canvas scene JFX integration

    I work EKEB based game using the AWT canvas to render
    and want to run on the javaFX application Panel.

    How can I add AWT canvas to the Panel of JavaFX?

    You have several options here. The better would probably re - write your game using canvas of JavaFX, which is very similar to the AWT canvas. A more direct approach would be to use the AWT canvas and leave it in an image which you can then return in a JavaFX canvas. This seems strange at first, but the performance is not so bad.

  • What is the difference between regular dynamic cache AWT and AWT group?

    Hi Chris, on the dynamic cache of AWT group, you said that:
    ------------------------------------------------------------------------------------
    A group of dynamic cache is where, for some types of access (key equality) in SELECT/UPDATE/DELETE and for certain types of iNSERT as a "cache miss" (no corresponding line found in TimesTen) will cause a dynamic extraction of the files required from Oracle to be loaded into the cache, and also returned to the application (in SOME cases).
    ------------------------------------------------------------------------------------
    So I guess that for the regular cache AWT group, it will not have any dynamic fetches files required from Oracle to be loaded into the cache
    because the cache AWT regular group, we load the data into RAM first, right?


    Thank you

    SuoNayi

    That is right. For a group of AWT regular cache it is load you explicitly any required data explicitly using LOAD CACHE GROUP. To cache DYNAMIC groups you can "Prime" group cache using CACHE of LOADING GROUP if you wish, but it will also make dynamic extraction for the types of the SQL operation supported. They each have their uses depending on your use case.

    Chris

    Published by: ChrisJenkins on November 28, 2012 13:15

  • Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException:

    Hi I'm new to Java and I have problems with this code:

    Here is the error
    Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "3 "
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
         at java.lang.Integer.parseInt(Integer.java:492)
         at java.lang.Integer.parseInt(Integer.java:527)
         at NewJFrame.jButton_CalculateActionPerformed(NewJFrame.java:161)
         at NewJFrame.access$100(NewJFrame.java:10)
         at NewJFrame$2.actionPerformed(NewJFrame.java:61)
     
      private void jButton_CalculateActionPerformed(java.awt.event.ActionEvent evt) {                                                  
            // TODO add your handling code here:
              int numTables = Integer.parseInt(jTextField_NumberOfTables.getText());
            int numCalc = Integer.parseInt(jTextField_NumberOfCalculations.getText());
            String operator = jComboBox_Operation.getSelectedItem().toString();
            
            String table = ""; 
            
            if (operator.equalsIgnoreCase("powers")) {
                   table = CalculateTables.powersTable(numTables, numCalc);
                   jLabel_TableType.setText("powers");
            }
    public class CalculateTables {
        
      public static String
               powersTable(int numTables, int numCalc) {
               
               //fill temArray with powers using nested for statements
               String output = "";
           for (int i =0; i <=  numTables; i++) {
              output += i + " Tables\r\n";      
                    for (int j =0; j <= numCalc; j++) {
                        output += String.format("%s ^ %s = %.2f\r\n",i,j,Math.pow(i,j)); 
                    }
        output += "\r\n";
    }    
     return output;    
      }
    It seems to me that the Integer.parseInt (jTextField_NumberOfTables.getText ());
    does not work
    This piece of code, I have a text obtained from the user and I need to convert to an integer
     
     int numTables = Integer.parseInt(jTextField_NumberOfTables.getText());
            int numCalc = Integer.parseInt(jTextField_NumberOfCalculations.getText());

    int numTables = Integer.parseInt (jTextField_NumberOfTables.getText () .trim ());
    int numCalc = Integer.parseInt (jTextField_NumberOfCalculations.getText () .trim ());

    Because JTextBox you wrote 3 and space so method attempts to parse a string '3 '. so give this exception. Overall, watch the class trim String method.

  • How to convert AWT BufferedImage Image JavaFX in 2.2?

    I posted here two times, but for some reason, the full net got deleted.
    https://forums.Oracle.com/forums/thread.jspa?MessageID=10526119

    How can you convert an AWT Image to an image of JavaFX in 2.2?

    2.1 it is possible to do with the internal methods "impl_".

    Hello. The following are new features of javafx2.2
    http://docs.Oracle.com/JavaFX/2/API/JavaFX/scene/image/class-use/WritableImage.html
    http://docs.Oracle.com/JavaFX/2/API/JavaFX/scene/SnapshotResult.html
    http://docs.Oracle.com/JavaFX/2/API/JavaFX/scene/SnapshotParameters.html

    SwingFXUtils.toFXImage (java.awt.image.BufferedImage bimg, WritableImage wimg)

    SnapshotParameters params = new SnapshotParameters();
    Image image = node.snapshot (params, null);

    Search this forum for examples.

  • Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException

    some information
    Javaversion: 1.6.0_22
    OS: Windows 7 6.1


    The stack trace:
    Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabSupport.updateView(Unknown Source)
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabSupport.stateChanged(Unknown Source)
         at javax.swing.JViewport.fireStateChanged(Unknown Source)
         at javax.swing.JViewport.reshape(Unknown Source)
         at java.awt.Component.setBounds(Unknown Source)
         at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneScrollLayout.layoutContainer(Unknown Source)
         at java.awt.Container.layout(Unknown Source)
         at java.awt.Container.doLayout(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validate(Unknown Source)
         at javax.swing.SwingUtilities.updateComponentTreeUI(Unknown Source)
         at javax.swing.plaf.metal.MetalLookAndFeel$AATextListener.updateWindowUI(Unknown Source)
         at javax.swing.plaf.metal.MetalLookAndFeel$AATextListener.updateAllUIs(Unknown Source)
         at javax.swing.plaf.metal.MetalLookAndFeel$AATextListener.access$200(Unknown Source)
         at javax.swing.plaf.metal.MetalLookAndFeel$AATextListener$1.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabSupport.updateView(Unknown Source)
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabSupport.stateChanged(Unknown Source)
         at javax.swing.JViewport.fireStateChanged(Unknown Source)
         at javax.swing.JViewport.setViewSize(Unknown Source)
         at javax.swing.ViewportLayout.layoutContainer(Unknown Source)
         at java.awt.Container.layout(Unknown Source)
         at java.awt.Container.doLayout(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validate(Unknown Source)
         at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabPanel.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JViewport.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JSplitPane.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JLayeredPane.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintToOffscreen(Unknown Source)
         at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
         at javax.swing.RepaintManager.paint(Unknown Source)
         at javax.swing.JComponent._paintImmediately(Unknown Source)
         at javax.swing.JComponent.paintImmediately(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabSupport.updateView(Unknown Source)
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabSupport.stateChanged(Unknown Source)
         at javax.swing.JViewport.fireStateChanged(Unknown Source)
         at javax.swing.JViewport$ViewListener.componentResized(Unknown Source)
         at java.awt.Component.processComponentEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabPanel.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JViewport.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JSplitPane.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JLayeredPane.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paintToOffscreen(Unknown Source)
         at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
         at javax.swing.RepaintManager.paint(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
         at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
         at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
         at java.awt.Container.paint(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    The cause:

    There is a signed applied and it is to be embedded within an Internet explorere, once the page is iconified and after that maximized. The applet cannot be repained and the background color of the applet is black. This isn't a common occurrence; Sometimes.

    It would be great if I can get some thoughts on this problem.

    Any body has met with such a problem?

    Thank you

    user12130673 wrote:
    This isn't a common occurrence; Sometimes.

    You don't have to honor the single threaded swing rule. All methods of Swing [with a very few exceptions, such as repaint()] and constructors should be called in the EDT.
    http://docs.Oracle.com/javase/tutorial/uiswing/concurrency/index.html
    http://Java.Sun.com/products/JFC/TSC/articles/threads/threads1.html
    http://Java.Sun.com/products/JFC/TSC/articles/threads/threads3.html

    DB

Maybe you are looking for