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 183315 - A org.netbeans.modules.parsing.spi.ParseException exception has occurred. However, the system should continue working without further problems. Click Show Details for the stack trace.
Summary: A org.netbeans.modules.parsing.spi.ParseException exception has occurred. How...
Status: RESOLVED INCOMPLETE
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-01 01:02 UTC by _ pandajava
Modified: 2010-12-02 16:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ pandajava 2010-04-01 01:02:07 UTC
Moving  from 'Code Completion' tab to  'Formatting' tab  on 'Option' panel.

Here the complete exception : 
java.lang.NullPointerException
	at org.netbeans.modules.editor.lib2.view.EditorBoxView.getViewIndexFirst(EditorBoxView.java:381)
	at org.netbeans.modules.editor.lib2.view.ViewUpdates.removeUpdate(ViewUpdates.java:311)
	at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.removeUpdate(PriorityDocumentListenerList.java:99)
	at javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:243)
	at org.netbeans.editor.BaseDocument.fireRemoveUpdate(BaseDocument.java:1634)
	at org.netbeans.editor.BaseDocumentEvent.undo(BaseDocumentEvent.java:291)
	at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:69)
	at javax.swing.undo.CompoundEdit.undo(CompoundEdit.java:46)
	at org.netbeans.editor.BaseDocument$AtomicCompoundEdit.undo(BaseDocument.java:2164)
	at org.netbeans.editor.BaseDocument.breakAtomicLock(BaseDocument.java:1828)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:317)
	at org.netbeans.modules.php.editor.indent.PHPFormatter.prettyPrint(PHPFormatter.java:247)
	at org.netbeans.modules.php.editor.indent.PHPFormatter.reformat(PHPFormatter.java:120)
	at org.netbeans.modules.csl.core.GsfReformatTask$1.run(GsfReformatTask.java:102)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:151)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:135)
	at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:190)
Caused: org.netbeans.modules.parsing.spi.ParseException
	at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:192)
	at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:103)
	at org.netbeans.modules.csl.core.GsfReformatTask.reformat(GsfReformatTask.java:92)
	at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:547)
	at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:314)
	at org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:317)
	at org.netbeans.modules.editor.indent.api.Reformat.reformat(Reformat.java:151)
	at org.netbeans.modules.php.editor.indent.FmtOptions$CategorySupport$1.run(FmtOptions.java:530)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:311)
	at org.netbeans.modules.php.editor.indent.FmtOptions$CategorySupport.refreshPreview(FmtOptions.java:525)
	at org.netbeans.modules.options.indentation.IndentationPanel.prefsChange(IndentationPanel.java:332)
	at org.netbeans.modules.options.indentation.IndentationPanel.<init>(IndentationPanel.java:169)
	at org.netbeans.modules.options.indentation.IndentationPanelController.getComponent(IndentationPanelController.java:98)
	at org.netbeans.modules.options.indentation.FormattingPanel.propertyChange(FormattingPanel.java:166)
	at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:188)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
	at org.netbeans.modules.options.indentation.CustomizerSelector.setSelectedCustomizer(CustomizerSelector.java:126)
	at org.netbeans.modules.options.indentation.FormattingPanel.categoryChanged(FormattingPanel.java:338)
	at org.netbeans.modules.options.indentation.FormattingPanel.access$200(FormattingPanel.java:75)
	at org.netbeans.modules.options.indentation.FormattingPanel$5.actionPerformed(FormattingPanel.java:248)
	at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1240)
	at javax.swing.JComboBox.setSelectedItem(JComboBox.java:567)
	at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:603)
	at org.netbeans.modules.options.indentation.FormattingPanel.propertyChange(FormattingPanel.java:153)
	at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:188)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
	at org.netbeans.modules.options.indentation.CustomizerSelector.setSelectedMimeType(CustomizerSelector.java:104)
	at org.netbeans.modules.options.indentation.FormattingPanel.languageChanged(FormattingPanel.java:332)
	at org.netbeans.modules.options.indentation.FormattingPanel.access$100(FormattingPanel.java:75)
	at org.netbeans.modules.options.indentation.FormattingPanel$4.actionPerformed(FormattingPanel.java:238)
	at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1240)
	at javax.swing.JComboBox.setSelectedItem(JComboBox.java:567)
	at org.netbeans.modules.options.indentation.FormattingPanel.setSelector(FormattingPanel.java:136)
	at org.netbeans.modules.options.indentation.FormattingPanelController.update(FormattingPanelController.java:115)
	at org.netbeans.modules.options.TabbedController.handleTabSwitched(TabbedController.java:204)
	at org.netbeans.modules.options.TabbedController.access$200(TabbedController.java:75)
	at org.netbeans.modules.options.TabbedController$2.stateChanged(TabbedController.java:102)
	at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:400)
	at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:253)
	at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116)
	at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50)
	at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:599)
	at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:574)
	at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mousePressed(BasicTabbedPaneUI.java:3622)
	at javax.swing.plaf.synth.SynthTabbedPaneUI$1.mousePressed(SynthTabbedPaneUI.java:279)
	at java.awt.Component.processMouseEvent(Component.java:6260)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6028)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4460)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:133)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Petr Pisl 2010-05-17 14:36:30 UTC
I need more info and also reproducible case would be great. At least info about the NetBeans version and build.
Comment 2 henriquemoody 2010-12-02 16:29:22 UTC
(In reply to comment #1)
> I need more info and also reproducible case would be great. At least info about
> the NetBeans version and build.

This problem happened to me:

Ubuntu 10.10 + Netbeans 6.9.1
I was using the "PHP Zend Framework" plugin (I was editing a view file). I've had to disable the plugin from Zend Framework because I could not work.

Mac OSX 10.6.4 + Netbeans 7.0beta
I was using the "PHP Smarty Framework" plugin. I was simply writing:

{php}
$this->_tpl_vars['content'] = ob_get_clean();
{/php}