[jira] [Commented] (NETBEANS-1140) Can't insert or delete records on non-default schema

2019-08-12 Thread Tapio Koskinen (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16905238#comment-16905238
 ] 

Tapio Koskinen commented on NETBEANS-1140:
--

I think this is caused by call to getSchemaName(i) returning empty string in 
org.netbeans.modules.db.dataview.meta.DBMetaDataFactory#generateDBTables 
(https://github.com/apache/netbeans/blob/master/ide/db.dataview/src/org/netbeans/modules/db/dataview/meta/DBMetaDataFactory.java).

PostgreSQL's JDBC code and related discussion: 
[https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSetMetaData.java]
 [https://github.com/pgjdbc/pgjdbc/issues/538]

Maybe schema name could be parsed from the query string? Seems a bit 
hacky/non-trivial, but something like that is already done for Oracle in 
DBMetaDataFactory#adjustTableMetadata().

> Can't insert or delete records on non-default schema
> 
>
> Key: NETBEANS-1140
> URL: https://issues.apache.org/jira/browse/NETBEANS-1140
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 9.0
>Reporter: Tapio Koskinen
>Priority: Minor
>
> There are some tables in "quartz" schema (PostgreSQL database). Other tables 
> are in "public" schema. In Services-component I can right click those tables, 
> select "View Data..." and table's data is displayed. If I now try to delete a 
> selected record, I get error "Error code 0, SQL state 42P01 Delete command 
> filed: ERROR: relation "qrtz_cron_triggers" does not exist Position: 13"
> PostgreSQL's log has:
> 2018-08-15 09:56:03.795 EEST [16908] ERROR: relation "qrtz_cron_triggers" 
> does not exist at character 13
> 2018-08-15 09:56:03.795 EEST [16908] STATEMENT: DELETE FROM 
> "qrtz_cron_triggers" WHERE "sched_name" = $1 AND "trigger_name" = $2 AND 
> "trigger_group" = $3 
> 2018-08-15 09:56:03.795 EEST [16908] LOG: execute S_1: ROLLBACK
>  
> So it seems that the schema name is not included in the query when issuing 
> delete statements. Using "Insert Record(s)" functionality fails with the same 
> "relation does not exist" error.
> Records can be removed manually if schema name is included.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-1140) Can't insert or delete records on non-default schema

2019-08-12 Thread Tapio Koskinen (JIRA)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tapio Koskinen updated NETBEANS-1140:
-
Affects Version/s: 11.1

> Can't insert or delete records on non-default schema
> 
>
> Key: NETBEANS-1140
> URL: https://issues.apache.org/jira/browse/NETBEANS-1140
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 9.0, 11.1
>Reporter: Tapio Koskinen
>Priority: Minor
>
> There are some tables in "quartz" schema (PostgreSQL database). Other tables 
> are in "public" schema. In Services-component I can right click those tables, 
> select "View Data..." and table's data is displayed. If I now try to delete a 
> selected record, I get error "Error code 0, SQL state 42P01 Delete command 
> filed: ERROR: relation "qrtz_cron_triggers" does not exist Position: 13"
> PostgreSQL's log has:
> 2018-08-15 09:56:03.795 EEST [16908] ERROR: relation "qrtz_cron_triggers" 
> does not exist at character 13
> 2018-08-15 09:56:03.795 EEST [16908] STATEMENT: DELETE FROM 
> "qrtz_cron_triggers" WHERE "sched_name" = $1 AND "trigger_name" = $2 AND 
> "trigger_group" = $3 
> 2018-08-15 09:56:03.795 EEST [16908] LOG: execute S_1: ROLLBACK
>  
> So it seems that the schema name is not included in the query when issuing 
> delete statements. Using "Insert Record(s)" functionality fails with the same 
> "relation does not exist" error.
> Records can be removed manually if schema name is included.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Comment Edited] (NETBEANS-1140) Can't insert or delete records on non-default schema

2019-08-12 Thread Tapio Koskinen (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16905238#comment-16905238
 ] 

