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 10904 - [Win2K NB 3.2.16] Default action of Ant-file -> Exceptions
Summary: [Win2K NB 3.2.16] Default action of Ant-file -> Exceptions
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 11106 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-04-01 06:29 UTC by javaiware
Modified: 2003-06-30 14:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
User-dir that causes the exceptions (345.98 KB, application/octet-stream)
2001-07-21 01:02 UTC, javaiware
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javaiware 2001-04-01 06:29:19 UTC
Hi,

When I double-click the Ant-file, or select the Ant-file and hit F6, or right-
click the Ant-file and select 'Execute' I get a series exceptions (see below)

Iwan

EXCEPTION 1 START --------------------------------------------------------

Sun Apr 01 01:13:15 EST 2001: java.lang.NullPointerException: Posted StackTrace
Annotation: Exception occurred in Request Processor
org.openide.util.RequestProcessor$Holder: Posted StackTrace(task 
org.netbeans.core.ModuleActions$1@578cc7 [-440, 1, -1])
        at org.openide.util.RequestProcessor$Task.createHolder
(RequestProcessor.java:288)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:98)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:71)
        at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:89)
        at org.openide.explorer.view.TreeView$ClickAdapter.mouseClicked
(TreeView.java:777)
        at java.awt.AWTEventMulticaster.mouseClicked
(AWTEventMulticaster.java:211)
        at java.awt.Component.processMouseEvent(Component.java:3720)
        at java.awt.Component.processEvent(Component.java:3546)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2230)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:912)
        at java.awt.Component.dispatchEvent(Component.java:2499)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
        at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
 
Sun Apr 01 01:13:15 EST 2001: java.lang.NullPointerException: null
java.lang.NullPointerException
        at org.openide.loaders.ExecSupport.start(ExecSupport.java:92)
        at org.openide.actions.ExecuteAction.execute(ExecuteAction.java:140)
        at org.openide.actions.ExecuteAction.execute(ExecuteAction.java:237)
        at org.openide.actions.ExecuteAction.performAction
(ExecuteAction.java:102)
        at org.openide.util.actions.NodeAction.actionPerformed
(NodeAction.java:79)
        at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:76)
        at org.openide.util.Task.run(Task.java:124)
[catch] at org.openide.util.RequestProcessor$ProcessorThread.run
(RequestProcessor.java:584)

-------------------------------------------------------- EXCEPTION 1 END

EXCEPTION 2 START --------------------------------------------------------

Sun Apr 01 01:15:24 EST 2001: java.lang.ArrayIndexOutOfBoundsException: null
java.lang.ArrayIndexOutOfBoundsException
        at 
org.netbeans.core.windows.frames.SplittedContainerImpl.componentSelected
(SplittedContainerImpl.java:422)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.setSelectedTopComponent
(DefaultContainerImpl.java:553)
        at 
org.netbeans.core.windows.frames.SplittedContainerImpl.attachComponents
(SplittedContainerImpl.java:210)
        at org.netbeans.core.windows.frames.DefaultContainerImpl.setAttached
(DefaultContainerImpl.java:438)
        at org.netbeans.core.windows.frames.DefaultContainerImpl.componentShown
(DefaultContainerImpl.java:669)
        at java.awt.AWTEventMulticaster.componentShown
(AWTEventMulticaster.java:121)
        at java.awt.Component.processComponentEvent(Component.java:3606)
        at java.awt.Component.processEvent(Component.java:3558)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Window.processEvent(Window.java:777)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
[catch] at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Window.dispatchEventImpl(Window.java:912)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
        at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)

-------------------------------------------------------- EXCEPTION 2 END

EXCEPTION 3 START --------------------------------------------------------

Sun Apr 01 01:15:40 EST 2001: java.lang.ArrayIndexOutOfBoundsException: null
java.lang.ArrayIndexOutOfBoundsException
        at 
org.netbeans.core.windows.frames.SplittedContainerImpl.updateNextAndPreviousStat
e(SplittedContainerImpl.java:134)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.registerPerformers
(DefaultContainerImpl.java:512)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.reactivateSelectedComponen
t(DefaultContainerImpl.java:613)
        at org.netbeans.core.windows.frames.DefaultContainerImpl$1.run
(DefaultContainerImpl.java:744)
        at org.netbeans.core.windows.frames.DefaultContainerImpl$3.run
