Is this a bug with grouping sets?

Version is Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
SQL> with data as
  2  (select rownum r, 'X' x, 1 n from dual connect by rownum <= 10)
  3  select x
  4       , sum(n) s
  5       , (select sum(1) from dual where dummy = x) t
  6  from data
  7  group by grouping sets (x, ())
  8  /
X          S          T
X         10          1
          10
SQL>  Shouldn't the superaggregate row have a 1 in the T column?

Here's your QUERY with the addition of the GROUPING() function:
SQL> WITH data AS
  2  (
  3     SELECT rownum r
  4          , 'X'    x
  5          , 1      n
  6     FROM   dual
  7     CONNECT BY rownum <= 10
  8  )
  9  SELECT GROUPING(x)
10       , x
11       , sum(n) s
12       , (SELECT sum(1) FROM dual WHERE dummy = x) t
13  FROM   data
14  GROUP BY GROUPING SETS (x, ())
15  ;
GROUPING(X) X          S          T
          0 X         10          1
          1           10In this case the value for X is null because it's a subtotal row. If you look at the execution plan for this statement:
PLAN_TABLE_OUTPUT
SQL_ID  gumphwvgumqc4, child number 0
WITH data AS (  SELECT rownum r       , 'X'    x       , 1      n  FROM
  dual  CONNECT BY rownum <= 10 ) SELECT /*+gather_plan_statistics*/ x
    , sum(n) s      , (SELECT sum(1) FROM dual WHERE dummy = x) t FROM
data GROUP BY GROUPING SETS (x, ())
Plan hash value: 1718326399
| Id  | Operation                       | Name | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
|   0 | SELECT STATEMENT                |      |      1 |        |      2 |00:00:00.01 |       0 |    |  |          |
|   1 |  SORT AGGREGATE                 |      |      2 |      1 |      2 |00:00:00.01 |       4 |    |  |          |
|*  2 |   TABLE ACCESS FULL             | DUAL |      2 |      1 |      1 |00:00:00.01 |       4 |    |  |          |
|   3 |  SORT GROUP BY ROLLUP           |      |      1 |      1 |      2 |00:00:00.01 |       0 |  2048 |  2048 | 2048  (0)|
|   4 |   VIEW                          |      |      1 |      1 |     10 |00:00:00.01 |       0 |    |  |          |
|   5 |    COUNT                        |      |      1 |        |     10 |00:00:00.01 |       0 |    |  |          |
|   6 |     CONNECT BY WITHOUT FILTERING|      |      1 |        |     10 |00:00:00.01 |       0 |    |  |          |
|   7 |      FAST DUAL                  |      |      1 |      1 |      1 |00:00:00.01 |       0 |    |  |          |
Predicate Information (identified by operation id):
   2 - filter("DUMMY"=:B1)The value for X is being bound to the subquery. If X is null this won't return any rows (I'm sure you knew that :) ). I would say this is expected albeit confusing behavior. You get the same results if you use CUBE or ROLLUP as well.

