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 224118 - AssertionError: AsyncCompletionTask: query=org.netbeans.modules.javafx2.editor.FXMLCompletion2$Q@1bc6943: query.query(): Result set not finished by resultSet.finish()
Summary: AssertionError: AsyncCompletionTask: query=org.netbeans.modules.javafx2.edito...
Status: RESOLVED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-21 04:56 UTC by williambacchi
Modified: 2013-01-05 02:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 196822


Attachments
stacktrace (439 bytes, text/plain)
2012-12-21 04:56 UTC, williambacchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description williambacchi 2012-12-21 04:56:41 UTC
Build: NetBeans IDE Dev (Build 201212170919)
VM: Java HotSpot(TM) Client VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-ea-b15
OS: Linux

Stacktrace: 
java.lang.AssertionError: AsyncCompletionTask: query=org.netbeans.modules.javafx2.editor.FXMLCompletion2$Q@1bc6943: query.query(): Result set not finished by resultSet.finish()
   at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:225)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2043)
Comment 1 williambacchi 2012-12-21 04:56:43 UTC
Created attachment 129607 [details]
stacktrace
Comment 2 Svata Dedic 2013-01-04 08:23:27 UTC
FXInclude should better handle illegal characters in the URI:

java.net.URISyntaxException: Illegal character in path at index 114: file:/media/3130-3332/Grafologia/AnalisiGrafologicaMorettianaFX/src/bacchi/william/analisigrafologicamorettianafx/"/>
Comment 3 Svata Dedic 2013-01-04 14:39:04 UTC
The error 
java.lang.IndexOutOfBoundsException: end=4 > length()=3
	at org.netbeans.lib.editor.util.CharSequenceUtilities.checkIndexesValid(CharSequenceUtilities.java:535)


which is actually the one causing the reported exception is a duplicate of issue #224269.

I fixed the log entry that is printed from FileSystems when the include URL is just partial - does not cause an exception itself, but pollutes the log file.
Comment 4 Svata Dedic 2013-01-04 14:57:39 UTC
Changeset: 82a6f7cc73ba
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2013-01-04 15:57
Message:   Improved handling of unfinished attributes. Avoided info exceptions in log file on incomplete include paths
Comment 5 Quality Engineering 2013-01-05 02:31:58 UTC
Integrated into 'main-golden', will be available in build *201301050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/82a6f7cc73ba
User: Svata Dedic <sdedic@netbeans.org>
Log: Issue #224118 - AssertionError: AsyncCompletionTask: query=org.netbeans.modules.javafx2.editor.FXMLCompletion2$Q@1bc6943: query.query(): Result set not finished by resultSet.finish(): fixed
Improved handling of unfinished attributes. Avoided info exceptions in log file on incomplete include paths