(DefaultContainerImpl.java:759)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:317)
        at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)

-------------------------------------------------------- EXCEPTION 3 END

EXCEPTION 4 START --------------------------------------------------------

Sun Apr 01 01:15:46 EST 2001: java.lang.ArrayIndexOutOfBoundsException: null
java.lang.ArrayIndexOutOfBoundsException
        at 
org.netbeans.core.windows.frames.SplittedContainerImpl.updateNextAndPreviousStat
e(SplittedContainerImpl.java:134)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.registerPerformers
(DefaultContainerImpl.java:512)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.reactivateSelectedComponen
t(DefaultContainerImpl.java:613)
        at org.netbeans.core.windows.frames.DefaultContainerImpl$1.run
(DefaultContainerImpl.java:744)
        at org.netbeans.core.windows.frames.DefaultContainerImpl$3.run
(DefaultContainerImpl.java:759)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:317)
        at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)

-------------------------------------------------------- EXCEPTION 4 END

EXCEPTION 5 START --------------------------------------------------------

Sun Apr 01 01:16:17 EST 2001: java.lang.ArrayIndexOutOfBoundsException: null
java.lang.ArrayIndexOutOfBoundsException
        at 
org.netbeans.core.windows.frames.SplittedContainerImpl.updateNextAndPreviousStat
e(SplittedContainerImpl.java:134)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.registerPerformers
(DefaultContainerImpl.java:512)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.reactivateSelectedComponen
t(DefaultContainerImpl.java:613)
        at org.netbeans.core.windows.frames.DefaultContainerImpl$1.run
(DefaultContainerImpl.java:744)
        at org.netbeans.core.windows.frames.DefaultContainerImpl$3.run
(DefaultContainerImpl.java:759)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:317)
        at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)

-------------------------------------------------------- EXCEPTION 5 END
Comment 1 Jesse Glick 2001-04-02 15:41:26 UTC
It goes without saying this does not happen to me. (The
ArrayOutOfBoundsException at the bottom is a window system problem, already
fixed I believe.)

Iwan, it sounds like your IDE is seriously messed up. Can you tell me exactly
how you installed it? Are you reusing some user directory from a previous build?
If so, which one? When you look under Project | Settings | Execution Types, do
you see Ant Execution? (There is a known problem in the projects module that
execution types etc. sometimes fail to appear after importing very old projects,
e.g. from 3.1 this might happen.) Do any of these problems occur if you use a
fresh build with a fresh user directory? What about after disabling the Ant
module in your current build, re-enabling it, and restarting the IDE?
Comment 2 javaiware 2001-04-02 18:05:33 UTC
It also happens when I install NB 3.2.18 completely fresh, new user-dir. When I 
import any of my projects (3.1 or the 3.2.18 projects that I used initially). I 
will attach my user-dir that is causing the problems.
I will try the other suggestions later and report the results when I have them.

Iwan
Comment 3 javaiware 2001-04-02 18:09:53 UTC
Created attachment 946 [details]
User-dir that causes the exceptions
Comment 4 javaiware 2001-04-02 19:27:49 UTC
There wasn't any ANt execution, but after disabling and enabling there was and 
it worked.

Iwan
Comment 5 javaiware 2001-04-04 06:54:40 UTC
This is a problem with the import of older projects. Once you make the manual 
changes, it is okay. The project-import process needs to take care of this. I 
set it to P2 as this is a major problem for users that still work with 3.1 and 
will only upgrade after a GA of 3.2. Feel free to change back toP3 if you 
disagree, but I think compatibility is very important, maybe it should be P1 
(?).

Iwan
Comment 6 Jesse Glick 2001-04-04 16:16:33 UTC
Agreed. The situation is still not 100% clear but it looks that it will be
necessary to set 'version' to '1.1' on the BeanDescriptor for Ant service types
in order for the import from NB 3.1 to work correctly, and projects module will
interpret this correctly.
Comment 7 Jesse Glick 2001-04-05 14:04:33 UTC
Fixed in release32, will merge to trunk.
Comment 8 Jesse Glick 2001-04-05 16:19:56 UTC
Fixed in the trunk.
Comment 9 Jesse Glick 2001-04-06 18:43:44 UTC
*** Issue 11106 has been marked as a duplicate of this issue. ***
Comment 10 Quality Engineering 2003-06-30 14:46:12 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.