Is this a GCC bug or what?

Ok, i've written this simple program in C:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void)
char *c,*str,C[8];
unsigned short int D,y;
time_t h;
struct tm *t;
h=time(NULL);
t=gmtime(&h);
str=asctime(t);
sscanf(str,"%*s %*s %hu %s %hu",&D,C,&y);
c=malloc(31*sizeof(char));
snprintf(c,30,"%c%c%c, %hu-%c%c%c-%hu %s GMT",str[0],str[1],str[2],D,str[4],str[5],str[6],y,C);
printf("%s\n%s\n",str,c);
free(c);
return 0;
which uses only standard libc functions.
I've got a x86_64 Ubuntu 9.10 machine which uses gcc 4.4.1.
I compile that with -Wall -Wextra -pedantic -pedantic-errors.
ubuntu-desktop ~ $ uname -a
Linux ubuntu-desktop 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:02:15 UTC 2009 x86_64 GNU/Linux
ubuntu-desktop ~ $ gcc -o tm tm.c -Wall -Wextra -pedantic -pedantic-errors
ubuntu-desktop ~ $ ./tm
Sun Jan 3 23:26:13 2010
Sun, 3-Jan-2010 23:26:13 GMT
The output is ok.
Now i compile it on an Archlinux x86 machine.
server C $ uname -a
Linux server 2.6.32-ARCH #1 SMP PREEMPT Sat Dec 26 08:26:17 UTC 2009 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz GenuineIntel GNU/Linux
server C $ gcc -o tm tm.c -Wall -Wextra -pedantic -pedantic-errors
server C $ ./tm
Sun Jan 3 23:28:32 2010
Sun, 3-Jan-2010 23:28:32H
I can't explain how this could happen except with a kind of mistake in compiling GCC or in a GCC 4.4.2 bug.
After this, I've tried to compile the source with the Ubuntu GCC with -m32 and link it with the gcc of Archlinux.
This is the result:
server C $ ./tm
Sun Jan 3 23:35:51 2010
Sun, 3-Jan-2010 23:35:51 GMT
*** stack smashing detected ***: ./tm terminated
[bla,bla,bla...read this as the consequence of the different glibc version]
It works so, there's something wrong with gcc, but my knowledges can't find what.
Sorry for my English, but i'm Italian.
Last edited by krnlpk (2010-01-03 23:40:10)

No gcc bug; it's a bug in your program.  From what I can tell, the char array `C' is designed to hold a string like "01:15:48" which is 8 characters.  Hence, it needs to be declared as `char C[9]' to have room for the terminating \0.  `char C[8]' causes sscanf to smash your stack, as it writes the \0 byte somewhere else.  Making that change fixed the program on my computer.  Too bad valgrind can't detect that sort of error.

