This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270487

Summary: java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
Product: ide Reporter: aplatypus <aplatypus>
Component: CodeAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal CC: 201500812, absurditee, Achlys, ades_ok, agamez73, agostino.stucchi, ahicks76, airmax9999, Akhil170194, alejandrodxf, alexsl2303, Alniks, andersondeana, andresrada82, angilberto, Anshu_Prince, antoniocs, aplatypus, apollos109, Arkham, AsepRidwan, balasahebgarule, bht, bidyanda, BlinkLink22, canticum, cayocarlin, CDR_Xavier, cezariusz, chintan4fun, chrissylemons, cleon, clucgdc, danilovb, dankolk, dbramble, dearrudam, Deep_Aatekar, dianwdr18, diego14, diegogdias.88, diesil, diren3012, draison, duanpham, duynn1996, dwuysan, dycasxe, echo56, edjon2000, eduardogqf, ehteshamshaikh, elegito, erickescalona, ExIngus, fabioklopes, faseeh, FiruzzZ, flappyva, flavienb, flynnk, gabril_r, gerasimos54, ggghhhjjj, giorgio42, gpebrownbridge, grimlock81, gtzabari, gwimag, harshgawai, hartmann, hfmanson, hossmf, HULK91, Igor.T, Jahyr, jborz1227, jchar7879, jiai, jis, joliver, jomu, joseph74, jrocky, jyeary, khalifh, Kickstart, kingpatron, kkdilshan, lehel, Leperous, MajidKarimnia, maks_t34, marat223, mariolars, MarkoNitzsche, MartijnvIterson, Matt_Y, maya_musthopa, Metropolis, MIGDev, mkhramov, MorganX, MosesG, mtbadi39, muellermi, Musaed, nathan18pma, navyaverma, nguyendptse62666, nickdick74, Nilsito_, nmainastephen, nonkfu, Patricio_Benitez, patrickbraz, PATRICKMKV, peterhull90, pkumar.dev, ProCOmputer, renisson, richardfakenberg, rkmourya, Rohaan427, RojeruSan, ruckc, sapsist, scanti, scottpron, seba23571, sebsmail, seligor, SerumDev, shawnn.hartley, SimonVHB, simpatico, skygo, soldatov, space_center, spyman, sreenivash09, stefan60, stefan79, terje7601, Thiyagar002, thmarx, thuylinh, toben, ubilder, usman_laskar, van1998, vanob, vdtoorn, vercinstex, vvunai, Walter-Eder, websmith, willLesho6891, wizard_pong, xdrone, xHALOIDx, xjulio2008, yash9724, yeme, YMahtat, ystmio, ZacharyMHouse, ZapaDep, ziadnetcom, zian
Priority: P1    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 228297
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description aplatypus 2017-04-26 01:46:29 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.131-b11, Java(TM) SE Runtime Environment, 1.8.0_131-b11
OS: Windows 10

User Comments:
GUEST: Please check this

GUEST: editing

GUEST: Youo  are idjits

GUEST: compiling

GUEST: You are an idjit

GUEST: Opened NetBeans and then double clicked on a Java source in the Projects panel. After a long pause it opened. Not sure exactly when the excepion occurred.

GUEST: Opening a file

aplatypus: editing a Java file just after resuming work - relogged in from Windows lock-screen




Stacktrace: 
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
   at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2062)
   at java.awt.Component.getLocationOnScreen(Component.java:2036)
   at javax.swing.text.JTextComponent$InputMethodRequestsHandler.getTextLocation(JTextComponent.java:4643)
   at sun.awt.im.InputMethodContext.getTextLocation(InputMethodContext.java:278)
   at sun.awt.windows.WInputMethod$1.run(WInputMethod.java:588)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
Comment 1 aplatypus 2017-04-26 01:46:31 UTC
Created attachment 164183 [details]
stacktrace
Comment 2 Exceptions Reporter 2017-04-26 06:34:13 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 3 Exceptions Reporter 2017-05-02 03:13:15 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 4 Exceptions Reporter 2017-05-14 16:07:18 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 5 Jiri Sedlacek 2017-05-15 11:26:19 UTC
Looks like this regression in JDK 8u131 / JDK 9b124: https://bugs.openjdk.java.net/browse/JDK-8179665 .
Comment 6 muellermi 2017-05-17 08:31:18 UTC
Created attachment 164333 [details]
stacktrace

debugging
Comment 7 stefan79 2017-05-29 08:37:52 UTC
Created attachment 164424 [details]
stacktrace

Exception occured while switching between NetBeans and the Java-Debug-Program.
Comment 8 stefan79 2017-05-29 10:07:52 UTC
Created attachment 164425 [details]
stacktrace

...
Comment 9 stefan79 2017-05-30 05:46:52 UTC
Created attachment 164434 [details]
stacktrace

Started a Debug-Session.
Comment 10 Maksim Khramov 2017-06-02 10:19:55 UTC
Created attachment 164454 [details]
stacktrace

Open java class by clicking on class name
Comment 11 skygo 2017-06-14 12:34:17 UTC
Created attachment 164538 [details]
stacktrace

no sure what was going on but margin tool from editor disappears
Comment 12 zian 2017-07-23 04:22:11 UTC
(In reply to Exceptions Reporter from comment #4)
> This bug already has 50 duplicates 
> see http://statistics.netbeans.org/exceptions/detail.do?id=228297

It seems that the bug persists even in JDK version 1.8.0_141 on Windows 64-bit.
Comment 13 Rohaan427 2017-08-29 19:33:20 UTC
It persists in JDK version 1.8.0_144 as well.

Over 400 duplicates now. It happens to me multiple times per hour and makes debugging my application VERY difficult as sometimes I have to restart the IDE.
Comment 14 muellermi 2017-09-18 12:26:32 UTC
Created attachment 165142 [details]
stacktrace

stop on breakpoint
Comment 15 muellermi 2017-09-18 12:29:32 UTC
Created attachment 165143 [details]
stacktrace

hit breakpoint
Comment 16 vanob 2017-09-20 08:29:33 UTC
Created attachment 165151 [details]
stacktrace

I don't know
Comment 17 simpatico 2017-11-22 07:56:14 UTC
Created attachment 165481 [details]
stacktrace

Just seen
Comment 18 simpatico 2017-11-22 07:59:12 UTC
Created attachment 165482 [details]
stacktrace

debugging
Comment 19 simpatico 2017-11-22 10:38:16 UTC
Created attachment 165484 [details]
stacktrace

debugging
Comment 20 Exceptions Reporter 2017-12-20 04:42:17 UTC
This bug already has 800 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 21 Exceptions Reporter 2018-01-28 08:23:15 UTC
This bug already has 1000 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 22 Exceptions Reporter 2018-02-23 16:38:42 UTC
This bug already has 1450 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 23 Exceptions Reporter 2018-02-23 16:47:42 UTC
This bug already has 1450 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 24 Exceptions Reporter 2018-02-23 16:56:45 UTC
This bug already has 1450 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 25 vanob 2018-03-21 09:38:44 UTC
Created attachment 165680 [details]
stacktrace

I don't know what happened
Comment 26 vanob 2018-03-21 09:50:45 UTC
Created attachment 165681 [details]
stacktrace

Exception during redeploy
Comment 27 jyeary 2018-03-29 20:02:47 UTC
Created attachment 165695 [details]
stacktrace

Examinig ant build files.
Comment 28 Exceptions Reporter 2018-04-26 02:23:53 UTC
This bug already has 2550 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 29 Exceptions Reporter 2018-04-26 02:32:52 UTC
This bug already has 2550 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 30 Exceptions Reporter 2018-04-26 02:41:53 UTC
This bug already has 2550 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 31 Exceptions Reporter 2018-04-26 02:50:53 UTC
This bug already has 2550 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 32 giorgio42 2018-04-27 14:14:53 UTC
Created attachment 165709 [details]
stacktrace

Alt-tabbed to another application for some time