Why not set bounds of the JPanel?

import java.awt.*;
import java.util.*;
import javax.swing.*;
import java.awt.event.*;
public class ResLoadChart extends JPanel {
private Vector vName;     
private int[] vLoad;     
private int iSlotSize;     
private int yslots=6, xslots, iaYpegs[], maxY=6;
private int t_margin=40, b_margin=60, l_margin=60, r_margin=80;
private String t_title = "Work";
private String l_title = "No of Minutes";
private String m_resType = null;
private JPanel m_bars[];
public ResLoadChart(String resType, Vector vName,int[] vLoad) {
     t_title = t_title + resType;
     m_resType = resType;
     this.vName=vName;
     this.vLoad=vLoad;
xslots = vName.size();
init();
public void init(){
     m_bars = new JPanel[xslots];
     Random ran=new Random();
     for (int i=0; i<xslots; i++) {
          m_bars[i] = new JPanel();
          m_bars.setOpaque (false);
          m_bars[i].setBackground (new Color(ran.nextInt(256), ran.nextInt(256), ran.nextInt(256)));
          add (m_bars[i]);
loadBars();
     loadChart ();
public void loadChart () {
setSlotSize ();
private void setSlotSize() {
maxY=6;
calculate();
private void calculate() {
int i, j;
int pegs[]=new int[xslots];
for(i=0; i<xslots; i++) {
     pegs[i] = vLoad[i];
maxY=(pegs[i]>maxY) ? pegs[i]:maxY;
iaYpegs=pegs;
private void loadBars () {
calculate();
     int sx, ex, sy, ey;
     Rectangle rect=getBounds();
     sx=l_margin;
ex=rect.width-r_margin;
sy=t_margin;
ey=rect.height-b_margin;
int wd=(ex-sx)/xslots;
for(int i=0; i<xslots; i++) {
m_bars[i].setBounds (sx+(ex-sx)*i/xslots, ey-(ey-sy)*iaYpegs[i]/maxY, wd, (ey-sy)*iaYpegs[i]/maxY);
m_bars[i].setToolTipText ((String)vName.get(i)+": " + vLoad[i]);
when I run ,throws Exception:
java.lang.nullPointerException at LoadChartGui.ResLoadChard.loadBars
I donnt know what is the matter in this class?

To me, it sounds like it's a marketing scheme, for developers to make iPhone applications, and a separated iPad application.
That is not the case. It's up to the developers to decide if they make separate iPhone/iPad apps or one app that can fit both displays. The biggest problem is that iPhones prior to iPhone 4 have different hardware and are not capable of producing the same screen resolutions as the iPad, so it's not possible to make a single app that will work on both with equal results.
The 2X zoom feature is provided on the iPad to compensate for the lower resolution of iPhone apps, and there is no way to increase the resolution of an app that was made for the previous generation iPhones.

Similar Messages

  • BKI0008E: The environment variable BI_CALLER is not set correctely. The cur

    Hi All,
    I have configured backint for backup of maxdb for content server 640. I configured it as per the documents available, created the configuration fiale and the parameter file. Created the backup medium in dbmgui.
    Now when i try to run the backup using the pipe am getting the above mentioned error.
    Please find below the dbm.ebp log for the same...
    more dbm.ebp
    2009-10-22 02:06:08
    Setting environment variable 'TEMP' for the directory for temporary files and pi
    pes to default ''.
    Setting environment variable 'TMP' for the directory for temporary files and pip
    es to default ''.
    Using connection to Backint for MaxDB Interface.
    2009-10-22 02:06:08
    Checking existence and configuration of Backint for MaxDB.
        Using configuration variable 'BSI_ENV' = '/sapdb/CFC/lcbackup/apoatlas.env'
    as path of the configuration file of Backint for MaxDB.
        Setting environment variable 'BSI_ENV' for the path of the configuration fil
    e of Backint for MaxDB to configuration value '/sapdb/CFC/lcbackup/apoatlas.env'
        Reading the Backint for MaxDB configuration file '/sapdb/CFC/lcbackup/apoatl
    as.env'.
            Found keyword 'BACKINT' with value '/sapdb/CFC/db/bin/backint'.
            Found keyword 'INPUT' with value '/tmp/backint4sapdbCFC.in'.
            Found keyword 'OUTPUT' with value '/tmp/backint4sapdbCFC.out'.
            Found keyword 'ERROROUTPUT' with value '/tmp/backint4sapdbCFC.err'.
            Found keyword 'PARAMETERFILE' with value '/sapdb/CFC/lcbackup/param.cfg'
            Found keyword 'TIMEOUT_SUCCESS' with value '1800'.
            Found keyword 'TIMEOUT_FAILURE' with value '1800'.
        Finished reading of the Backint for MaxDB configuration file.
        Using '/sapdb/CFC/db/bin/backint' as Backint for MaxDB program.
        Using '/tmp/backint4sapdbCFC.in' as input file for Backint for MaxDB.
        Using '/tmp/backint4sapdbCFC.out' as output file for Backint for MaxDB.
        Using '/tmp/backint4sapdbCFC.err' as error output file for Backint for MaxDB
        Using '/sapdb/CFC/lcbackup/param.cfg' as parameter file for Backint for MaxD
    B.
        Using '1800' seconds as timeout for Backint for MaxDB in the case of success
        Using '1800' seconds as timeout for Backint for MaxDB in the case of failure
        Using '/sapdb/data/wrk/CFC/dbm.knl' as backup history of a database to migra
    te.
        Using '/sapdb/data/wrk/CFC/dbm.ebf' as external backup history of a database
    to migrate.
        Checking availability of backups using backint's inquire function.
    Check passed successful.
    2009-10-22 02:06:08
    Checking medium.
    Check passed successfully.
    2009-10-22 02:06:08
    Preparing backup.
        Setting environment variable 'BI_CALLER' to value 'DBMSRV'.
        Setting environment variable 'BI_REQUEST' to value 'NEW'.
        Setting environment variable 'BI_BACKUP' to value 'FULL'.
        Constructed Backint for MaxDB call '/sapdb/CFC/db/bin/backint -u CFC -f back
    up -t file -p /sapdb/CFC/lcbackup/param.cfg -i /tmp/backint4sapdbCFC.in -c'.
        Created temporary file '/tmp/backint4sapdbCFC.out' as output for Backint for
    MaxDB.
        Created temporary file '/tmp/backint4sapdbCFC.err' as error output for Backi
    nt for MaxDB.
        Writing '/sapdb/CFC/lcbackup/pipe1 #PIPE' to the input file.
        Writing '/sapdb/CFC/lcbackup/pipe2 #PIPE' to the input file.
    Prepare passed successfully.
    2009-10-22 02:06:08
    Creating pipes for data transfer.
        Creating pipe '/sapdb/CFC/lcbackup/pipe1' ... Done.
        Creating pipe '/sapdb/CFC/lcbackup/pipe2' ... Done.
    All data transfer pipes have been created.
    2009-10-22 02:06:08
    Starting database action for the backup.
        Requesting 'SAVE DATA QUICK TO '/sapdb/CFC/lcbackup/pipe1' PIPE,'/sapdb/CFC/
    lcbackup/pipe2' PIPE BLOCKSIZE 8 NO CHECKPOINT MEDIANAME 'BACKINT_ONLINE1'' from
    db-kernel.
    The database is working on the request.
    2009-10-22 02:06:09
    Waiting until database has prepared the backup.
        Asking for state of database.
        2009-10-22 02:06:09 Database is still preparing the backup.
        Waiting 1 second ... Done.
        Asking for state of database.
        2009-10-22 02:06:10 Database is still preparing the backup.
        Waiting 2 seconds ... Done.
        Asking for state of database.
        2009-10-22 02:06:12 Database has finished preparation of the backup.
    The database has prepared the backup successfully.
    2009-10-22 02:06:12
    Starting Backint for MaxDB.
        Starting Backint for MaxDB process '/sapdb/CFC/db/bin/backint -u CFC -f back
    up -t file -p /sapdb/CFC/lcbackup/param.cfg -i /tmp/backint4sapdbCFC.in -c >>/tm
    p/backint4sapdbCFC.out 2>>/tmp/backint4sapdbCFC.err'.
        Process was started successfully.
    Backint for MaxDB has been started successfully.
    2009-10-22 02:06:12
    Waiting for end of the backup operation.
        2009-10-22 02:06:12 The backup tool is running.
        2009-10-22 02:06:12 The database is working on the request.
        2009-10-22 02:06:14 The backup tool process has finished work with return co
    de 2.
        2009-10-22 02:06:17 The database is working on the request.
        2009-10-22 02:06:27 The database is working on the request.
        2009-10-22 02:06:42 The database is working on the request.
        2009-10-22 02:07:02 The database is working on the request.
        2009-10-22 02:07:15 Canceling Utility-task after a timeout of 60 seconds ela
    psed ... OK.
        2009-10-22 02:07:17 The database has finished work on the request.
        Receiving a reply from the database kernel.
        Got the following reply from db-kernel:
            SQL-Code              :-903
    The backup operation has ended.
    2009-10-22 02:07:17
    Filling reply buffer.
        Have encountered error -24920:
            The backup tool failed with 2 as sum of exit codes. The database request
    was canceled and ended with error -903.
        Constructed the following reply:
            ERR
            -24920,ERR_BACKUPOP: backup operation was unsuccessful
            The backup tool failed with 2 as sum of exit codes. The database request
    was canceled and ended with error -903.
    Reply buffer filled.
    2009-10-22 02:07:17
    Cleaning up.
        Removing data transfer pipes.
            Removing data transfer pipe /sapdb/CFC/lcbackup/pipe2 ... Done.
            Removing data transfer pipe /sapdb/CFC/lcbackup/pipe1 ... Done.
        Removed data transfer pipes successfully.
        Copying output of Backint for MaxDB to this file.
    Begin of output of Backint for MaxDB (/tmp/backint4sapdbCFC.out)-
                                     Data Protection for mySAP(R)
                         Interface between BR*Tools and Tivoli Storage Manager
                         - Version 5, Release 4, Modification 0.0  for Linux x86_64
                               Build: 303  compiled on Nov 16 2006
                    (c) Copyright IBM Corporation, 1996, 2006, All Rights Reserved.
            BKI0008E: The environment variable BI_CALLER is not set correctely. The
    current value is "DBMSRV"
            usage:
             backint -p <par_file> [-u <user_id>] [-f <function>]
                    [-t <type>] [-i <in_file>] [-o <out_file>] [-c]
            where:
                   <user_id>    backint utility user
                   <function>   backup | restore | inquire | password | delete
                   <type>       file | file_online
                   <par_file>   parameter file for backup utility
                   <in_file>    name of a text file  that defines the objects
                                default: STDIN
                   <out_file>   Pool for processing messages and the results
                                of the executed function.
                                default: STOUT
            BKI0020I: End of program at: Thu 22 Oct 2009 02:06:14 AM EDT .
            BKI0021I: Elapsed time: 01 sec .
            BKI0024I: Return code is: 2.
    End of output of Backint for MaxDB (/tmp/backint4sapdbCFC.out)---
        Removed Backint for MaxDB's temporary output file '/tmp/backint4sapdbCFC.out
        Copying error output of Backint for MaxDB to this file.
    Begin of error output of Backint for MaxDB (/tmp/backint4sapdbCFC
    .err)----
    End of error output of Backint for MaxDB (/tmp/backint4sapdbCFC.e
    rr)----
        Removed Backint for MaxDB's temporary error output file '/tmp/backint4sapdbC
    FC.err'.
        Removed the Backint for MaxDB input file '/tmp/backint4sapdbCFC.in'.
    Have finished clean up successfully.

    Also, is there any specification about the user permissions and about how the backup should be run?

  • HT204053 I have tried to load iCloud onto my Vista opperated pc but do not get a control panel with which to set it up. Each time I use my iTunes id to log into the iCloudI am told that it is an apple id but not set up for the Cloud. How do I get the cont

    I have tried to install iCloud on to my Windows Vista pc. No control panel is present and when I try to login to iCloud using my iTunes id, I am told that it is an Apple id but not set up for the cloud. without the control panel where do I set up my iCloud id?

    You can not setup a new iCloud account using a PC. You must use an Apple device (Mac or iPhone/iPad) to create the account, then sign into it using your PC.

  • Lock NOT set for: Archiving the data from a data target

    Dear Expert,
    I try to archive one of my info cube, when i start to write the Archive file the Free Space in the Archive folder not enough and it make the process error.
    Then i try to changes the Archive folder to another path with enough free space. But when i start to write the archive file with new variant this error message came up :
    ==============================================================
    An archiving run locks InfoProvider ZICCPS810 (archivation object BWCZICCP~0)
    Lock NOT set for: Archiving the data from a data target             
    InfoProvider ZICCPS810 could not be locked for an archiving session 
    Job cancelled after system exception ERROR_MESSAGE                  
    ==============================================================
    Please Help Me.
    Wawan S

    Hi Wawan,
    If the earlier archive session resulted in error, please try to invalidate the earlier session in archive management and try running archive job again.
    Hope this helps,
    Naveen

  • Why not Chinese supported in the JHS 10.1.3  internationalization?

    why not add chinese in the supported locales.

    hi all,
    i am facing follwing issue while applying this patch.
    i followed these steps
    1) > perl changeNamesWindows.pl home
    -it works fine
    2) > opatch apply
    While running this i got following message.
    Oracle Home : C:\product\10.1.3.1\OracleAS_Prod
    Oracle Home Inventory : C:\product\10.1.3.1\OracleAS_Prod\inventory
    Central Inventory : C:\Program Files\oracle\inventory
    from : N/A
    OUI location : C:\product\10.1.3.1\OracleAS_Prod\oui
    OUI shared library : C:\product\10.1.3.1\OracleAS_Prod\oui\lib\win32\oraInsta
    ller.dll
    Java location : "C:\product\10.1.3.1\OracleAS_Prod\jdk\jre\bin\java.exe"
    Log file location : C:\product\10.1.3.1\OracleAS_Prod/.patch_storage/<patch
    ID>/*.log
    Creating log file "C:\product\10.1.3.1\oracleas_prod\.patch_storage\5659094\Appl
    y_5659094_02-01-2007_13-55-49.log"
    Backing up comps.xml ...
    unbundling the rar file.
    OPatch detected non-cluster Oracle Home from the inventory and will patch the lo
    cal system only.
    Please shut down Oracle instances running out of this ORACLE_HOME
    (Oracle Home = c:\product\10.1.3.1\oracleas_prod)
    Is this system ready for updating?
    Please respond Y|N >
    y
    Executing the Apply pre-patch script (C:\Documents and Settings\277717\Desktop\A
    BHI\5659094\custom\scripts\pre.bat)...
    'C:\Documents' is not recognized as an internal or external command,
    operable program or batch file.
    The pre patch script returned an error.
    Do you want to STOP?
    Please respond Y|N >
    Is not this a major bug.? i mean in many cases u have to access database objects
    & have to assign outputvalues to some other BPEL variables.
    Anybody Plz help me out..?
    /Mishit

  • Error:Provide Host List - SSH User equivalence is not set up on the remote

    Hello,
    I've been receiving an error from OEM 10g GC when I attempt to execute a fresh install of the Agent:
    "1. Provide Host List - SSH User equivalence is not set up on the remote nodes."
    I'm using OEM Grid Control version 10.1.0.4 on a Solaris 10 platform. The agent will be installed on many 8i (post-8.1.7.4), 9i, and 10g clients.
    I've tried most, if not all, of the standard fixes that I've found online (such as Metalink note 376355.1).
    Has anybody had difficulties with this error, and what other fixes could I try besides the one in note 376355.1? Could this be an OS configuration issue, or something else?
    Thanks.

    How are you pushing the agent from 10104. This feature is not there in 10104
    this is supported from 10201
    http://www.oracle.com/technology/products/oem/pdf/10gr2_agent_deploy_bp.pdf

  • Why not work cuda on the card Quadro K4200 in Adobe Premiere? How to solve this problem?

    Why not work cuda on the card Quadro K4200 in Adobe Premiere? How to solve this problem?

    Funny that you rate your question as the correct answer.
    The answer is that you need to rename or delete the file 'cuda_supported_cards.txt' or add the card to that file.

  • ScrollBars not showing up for the JPanel [urgent]

    Hi,
    I have a frame in which i have two nested split panes i.e one horizontal splitpane and in that i am having one more split pane on the right side and a JTree on the left side.In the second split pane (which is a vertical split) ,as a top component , i am setting a JScrollPane in which i am trying to display a JPanel which is having a lot of swing components in it.I want to see the scroll bars for this panel so that i can see all the components.Do i have to implement Scrollable interface for this panel to scroll in the ScrollPane.I don't know how to implement Scrollable interface.Can some body help me in resolving this?This is some what urgent.Any help will be highly appreciated.
    Thanks in advance.
    Ashok

    Thank you all for your replies.I added the scroll bar policy.The scroll bars are showing up but the components inside the Panel are not moving.I want the components to move when i am scrolling.Here is my code.In the code SeriesDescPanel, SeriesDescMapPanel are sub classes of JPanel.I am using null layout to add the components to these panels.
    public class MainWindow extends JFrame implements TreeExpansionListener
    public MainWindow()
    throws RemoteException
    // This code is automatically generated by Visual Cafe when you add
              // components to the visual environment. It instantiates and initializes
              // the components. To modify the code, only use code syntax that matches
              // what Visual Cafe can generate, or Visual Cafe may be unable to back
              // parse your Java file into its visual environment.
              //{{INIT_CONTROLS
              setJMenuBar(menuBar);
              setTitle("Series Maintenance");
              getContentPane().setLayout(new BorderLayout(0,0));
              setSize(667,478);
              setVisible(false);
              JSplitPane1.setDividerSize(1);
              JSplitPane1.setOneTouchExpandable(true);
              getContentPane().add(BorderLayout.CENTER, JSplitPane1);
              seriesMenu.setText("Series");
              seriesMenu.setActionCommand("Series");
              menuBar.add(seriesMenu);
              newSeriesGroupMenuItem.setText("New Series Group");
              newSeriesGroupMenuItem.setActionCommand("New Series Group");
              seriesMenu.add(newSeriesGroupMenuItem);
              newSeriesMenuItem.setText("New Series");
              newSeriesMenuItem.setActionCommand("New Series");
              seriesMenu.add(newSeriesMenuItem);
              seriesMenu.add(JSeparator1);
              serachMenuItem.setText("Search");
              serachMenuItem.setActionCommand("Search");
              seriesMenu.add(serachMenuItem);
              seriesMenu.add(JSeparator2);
              saveMenuItem.setText("Save");
              saveMenuItem.setActionCommand("Save");
              seriesMenu.add(saveMenuItem);
              seriesMenu.add(JSeparator3);
              exitMenuItem.setText("Exit");
              exitMenuItem.setActionCommand("Exit");
              seriesMenu.add(exitMenuItem);
              adminMenu.setText("Administration");
              adminMenu.setActionCommand("Administration");
              menuBar.add(adminMenu);
              bulkLoadMenuItem.setText("Bulk Load");
              bulkLoadMenuItem.setActionCommand("Bulk Load");
              adminMenu.add(bulkLoadMenuItem);
              drsMenuItem.setText("DRS override");
              drsMenuItem.setActionCommand("DRS override");
              adminMenu.add(drsMenuItem);
              helpMenu.setText("Help");
              helpMenu.setActionCommand("Help");
              menuBar.add(helpMenu);
              tutorialMenuItem.setText("Tutorial");
              tutorialMenuItem.setActionCommand("Tutorial");
              helpMenu.add(tutorialMenuItem);
              bulkLoadFormatMenuItem.setText("Bulk Load Format");
              bulkLoadFormatMenuItem.setActionCommand("Bulk Load Format");
              helpMenu.add(bulkLoadFormatMenuItem);
              aboutMenuItem.setText("About");
              aboutMenuItem.setActionCommand("About");
              helpMenu.add(aboutMenuItem);
    JSplitPane2 = new javax.swing.JSplitPane();
    upperPanel = new SeriesDescPanel();
    JScrollPane2 = new javax.swing.JScrollPane(upperPanel,
    ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
    ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    JScrollPane3 = new javax.swing.JScrollPane();
    JSplitPane2.setOrientation(0);
    JSplitPane2.setDividerSize(1);
    JSplitPane2.setOneTouchExpandable(true);
    JSplitPane1.setRightComponent(JSplitPane2);
    JSplitPane1.setLeftComponent(viewPane);
    viewPane.add(alphabeticPane);
    viewPane.add(searchDataPane);
    viewPane.setTitleAt(0,"All");
              viewPane.setTitleAt(1,"search");
    //JScrollPane1.setMinimumSize(new Dimension(126, 478));
    JSplitPane2.setTopComponent(JScrollPane2);
    //JScrollPane2.setMinimumSize(new Dimension(426, 409));
    JSplitPane2.setBottomComponent(JScrollPane3);
    lowerPanel = new SeriesDescMapPanel();
    seriesTreeModel = new SeriesTreeModel(SeriesMaintenanceUI.getSeriesGroupInfo());
    tickersTree.setModel(seriesTreeModel);
    alphabeticPane.getViewport().setView(tickersTree);
    //JScrollPane2.getViewport().setView(upperPanel);
    //JScrollPane2.setViewportView(upperPanel);
    //upperPanel.scrollRectToVisible(new Rectangle(upperPanel.getWidth(),
    //upperPanel.getHeight(),1,1));
    JScrollPane3.getViewport().setView(lowerPanel);
    //JSplitPane2.setPreferredSize(new Dimension(426,200));
    SeriesDescPanel upperPanel;
    SeriesDescMapPanel lowerPanel;
    SeriesTreeModel seriesTreeModel;
    SeriesTreeModel searchTreeModel;
    javax.swing.JSplitPane JSplitPane2;
    javax.swing.JScrollPane JScrollPane2;
    javax.swing.JScrollPane JScrollPane3;
    javax.swing.JTree tickersTree = new javax.swing.JTree();
    javax.swing.JTree searchTree = new javax.swing.JTree();
    javax.swing.JScrollPane alphabeticPane = new javax.swing.JScrollPane();
    javax.swing.JTabbedPane viewPane = new JTabbedPane(SwingConstants.BOTTOM);
    javax.swing.JScrollPane searchDataPane = new javax.swing.JScrollPane();
    //{{DECLARE_CONTROLS
         javax.swing.JSplitPane JSplitPane1 = new javax.swing.JSplitPane();
         javax.swing.JMenuBar menuBar = new javax.swing.JMenuBar();
         javax.swing.JMenu seriesMenu = new javax.swing.JMenu();
         javax.swing.JMenuItem newSeriesGroupMenuItem = new javax.swing.JMenuItem();
         javax.swing.JMenuItem newSeriesMenuItem = new javax.swing.JMenuItem();
         javax.swing.JSeparator JSeparator1 = new javax.swing.JSeparator();
         javax.swing.JMenuItem serachMenuItem = new javax.swing.JMenuItem();
         javax.swing.JSeparator JSeparator2 = new javax.swing.JSeparator();
         javax.swing.JMenuItem saveMenuItem = new javax.swing.JMenuItem();
         javax.swing.JSeparator JSeparator3 = new javax.swing.JSeparator();
         javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
         javax.swing.JMenu adminMenu = new javax.swing.JMenu();
         javax.swing.JMenuItem bulkLoadMenuItem = new javax.swing.JMenuItem();
         javax.swing.JMenuItem drsMenuItem = new javax.swing.JMenuItem();
         javax.swing.JMenu helpMenu = new javax.swing.JMenu();
         javax.swing.JMenuItem tutorialMenuItem = new javax.swing.JMenuItem();
         javax.swing.JMenuItem bulkLoadFormatMenuItem = new javax.swing.JMenuItem();
         javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
    Pl. help me in resolving this.
    Ashok

  • I recently obtained a new solar-powered extender battery (2700 mAh Li-ion, maker not known) that I can't get to work.  Each time I plug it in, I get a notification from Apple saying I can't use it to charge the phone.  Why not, if I have the correct plug?

    I do have another NewTrent charger that works okay, not great, because sometimes the connection is intermittent and it keeps connecting and disconnecting over and over.  So I was looking forward to trying this new charger, but Apple is blocking it for some reason.  Any idea why?

    Unfortunately, I threw away the plastic packaging for the device, not realizing there was no manufacturer identified on the unit itself.  It just says it is ITEM 68691, 11c China.  It also appears to be rated for the correct voltage - Under SOLAR MOBILE PHONE CHARGER it says, 2700mAh li.ion Battery; 5.1VDC, 250mA
    That's all there is except for a little round white label that has these numbers:  36100, and then underneath, 482012
    Thanks for your comments.  Not sure what else to do, but maybe I can take it in to an Apple store and they can look at it.

  • Why not more rejoicing about the KTML replacement?

    I find it curious that there is not more rejoicing about the KTML replacement announced recently by Gunter. Are developers: 1) extraordinarily cautious types who only release cries of joy after much testing 2) cynical that this will actually fill the bill?
    http://synasys.de/index.php?id=5

    b Purple Edge -
    You're right that TinyMCE is far from the only alternative WYSIWYG editor that can be made to work with ADDT. But since users lost KTML when Interakt's MX Kollection became Adobe Dreamweaver Developer Toolbox, many have been left wanting a solution that offered not only the editor itself, but a file and image manager that equaled KTML's File Browser.
    As Günter has explained, the combination of TinyMCE with the Synasys SMImage and SMExplorer plugins now allows users to define individual asset folders for each editor instance using static and/or dynamic values from a DW/ADDT recordset. This mimics the way KTML worked. Other editors do of course offer their own file/image managers, but I'm unaware of any solutions that integrate with ADDT as robustly as what Günter has detailed.
    Beyond that, the plugins just have some really nice features. :)
    b Paul -
    I for one, am looking forward to using the TinyMCE/Synasys plugin solution on my next client project. (I'm using the InnovaStudio editor currently.)

  • Some labels not set correctly in the en_GB locale

    Hi,
    I've observed this in JDev/ADF 11.1.2.1 and this behaviour is probably the same in older releases.
    Even though my locale is en_GB and I can see it's picked up correctly (server log etc.) , I noticed that the labels for some (or all perhaps) ADF components is still US.
    (e.g. in the search panel, the Saved search drop-down comes with a 'Personali*z*e' option instead of 'Personali*s*e' in the en_GB locale)
    And I can see that the default skin (fusionFX v2 as of 11.1.2.1) does come with multiple resource bundles (e.g. I just changed my locale to IT and the application switched to Italian labels)...
    PS: I am aware we can change the text on a need basis but just wondered if there was a bug logged for this...
    (http://docs.oracle.com/cd/E24382_01/user.1112/e17456/adfsg_text.htm)
    Thanks,
    JV
    Edited by: Jang Vijay Singh on Aug 20, 2012 2:11 PM

    If you don't have an support contract but have a test case showing the problem (along with description on how to set it up if one uses a different locale) you can file this in hte ADF EMG issue tracker (http://java.net/jira/browse/ADFEMG).
    I'm not aware of such a bug, but I'll never use en_GB myself.
    Timo

  • SOAP - Why not use JMS as the transport layer?

    I have been looking at the SOAP standard and can't understand
    why something hasn't been done. I wondered if someone could help.
    With the current Apache SOAP implementation there is a SOAP
    Transport interface which is implemented for SMTP and HTTP. The
    format of the messages never changes. Although it is not a
    protocol it seems eminently sensible to me that there should be
    a JMS implementation. Then infrastructure bridging cold be used
    to give a universal message queueing standard.
    Being as the current standard supports asynchronous messaging
    over SMTP. It seems to be a trivial matter to add to the SOAP
    implementation that Oracle supply. Does anyone have any good
    reason why it shouldn't be done and is there any reason Oracle
    and other standards body members couldn't have implemented it
    and agreed it in the standard?

    Am I missing something? I wasn't thinking of embedding JMS
    messages over HTTP, but using JMS itself. This would provide an
    industry standard for message queueing message formats, and
    would allow interaction with any message queueing product
    through bridges (i.e. OMB, with no real work). Aren't you
    talking about something different?

  • I have tried replacing the Firefox start-up page with my own home page choice many times and it will not set--I get the circle with the slash through it when I try to drag the webpage icon to "home."

    I am using Windows 7 Professional, and have tried all of the recommended troubleshooting tips for this problem. I do not have the new version of Firefox installed because it had all kinds of problems so I went back to the version I had--I believe it was 3.6.24. Since then, I have not been able to set a home page. Any help out there? Thank You!

    Try to drag the tab or the website's favicon on the Home button if you currently drag selected text.
    If it doesn't work with dragging the icon then copy the URL to the clipboard and paste it via the Options window in the home page field.
    *Tools > Options > General > Startup: Home page
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Why not optimus technology on the new mac book pro notebooks ?

    Hello why there is no optimus technology in the mac book notebooks? I never had a mac and i am interesting to buy a 17'inch mac book pro, after my excitement on the 2011 model, i thought to my self why do they need to have a dedicated memory for graphics and not for ex. nvidia optimus? I have no idea about mac's, but anyways since i thought i am going to use it for my studies i do need energy efficient notebook, so why apple does not support a new technology ?
    P.s Thank you.

    No one here can answer that!  None of us works for Apple therefore, cannot speak for them.  These are user to user fourms where everyday folk (volunteers) post question & offer answers to each other.
    Suggest that you do research through Google to find answers to your question(s).  Or call or write Apple.  I am quite sure, they will be happy to answer your questions about why they do the things they do.
    Good luck!

  • Log4j - why not logging RuntimeException to the file?

    log4j.xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration debug="true"
         xmlns:log4j="http://jakarta.apache.org/log4j/">
         <appender name="Console" class="org.apache.log4j.ConsoleAppender">
              <layout class="org.apache.log4j.PatternLayout">
                   <!-- l, L, M - is extremely slow. It's use should be avoided unless execution
                        speed is not an issue. -->
                   <param name="ConversionPattern" value="%d{[dd MMM yyyy HH:mm:ss.SSS]} %l %p:%n    %m%n" />
              </layout>
         </appender>
         <appender name="File" class="org.apache.log4j.DailyRollingFileAppender">
              <param name="File" value="logs/trace.log" />
              <param name="Append" value="true" />
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{[dd MMM yyyy HH:mm:ss.SSS]} %l %p:%n    %m%n" />
              </layout>
         </appender>
         <root>
              <level value="ALL" />
              <appender-ref ref="Console" />
              <appender-ref ref="File" />
         </root>
    </log4j:configuration>and all logging to the file and to the console. OK.
    But when throw RuntimeException (e.g. java.lang.NullPointerException) then logging ONLY to the console. But I also need logging to the file.
    console log WITH RuntimeException:
    [java] [09 Aug 2010 12:48:23.591] com.mycompany.myproject.views.OutgoingTabView.actionPerformed(OutgoingTabView.java:150) DEBUG:
    [java]     Start signing and uploading M2 documents to the CB (FTP server) ...
    [java] [09 Aug 2010 12:48:23.607] com.mycompany.myproject.db.DefaultDBStrategy.createM2PackDocuments(DefaultDBStrategy.java:423) TRACE:
    [java]     Start creating m2PackDocuments from DB (from M2 documents with status 0) by SQL query:
    [java] SELECT * FROM OutDocs WHERE STATUS=0
    [java] [09 Aug 2010 12:48:23.622] com.mycompany.myproject.db.DefaultDBStrategy.createM2PackDocuments(DefaultDBStrategy.java:471) TRACE:
    [java]     Success created m2PackDocuments(6)
    [java] [09 Aug 2010 12:48:23.685] com.mycompany.myproject.views.OutgoingTabView.actionPerformed(OutgoingTabView.java:158) TRACE:
    [java]     Success created m2PackDocuments(6) from M2 documents with status 'new'
    [java] [09 Aug 2010 12:48:23.685] com.mycompany.myproject.util.M2EIManager.sendM2Pack(M2EIManager.java:178) TRACE:
    [java]     Start create M2Pack
    [java] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    [java]      at com.mycompany.myproject.pack.M2PackTrailer.isCorrectPhone(M2PackTrailer.java:361)
    [java]      at com.mycompany.myproject.pack.M2PackTrailer.setTrailer_Phone(M2PackTrailer.java:380)
    [java]      at com.mycompany.myproject.pack.M2PackTrailer.setTrailer(M2PackTrailer.java:425)
    [java]      at com.mycompany.myproject.pack.M2PackTrailer.createDynamicTrailerFields(M2PackTrailer.java:481)
    [java]      at com.mycompany.myproject.pack.M2PackTrailer.initialize(M2PackTrailer.java:489)
    [java]      at com.mycompany.myproject.pack.M2PackTrailer.<init>(M2PackTrailer.java:494)
    [java]      at com.mycompany.myproject.pack.M2Pack.initialize(M2Pack.java:28)
    [java]      at com.mycompany.myproject.pack.M2Pack.<init>(M2Pack.java:32)
    [java]      at com.mycompany.myproject.util.M2EIManager.sendM2Pack(M2EIManager.java:179)
    [java]      at com.mycompany.myproject.views.OutgoingTabView.actionPerformed(OutgoingTabView.java:165)
    [java]      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    [java]      at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    [java]      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    [java]      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    [java]      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    [java]      at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    [java]      at java.awt.Component.processMouseEvent(Unknown Source)
    [java]      at javax.swing.JComponent.processMouseEvent(Unknown Source)
    [java]      at java.awt.Component.processEvent(Unknown Source)file log WITHOUT logging RuntimeException:
    [java] [09 Aug 2010 12:48:23.591] com.mycompany.myproject.views.OutgoingTabView.actionPerformed(OutgoingTabView.java:150) DEBUG:
    [java]     Start signing and uploading M2 documents to the CB (FTP server) ...
    [java] [09 Aug 2010 12:48:23.607] com.mycompany.myproject.db.DefaultDBStrategy.createM2PackDocuments(DefaultDBStrategy.java:423) TRACE:
    [java]     Start creating m2PackDocuments from DB (from M2 documents with status 0) by SQL query:
    [java] SELECT * FROM OutDocs WHERE STATUS=0
    [java] [09 Aug 2010 12:48:23.622] com.mycompany.myproject.db.DefaultDBStrategy.createM2PackDocuments(DefaultDBStrategy.java:471) TRACE:
    [java]     Success created m2PackDocuments(6)
    [java] [09 Aug 2010 12:48:23.685] com.mycompany.myproject.views.OutgoingTabView.actionPerformed(OutgoingTabView.java:158) TRACE:
    [java]     Success created m2PackDocuments(6) from M2 documents with status 'new'
    [java] [09 Aug 2010 12:48:23.685] com.mycompany.myproject.util.M2EIManager.sendM2Pack(M2EIManager.java:178) TRACE:
    [java]     Start create M2Pack

    Because you're not catching the exception. You're letting it bubble up to Swing's default exception handler, which doesn't know about Log4J.
    One solution would be to put a catch (Exception ex) in OutgoingTabView.actionPerformed, and explicitly log it there. I picked that method (rather than any of the ones lower on the stack trace) because catching the exception there is equivalent to saying "don't perform the action."
    However, this solution isn't very good, because it would let your program continue in a probably-incorrect state. NullPointerException generally indicates a programming error: after all, if you expected that a particular value could be null, you wouldn't blindly dereference it, right? And while you could write code to undo anything that happened before the exception, a better solution is to log any available information, pop a dialog apologizing to the user, and shutting down.
    Perhaps better, you could replace the event dispatch thread's [uncaught exception handler|http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html#setUncaughtExceptionHandler] with something that writes the log and then exits. That will keep you from adding try/catch blocks to all of your action listeners.

Maybe you are looking for

  • Wermgr.exe and werfault.exe with photoshop elements 10

    I need help getting my photoshop working again. i recently had to take a whole bunch of malware off ,my computer and now that ive done that, when i start my photshop elements 10, i get these two errors. I have googled these errors and they say to tur

  • 4400F scanner has problems with color slides

    About six years after buying the 4400F scanner, I finally opened it today in order to start scanning a lot of color slides going back more than 40 years.  It seems as if the software (or the scanner itself) doesn't know where one slide ends and the n

  • Benefit error

    I am getting the error message "Calculated processing end date is before the start date" when I do the benefit enrollment from HRBEN0001 transaction. Kindly help

  • When I execute the APD I am getting error?

    When I execute the APD I am getting below error. Pleasse help me to resovle this. Duplicate records when writing data to DataStore object ZO08_ABC Message no. RSAN_RT551 Diagnosis During data processing, one of the analysis processes does not guarant

  • Archived User Interface Fonts. Ooops. Now What?

    I was adding and subtracting some fonts from my master fonts directory and archived some fonts that are used in Photoshop, specificaly in the "Preferences" section. Now the text is blank in the preference section. What fonts are used there so I can r