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 88925

Summary: IllegalArgumentException is thrown if user variable contains white spaces
Product: profiler Reporter: Peter Pis <ppis>
Component: BaseAssignee: issues@profiler <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: IllegalArgumentException

Description Peter Pis 2006-11-08 13:27:20 UTC
NetBeans IDE Dev (Build 200610231500)
1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b03
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252

If user variable contains white spaces then profiler can't be used. In case of
"tmp" user variable contains them then profiler throws 

SEVERE [global]
java.lang.IllegalArgumentException: Parameter file was not normalized. Was
C:\DOCUME~1\peter\LOCALS~
1\Temp instead of C:\Documents and Settings\peter\Local Settings\Temp
        at org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:509)
        at
org.netbeans.modules.profiler.heapwalk.HeapDumpWatch.monitor(HeapDumpWatch.java:73)
        at
org.netbeans.modules.profiler.utils.ProjectUtilities.runTarget(ProjectUtilities.java:226)

Steps:
1. Select project root and invoke "Profile Project" from pupop menu.
2. Choose "Monitor Application" and push "Run" button.
Comment 1 Peter Pis 2006-11-08 13:28:02 UTC
Created attachment 35889 [details]
IllegalArgumentException
Comment 2 Tomas Hurka 2006-11-08 14:21:19 UTC
Fixed in trunk.
Comment 3 Peter Pis 2006-11-13 08:06:04 UTC
Verified in NB Build 200610231500, Profiler (Build 061110).