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 6319 - RequestProcessor should identify a Task which causes exception
Summary: RequestProcessor should identify a Task which causes exception
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-04-17 21:46 UTC by _ ttran
Modified: 2008-12-23 11:40 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 _ ttran 2000-04-17 21:46:33 UTC
when Task.run() throws uncaught exception RequestProcessor should print
the stack trace at the point when a Task is enqueued, it helps identify the
faulty Task.

Following is email communications between trung and jarda

-------------------------
From: Jaroslav Tulach <jaroslav.tulach@netbeans.com>
Subject: RE: req processor - debug suggestion
To: Trung Duc Tran <trung.duc.tran@netbeans.com>

Date: Mon, 17 Apr 2000 11:22:53 +0200

Vcelku souhlasim. Akorat znam lepsi zpusob, jak to psat.

add (Task t)
  e = new Exception ();
}


a nekdy pozdeji se udela

e.pst ();

Pak uz ani nemusi byt nastaven nejaky specialni flag. Prosim, prosim,
strc mi to do ST.
Jarda

> -----Original Message-----
> From: Trung Duc Tran [mailto:trung.duc.tran@netbeans.com]
> Sent: Monday, April 17, 2000 11:13 AM
> To: jaroslav.tulach@netbeans.com
> Subject: req processor - debug suggestion
>

>
> Jardo,
>
> zrovna mam tohle
>
> ,----
> | Exception occurred in request processor:
> | java.lang.NullPointerException
> |         at
> org.openide.loaders.InstanceDataObject$InstanceNode.run(Instan
> ceDataObject.java, Compiled Code)
> |         at org.openide.util.Task.run(Task.java, Compiled Code)
> |         at
> org.openide.util.RequestProcessor$ProcessorThread.run(RequestP
> rocessor.java, Compiled Code)
> `----
>
> Myslim si, ze by bylo dobre, aby RequestProcessor v tom pripade
> hazel take stack trace v tom okamziku kdy ten Task byl dan do
> fronty.  Takhle sice vim, ze se exception stal v InstanceDataObject
> ale je to trochu malo.  Neco takovyhohle (pseudo-code)
>
> add(Task t) {

>     Thread.dumStack(byteArrayStream);
>     ....
> }
>
> Samozrejme, ze se to ma delat jenom kdyz je definovan nejaky system
> property
>
> Co ty na to?
>
Comment 1 Marek Grummich 2000-07-25 09:26:59 UTC
Priority is changed to P4 (normal).
Comment 2 Quality Engineering 2003-07-01 15:49:22 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 3 Quality Engineering 2003-07-01 16:15:29 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.