Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 190699 - [launching] Crash of Eclipse when setting up new application profile task
Summary: [launching] Crash of Eclipse when setting up new application profile task
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Igor Alelekov CLA
QA Contact:
URL:
Whiteboard: closed460
Keywords:
: 202341 215107 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-03 13:44 EDT by Dennis Fleurbaaij CLA
Modified: 2016-05-05 10:59 EDT (History)
7 users (show)

See Also:


Attachments
Workspace log file (31.78 KB, text/plain)
2007-06-07 19:21 EDT, Dennis Fleurbaaij CLA
no flags Details
patch (1.99 KB, patch)
2007-08-22 09:55 EDT, Igor Alelekov CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Fleurbaaij CLA 2007-06-03 13:44:54 EDT
Situation: We have a maven2/testng managed project. We're busy getting Eclipse to do performance profiling. As there is no TestNG profile possibility, we're trying to get 3.3RC2 to run the TestNG main function.

If we go to profile -> open profile dialog -> doubleclick java application -> and then "main class" "search" Eclipse crashes hard, no logs, no message, just process termination.
Comment 1 Darin Wright CLA 2007-06-04 12:56:10 EDT
What plug-ins do you have in your workbench? By default, profile is disabled in the Eclipse SDK (as no profiler is provided).
Comment 2 Darin Wright CLA 2007-06-04 12:59:26 EDT
Does the same happen from the debug or run dialog? (I was not able to reproduce using the SDK).
Comment 3 Dennis Fleurbaaij CLA 2007-06-04 15:26:46 EDT
Version: 3.3.0
Build id: I20070525-1350

Lots of plugins installed, most are from the eclipse europa repository and nearly all are java related: BIRT, JPA, DTP, EMFT, TPTP, UML2, WTP. The only others are maven2, testng en subclipse. (all latest versions from their online repositories)

The run and debug have no problems running the configuration. Furthermore we've played around a bit and the error is consistent, whichever button, check or option is used in the profile tab. The crash only happens after you select the lauch settings (so opening the profile screen without actually doubleclicking on the configuration is fine).

We have however found some interesting files. Please see the .log file at the end of this message for what seems to be the crash log.

Some files below:

[configuration\.settingsorg.eclipse.ui.ide]
#Sun Jun 03 10:52:56 CEST 2007
RECENT_WORKSPACES_PROTOCOL=2
MAX_RECENT_WORKSPACES=5
SHOW_WORKSPACE_SELECTION_DIALOG=false
eclipse.preferences.version=1
RECENT_WORKSPACES=D\:\\Stocketeer\\Workspace,C\:\\Users\\Dennis\\workspace

[eclipse.ini]
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx256m

[In workspace found a .log file]
!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2007-06-04 21:15:55.760
!MESSAGE unknown protocol: d
!STACK 0
java.net.MalformedURLException: unknown protocol: d
	at java.net.URL.<init>(Unknown Source)
	at java.net.URL.<init>(Unknown Source)
	at java.net.URL.<init>(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
	at org.eclipse.tptp.platform.iac.administrator.internal.common.AdminUtil.parseFile(AdminUtil.java:79)
	at org.eclipse.tptp.platform.iac.administrator.internal.common.AdminUtil.isConfigurationValid(AdminUtil.java:643)
	at org.eclipse.tptp.platform.iac.administrator.internal.startstop.AutoStartStop.startIAC(AutoStartStop.java:81)
	at org.eclipse.hyades.internal.execution.local.control.NodeImpl.connect(NodeImpl.java:283)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.insecureConnect(BaseConnectUtil.java:369)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.connect(BaseConnectUtil.java:255)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.connect(BaseConnectUtil.java:540)
	at org.eclipse.tptp.platform.common.ui.trace.internal.util.PDCoreUtil.profileConnect(PDCoreUtil.java:827)
	at org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.PIDelegateHelper$JVMVersionDetector.run(PIDelegateHelper.java:473)
	at java.lang.Thread.run(Unknown Source)
!SESSION 2007-06-04 21:16:42.156 -----------------------------------------------
eclipse.buildId=I20070525-1350
java.version=1.6.0_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=nl_NL
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.core.resources 2 10035 2007-06-04 21:16:43.787
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.core.resources 2 1 2007-06-04 21:17:03.663
!MESSAGE Skipping builder 'org.hibernate.eclipse.console.hibernateBuilder' for project 'Stocketeer-EJB3'. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.



Comment 4 Darin Wright CLA 2007-06-05 11:03:38 EDT
What VM are you using to run Eclipse?
Comment 5 Tod Creasey CLA 2007-06-05 11:10:42 EDT
And which Vista? I just tried this with RC3 on Vista business and I had no such problem.
Comment 6 Dennis Fleurbaaij CLA 2007-06-05 12:45:01 EDT
Java:
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)

