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 44498 - J2SEProjectGenerator.createProject passes unqualified file name on Win98
Summary: J2SEProjectGenerator.createProject passes unqualified file name on Win98
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows 95/98
: P1 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks: 41537
  Show dependency tree
 
Reported: 2004-06-08 05:24 UTC by bht
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (19.11 KB, text/plain)
2004-06-08 05:25 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2004-06-08 05:24:29 UTC
Product Version       = NetBeans IDE Dev (Build
200406011800)
Operating System      = Windows 98 version 4.10
running on x86
Java; VM; Vendor      = 1.4.2_04; Java HotSpot(TM)
Client VM 1.4.2_04-b05; Sun Microsystems Inc.

When I try to create a new project with an empty
userDir then I get a
java.lang.IllegalArgumentException.
I use JDK 1.4.2_04 after the recommendation in
issue 44367 which is closed as resoved wontfix.


How to reproduce:

- Start NetBeans with an empty userDir, with that
EMPTY user dir in the parameter:
  <yourProgramPath here>\netbeans.exe -userdir
<your userDir here>
- Tools|Setup Wizard|Separate Windows Mode, Finish
- Maximise all NetBeans windows
- Menu|File|New Project
- Click in the left pane "Projects with Existing
Sources"
  There is an empty directory matching the Test
Packages Folder entry in the
  dialog "New Java Project with Existing Sources"
- Check check box "Set as Main Project"
- Press button "OK"

Expected behavior: I don't know, cannot navigate
beyond this point

Actual behavior:

java.lang.IllegalArgumentException: Parameter file
was not normalized. Was java-test instead of
C:\prog\netbeans\bin\java-test
    at
org.netbeans.spi.project.support.ant.ReferenceHelper.createForeignFileReference(ReferenceHelper.java:602)
    at
org.netbeans.modules.java.j2seproject.J2SEProjectGenerator$1.run(J2SEProjectGenerator.java:92)
    at
org.openide.util.Mutex.writeAccess(Mutex.java:298)
    at
org.netbeans.modules.java.j2seproject.J2SEProjectGenerator.createProject(J2SEProjectGenerator.java:77)
    at
org.netbeans.modules.java.j2seproject.ui.wizards.NewJ2SEProjectWizardIterator.instantiate(NewJ2SEProjectWizardIterator.java:100)
    at
org.openide.loaders.TemplateWizard$Brigde2Iterator.instantiate(TemplateWizard.java:957)
    at
org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:549)
    at
org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:465)
    at
org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:351)
    at
org.netbeans.modules.project.ui.actions.NewProject.actionPerformed(NewProject.java:55)
    at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at
javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
    at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
    at
java.awt.Component.processMouseEvent(Component.java:5100)
    at
java.awt.Component.processEvent(Component.java:4897)
    at
java.awt.Container.processEvent(Container.java:1569)
    at
java.awt.Component.dispatchEventImpl(Component.java:3615)
    at
java.awt.Container.dispatchEventImpl(Container.java:1627)
    at
java.awt.Component.dispatchEvent(Component.java:3477)
    at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at
java.awt.Container.dispatchEventImpl(Container.java:1613)
    at
java.awt.Window.dispatchEventImpl(Window.java:1606)
    at
java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 1 bht 2004-06-08 05:25:38 UTC
Created attachment 15541 [details]
log file
Comment 2 Jesse Glick 2004-06-08 16:22:28 UTC
David can you take a look? Probably some buggy Win98 file chooser? I
don't think anyone in QA checks anything on Win98, so who knows what
could be broken.
Comment 3 David Konecny 2004-06-09 09:55:02 UTC
phrebejk, tzezula,

any File instance created from user entered data must be normalized by
FileUtil.normalizeFile. This bug was caused by external source roots
not being normalized.

I fixed that in:
src/org/netbeans/modules/java/j2seproject/ui/wizards/PanelSourceFolders.java;
new revision: 1.8; previous revision: 1.7