Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 179489

Summary: FileNotFoundException is thrown when profiling the Eclipse Workbench
Product: z_Archived Reporter: Vitaly Provodin <vitaly.a.provodin>
Component: TPTPAssignee: Guru Nagarajan <guru.nagarajan>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P1 CC: asaf.yaffe, pradnya.bhoite
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard: closed471

Description Vitaly Provodin CLA 2007-03-27 07:48:12 EDT
Build ID: I20070323-1616

Steps To Reproduce:
 1. Start Eclipse on clean workspace
 2. Launch Agent Controller
 3. Launch profiling by Run/Open Profile Dialog
 4. Create a new "Eclipse Application" configuration
 5. Specify Runtime JRockit JRE
 6. Switch to the Monitor tab
 7. Click at Java Profiling (java 5.0 +)
 8. Execution Time Analysis is checked by default
 9. Press the Profile button
10. When the Confirm Perspective Switch dialog appears, press Yes

In result the Console view will contain the following

!SESSION 2007-03-27 18:17:38.402 -----------------------------------------------
eclipse.buildId=I20070323-1616
java.version=1.5.0_06
java.vendor=BEA Systems, Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.sdk.ide (1)/' (1)/dev.properties' -pdelaunch
Command-line arguments:  -product org.eclipse.sdk.ide -data C:\TEMP\ws/../runtime-New_configuration(1) (1)/' -dev 'file:C:/TEMP/ws/.metadata/.plugins/org.eclipse.pde.core/New_configuration (1)/dev.properties' -pdelaunch -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 4 0 2007-03-27 18:17:42.355
!MESSAGE Error reading configuration: C:\TEMP\eclipse\'file:C:\TEMP\ws\.metadata\.plugins\org.eclipse.pde.core\New_configuration\org.eclipse.osgi\.manager\.fileTableLock (The filename, directory name, or volume label syntax is incorrect)
!STACK 0
java.io.FileNotFoundException: C:\TEMP\eclipse\'file:C:\TEMP\ws\.metadata\.plugins\org.eclipse.pde.core\New_configuration\org.eclipse.osgi\.manager\.fileTableLock (The filename, directory name, or volume label syntax is incorrect)
	at java.io.RandomAccessFile.open(Ljava.lang.String;I)V(Native Method)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
	at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:30)
	at org.eclipse.osgi.storagemanager.StorageManager.lock(StorageManager.java:388)
	at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:695)
	at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:162)
	at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:139)
	at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:124)
	at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:174)
	at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:147)
	at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
	at org.eclipse.osgi.framework.internal.core.OSGi.<init>(OSGi.java:31)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:279)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:167)
	at jrockit.reflect.InitialMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
	at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:476)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1141)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1116)
	at org.eclipse.core.launcher.Main.main(Main.java:24)
java.io.FileNotFoundException: C:\TEMP\eclipse\'file:C:\TEMP\ws\.metadata\.plugins\org.eclipse.pde.core\New_configuration\config.ini (The filename, directory name, or volume label syntax is incorrect)

More information:
The bug is reproduced with JRockit:

java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
BEA JRockit(R) (build R26.3.0-32-58710-1.5.0_06-20060308-2022-win-ia32, )

It successfully works with Hotspot VMs
Comment 1 Vitaly Provodin CLA 2007-04-20 08:45:02 EDT
the same failure is observed with Hotspot VMs. This is duplicate of bug 178916

*** This bug has been marked as a duplicate of bug 178916 ***
Comment 2 Kathy Chan CLA 2010-11-18 18:55:26 EST
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.