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 11345 - Exception Occured in Request Processor
Summary: Exception Occured in Request Processor
Status: CLOSED DUPLICATE of bug 11570
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows 95/98
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-12 13:22 UTC by Pankaj Sud
Modified: 2001-07-27 09:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception window (10.14 KB, image/gif)
2001-07-19 09:28 UTC, zohar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pankaj Sud 2001-04-12 13:22:47 UTC
When I try to start the IDE or try run debugger, I get the followign exception:

Thu Apr 12 06:14:51 CST 2001java.lang.NullPointerException: null
Exception occurred in Request Processor
java.lang.NullPointerException
        at org.netbeans.modules.debugger.CoreBreakpoint$Event.access$1
(CoreBreakpoint.java)
        at org.netbeans.modules.debugger.CoreBreakpoint.setEvent
(CoreBreakpoint.java:163)
        at org.netbeans.modules.debugger.support.BreakpointSupport.setEvent
(BreakpointSupport.java:171)
        at org.netbeans.modules.debugger.support.BreakpointSupport.setLine
(BreakpointSupport.java:286)
        at 
org.netbeans.modules.debugger.support.DebuggerSupport.createBreakpoint
(DebuggerSupport.java:212)
        at org.netbeans.modules.java.JavaEditor$15.performAction
(JavaEditor.java:1014)
        at org.openide.util.actions.CallbackSystemAction.performAction
(CallbackSystemAction.java:78)
        at org.openide.util.actions.CallableSystemAction.actionPerformed
(CallableSystemAction.java:66)
        at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:67)
        at org.openide.util.Task.run(Task.java:124)
        at org.openide.util.RequestProcessor$ProcessorThread.run
(RequestProcessor.java:562)
org.openide.util.RequestProcessor$Holder(task 
org.netbeans.core.ModuleActions$1@6a29a7 [-41360, 1])
        at org.openide.util.RequestProcessor$Task.createHolder
(RequestProcessor.java:275)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:99)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:72)
        at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:65)
        at org.openide.awt.Actions$ButtonBridge.actionPerformed
(Actions.java:295)
        at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1450)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(AbstractButton.java:1504)
        at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:378)
        at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:250)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:279)
[catch] at 
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased
(BasicMenuItemUI.java:886)
        at java.awt.Component.processMouseEvent(Component.java:3715)
        at java.awt.Component.processEvent(Component.java:3544)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2593)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:914)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:131)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Comment 1 Marian Petras 2001-04-18 19:40:08 UTC
The exception has never occured during long testing period of the debugger
module. But here is an investigation result:

The exception may be thrown e.g. after call to BreakpointSupport.setEvent(null),
that may happen when method

   CoreBreakpoint.createEvent(Debugger, String)

returns null.

The method 'CoreBreakpoint.createEvent(Debugger, String)' should be changed so
that it throws/displays exception when it reaches a state that leads to
returning null. Or at least it should be documented that it can return null and
what does it mean and the returned value should be checked against null before
it is used.

This change will not be integrated into release 3.2.
Comment 2 Marian Petras 2001-04-19 16:41:22 UTC
Steps to reproduce:

1. Uninstall modules 'JPDA Debugger' and 'Tools Debugger'.
   But let 'Debugger Core' installed!
2. Go to Source Editor and toggle a breakpoint.

An exception is thrown.
Comment 3 Jan Chalupa 2001-05-05 21:19:49 UTC
Target milestone -> 3.3
Comment 4 Marian Petras 2001-06-08 16:31:23 UTC
Unified "owner" addresses.
Comment 5 zohar 2001-07-19 09:28:39 UTC
Created attachment 1913 [details]
exception window
Comment 6 Jan Stola 2001-07-26 12:13:11 UTC
It seems that this bug is a special case of the more general
issue 11570.

*** This issue has been marked as a duplicate of 11570 ***
Comment 7 Jan Stola 2001-07-27 09:18:13 UTC
Resolution Duplicate -> Status Closed.