Tapio Koskinen edited comment on NETBEANS-1140 at 8/12/19 2:09 PM:
---

I think this is caused by call to getSchemaName() returning empty string in 
org.netbeans.modules.db.dataview.meta.DBMetaDataFactory#generateDBTables 
([https://github.com/apache/netbeans/blob/master/ide/db.dataview/src/org/netbeans/modules/db/dataview/meta/DBMetaDataFactory.java]).

PostgreSQL's JDBC code and related discussion: 
[https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSetMetaData.java]
 [https://github.com/pgjdbc/pgjdbc/issues/538]

Maybe schema name could be parsed from the query string? Seems a bit 
hacky/non-trivial, but something like that is already done for Oracle in 
DBMetaDataFactory#adjustTableMetadata().


was (Author: milanka):
I think this is caused by call to getSchemaName(i) returning empty string in 
org.netbeans.modules.db.dataview.meta.DBMetaDataFactory#generateDBTables 
(https://github.com/apache/netbeans/blob/master/ide/db.dataview/src/org/netbeans/modules/db/dataview/meta/DBMetaDataFactory.java).

PostgreSQL's JDBC code and related discussion: 
[https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSetMetaData.java]
 [https://github.com/pgjdbc/pgjdbc/issues/538]

Maybe schema name could be parsed from the query string? Seems a bit 
hacky/non-trivial, but something like that is already done for Oracle in 
DBMetaDataFactory#adjustTableMetadata().

> Can't insert or delete records on non-default schema
> 
>
> Key: NETBEANS-1140
> URL: https://issues.apache.org/jira/browse/NETBEANS-1140
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 9.0
>Reporter: Tapio Koskinen
>Priority: Minor
>
> There are some tables in "quartz" schema (PostgreSQL database). Other tables 
> are in "public" schema. In Services-component I can right click those tables, 
> select "View Data..." and table's data is displayed. If I now try to delete a 
> selected record, I get error "Error code 0, SQL state 42P01 Delete command 
> filed: ERROR: relation "qrtz_cron_triggers" does not exist Position: 13"
> PostgreSQL's log has:
> 2018-08-15 09:56:03.795 EEST [16908] ERROR: relation "qrtz_cron_triggers" 
> does not exist at character 13
> 2018-08-15 09:56:03.795 EEST [16908] STATEMENT: DELETE FROM 
> "qrtz_cron_triggers" WHERE "sched_name" = $1 AND "trigger_name" = $2 AND 
> "trigger_group" = $3 
> 2018-08-15 09:56:03.795 EEST [16908] LOG: execute S_1: ROLLBACK
>  
> So it seems that the schema name is not included in the query when issuing 
> delete statements. Using "Insert Record(s)" functionality fails with the same 
> "relation does not exist" error.
> Records can be removed manually if schema name is included.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Closed] (NETBEANS-2416) Incorrect warning: "Field x is not used"

2019-05-17 Thread Tapio Koskinen (JIRA)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tapio Koskinen closed NETBEANS-2416.

Resolution: Cannot Reproduce

This does not happen anymore, even though "nothing" has changed.

> Incorrect warning: "Field x is not used"
> 
>
> Key: NETBEANS-2416
> URL: https://issues.apache.org/jira/browse/NETBEANS-2416
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.0
> Environment: Product Version: Apache NetBeans IDE 11.0 (Build 
> incubator-netbeans-release-404-on-20190319)
> Java: 12; OpenJDK 64-Bit Server VM 12+33
> Runtime: OpenJDK Runtime Environment 12+33
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
>Reporter: Tapio Koskinen
>Priority: Major
>
> Given the following class Netbeans warns "Field VALUE is not used":
>  
>  {{public class Test {}}
>  {{    private static final String VALUE = "-";}}
> {{    @SuppressWarnings(VALUE)}}
>  {{    public void test() {}}}
>  {{}}}
>   
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-2416) Incorrect warning: "Field x is not used"

2019-04-16 Thread Tapio Koskinen (JIRA)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tapio Koskinen updated NETBEANS-2416:
-
Description: 
Given the following class Netbeans warns "Field VALUE is not used":
 
 {{public class Test {}}
 {{    private static final String VALUE = "-";}}

{{    @SuppressWarnings(VALUE)}}
 {{    public void test() {}}}
 {{}}}
  

 

  was:
Given the following class Netbeans warns "Field VALUE is not used":
{{ }}
 
{{public class Test {}}
{{    private static final String VALUE = "-";}}

{{    @SuppressWarnings(VALUE)}}
{{    public void test() {}}
{{    }}}
{{}}}
 

 


> Incorrect warning: "Field x is not used"
> 
>
> Key: NETBEANS-2416
> URL: https://issues.apache.org/jira/browse/NETBEANS-2416
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.0
> Environment: Product Version: Apache NetBeans IDE 11.0 (Build 
> incubator-netbeans-release-404-on-20190319)
> Java: 12; OpenJDK 64-Bit Server VM 12+33
> Runtime: OpenJDK Runtime Environment 12+33
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
>Reporter: Tapio Koskinen
>Priority: Major
>
> Given the following class Netbeans warns "Field VALUE is not used":
>  
>  {{public class Test {}}
>  {{    private static final String VALUE = "-";}}
> {{    @SuppressWarnings(VALUE)}}
>  {{    public void test() {}}}
>  {{}}}
>   
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Created] (NETBEANS-2416) Incorrect warning: "Field x is not used"

2019-04-16 Thread Tapio Koskinen (JIRA)
Tapio Koskinen created NETBEANS-2416:


 Summary: Incorrect warning: "Field x is not used"
 Key: NETBEANS-2416
 URL: https://issues.apache.org/jira/browse/NETBEANS-2416
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 11.0
 Environment: Product Version: Apache NetBeans IDE 11.0 (Build 
incubator-netbeans-release-404-on-20190319)
Java: 12; OpenJDK 64-Bit Server VM 12+33
Runtime: OpenJDK Runtime Environment 12+33
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
Reporter: Tapio Koskinen


Given the following class Netbeans warns "Field VALUE is not used":
{{ }}
 
{{public class Test {}}
{{    private static final String VALUE = "-";}}

{{    @SuppressWarnings(VALUE)}}
{{    public void test() {}}
{{    }}}
{{}}}
 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Created] (NETBEANS-1140) Can't insert or delete records on non-default schema

2018-08-15 Thread Tapio Koskinen (JIRA)
Tapio Koskinen created NETBEANS-1140:


 Summary: Can't insert or delete records on non-default schema
 Key: NETBEANS-1140
 URL: https://issues.apache.org/jira/browse/NETBEANS-1140
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 9.0
Reporter: Tapio Koskinen


There are some tables in "quartz" schema (PostgreSQL database). Other tables 
are in "public" schema. In Services-component I can right click those tables, 
select "View Data..." and table's data is displayed. If I now try to delete a 
selected record, I get error "Error code 0, SQL state 42P01 Delete command 
filed: ERROR: relation "qrtz_cron_triggers" does not exist Position: 13"

PostgreSQL's log has:

2018-08-15 09:56:03.795 EEST [16908] ERROR: relation "qrtz_cron_triggers" does 
not exist at character 13
2018-08-15 09:56:03.795 EEST [16908] STATEMENT: DELETE FROM 
"qrtz_cron_triggers" WHERE "sched_name" = $1 AND "trigger_name" = $2 AND 
"trigger_group" = $3 
2018-08-15 09:56:03.795 EEST [16908] LOG: execute S_1: ROLLBACK

 

So it seems that the schema name is not included in the query when issuing 
delete statements. Using "Insert Record(s)" functionality fails with the same 
"relation does not exist" error.

Records can be removed manually if schema name is included.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-967) java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location