Vista:
Microsoft Windows [Version 6.0.6000]

We initially didn't have any problems either. But it all started after playing around with the new Eclipse. I'm guessing that the "java.net.MalformedURLException: unknown protocol: d" isn't something that happens normally (d isn't a legal protocol).

We'll try RC3 and let you know.
Comment 7 Dennis Fleurbaaij CLA 2007-06-05 12:45:39 EDT
Vista Business btw
Comment 8 Darin Wright CLA 2007-06-05 13:02:15 EDT
The exception from comment#3 should be reported to TPTP - but I don't think that it caused the hard crash. Are there any VM logs in your eclipse directory associated with the crash? Generally, a hard crash is associated with some sort of exception in a dll.
Comment 9 Darin Wright CLA 2007-06-05 13:19:39 EDT
As well, does the same problem happen if you run Eclipse on a 1.4 or 1.5 VM?
Comment 10 Dennis Fleurbaaij CLA 2007-06-07 19:20:44 EDT
Tried the 3.3RC3, same problem. Started out from new empty workspace, imported project, added above modules, predded the profiler button, add new java application and boom, crash.

Again nothing to work with, I've uploaded the complete .log file for you.
Comment 11 Dennis Fleurbaaij CLA 2007-06-07 19:21:34 EDT
Created attachment 70605 [details]
Workspace log file
Comment 12 Brendan CLA 2007-06-30 19:42:44 EDT
I just had the same problem on a laptop running Windows XP.  I've tried several things and I believe I was able to fix it by moving the location of my TPTP installation to a directory without any whitespace.

Originally, when I tried to profile a Java application, TPTP attempted to get the possible profile configurations and then crashed without any warning.
Comment 13 Michael Rennie CLA 2007-07-17 23:25:02 EDT
Dennis, is it possible that you also have TPTP in place with spaces in the path?
If you try the fix mentioned in comment 12 does it work?
Comment 14 Michael Rennie CLA 2007-07-18 10:21:02 EDT
Email from Dennis:

"Michael,
 
Yes there was a space in the path. Some initial testing solved the problem here when moving eclipse to a non-space path. 
 
Sorry for the late reply.
 
Regards"

moving to TPTP for comment
Comment 15 Eugene Chan CLA 2007-07-18 10:53:30 EDT
This seems to be an IAC configuraiton problem on Eclipse path with space.
Comment 16 Miha Vitorovic CLA 2007-08-06 08:55:52 EDT
Can I just point out that a space in path name is pretty common on Windows? It seems like an easy fix - do you think you'll be able to fix it soon?
Comment 17 Igor Alelekov CLA 2007-08-22 09:55:58 EDT
Created attachment 76649 [details]
patch

Hi Samson,
Could you please check the patch in?
Thanks.
Comment 18 Samson Wai CLA 2007-08-23 10:24:43 EDT
Patch checked in.
Comment 19 Igor Alelekov CLA 2007-08-23 10:55:51 EDT
Resolving as fixed
Comment 20 Jonathan West CLA 2007-09-07 15:02:12 EDT
*** Bug 202341 has been marked as a duplicate of this bug. ***
Comment 21 Jonathan West CLA 2007-09-07 16:40:39 EDT
Does this patch fix the underlying 'spaces in path' problem, or merely hide the symptom? Is this fixed in another bug? The parseFile(...) method in AdminUtil doesn't handle spaces w/ Java 6 and Vista and throws the MalformedURLException (and yet handles them fine w/ Java 6 XP).

The solution to the path spaces bug is to change the
'document = builder.parse(fileName);'
line to 'document = builder.parse(new File(filename));' in AdminUtil. Putting the filename in File form allows the parser to locate it properly.
Comment 22 Igor Alelekov CLA 2007-09-10 09:59:43 EDT
The patch fixes the provided symptom - crash of Eclipse.
Problem with spaces in Eclipse's path could fixed by the #201819.
Comment 23 Daniel Spiewak CLA 2007-10-05 12:54:26 EDT
I'm still experiencing this problem using TPTP 4.4.1 (total Eclipse crash).
Comment 24 Jonathan West CLA 2008-01-22 15:54:04 EST
*** Bug 215107 has been marked as a duplicate of this bug. ***
Comment 25 Paul Slauenwhite CLA 2009-06-30 12:07:59 EDT
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.