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 207446 - IllegalStateException: getInputStream invoked in AWT
Summary: IllegalStateException: getInputStream invoked in AWT
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 206311
  Show dependency tree
 
Reported: 2012-01-18 14:19 UTC by Petr Cyhelsky
Modified: 2012-01-25 16:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 184518


Attachments
stacktrace (3.25 KB, text/plain)
2012-01-18 14:19 UTC, Petr Cyhelsky
Details
stacktrace (5.61 KB, text/plain)
2012-01-18 14:53 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2012-01-18 14:19:43 UTC
Build: NetBeans IDE Dev (Build 20120118-ab16ccd545a5)
VM: OpenJDK 64-Bit Server VM, 20.0-b11, OpenJDK Runtime Environment, 1.6.0_22-b22
OS: Linux

User Comments:
cyhelsky: creating new anagram sample




Stacktrace: 
java.lang.IllegalStateException: getInputStream invoked in AWT
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:219)
   at org.netbeans.spi.project.support.ant.ProjectProperties$PP.getEditablePropertiesOrNull(ProjectProperties.java:194)
   at org.netbeans.spi.project.support.ant.ProjectProperties$PP.getProperties(ProjectProperties.java:325)
   at org.netbeans.spi.project.support.ant.SequentialPropertyEvaluator$1.run(SequentialPropertyEvaluator.java:106)
   at org.netbeans.spi.project.support.ant.SequentialPropertyEvaluator$1.run(SequentialPropertyEvaluator.java:95)
   at org.openide.util.Mutex.readAccess(Mutex.java:288)
Comment 1 Petr Cyhelsky 2012-01-18 14:19:45 UTC
Created attachment 115011 [details]
stacktrace
Comment 2 Petr Cyhelsky 2012-01-18 14:53:29 UTC
Created attachment 115021 [details]
stacktrace
Comment 3 Jesse Glick 2012-01-19 22:58:45 UTC
One of the stack traces points to NewProject, which I will fix (core-main #9ec6023a72f5):

   at org.netbeans.api.project.ProjectManager.findProject(ProjectManager.java:233)
   at org.netbeans.modules.project.ui.actions.NewProject$2.run(NewProject.java:185)

The other is unrelated:

   at org.netbeans.api.project.ProjectManager.findProject(ProjectManager.java:233)
   at org.netbeans.modules.projectapi.SimpleFileOwnerQueryImplementation.getOwner(SimpleFileOwnerQueryImplementation.java:131)
   at org.netbeans.modules.projectapi.SimpleFileOwnerQueryImplementation.getOwner(SimpleFileOwnerQueryImplementation.java:97)
   at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:150)
   at org.netbeans.modules.projectapi.ProjectSharabilityQuery2.getSharability(ProjectSharabilityQuery2.java:63)
   at org.netbeans.api.queries.SharabilityQuery.getSharability(SharabilityQuery.java:180)
   at org.netbeans.modules.versioning.core.spi.VCSContext.addProjectFiles(VCSContext.java:322)
   at org.netbeans.modules.versioning.core.spi.VCSContext.forNodes(VCSContext.java:160)
   at org.netbeans.modules.versioning.core.ProjectMenuItem.createVersioningSystemItems(ProjectMenuItem.java:152)
   at org.netbeans.modules.versioning.core.ProjectMenuItem.access$400(ProjectMenuItem.java:75)
   at org.netbeans.modules.versioning.core.ProjectMenuItem$LazyMenu.addVersioningSystemItems(ProjectMenuItem.java:291)
   at org.netbeans.modules.versioning.core.ProjectMenuItem$LazyMenu.getPopupMenu(ProjectMenuItem.java:283)
   at javax.swing.plaf.basic.BasicMenuUI$Handler.mouseEntered(BasicMenuUI.java:507)
Comment 4 Petr Cyhelsky 2012-01-24 10:10:31 UTC
Please ignore the duplicates - they were incorrectly duplicated by exception reporter and are now tracked in separate issue
Comment 5 Jesse Glick 2012-01-24 12:24:19 UTC
In that case this one is fixed.
Comment 6 Quality Engineering 2012-01-25 16:29:07 UTC
Integrated into 'main-golden', will be available in build *201201250600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/44ddf54e1095
User: Jesse Glick <jglick@netbeans.org>
Log: Making it easier to reproduce "...invoked in AWT" issues such as #207446.
Just add to nbbuild/user.build.properties:
tryme.arg.log=-J-Dorg.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.level=FINE