2018-07-31 Thread Tapio Koskinen (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16563583#comment-16563583
 ] 

Tapio Koskinen commented on NETBEANS-967:
-

Does not seem to happen anymore with "Apache NetBeans IDE 9.0 (Build 
incubator-netbeans-release-334-on-20180708)".

> java.awt.IllegalComponentStateException: component must be showing on the 
> screen to determine its location
> --
>
> Key: NETBEANS-967
> URL: https://issues.apache.org/jira/browse/NETBEANS-967
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 9.0
> Environment: Windows10
>Reporter: Jacco van Weert
>Priority: Major
>
> A lot of times I get this exception when CTRL+click to a method or browsing 
> through the sourcecode.
> It's terrible!
>  
>  
> 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)
>  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
>  at java.awt.EventQueue.access$500(EventQueue.java:97)
>  at java.awt.EventQueue$3.run(EventQueue.java:709)
>  at java.awt.EventQueue$3.run(EventQueue.java:703)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
>  at java.awt.EventQueue$4.run(EventQueue.java:733)
>  at java.awt.EventQueue$4.run(EventQueue.java:731)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
>  at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
>  at 
> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
> [catch] at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
>  at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
>  at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
>  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
>  at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-967) java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location

2018-06-24 Thread Tapio Koskinen (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16521863#comment-16521863
 ] 

