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.
Build: NetBeans IDE 8.0.1 (Build 201408251540) VM: OpenJDK 64-Bit Server VM, 24.65-b04, OpenJDK Runtime Environment, 1.7.0_65-b32 OS: Linux User Comments: sylo: After saving a file netbeans crushes and i need to kill the process Stacktrace: java.lang.IllegalArgumentException: bad position: 725 at javax.swing.text.JTextComponent.setCaretPosition(JTextComponent.java:1678) at de.markiewb.netbeans.plugins.eclipse.formatter.EclipseFormatterUtilities$EclipseFormatterTask.run(EclipseFormatterUtilities.java:239) at de.markiewb.netbeans.plugins.eclipse.formatter.EclipseFormatterUtilities$1.run(EclipseFormatterUtilities.java:96) at org.netbeans.modules.progress.ui.RunOffEDTImpl.runOffEventDispatchThread(RunOffEDTImpl.java:102) at org.netbeans.api.progress.ProgressUtils.runOffEventDispatchThread(ProgressUtils.java:92) at de.markiewb.netbeans.plugins.eclipse.formatter.EclipseFormatterUtilities.reFormatWithEclipse(EclipseFormatterUtilities.java:90)
Created attachment 150226 [details] stacktrace
Created attachment 151379 [details] stacktrace Write a unit test class, but just added in 2 method signatures i.e.: @Test public void testFilterSetsOrderableToTrueCorrectly() throws Exception { } @Test public void testFilterSetsOrderableToFalseCorrectly() throws Exception { } Then did a CTRL+S and this exception happened.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=213102
Benno, you're running a background thread but accessing Swing component from there, you should always access it only from EDT.
(In reply to Ondrej Vrabec from comment #4) > Benno, you're running a background thread but accessing Swing component from > there, you should always access it only from EDT. Will be fixed in https://github.com/markiewb/eclipsecodeformatter_for_netbeans/issues/57
(In reply to markiewb from comment #5) > (In reply to Ondrej Vrabec from comment #4) > > Benno, you're running a background thread but accessing Swing component from > > there, you should always access it only from EDT. > > Will be fixed in > https://github.com/markiewb/eclipsecodeformatter_for_netbeans/issues/57 Hopefully fixed in version 1.8.0.6 of the plugin. Wait a few days until it is verified and available at the plugin center