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 134857

Summary: Exception at org.netbeans.modules.editor.indent.IndentImpl.reformat
Product: obsolete Reporter: Jan Horvath <jhorvath>
Component: Facelets 1.1.xAssignee: _ potingwu <potingwu>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=15428
Issue Type: DEFECT Exception Reporter: 15428

Description Jan Horvath 2008-05-12 14:00:10 UTC
Build: NetBeans IDE 6.0 (Build 200711261600)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05
OS: Windows XP, 5.1, x86
User comments: I use nbfaceletssupport-0-6!
STACKTRACE: (first 10 lines)
java.lang.Exception
        at org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:269)
        at org.netbeans.modules.editor.indent.FormatterImpl.reformat(FormatterImpl.java:161)
        at org.netbeans.modules.web.jsf.simplesnippets.JSPPaletteUtilities.insert(JSPPaletteUtilities.java:67)
        at org.netbeans.modules.web.jsf.simplesnippets.JSPPaletteUtilities.insert(JSPPaletteUtilities.java:45)
        at org.netbeans.modules.web.jsf.simplesnippets.SimpleSnippet.handleTransfer(SimpleSnippet.java:48)
        at org.openide.text.QuietEditorPane$DelegatingTransferHandler.importData(QuietEditorPane.java:249)
        at javax.swing.TransferHandler.importData(TransferHandler.java:745)
        at javax.swing.TransferHandler$DropHandler.drop(TransferHandler.java:1468)
        at java.awt.dnd.DropTarget.drop(DropTarget.java:430)
        at javax.swing.TransferHandler$SwingDropTarget.drop(TransferHandler.java:1193)
Comment 1 Jan Horvath 2008-05-12 15:34:22 UTC
annoying exception -> P2
Comment 2 _ potingwu 2008-05-12 17:26:17 UTC
Please giving the reproducible steps, I cannot reproduce this issue. Thanks!
Comment 3 _ potingwu 2008-05-12 19:04:41 UTC
I have refined the usage of org.netbeans.editor.Formatter.reformat by following the required pattern. And fix several
race-condition issues here. Please try again either by building your own binaries or grab it from my Blog.

    http://blogs.sun.com/poting/entry/build_and_install_facelets_support

If you can add you reproducible steps here, then that would be even better. Thanks!