Similar Messages

  • Is this a bug with BoEdge3.1?

    Can anyone help me on the issue which my customer is facing for BoEdge3.1
    Concerning  Error Message: You do not have enough Named User Licenses to make this user a named user. You have 55 Named User Licenses. (FWB 00013)
    This is the error message she was receiving when trying to change an
    existing user from Concurrent to Named under the Connection Type on the
    Properties panel.
    The current workaround was to delete the existing Concurrent user, then re-add the same user as Named.
    She have been going through this process of deleting existing users, and then
    re-adding them as Named and it was working okay. Then, it stopped
    working and she started getting the same FWB 00013 error message again.
    She was not able to create any Named users now. Basically, the workaround
    worked for a while - then stopped working.
    She currently has a total of 88 users. 21 of them are named. 67 of them
    are Concurrent. She is licensed for 55 Named.
    Once again, the system thinks she has 55 users marked as Named. But
    there are only 21 marked as Named.
    She did notice that as she was going through all of her existing list of
    users, in alphabetical order, she was opening the Properties tab and
    checking the Named/Concurrent status - as she got to the 55th user in the
    list that is when she started getting the error message again.
    Is this a bug with BoEdge3.1?
    And I got an ADAPT01194692.
    I am not sure that Is the ADAPT related to this issue.
    Please help me its very critical.

    Hi Salena,
    If you are an SAP Employee, request you to post this question at
    https://cw.sdn.sap.com/community/bobjtc
    Cheers,
    Subhodeep

  • When trying to edit a photo, it disappears (black screen) or screen is full of lines. Is this a bug with the latest software update?

    After updating with the latest software, when trying to edit a photo, it disappears (black screen) or screen is full of lines. If I blindly crop or edit the photo, when I exit edit mode, those changes have been made, but obviously this is unacceptable. Is this a bug with the latest software update?

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/ Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help: As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Why is DPM 2012 R2 splitting this Co-located Protection Group Set across three different tapes?

    I have 10 protection groups that ran Saturday night.  I have put information about them in the following table:
    I extracted the data in the table using Get-DPMProtectionGroup CmdLet and the job information from the Monitoring page of the DPM admin console.  As you can see from the tape barcode, DPM wrote the first four PGs to one tape, then started a second
    tape, and finally failed when starting a third because it had run out of free tapes.
    All of the protection groups are assigned to the same "Co-Located Protection Group Set" in the "Tape Optimization Setup" dialog box.
    Prior to the jobs running, I painstakingly ensured that each of the Protection Group's "Select Long-Term Goals" and "Select Library and Tape Details" screens are identical as follows:
    Prior to running the jobs I had already disabled autoclean on the tape library.
    I have checked to see if the tape drive is reporting IO error 0x8007045D using the method described in this blog post:
    http://blogs.technet.com/b/dpm/archive/2012/05/14/things-you-can-do-to-help-data-protection-manager-utilize-your-tapes-full-capacity.aspx
    There seems to be no mention of 0x8007045D or -2147023779 in any of the MSDPM*.Errlog files.
    These are LTO6 tapes with a capacity of 2.5 TB each.  The total data for all the jobs put together is less than 300GB.
    Why is DPM 2012 R2 splitting these protection groups across three different tapes? 
    What else should I check for that might cause DPM to start a new tape?

    Hi Mike,
    Thanks for taking a look at the logs.  I just wanted to point out that there were actually two changes made just before collocation succeeded:
    Write Period and Expiry Tolerance were increase
    Full Verbose logging was enabled
    This technet article states that Full Verbose logging affects performance.  If the problem with collocation is caused by a race condition then it is
    possible that enabling logging actually caused collocation to succeed. At this point there doesn’t seem to be any evidence pointing to which of the two changes resulted in collocation succeeding.
    I propose I run the following tests to differentiate the two:
    Test #1 - Collocation Confirmation
    Repeat last weekend's test to confirm that successful collocation wasn't an anomaly.  Configuration:
    full verbose logging: Enabled
    Expiry Tolerance: 1 year
    Write Period: 1 year
    Test #2 - Logging Only
    Test to see whether enabling Full Verbose logging enabled collocation to succeed.  Configuration:
    full verbose logging: Enabled
    Expiry Tolerance: 7 days
    Write Period: 6 day
    Thanks for your help,
    Alex

  • IOS 6.1 can no longer air print to HP 6700; it worked before with no problems; is this a bug with 6.1?

    We have 2 iPads (2nd and 4th generation).  Both have been air printing without trouble to our HP 6700, which is on Apple's list of supported printers.  Both iPads were updated to OS 6.1 last night.  Now when attempting to air print something, the HP 6700 does not appear on the printer options list of printers to select from.  Interestingly, the other supported printer, and HP 8500, does show on the list, but when attempting to air print to it, this results in an error message "An error occurred printing this document."  This error happens in multiple apps that support air printing.  Is this a bug in iOS 6.1?
    The printers are visible in AirPort, AND I can print from a computer (MB Air and a Dell Win7)  to the HP 6700 without problems, but no longer from the iPads.  What gives?  I have powered down the HP 6700 and back up.  I even restarted the AirPort Express.  The problem persists with printing from the iPads.

    Hi, everyone, I yesterday bought a HP 6700, after setting everything like supposed to be, I could scan to computer and by eWeb service but not Print directly from iMacs (10.7.5 and 10.8.5) or iPhone, after installing things as suggesting here and HP support site, I decides to called HP support, and they do something, first they force to eliminated all printers from Print & Scan pannel (system preferences) by right-click over printer list on that pannel, and then create the printer from the IP address instead of by default selecting it from list (bonjour), that make the iMacs start printing fine. But iPhone still not. Then HP support suggested that maybe my router didn't support bonjour or it was not activated, so I tried with my phone company with no luck, since they told me that they never hear about this and that my router didn't support it, even if I think they didn't know, period. So I decided to create a network over my regular network, using an Airport Express, I create a new network (connected the Airport through ethernet cable to the router), and then place the iMacs and iPhone over the new network, restarted printer and iPhone, and then finally the iPhone could print on the HP 6700.
    So I suggest you try first force the printer using the IP address, thaht solved the problem with iMacs, and then if you can, used another router cause maybe the one you use have "issues" with bonjour/airprint etc....
    Hope this help.

  • A Possible Bug With Grouped Objects

    This is my problem:
    1. I group a drawing or I create an object (movie clip, graphic, button...)
    2. I double click the object/group on scene to edit.
    3. I go in to the group.
    4. I go back to the scene by double clicking somewhere empty.
    5. And object is gone. It's invisible. I can only bring it back by clicking on something NOT GROUPED on scene, or by clicking the red line on the timeline.
    Note: This problem seems to be not occuring when I go back to the scene via the blue arrow icon pointing left at the top or by clicking the scene name.
    I use Flash CS5 on a Windows 7 PC.
    A collegue of mine said that the same problem was also can be seen in Flash CS4.

    I tried reproducing the issue with the same setting and was unsuccessful in doing so.
    I think the issue could be because you might have nested symbols and you are not sure under which depth you are operating under.
    The bread crump trail is essentially created for this sole purpose. This helps you in finding out what you are editing and in which depth you are editing.
    Please find the screen shot.
    Also search the internet for more articles on using the bread crumb trail.
    Hope it resolved your problem!

  • JDBC 8.1.6.0.1 Bug with grouping function

    Hi,
    I found a bug in the JDBC 8.1.6.0.1 driver, concerning the new grouping functionality of Oracle 8.1.6. Look at the following code fragment:
    String cSelect = "SELECT DACO_VU_NAME AS DIM1, ' ' AS DIM2, TO_CHAR(DACO_VERKAUFSDATUM,'yyyymm') AS DIM_DATE, GROUPING(DACO_VU_NAME) AS DIM1GROUP, GROUPING(' ') AS DIM2GROUP, GROUPING(TO_CHAR(DACO_VERKAUFSDATUM,'yyyymm')) AS DIM_DATEGROUP, sum(DACO_BRUTTOBETRAG_TX) AS VALUE FROM DATENCONTAINER GROUP BY CUBE (DACO_VU_NAME, '-', TO_CHAR(DACO_VERKAUFSDATUM,'yyyymm') ) ORDER BY 1,2,3";
    try {
    System.out.println("SELECT: " + cSelect);
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery(cSelect);
    while (rset.next()) {
    String cTest1 = rset.getString("DIM1");
    String cTest2 = rset.getString("DIM2");
    String cTest3 = rset.getString("DIM_DATE");
    String cChar1 = rset.getString("DIM1GROUP");
    String cChar2 = rset.getString("DIM2GROUP");
    String cChar3 = rset.getString("DIM_DATEGROUP");
    System.out.println(cTest1 + "\t" + cTest2 + "\t" + cTest3 + "\t" + cChar1 + "\t" + cChar2 + "\t" + cChar3);
    }When I compile this with the mentioned JDBC version and run it with java 1.2.2 (JDeveloper 3.1), i get the following output:
    Ahrend GmbH & Co. KG 200003 0 0 0
    Ahrend GmbH & Co. KG 200003 1 0 0
    Ahrend GmbH & Co. KG 200004 0 0 0
    Ahrend GmbH & Co. KG 200004 1 0 0
    Ahrend GmbH & Co. KG null 0 0 1
    Ahrend GmbH & Co. KG null 1 0 1
    null 200003 0 1 0
    null 200003 1 1 0
    null 200004 0 1 0
    null 200004 1 1 0
    null null 0 1 1
    null null 1 1 1As you can see, the grouping columns are mixed up. In this example, everywhere a normal row shows a "null" value, a corresponding grouping row should show a "1", but as you can see, for the last 6 rows, the ones are not in the first, but in the second grouping row.
    When I compile the example with the Oracle 8.1.5 JDBC driver, I get the following, correct, output:
    Ahrend GmbH & Co. KG 200003 0 0 0
    Ahrend GmbH & Co. KG 200004 0 0 0
    Ahrend GmbH & Co. KG null 0 0 1
    Ahrend GmbH & Co. KG 200003 0 1 0
    Ahrend GmbH & Co. KG 200004 0 1 0
    Ahrend GmbH & Co. KG null 0 1 1
    null 200003 1 0 0
    null 200004 1 0 0
    null null 1 0 1
    null 200003 1 1 0
    null 200004 1 1 0
    null null 1 1 1The special thing about this example is, that I use a constant row for grouping (row 2). If you use a normal database row, everything works fine with 8.1.6.0.1, but nevertheless, this should be a bug.
    Any comments on this are highly appreciated, since I need the JDK 1.2 for the application and I didn't find a working Oracle 1.2 JDBC version.
    Thanks,
    Thorsten.

    Patches can be obtained from an Oracle Support Services technical analyst.
    null

  • Is this a bug with GregorianCalendar.getTimeMiliseconds()?

    Hi,
    I have used GregorianCalendar.getTimeMiliseconds() method for many years, but now I have a problem.
    The code below returns the same value:
    System.out.println("DATE1=" + new GregorianCalendar(2009,1,29,8,0,1).getTimeInMillis());
    System.out.println("DATE2=" + new GregorianCalendar(2009,2,1,8,0,1).getTimeInMillis());The reply for both is: 1235908801000
    Then, I think this is a Java bug, right?
    My system is:
    Linux Fedora Core + JDK 1.6.5.
    The same bug occurs in another machine:
    Windows 2003 Server + JDK 1.6.10.

    Edilmar_Alves wrote:
    Then, I think this is a Java bug, right?Nope. Your understanding of the [GregorianCalendar constructor|http://java.sun.com/javase/6/docs/api/java/util/GregorianCalendar.html#GregorianCalendar(int,%20int,%20int,%20int,%20int,%20int)] is incorrect. ;o)
    Months in Java are zero-indexed. You should never use int literals for the core calendar API. Use constants instead, and you'll get results more in line with yor expectations. Example:
    Calendar c1 = new GregorianCalendar(2009,Calendar.JANUARY,29,8,0,1);
    Calendar c2 = new GregorianCalendar(2009,Calendar.FEBRUARY,1,8,0,1);
    System.out.println("DATE1=" + c1.getTimeInMillis());
    System.out.println("DATE2=" + c2.getTimeInMillis());~

  • Can someone try and reproduce this possible bug with DBMS_JOB.run

    11.2.0.2 EE
    OEL5
    getting an IO dump from what looks like entire shared pool. A call to a procedure using dbms_job.run shows the dump in the plan.
    Be interested to see if anyone is on 11.2.0.3 on OEL can reproduce. thanks.
    sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.2.0 Production on Tue Jan 8 16:44:33 2013
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning and Automatic Storage Management options
    SQL>
    SQL> ALTER Sesssion SET EVENTS '10046 trace name context forever, level 12';
    System altered.
    /* create a small proc that takes in a var and does nothing except set a variable */
    SQL>  
    SQL>   create procedure io_test ( v_in number)
      2  IS
      3     v_variable    varchar2(10);
      4    begin
      5     null;
      6  END;  
      7   
      8   
    Procedure created.
    /* flush the shared pool to simulate a start */
    SQL> alter system flush shared_pool;
    System altered.
    /* set our tracefile id */
    SQL> alter session set tracefile_identifier=err_test;    
    Session altered.
    /* call the proc from a dbms_job submission */
    SQL>   declare
      2    v_job_no  number;
      3    begin
      4     Dbms_Job.SUBMIT ( job  => v_job_no
      5                    , what => 'sys.io_test('  || 1234 || ');');
      6       Dbms_Job.RUN (v_job_no);
      7     end;   
      8  /  
    PL/SQL procedure successfully completed.
    SQL> tkprof the trace file, go to non-recursive statements at the bottom and we see following
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.04       0.04 4294967293 4294963226 4294967122           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.04       0.04 4294967293 4294963226 4294967122           1
    some behaviour notes.
    1. If I call the proc directly, I dont see the huge IO, its only dbms_job.run that does it.
    2. If I call the dbms_job.run a second time I dont see it, its only when I flush the shared pool which simulates the first time I could be calling the proc which is how I found it initially
    3. If I call the dbms_job.run outside of a proc I do see it.
    4. Watch your IO and CPU if you generate it. Huge spike to coincide with the figures in the trace.
    5. 4294967293 is very close 2^32, is also the size of my shared pool so looks like entire pool is being dumped.
    6. Have reproduced on 3 instances on 3 separate servers. all same version 11.2.0.2.0 and patch level which is 2012 Q2.
    7. change the proc to have the variable commented out and we dont see the dump.
    8. I have a call open with support a while now but havent been able to reproduce on their side. Interested to see if someone has OEL 5, 11.2.0.2 instance, can generate it and also an 11.2.0.3 instance and can show its not in that.
    thanks.

    961469 wrote:
    rjamya wrote:
    I am suspecting this is a tkprof issue, analyzing the same trace file via orasrp doesnt show this behavior. Also the high physical reads shown are missing in the raw trace file.Im not so sure, I can see it in the raw trace file.
    do you see it in raw trace file? if so can you post the STAT line showing high disk read (pr=nnnnnnnn) values ? I dont see it in the trace file that i generated.
    Raj

  • Understanding this message panel with the set font

    heyall, can someone explain to me how this messagepanel class works with setNewFont class, I cannot understand the correlation in the below lines?? i.e. there is no getFont class in the messagepanel so why use it?what does it do?
    //Set font for the message
            Font font = messagePanel.getFont();
            messagePanel.setFont(new Font(font.getName(),fontStyle, font.getSize()));
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CheckBoxDemo  extends ButtonDemo{
        //Create three check boxes to control the display of message
        private JCheckBox jchkCentered = new JCheckBox("Centered");
        private JCheckBox jchkBold = new JCheckBox("Bold");
        private JCheckBox jchkItalic = new JCheckBox("Italic");
        public static void main(String[]args){
            CheckBoxDemo frame = new CheckBoxDemo();
            frame.setTitle("CheckBoxDemo");
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(500,200);
            frame.setVisible(true);
        public CheckBoxDemo() {
            //Set mnemonic keys
            jchkCentered.setMnemonic('C');
            jchkBold.setMnemonic('B');
            jchkItalic.setMnemonic('I');
            //Create a new panel to hold check boxes
            JPanel jpCheckBoxes = new JPanel();
            jpCheckBoxes.setLayout(new GridLayout(3,1));
            jpCheckBoxes.add(jchkCentered);
            jpCheckBoxes.add(jchkBold);
            jpCheckBoxes.add(jchkItalic);
            add(jpCheckBoxes,BorderLayout.EAST);
            //Registar listeners with checkboxes
            jchkCentered.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e){
                    messagePanel.setCentered(jchkCentered.isSelected());
                    jchkCentered.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e){
                    setNewFont();
                    jchkCentered.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e){
                    setNewFont();
        private void setNewFont() {
            int fontStyle = Font.PLAIN;
            fontStyle += (jchkBold.isSelected() ? Font.BOLD : Font.PLAIN);
            fontStyle += (jchkItalic.isSelected() ? Font.BOLD : Font.PLAIN);
            //Set font for the message
            Font font = messagePanel.getFont();
            messagePanel.setFont(new Font(font.getName(),fontStyle, font.getSize()));
    import java.awt.FontMetrics;
      import java.awt.Dimension;
      import java.awt.Graphics;
      import javax.swing.JPanel;
      public class MessagePanel extends JPanel{
        /** The message to be displayed */
        private String message = "Welcome to Java";
        /** The x coordinate where the message is displayed */
        private int xCoordinate = 20;
        /** The y coordinate where the message is displayed */
        private int yCoordinate = 20;
        /** Indicate whether the message is displayed in the center */
        private boolean centered;
        /** The interval for moving the message horizontally and vertically */
        private int interval = 10;
        /** Construct with default properties */
      //  public MessagePanel() {
        /** Construct a message panel with a specified message */
        public MessagePanel(String message) {
          this.message = message;
        /** Return message */
        public String getMessage() {
          return message;
        /** Set a new message */
        public void setMessage(String message) {
          this.message = message;
          repaint();
        /** Return xCoordinator */
        public int getXCoordinate() {
          return xCoordinate;
        /** Set a new xCoordinator */
        public void setXCoordinate(int x) {
          this.xCoordinate = x;
          repaint();
        /** Return yCoordinator */
        public int getYCoordinate() {
          return yCoordinate;
        /** Set a new yCoordinator */
        public void setYCoordinate(int y) {
          this.yCoordinate = y;
          repaint();
       /** Return centered */
        public boolean isCentered() {
          return centered;
        /** Set a new centered */
        public void setCentered(boolean centered) {
          this.centered = centered;
          repaint();
        /** Return interval */
        public int getInterval() {
          return interval;
        /** Set a new interval */
        public void setInterval(int interval) {
          this.interval = interval;
          repaint();
        /** Paint the message */
        protected void paintComponent(Graphics g) {
          super.paintComponent(g);
          if (centered) {
            // Get font metrics for the current font
            FontMetrics fm = g.getFontMetrics();
            // Find the center location to display
            int stringWidth = fm.stringWidth(message);
            int stringAscent = fm.getAscent();
            // Get the position of the leftmost character in the baseline
            xCoordinate = getWidth() / 2 - stringWidth / 2;
            yCoordinate = getHeight() / 2 + stringAscent / 2;
          g.drawString(message, xCoordinate, yCoordinate);
        /** Move the message left */
        public void moveLeft() {
          xCoordinate -= interval;
          repaint();
        /** Move the message right */
        public void moveRight() {
          xCoordinate += interval;
          repaint();
        /** Move the message up */
        public void moveUp() {
          yCoordinate -= interval;
          repaint();
        /** Move the message down */
        public void moveDown() {
         yCoordinate += interval;
          repaint();
        /** Override get method for preferredSize */
        public Dimension getPreferredSize() {
          return new Dimension(200, 30);
      }

    ah right so because there is an import fontmetrics api attached to that is a getFont method......i see now

  • Is this a bug with flex?

    Since setStyle takes a string and an object for inputs, one would expect that passing and Image for the Object would  work.  But it doesn't.
    One doesn't ALWAYS have a filename to work with.  Is setStyle supposed to work with parameters: (string,object) ("backgroundImage", Image)?
    If so, what else needs to be done?
    ===========
    private function GetConfigurationResult( event:WsVCIGetConfigurationDataResultEvent):void
    var simage:String = event.result.Image;
    var decoded:ByteArray;
    var
    decoder.decode( simage );
    decoded = decoder.toByteArray( );
    bgImage.data = decoded;
     decoder:Base64Decoder = new Base64Decoder(); "backgroundImage", bgImage );
    setStyle(
    ============
    But this generates the following error:
    ==========
    Error: Unable to load 'Image52'.
    at mx.skins::RectangularBorder/updateDisplayList()[C:\autobuild\3.2.0\frameworks\p rojects\framework\src\mx\skins\RectangularBorder.as:237]
    at mx.skins.halo::HaloBorder/updateDisplayList()[C:\autobuild\3.2.0\frameworks\pro jects\framework\src\mx\skins\halo\HaloBorder.as:222]
    at mx.skins::ProgrammaticSkin/validateDisplayList()[C:\autobuild\3.2.0\frameworks\ projects\framework\src\mx\skins\ProgrammaticSkin.as:421]
    at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\ projects\framework\src\mx\managers\LayoutManager.as:622]
    at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\framework s\projects\framework\src\mx\managers\LayoutManager.as:677]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\proje cts\framework\src\mx\core\UIComponent.as:8628]
    at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projec ts\framework\src\mx\core\UIComponent.as:8568]
    ==============
    But passing a filename to setStyle works!!!!
    But I need the image to come from a database by way of web server!!!!!!
    Help!
    {// retrieve the 64base encoded image from the web service by ResultEvent
    var
     bgImage:Image =new Image();

    The code now reads:
    private function GetConfigurationResult( event:WsVCIGetConfigurationDataResultEvent):void
    var myUrl:URLRequest;
    var servername:String = this.parentApplication.VCIFormsPage.text;
    var lFileName:String = event.result.FileName+event.result.FileExtension;
    myUrl = new URLRequest();
    myUrl.url = servername + "VCIWebFileRetrieve.aspx?filename=" + lFileName ;
      setStyle("backgroundImage", myUrl );
    and I still get:
    Error: Unable to load '[object URLRequest]'.
    at mx.skins::RectangularBorder/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\fr amework\src\mx\skins\RectangularBorder.as:237]
    at mx.skins.halo::HaloBorder/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\fram ework\src\mx\skins\halo\HaloBorder.as:222]
    The URL is a web form to compose and return a "file"
    This still isn't working!
    Did I do something wrong, like maybe I should use something other than "URLRequest?"

  • Anyone else notice this instance bug with components?

    This seems to affect all components. It seems to work if the
    instance names are left out or if they are both the same. Try this:
    Put a button on frame 1 and a button on frame 2 (it doesn't matter
    if you duplicate the button for frame 2 or add it to a blank
    keyframe). notice the following:
    Results for Flash 9 actionscript 3
    button2 does not show up in correct x,y location but label
    updates correctly
    Results for Flash 9 actionscript 2
    button2 shows up in correct x,y location but with no label
    If the buttons are on separate layers it works fine, could
    someone explain why this is happening (what makes it work if they
    are on different layers and why they don't work if they're on the
    same layer)? I want to use the same instance name so I can
    reference the button but the x,y location of the button doesn't
    change when it should.
    Thanks!

    Yes, I noticed this the other day but didn't make a connection with the US holidays. Odd quirk.

  • Cannot see my picture stream on iPad with IOS 8.1.3. Pics from iPad are uploaded and visible on picture stream on iPhone 4, IOS 7. Is this a bug?

    I cannot see my picture stream on iPad with IOS 8.1.3. The pictures  from iPad are uploaded and visible on picture stream on iPhone 4, IOS 7. Is this a bug with IOS 8.1.3?

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    iOS: Troubleshooting Messages
      iOS: Troubleshooting FaceTime
    - Sign out and then sign back into Messages and FT. Note you will lose all messages presently on the iPod
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes      
    - Restore to factory settings/new iOS device.                       

  • 2012-model Macbook Air got Mavericks installed but boot up with 1-second brighter screen before logging into my account, is this a bug?

    as above, never got this issue when i was using 10.8.
    now every time when i boot my macbook air, just before logging into my user account, the screen blinks once(screen gets brighter a lot in a very short time about 1 second).
    i've googled around, found there are some fellows who also have the same issue as mine.
    Is this a bug with 10.9 mac os? will Apple fix it???

    Mine is doing the same thing but it has happened to me before on other versions too.
    I tried resetting PRAM and it didn't help.
    Also running real laggy on bootup even thou I repaired permissions.
    I think a patch from Apple fixed my screen before or it was just plain luck because it was working right before this UPGRADE.
    I will be trying a clean install tonight or this weekened for sure to try and fix my issues.

  • Virtual Interface generation bug with NetWeaver ?

    I use the Web Service generation wizard to generate a virtual interface which exposes methods in an EJB. As one of the parameters I pass a simple java bean, lets say:
    public class StatusCode
        private String name;
        private boolean buggy;
        public String getName() {...}
        public void setName(String newName){...}
        public boolean isBuggy() {...}
        public void setBuggy(boolean trueOrFalse){...}
    When I look at the virtual interface generated, especially at the Types tab, my boolean attribute is not included.
    If I change the getter to "getBuggy()", the attribute is included in the VI. The only problem is that the typical Java Bean framework, say from sun or ibm, always map 'boolean' getters to 'isSomething()' and not 'getSomething()'.
    Is this a bug with NW? Is there a fix or workaround for this ?
    My version of NW:
    Version: 2.0.7
    Build id: 200407270250
    Thanks in advance,
    Mark
    (If this is not the right forum, could someone suggest where I can post this question?)

    Hi.  As of Netweaver 2004s,  the virtual interface piece has be absorbed into the creation of the web service definition, so there is no need to create it as well.   When you are getting the 403,  how are you trying to run this, using the Web Service Homepage?  If so, you will need to configure what j2e engine that you want to use to use.  You can do this in WSADMIN under the Administration settings.   Check that this is set.  YOu must know the URL of your j2e engine.
    Regards,
    Rich Heilman

Maybe you are looking for

  • Satellite L300 & Windows Vista are not recognising Ipod

    hi, i'm hoping you can help!!! I have been directed here by Microsoft & Apple - below is my issue and also Microsofts response: i have an ipod nano 3rd gen, working off a near new laptop with windows vista. itunes is all set up, no issues with ipod a

  • How long does it take to create material master data from PO lines?

    Hi , I was wondering if I could use an expert's opinion on the time and effort (FTEs) that goes into cleaning 50,000 PO lines that contain item descriptions to create a clean item master and a (basic) catalog. The idea is: To remove duplicates, inval

  • My web start app doesn't get cached

    Many apologies if this topic has been covered before but I have extensively searched the archive and can't seem to find it. I have made my own trivial web start app and it downloads and works fine with my installed web start software. The problem I h

  • Open .lvm file while program is running

    How do I open a .lvm file within my program? I've tried using the Open/Create/Replace File dialog with File Dialog specifying the path and I can get to the point to select the path, and it doesn't open the file. Solved! Go to Solution.

  • Trouble synchronizing IPOD and ITunes

    I had the Ipod and ITunes syncing up correcting under my old laptop under Windows XP Professional. I got a new laptop with Windows XP Professional. I copied all the songs from the old to the new laptops and syncing was ok. The new laptop developed a