Tapio Koskinen commented on NETBEANS-967:
-

I have multiple monitors, but choosing "PC screen only" has no effect on the 
issue. Also moving the Netbeans window or resizing it doesn't seem to have an 
effect either.

> java.awt.IllegalComponentStateException: component must be showing on the 
> screen to determine its location
> --
>
> Key: NETBEANS-967
> URL: https://issues.apache.org/jira/browse/NETBEANS-967
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 9.0
> Environment: Windows10
>Reporter: Jacco van Weert
>Priority: Major
>
> A lot of times I get this exception when CTRL+click to a method or browsing 
> through the sourcecode.
> It's terrible!
>  
>  
> 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)
>  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
>  at java.awt.EventQueue.access$500(EventQueue.java:97)
>  at java.awt.EventQueue$3.run(EventQueue.java:709)
>  at java.awt.EventQueue$3.run(EventQueue.java:703)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
>  at java.awt.EventQueue$4.run(EventQueue.java:733)
>  at java.awt.EventQueue$4.run(EventQueue.java:731)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
>  at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
>  at 
> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
> [catch] at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
>  at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
>  at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
>  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
>  at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-967) java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location

2018-06-21 Thread Tapio Koskinen (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16519227#comment-16519227
 ] 

Tapio Koskinen commented on NETBEANS-967:
-

I have the same error when I switch editor tab. The error seems to occur only 
after I have focused back to Netbeans, and only on the first tab switch. If I 
open some menu before switching a tab the error does not occur.

Ctrl-click produces the error too.

When starting Netbeans for the first time I was prompted to use some internal 
JDK and I approved.

Product Version: Apache NetBeans IDE Dev (Build 
incubator-netbeans-release-302-on-20180517)
Java: 1.8.0_162; Java HotSpot(TM) 64-Bit Server VM 25.162-b12
Runtime: Java(TM) SE Runtime Environment 1.8.0_162-b12
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
 

> java.awt.IllegalComponentStateException: component must be showing on the 
> screen to determine its location
> --
>
> Key: NETBEANS-967
> URL: https://issues.apache.org/jira/browse/NETBEANS-967
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 9.0
> Environment: Windows10
>Reporter: Jacco van Weert
>Priority: Major
>
> A lot of times I get this exception when CTRL+click to a method or browsing 
> through the sourcecode.
> It's terrible!
>  
>  
> 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)
>  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
>  at java.awt.EventQueue.access$500(EventQueue.java:97)
>  at java.awt.EventQueue$3.run(EventQueue.java:709)
>  at java.awt.EventQueue$3.run(EventQueue.java:703)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
>  at java.awt.EventQueue$4.run(EventQueue.java:733)
>  at java.awt.EventQueue$4.run(EventQueue.java:731)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
>  at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
>  at 
> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
> [catch] at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
>  at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
>  at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
>  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
>  at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists