Opened 11 years ago
Last modified 9 years ago
#219 new defect
netbeans 4.1, Problem writing to output file
Reported by: | Yuri Dario | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Enhanced |
Component: | general | Version: | 1.6.0 Build 27 GA5 |
Severity: | medium | Keywords: | |
Cc: |
Description
Netbeans 4.1 has issues when handling output files generated by ant build. The build is correctly performed, the output log is correctly written to TMP directory, but ide cannot read it back.
IDE log reports this:
Annotation: Problem writing to output file
java.io.IOException: Size failed (Invalid handle)
at sun.nio.ch.FileChannelImpl.size0(Native Method)
at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:330)
at org.netbeans.core.output2.FileMapStorage.getReadBuffer(FileMapStorage.java:284)
at org.netbeans.core.output2.AbstractLines.getText(AbstractLines.java:102)
at org.netbeans.core.output2.OutputDocument.getText(OutputDocument.java:160)
at javax.swing.text.PlainView.getLineWidth(PlainView.java:668)
at javax.swing.text.PlainView.updateDamage(PlainView.java:539)
at javax.swing.text.PlainView.insertUpdate(PlainView.java:451)
at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1607)
at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1866)
at org.netbeans.core.output2.OutputDocument.fireDocumentEvent(OutputDocument.java:380)
at org.netbeans.core.output2.OutputDocument.access$200(OutputDocument.java:41)
at org.netbeans.core.output2.OutputDocument$1.run(OutputDocument.java:311)
at org.openide.util.Mutex.doEvent(Mutex.java:1024)
at org.openide.util.Mutex.readAccess(Mutex.java:239)
at org.netbeans.core.output2.OutputDocument.stateChanged(OutputDocument.java:308)
at org.netbeans.core.output2.OutputDocument.actionPerformed(OutputDocument.java:373)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
[catch] at javax.swing.Timer$DoPostEvent.run(Timer.java:244)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:667)
at java.awt.EventQueue.access$300(EventQueue.java:96)
at java.awt.EventQueue$2.run(EventQueue.java:628)
at java.awt.EventQueue$2.run(EventQueue.java:626)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:637)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
The temporary file is still locked after build, e.g. I cannot delete it from command line.
The issue is stil valid for Netbeans 6.9.1; while now the console shows more logging, the issue is still here.