Similar Messages

  • Crazy Metadata Errors Hope system is secure?  Is this a install bug or what

    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: @(#)PROGRAM:Install  PROJECT:Install-846
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: @(#)PROGRAM:IA  PROJECT:InstallAssistant-469.5
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Hardware: MacBookPro8,1 @ 2.30 GHz (x 4), 4096 MB RAM
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Running OS Build: Mac OS X 10.9.1 (13B42)
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: DYLD_NO_FIX_PREBINDING=1
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: __CF_USER_TEXT_ENCODING=0x0:0:0
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: PWD=/
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: SHLVL=1
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: __OSINSTALL_ENVIRONMENT=1
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: CI_DEFAULT_OPENCL_USAGE=0
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: OS_INSTALL=1
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: _=/System/Library/CoreServices/Language Chooser.app/Contents/MacOS/Language Chooser
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: __CHECKFIX1436934=1
    Jan  3 20:02:03 localhost Install OS X Mavericks[376]: OSInstallChunkedDownload loaded...
    Jan  3 20:02:03 localhost Install OS X Mavericks[376]: OSInstallChunkedDownload loaded...
    Jan  3 20:02:04 localhost OSIESpringboard[373]: LSExceptions [0x7ffc58429910] unloaded
    Jan  3 20:02:05 localhost Install OS X Mavericks[376]: Checking Software Update catalog URL https://swscan.apple.com/content/catalogs/others/index-10.9-mountainlion-lion-sn owleopard-leopard.merged-1.sucatalog
    Jan  3 20:02:05 localhost Install OS X Mavericks[376]: Can not connect to /var/run/systemkeychaincheck.socket: No such file or directory
    Jan  3 20:02:06 localhost Install OS X Mavericks[376]: Could not add SWU product
    Jan  3 20:02:13 localhost Install OS X Mavericks[376]: LSExceptions [0x7ffdb3c07e40] unloaded
    Jan  3 20:02:14 localhost Unknown[357]: 2014-01-03 20:02:14.017 Install OS X Mavericks[376:1003] Couldn't find app store version, falling back to hardcoded
    Jan  3 20:02:15 localhost Unknown[357]: 2014-01-03 20:02:15.638 Install OS X Mavericks[376:870f] ERROR: number of bytes written -1 was less than the requested amount 928542.
    Jan  3 20:02:15 localhost Unknown[357]: 2014-01-03 20:02:15.639 Install OS X Mavericks[376:870f] ERROR: failed to write cached response to /var/root/Library/Caches/com.apple.InstallAssistant.Mavericks. Falling back to old persistent store mechanism.
    Jan  3 20:02:15 localhost Install OS X Mavericks[376]: Using product <IAPisaSource: 0x7ffdb3d8c370> at distance 25
    Jan  3 20:02:15 localhost Install OS X Mavericks[376]: Using product <OSInstallESDProduct> based on distribution at /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/OSInstall_AppStore.mpkg at distance 5
    Jan  3 20:02:15 localhost Install OS X Mavericks[376]: JS: installCheckScript threw exception TypeError: 'null' is not an object (evaluating 'my.target.systemVersion')
    Jan  3 20:02:15 localhost Install OS X Mavericks[376]: No available package ref for compatibility update. Ignoring.
    Jan  3 20:02:33 localhost Unknown[357]: 2014-01-03 20:02:33.698 Install OS X Mavericks[376:d46f] NSPersistentUIManager was unable to writev to persistent state file: 28 (No space left on device)
    Jan  3 20:02:33 localhost Unknown[357]: 2014-01-03 20:02:33.701 Install OS X Mavericks[376:d46f] -[NSPersistentUIWindowSnapshotter writeWindowSnapshot:length:width:height:bytesPerRow:toFile:inDirectory:encrypti ngWithKey:uuid:checksum:isUserWaitingImpatientlyForThisThingToFinish:]: 0 == ftruncate(fd, finalFileSize) failed on line 759: No space left on device
    Jan  3 20:02:33 localhost Unknown[357]: 2014-01-03 20:02:33.701 Install OS X Mavericks[376:d46f] -[NSPersistentUIWindowSnapshotter writeWindowSnapshot:length:width:height:bytesPerRow:toFile:inDirectory:encrypti ngWithKey:uuid:checksum:isUserWaitingImpatientlyForThisThingToFinish:]: 0 == ftruncate(fd, fileLength) failed on line 830: No space left on device
    Jan  3 20:02:59 localhost Install OS X Mavericks[376]: Created IATool object:b3e59c50
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: No available package ref for compatibility update. Ignoring.
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: Preventing machine sleep.
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: Using product IA_PKSecureNetEnabledProduct <file:///Volumes/Maxox/OS%20X%20Install%20Data/> at distance 5
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: Using mutable product path: /Volumes/Maxox/OS X Install Data
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: No available package ref for compatibility update. Ignoring.
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: No available package ref for compatibility update. Ignoring.
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: No available package ref for compatibility update. Ignoring.
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: Retrieving 1 packages (5.290 GB)
    Jan  3 20:03:27 localhost Unknown[357]: 2014-01-03 20:03 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 20:03:27 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:03:27 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:03:27 localhost Unknown[357]: 2014-01-03 20:03:27.880 Install OS X Mavericks[376:2003] Metadata.framework [Error]: couldn't get the client port
    Jan  3 20:03:28 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0
    Jan  3 20:03:30 localhost Install OS X Mavericks[376]: CoreServices logging is enabled,
    Jan  3 20:03:30 localhost Install OS X Mavericks[376]: SFL Favorites initialized.
    Jan  3 20:03:36 localhost Unknown[357]: 2014-01-03 20:03:36.032 Install OS X Mavericks[376:303] Metadata.framework [Error]: MDPlistContainerRef _MDCopyCompleteFlatSchema(int): couldn't fetch complete schema from server ((ipc/send) invalid destination port)
    Jan  3 20:04:11 localhost Install OS X Mavericks[376]: Sending Installer Log to Apple...
    Jan  3 20:04:11 localhost Install OS X Mavericks[376]: User Contact: [email protected]
    Jan  3 20:04:11 localhost Install OS X Mavericks[376]: User Comment:
    Jan  3 20:04:11 localhost Install OS X Mavericks[376]: Unable to submit Crash Reporter log in OS Install environment!
    Jan  3 20:04:11 localhost Install OS X Mavericks[376]: Sent Installer Log to Apple.
    Jan  3 20:06:15 localhost Unknown[357]: 2014-01-03 20:06 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 20:06:15 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:06:15 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:06:15 localhost Unknown[357]: 2014-01-03 20:06:15.416 Install OS X Mavericks[376:fdcf] Metadata.framework [Error]: couldn't get the client port
    Jan  3 20:06:15 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0
    Jan  3 20:08:01 localhost Unknown[357]: 2014-01-03 20:08 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 20:08:01 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:08:01 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:08:01 localhost Unknown[357]: 2014-01-03 20:08:01.987 Install OS X Mavericks[376:e327] Metadata.framework [Error]: couldn't get the client port
    Jan  3 20:08:01 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0
    Jan  3 20:10:21 localhost configd[113]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "µàÎ∑".
    Jan  3 20:10:22 localhost OSIESpringboard[373]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "µàÎ∑".
    Jan  3 20:10:22 localhost OSIESpringboard[373]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "µàÎ∑".
    Jan  3 20:10:22 localhost OSIESpringboard[373]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "µàÎ∑".
    Jan  3 20:10:28 localhost configd[113]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "µàÎ∑".
    Jan  3 20:10:49 localhost Unknown[357]: 2014-01-03 20:10 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 20:10:49 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:10:49 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:10:49 localhost Unknown[357]: 2014-01-03 20:10:49.177 Install OS X Mavericks[376:8aeb] Metadata.framework [Error]: couldn't get the client port
    Jan  3 20:10:49 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0
    Jan  3 20:26:02 localhost Unknown[357]: 2014-01-03 20:26 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 20:26:02 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:26:02 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:26:02 localhost Unknown[357]: 2014-01-03 20:26:02.760 Install OS X Mavericks[376:8aeb] Metadata.framework [Error]: couldn't get the client port
    Jan  3 20:26:02 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0
    Jan  3 20:48:47 localhost Unknown[357]: 2014-01-03 20:48 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 20:48:47 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:48:47 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:48:47 localhost Unknown[357]: 2014-01-03 20:48:47.833 Install OS X Mavericks[376:f377] Metadata.framework [Error]: couldn't get the client port
    Jan  3 20:48:47 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0
    Jan  3 20:50:34 localhost Install OS X Mavericks[376]: Sending Installer Log to Apple...
    Jan  3 20:50:34 localhost Install OS X Mavericks[376]: User Contact: [email protected]
    Jan  3 20:50:34 localhost Install OS X Mavericks[376]: User Comment: apple ID
    Jan  3 20:50:34 localhost Install OS X Mavericks[376]: User Comment: installer log
    Jan  3 20:50:34 localhost Install OS X Mavericks[376]: Unable to submit Crash Reporter log in OS Install environment!
    Jan  3 20:50:34 localhost Install OS X Mavericks[376]: Sent Installer Log to Apple.
    Jan  3 21:03:48 localhost storeagent[377]: SUAppStoreUpdateController: XPC error in __77-[SUAppStoreUpdateController _queryForAvailableUpdatesWithCompletionHandler:]_block_invoke (Error Domain=NSCocoaErrorDomain Code=4099 "Couldn’t communicate with a helper application." (The connection was invalidated from the other process or the connection name was invalid.) UserInfo=0x7f97d2c611d0 {NSDebugDescription=The connection was invalidated from the other process or the connection name was invalid.})
    Jan  3 21:03:48 localhost storeagent[377]: SUAppStoreUpdateController: Service connection invalidated!
    Jan  3 21:03:48 localhost Install OS X Mavericks[376]: IAPisaDownload: finished
    Jan  3 21:03:48 localhost Install OS X Mavericks[376]: Moved download assets into mutable product... /Volumes/Maxox/OS X Install Data/mzps4946682012419507071.pkg => /Volumes/Maxox/OS X Install Data/InstallESD.dmg.partial
    Jan  3 21:03:53 localhost Unknown[357]: 2014-01-03 21:03 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 21:03:53 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 21:03:53 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 21:03:53 localhost Unknown[357]: 2014-01-03 21:03:53.525 Install OS X Mavericks[376:10e7f] Metadata.framework [Error]: couldn't get the client port
    Jan  3 21:03:53 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0

    No gcc bug; it's a bug in your program.  From what I can tell, the char array `C' is designed to hold a string like "01:15:48" which is 8 characters.  Hence, it needs to be declared as `char C[9]' to have room for the terminating \0.  `char C[8]' causes sscanf to smash your stack, as it writes the \0 byte somewhere else.  Making that change fixed the program on my computer.  Too bad valgrind can't detect that sort of error.

  • Is this a JDK bug ?

    exception
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:789)
    is this a JDK bug ?
    whats the come around ?

    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=453568To quote the link:
    State      Closed, not a bug
    The observed behaviour is as expected - if the http server returns
    an error then getInputStream will throw an IOException.
    Note that this doesn't preclude the application from reading the
    response. The SOAP example can be modified as follows :-
    HttpURLConnection httpConn = (HttpURLConnection)_urlConnection;
    InputStream _is;
    if (httpConn.getResponseCode() >= 400) {
        _is = httpConn.getInputStream();
    } else {
         /* error from server */
        _is = httpConn.getErrorStream();
    Given that this isn't a bug in the http client I am closing this
    bug.If you are getting a 400 return code, and this exception, then it MIGHT be a bug.
    PS Post full exceptions, don't cut them off.

  • Is this a bug? What do I do?

    Hi all,
    I am running an update of a table with 2 columns from 9.2.0.8 to 8.1.7.4 over database link.
    First column (number) is updated, but second appears to be NULL. ?!
    I've tried to do it from 8.1.7 to 9.2, but with the same result.
    Then I've tried to create a table on 8.1.7 side and insert data from 9.2 into it first, but .... same: NULL values for char colums.
    Is it a bug?
    What else can I try?
    Thanks,
    Eugene

    Thanks all for replies.
    This is the oddest thing and that is why I was asking you if it's a bug. It worked this time and you will laugh at me.
    Here is what I've done:
    ============
    9.2 DB
    ============
    select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE 9.2.0.8.0 Production
    TNS for 32-bit Windows: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    desc macys_store_names;
    Name Null? Type
    PH00_PKT_CTL_NBR NOT NULL NUMBER(6)
    STORE_NAME CHAR(25)
    truncate table macys_store_names;
    Table truncated.
    select count(*) macys_rec_num
    2 from phpick00@db817
    3 where ph00_soldto like 'MACYS%'
    4 and ph00_pkt_stat_flg = ' ';
    MACYS_REC_NUM
    1292
    insert into macys_store_names
    2 SELECT ph00_pkt_ctl_nbr,
    3 substr(defa_cust_store_name,1,25) store_name
    4 FROM sales_order A,
    5 customer_store b,
    6 (
    7 select ph00_pkt_ctl_nbr,
    8 '81' business_unit_id,
    9 SUBSTR(ph00_order,1,1) sales_order_prefix,
    10 LTRIM(SUBSTR(REPLACE((ph00_order||ph00_order_sfx),' ',''),2),0) sales_order_numb
    er
    11 from phpick00@db817
    12 where ph00_soldto like 'MACYS%'
    13 and ph00_pkt_stat_flg = ' '
    14 ) c
    15 WHERE A.business_unit_id = b.business_unit_id AND
    16 A.customer_id = b.customer_id AND
    17 A.customer_store_id = b.customer_store_id AND
    18 a.business_unit_id = c.business_unit_id
    19 and a.sales_order_prefix = c.sales_order_prefix
    20 and a.sales_order_number = c.sales_order_number;
    1292 rows created.
    commit;
    Commit complete.
    select * from macys_store_names where rownum < 10;
    PH00_PKT_CTL_NBR STORE_NAME
    567384 Fort Steuben
    567385 Fort Steuben
    567386 Chesterfield MO
    567387 Chesterfield MO
    567388 Mid Rivers
    567389 Mid Rivers
    567390 White Oaks
    567391 White Oaks
    567392 Market Place IL
    9 rows selected.
    update phpick00@db817 a
    2 set ph00_mark_for = (select store_name
    3 from macys_store_names b
    4 where a.ph00_pkt_ctl_nbr = b.ph00_pkt_ctl_nbr)
    5 ,ph00_lm_user_id = 'MACYS_STOR'
    6 ,ph00_dlm = sysdate
    7 where ph00_pkt_ctl_nbr in
    8 (select ph00_pkt_ctl_nbr from macys_store_names);
    1292 rows updated.
    commit;
    ============
    8.1.7 DB
    ============
    select * from v$version;
    BANNER
    Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
    PL/SQL Release 8.1.7.4.0 - Production
    CORE 8.1.7.2.1 Production
    TNS for 32-bit Windows: Version 8.1.7.4.0 - Production
    NLSRTL Version 3.4.1.0.0 - Production
    select ph00_pkt_ctl_nbr, ph00_mark_for
    2 from phpick00
    3 where ph00_pkt_ctl_nbr in
    4 (select ph00_pkt_ctl_nbr from macys_store_names@db92)
    5 and rownum < 10
    6 ;
    PH00_PKT_CTL_NBR PH00_MARK_FOR
    566781 Queens
    566782 Queens
    566783 Brooklyn
    566784 Brooklyn
    566785 Herald Square
    566786 Herald Square
    566787 Westfarms Mall
    566788 Westfarms Mall
    566789 Manhasset
    9 rows selected.
    Thanks,
    Eugene
    Edited by: epipko on Oct 19, 2009 10:40 AM
    Edited by: epipko on Oct 19, 2009 10:44 AM

  • Is this a JOGL bug with GLJPanel, a driver problem, or what?

    I've been trying to eliminate a problem I've been experiencing with my WorldWind Java (WWJ) application and I think I've finally taken a step torward finding the root cause, but I'm not sure whose problem it is yet or who to report it to, so I thought I'd start here and work my way up; if it can't get solved here, maybe it's a driver issue.
    The issue goes something like this:
    (Note: this only occurs when the -Dsun.java2d.opengl=true flag is set.)
    I have a GLJPanel on my primary display that works beautifully. I drag that panel onto my secondary display (slowly) and it disappears. Poof. If I position the panel halfway between screens, I can get about half of the panel to render on the secondary display, but any further than that and it disappears. I tried this on a Frame and with a GLCanvas as well and got different results: in a Frame, if I dragged the Panel over and then dragged it back into the primary display, it would disappear on the secondary display, but reappear on the primary display once it was dragged back. With the GLCanvas, I didn't have any issues.
    It's fairly simple to recreate this on my computer by using a WorldWind example that extends ApplicationTemplate and just adjusting ApplicationTemplate to use WWGLJPanels.
    However, I went so far as to reproduce the problem with a plain old GLJPanel:
    import com.sun.opengl.util.Animator;
    import java.awt.GridLayout;
    import javax.media.opengl.GL;
    import javax.media.opengl.GLAutoDrawable;
    import javax.media.opengl.GLJPanel;
    import javax.media.opengl.GLCapabilities;
    import javax.media.opengl.GLEventListener;
    import javax.swing.JFrame;
    public class TrianglePanel extends JFrame implements GLEventListener {
        public TrianglePanel() {
            super("Triangle");
            setLayout(new GridLayout());
            setSize(300, 300);
            setLocation(10, 10);
            setVisible(true);
            initTriangle();
        public static void main(String[] args) {
            TrianglePanel tPanel = new TrianglePanel();
            tPanel.setVisible(true);
            tPanel.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        private void initTriangle(){
            GLCapabilities caps = new GLCapabilities();
            caps.setDoubleBuffered(true);
            caps.setHardwareAccelerated(true);
            GLJPanel panel = new GLJPanel(caps);
            panel.addGLEventListener(this);
            add(panel);
            Animator anim = new Animator(panel);
            anim.start();
        public void init(GLAutoDrawable drawable) {
            GL gl = drawable.getGL();
            gl.glClearColor(0, 0, 0, 0);
            gl.glMatrixMode(GL.GL_PROJECTION);
            gl.glLoadIdentity();
            gl.glOrtho(0, 1, 0, 1, -1, 1);
        public void display(GLAutoDrawable drawable) {
            GL gl = drawable.getGL();
            gl.glClear(GL.GL_COLOR_BUFFER_BIT);
            gl.glBegin(GL.GL_TRIANGLES);
            gl.glColor3f(1, 0, 0);
            gl.glVertex3f(0.0f, 0.0f, 0);
            gl.glColor3f(0, 1, 0);
            gl.glVertex3f(1.0f, 0.0f, 0);
            gl.glColor3f(0, 0, 1);
            gl.glVertex3f(0.0f, 1.0f, 0);
            gl.glEnd();
            gl.glFlush();
        public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {}
        public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {}
    }If it helps, the video card I'm using is a Quadro NVS 140M.

    steffi wrote:
    This is a bug that I'm seeing in Apple's new MobileMe service and I believe they are making use of the System Messaging Server product. (Sun Java(tm) System Messaging Server 6.3-6.03)I can't comment on what Apple may or may not be using ;)
    Specifically I have an email that's MIME HTML and what I observe is that lines >999 chars are being truncated so in my case the nested table doesn't render correctly because a whole chunk of the HTML itself on this line has been truncated.The email client generating the message is broken and Messaging Server is 'fixing' the email by truncating the line to the maximum line-length as per the standards.
    Refer to "2.1.1. Line Length Limits" in http://www.faqs.org/rfcs/rfc2822.html
    Regards,
    Shane.

  • Creating an alias - is this a bug or what??

    Please let me know if this is a bug or a "feature"!!! As I understand things (a few changes since OS 6.0.4 in 1989...) there are 4 ways to create an alias when one is in a folder. For example, I'm in my Applications folder with 300 items in that folder. Generally I put my aps into a folder with the name of that app and the word folder. (I used to use ƒ but read that Unix doesn't appreciate that symbol)-- OK back to the main point: ALIAS creation - 4 ways I know to do this:
    1. I right-click and choose Make Alias with the folder or icon selected
    2. I hold down the option and command keys and select the folder or icon, then drag it just a bit and voilà - an alias.
    3. I choose the folder or icon I want and then do cmd-L to create the alias.
    4. I go to the file menu after selecting the folder and choose Make Alias
    GREAT all 4 work (is there a 5th way?)--
    BUT when I do choices 3 or 4, then instead of everything staying in place, the alias is created and then the screen jumps to the very top - to the "A" or numbered labeled folders / apps!
    NOTE: My apps folder has the view choice to ARRANGE BY NAME. If I change this to none - then cmd-L or Make Alias just makes the alias in-place!
    BUT choices 1 and 2 also keep the window of my apps folder in the same location EVEN WHEN IN THE ARRANGE BY NAME mode.
    Again - is this a bug or a feature? Certainly annoying to make an alias and then have to go back and search for the alias... And note: If arrangement is SNAP TO GRID then choices 3 and 4 for creating an alias also have the screen jump to the "A" folders, i.e. the BUG!
    Any comments appreciated - this is a real pain as I keep many of my folders organized by SNAP TO GRID or ORGANIZE BY NAME.
    Best regards,
    Steve Schulte
    Saturday 22 May 2010

    Thanks for your fast reply! There are 3 issues and I'm mainly concerned with #3- but I likely confused everyone with my long post - so let me try this:
    1. Moving Apps out of the Applications folder: You are right, it is best to keep the apps in the Applications folder. Especially Apple's applications - for the update and maybe other reasons and I do that.
    2. Creating an alias and where does the alias go: That's right, it has the same name and just the word alias added to the end so YES it stays right next to the original (especially when the folder is in the Arrange by Name view). So no problem there - mine is the same.
    3. Third issue is really my only concern: The act of creating an alias by cmd-L or the menu: In a window that scrolls, i.e. with many apps or several apps with large icon size (I should mention I'm talking in ICON view here)-- when you make an alias, the window automatically scrolls to the very top. So if you have a folder with 300 apps in it and you make an alias of ZEBRA FOLDER, then the alias is in the correct place but the window scrolls to the top (AARDVARK Folder or whatever).
    *ADDITIONAL INFO:* After several restarts - yup, this is now NOT happening very often. Mostly the window is NOT scrolling so perhaps I'm wasting your time and others with this post. Let me recheck the next few days and then post again- especially if the problem has disappeared... which it seems is the case... (I should remember to restart 2x when anything unusual before posting!)
    Regards,
    Steve
    Saturday 22 May 2010

  • Calendar adds an extra day when creating an event in ios 8.1.3. Is this a known bug?

    When i add an event using the calendar app in ios 8.1.3, it adds an extra day to the event when using a range of dates. I am able to recreate the problem. when entering the event i select a range of dates and confirm that it is what i want. after submitting, i verify and it has added an extra day at the end. Is this a known bug or am i on my own? Help please. this is annoying having to check each event after entering it.

    Ive reset, restored and this is the second phone. Thought it maybe a wonky screen that would shift it while setting dates. THe only thing I can think of is that I am syncing with google calendar, but it only happens when setting events in ios not if i do it from google website on desktop PC.

  • In logic Pro, when I open up an audio track and load an audio file, there is no sound. I will finally get a sound out of one of the audio tracks after opening at least 5 of them alternately. Is anyone familiar with this kind of bug? It's really frustratin

    In logic Pro, when I open up an audio track or software track and load an audio file/loop or software file loop, there is no sound. I will finally get a sound out of one of the audio or software tracks after opening at least 5 of them alternately. Is anyone familiar with this kind of bug? It's really frustrating as this takes much time to complete work.
    os x, Mac OS X (10.6)

    I'm not sure I follow your words Fuzzynormal. You've helped by offering the insight that my issue in Logic Pro 9 is not a bug but a feature. But fell short of enlightenment by being a judge of character and of how one should interact in this forum. You insinuate that I haven't tried to solve the issue on my own when in fact I have. These forums are always my last resort. You further suggest that I am complaining. This is not a complaint. It is a genuine issue that I cannot figure out. Then you think that Brazeca is holding my hand and being a nice guy. Brazeca is helping people like me who might not be as adept at using Logic Pro as probably you are.This community forum was established to raise questions, answers and dicussion to help Apple's customers better undertand their operating systems and related issues. You are doing a disservice by not contributing positively and by trying to make this forum what you want it to be. You may have all the time in the world to try figuring out stuff but we are not all like you. We all have different schedules and different levels of understanding. And that is what this forum is for - to help people move forward. If you can't contribute positively then keep silent. And by the way, you say to "read the words that are printed down to explain to you how that works" what words are you talking about? Why don't you be of some help instead of trying to own this forum. 

  • Is this a know bug with the Mail server?

    This is a bug that I'm seeing in Apple's new MobileMe service and I believe they are making use of the System Messaging Server product. (Sun Java(tm) System Messaging Server 6.3-6.03)
    Specifically I have an email that's MIME HTML and what I observe is that lines >999 chars are being truncated so in my case the nested table doesn't render correctly because a whole chunk of the HTML itself on this line has been truncated.
    The message fails to render correctly in their Web Client but also in Mail.app when it's accessed over IMAP4

    steffi wrote:
    This is a bug that I'm seeing in Apple's new MobileMe service and I believe they are making use of the System Messaging Server product. (Sun Java(tm) System Messaging Server 6.3-6.03)I can't comment on what Apple may or may not be using ;)
    Specifically I have an email that's MIME HTML and what I observe is that lines >999 chars are being truncated so in my case the nested table doesn't render correctly because a whole chunk of the HTML itself on this line has been truncated.The email client generating the message is broken and Messaging Server is 'fixing' the email by truncating the line to the maximum line-length as per the standards.
    Refer to "2.1.1. Line Length Limits" in http://www.faqs.org/rfcs/rfc2822.html
    Regards,
    Shane.

  • Is this a Weblogic bug?

    Hi all,
    Please help....I really don't know what to do with this problem as have try all methods that I know of...
    I suspect is this a Welogic bug? It happens intermittently too.....
    Need help on this weird exception i have. My stateless session EJB attempts to
    create an transaction when the exception occurs. My server is WL8.1 powered by
    Jdk1.4.2_05. My server is not using SSL, so find it strange that some certification
    is involved.
    java.lang.ExceptionInInitializerError
    at javax.crypto.Cipher.a(DashoA6275)
    at javax.crypto.Cipher.getInstance(DashoA6275)
    at com.entrust.toolkit.security.provider.AnsiRandom1.engineSetSeed(AnsiRandom1.java)
    at java.security.SecureRandom.setSeed(SecureRandom.java:369)
    at weblogic.transaction.internal.XidImpl.seedRandomGenerator(XidImpl.java:378)
    at weblogic.transaction.internal.XidImpl.create(XidImpl.java:266)
    at weblogic.transaction.internal.TransactionManagerImpl.getNewXID(TransactionManagerImpl.java:1719)
    at weblogic.transaction.internal.TransactionManagerImpl.internalBegin(TransactionManagerImpl.java:249)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.internalBegin(ServerTransactionManagerImpl.java:303)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.begin(ServerTransactionManagerImpl.java:259)
    at weblogic.ejb20.internal.MethodDescriptor.startTransaction(MethodDescriptor.java:255)
    at weblogic.ejb20.internal.MethodDescriptor.getInvokeTx(MethodDescriptor.java:377)
    at weblogic.ejb20.internal.EJBRuntimeUtils.createWrapWithTxs(EJBRuntimeUtils.java:325)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:64)
    at care2.preEnlisteeMgmt.business.assignmInstr.assignmInstrMgr.AssignmInstrMgrBean_xghsg0_EOImpl.setAssignmInstrs(AssignmInstrMgrBean_xghsg0_EOImpl.java:85)
    at care2.preEnlisteeMgmt.business.assignmInstr.AssignmInstrDelegate.setAssignmInstrs(AssignmInstrDelegate.java:116)
    at care2.presentation.assignmInstr.AssignmInstrDisplayAction.execute(AssignmInstrDisplayAction.java:205)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
    at javax.crypto.SunJCE_b.(DashoA6275)
    ... 33 more
    Caused by: java.security.PrivilegedActionException: java.security.InvalidKeyException:
    InitVerify error: java.security.NoSuchAlgorithmException: Cannot find any provider
    supporting RSA/ECB/PKCS1Padding
    at java.security.AccessController.doPrivileged(Native Method)
    ... 34 more
    Caused by: java.security.InvalidKeyException: InitVerify error: java.security.NoSuchAlgorithmException:
    Cannot find any provider supporting RSA/ECB/PKCS1Padding
    at iaik.security.rsa.RSASignature.engineInitVerify(RSASignature.java)
    at java.security.Signature.initVerify(Signature.java:297)
    at iaik.x509.X509Certificate.verify(X509Certificate.java)
    at iaik.x509.X509Certificate.verify(X509Certificate.java)
    at javax.crypto.SunJCE_b.c(DashoA6275)
    at javax.crypto.SunJCE_b.b(DashoA6275)
    at javax.crypto.SunJCE_s.run(DashoA6275)
    ... 35 more

    Hi all,
    Please help....I really don't know what to do with this problem as have try all methods that I know of...
    I suspect is this a Welogic bug? It happens intermittently too.....
    Need help on this weird exception i have. My stateless session EJB attempts to
    create an transaction when the exception occurs. My server is WL8.1 powered by
    Jdk1.4.2_05. My server is not using SSL, so find it strange that some certification
    is involved.
    java.lang.ExceptionInInitializerError
    at javax.crypto.Cipher.a(DashoA6275)
    at javax.crypto.Cipher.getInstance(DashoA6275)
    at com.entrust.toolkit.security.provider.AnsiRandom1.engineSetSeed(AnsiRandom1.java)
    at java.security.SecureRandom.setSeed(SecureRandom.java:369)
    at weblogic.transaction.internal.XidImpl.seedRandomGenerator(XidImpl.java:378)
    at weblogic.transaction.internal.XidImpl.create(XidImpl.java:266)
    at weblogic.transaction.internal.TransactionManagerImpl.getNewXID(TransactionManagerImpl.java:1719)
    at weblogic.transaction.internal.TransactionManagerImpl.internalBegin(TransactionManagerImpl.java:249)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.internalBegin(ServerTransactionManagerImpl.java:303)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.begin(ServerTransactionManagerImpl.java:259)
    at weblogic.ejb20.internal.MethodDescriptor.startTransaction(MethodDescriptor.java:255)
    at weblogic.ejb20.internal.MethodDescriptor.getInvokeTx(MethodDescriptor.java:377)
    at weblogic.ejb20.internal.EJBRuntimeUtils.createWrapWithTxs(EJBRuntimeUtils.java:325)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:64)
    at care2.preEnlisteeMgmt.business.assignmInstr.assignmInstrMgr.AssignmInstrMgrBean_xghsg0_EOImpl.setAssignmInstrs(AssignmInstrMgrBean_xghsg0_EOImpl.java:85)
    at care2.preEnlisteeMgmt.business.assignmInstr.AssignmInstrDelegate.setAssignmInstrs(AssignmInstrDelegate.java:116)
    at care2.presentation.assignmInstr.AssignmInstrDisplayAction.execute(AssignmInstrDisplayAction.java:205)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
    at javax.crypto.SunJCE_b.(DashoA6275)
    ... 33 more
    Caused by: java.security.PrivilegedActionException: java.security.InvalidKeyException:
    InitVerify error: java.security.NoSuchAlgorithmException: Cannot find any provider
    supporting RSA/ECB/PKCS1Padding
    at java.security.AccessController.doPrivileged(Native Method)
    ... 34 more
    Caused by: java.security.InvalidKeyException: InitVerify error: java.security.NoSuchAlgorithmException:
    Cannot find any provider supporting RSA/ECB/PKCS1Padding
    at iaik.security.rsa.RSASignature.engineInitVerify(RSASignature.java)
    at java.security.Signature.initVerify(Signature.java:297)
    at iaik.x509.X509Certificate.verify(X509Certificate.java)
    at iaik.x509.X509Certificate.verify(X509Certificate.java)
    at javax.crypto.SunJCE_b.c(DashoA6275)
    at javax.crypto.SunJCE_b.b(DashoA6275)
    at javax.crypto.SunJCE_s.run(DashoA6275)
    ... 35 more

  • Is this Oracle Reports bug – "break order property" in "group above" report

    Is this Oracle Reports bug – “break order property” in "group above" report
    Could anybody confirm that in "group above" report, we could only order the brake column's values with ""none" or "ascending" or "descending" provided by "break order property"?
    In the following example, “Dept” is brake column. Oracle Reports allows us to order values in “Dept” with “descending” provided by “break order property”:
    Dept 30
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 20
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 10
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    or “ascending” provided by “break order property”:
    Dept 10
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 20
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 30
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    I need to do:
    Dept 20
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 10
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 30
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Could I do this? Could anybody confirm that we could never ever do this, or If yes, how?
    Millions of thanks for advice.
    M.Z.
    Edited by: jielan on Sep 18, 2010 8:23 AM

    Why should that be a bug? You have a custom requirement and have to find a way to fulfill it. But, what is your actual sorting order? Do you have only this three departments? If so, you could add an addtional column in your query like
    DECODE(DEPT,  20, 1, 10, 2, 30, 3, 4) SORTINGput that column in the same group as dept and sort after that new column.

  • Problem with Arabic font: In certain contexts, when writing Arabic with vowel signs (fatha, damma, kasra, sukun) a sequence of sukun   fatha/damma etc. would reverse automatically. Is this a known bug?

    Problem with Arabic font: In certain contexts, when writing Arabic with vowel signs (fatha, damma, kasra, sukun) a sequence of sukun + fatha/damma etc. would reverse automatically. Is this a known bug?
    Example: عَيْنٌ
    would automatically convert to عَيُنْ
    Funnily, it doesn't seem to happen here, but it does when entering text in a web interface (using Firefox, font Bayan) and when using Text Edit.
    Seems to be a problem of a specific font, as e.g. Arial MS Unicode works fine. Any hints?
    Thank you!

    Musaafir wrote:
    I've no idea how i can even start using arabic vowels on Microsoft Word for Apple
    You can't do Arabic on MS Word for Mac.  This app has never supported RTL scripts, so you need to use something else.  Mellel is best, but Pages 5, TextEdit, Nisus Writer, Open/LibreOffice should work OK.
    You switch between languages by using the "flag" menu at the top right of the screen or by using the keyboard shortcuts apple/command plus space.  Go to system prefs/keyboard/shortcuts to make sure that is activated.
    To see which key does what, you use Keyboard  Viewer.
    http://support.apple.com/kb/PH13746
    You place vowels on letters by typing the key for the vowel after the key for the letter.  The vowels are on the option/alt keys, option/alt + a gives you َ

  • Download Presenter trial in your website but when I published object scorm in zip file miss some important file such as ismmanifest.xml. In fact Moodle upload is wrong! Is it a bug or what? Thank you.

    Download Presenter trial in your website but when I published object scorm in zip file miss some important file such as ismmanifest.xml. In fact Moodle upload is wrong! Is it a bug or what? Thank you.

    You can publish Adobe Presenter Projects to your Moodle LMS (this will work for many other LMS’ too.)Please follow the steps as mentioned in the blog linked below.
    https://blogs.adobe.com/presenter/2013/08/step-by-step-how-do-i-publish-my-presenter-cours e-to-my-learning-management-system.html#more-6260
    Regards,
    Rajeev.

  • Hope this is a bug in JDeveloper....... help needed....

    There's no reply for the following msg... i need help.... is this a bug in JDeveloper?
    Jdeveloper team(Visual Java editor) - anybody watching this?
    i have been waiting for the reply for the past 4 days, so
    Is anyone having suggestion, whether it will work or not? is there any additional feature for this? Every project is multilingual, not only my project, every project is supporting internationalization, so at design time it should support for resource bundle usage. am using Jdev 9.0.5 version, client side we are using swing, so i need a solution for this, does jdev supports this? if so whats d way? if it is not supporting y cant it be considered as a bug? it should be user friendly, so y this can be added as a new feature in the forthcoming version,
    waiting for ur suggestions, whatever it is juz explain,
    Thanking in advance...

    Hi,
    not sure why you hope that this is a bug?
    Swing does support internationalization and JDeveloper supoorts this. However, as usual in Swing, you have to develop it as tehre is no automated way for doing this.
    There is some help provided by ADF in that e..g. BC4J supports message bundles for translating Strings.
    See: http://java.sun.com/docs/books/tutorial/i18n/index.html
    Also, straight from the JDeveloper product page on OTN, though not directly Swing related
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/jdev10g_multilingual.pdf
    Frank

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

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

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

Maybe you are looking for

  • Error during transfer of tax Condition JIN1

    Dear All, As I create a Sales Order with ref. to Quotation,I get a message in the status Bar mentioned in the Subject line. Condition type JIN1 is not maintained in the Sales Document Pricing Procedure but mentioned in the Tax procedure. Detailed Err

  • Print system variable 71 in page header section

    Hi all, I have captured system variable 71 in order to print customer's CST and VAT numberin PLD of A/R Invoice. But it is printing I instead of vat number. I have confirmed the number by View - system information in Tax screen of accounting tab of b

  • ITunes vs iPhone 6 Plus storage

    I Have had the 4S, 5S, and now the 6 plus and I noticed that in iTunes it shows 2 oddities. in iTunes it shows 1.81 GB available on my 6 plus and total photo usage of 1.28 GB with 621 photos but when I look at available space in the settings on my ph

  • Reading computer name and windows loginname

    Hi All: I want to read windows login name and the computer name of the person browsing the web page. How I can do this in jsp/servlet/javascript. I tried in applet but I cannot read that because of no permissions. Thanks,

  • PhoneGap - The sdk location provided for WebOS is not valid

    I am trying to get the phone PhoneGap Building Setting correct. I am getting an error "The sdk location provided for WebOS is not valid, Please verify your setting. I don't know what path I should select. I have the sdk software installed and Dreamwe