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.
Summary: | a lot of "shared access to .../test3_testLinesBeforeFunction.h@54457628:16b336c (probably opened for writing)." exceptions | ||
---|---|---|---|
Product: | cnd | Reporter: | soldatov <soldatov> |
Component: | -- Other -- | Assignee: | Vladimir Voskresensky <vv159170> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | jtulach |
Priority: | P2 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 208160 | ||
Bug Blocks: | |||
Attachments: | log |
Description
soldatov
2012-02-07 08:39:32 UTC
Created attachment 115500 [details]
log
very strange how file test3_testLinesBeforeFunction.h with extension can be passed to sniffy resolver I will add diagnostic to find problematic resolver more logging http://hg.netbeans.org/cnd-main/rev/b23f3a104af6 New line is INFO [org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl]: IOException in resolver FileElement(fast-check(patterns:[UNCOVER, 9, false], ) null Result:text/x-osscoverage INFO [org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl]: IOException in resolver FileElement(fast-check(patterns:[PREVISE, 9, false], ) null Result:text/x-ossstatic INFO [org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl]: IOException in resolver FileElement(fast-check(patterns:[DISCOVER, 10, false], ) null Result:text/x-ossdynamic Thanks! saveFromKitToStream is called from CloneableEditorSupport$1SaveAsReader.run(CloneableEditorSupport.java:1079) and previous operation is os = new BufferedOutputStream(cesEnv().outputStream()); which write-lock environment/fileobject => nobody can call getMimeType for file object associated with document from saveFromKitToStream which looks like very strong restriction. another issue: mix of annotation based registration and layer based registrations causes incorrect ordering of resolvers (In reply to comment #9) > another issue: > mix of annotation based registration and layer based registrations causes > incorrect ordering of resolvers filed as issue #208160 (In reply to comment #8) > saveFromKitToStream is called from > CloneableEditorSupport$1SaveAsReader.run(CloneableEditorSupport.java:1079) > and previous operation is > os = new BufferedOutputStream(cesEnv().outputStream()); > which write-lock environment/fileobject > => > nobody can call getMimeType for file object associated with document from > saveFromKitToStream > which looks like very strong restriction. filed as issue #208161 workaround which does not use fo.getMimeType http://hg.netbeans.org/cnd-main/rev/b2bea9e1cc98 I checked that the fix does not break blacktie functionality. Transplanted to balcktie: rev/af073fc07686 verified in latest build transplanted into release71_fixes http://hg.netbeans.org/releases/rev/e1339e44d83a Integrated into 'releases', will be available in build *201202102200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/e1339e44d83a User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #208111 - a lot of "shared access to ..." exceptions - do not use fo.getMimeType (see issue #208161) (transplanted from b2bea9e1cc985208a40046c915e9effeab233855) verified in 7.1.1 rc1 build (20120214) verified in NB 7.0.1 patch3 candidate (build 201205021427) |