Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316080 - FileDialog makes the RCP application crashes when in Java Web Start
Summary: FileDialog makes the RCP application crashes when in Java Web Start
Status: CLOSED DUPLICATE of bug 280649
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-07 22:58 EDT by DevTRE-sp CLA
Modified: 2010-06-08 12:31 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DevTRE-sp CLA 2010-06-07 22:58:35 EDT
Build Identifier: 20100603-0907

I m tryin to deploy my RCP application via Java Web Start. The
application runs fine when I just compile and run the executable file,
but when I run it via java web start, it freeze after the application
show some dialogs (FileDialogs, ...). The application seems to work
fine, until I choose to open a file or a directory. Just after close
the FileDialog, it freeze and I have to "Force Quit".

The problem is only in Linux and JWS. The application and the dialogs works
fine in Windows.
My JVM is Java 6 update 20 (build 1.6.0_20-b02).
Im using Eclipse 3.5. The same problem happens in Eclipse 3.6. All jar files are signed. I created a sample
project (Mail) and make it open a FileDialog, and the same problem
happens.
When I execute the .jnlp with root privileges the application works fine (sudo javaws teste.jnlp).

Thanks,

Varejao 

Reproducible: Always

Steps to Reproduce:
1.Create a RCP Plugin Project (Mail template)
2.Change the code to make it open a swt FileDialog when clicking a button
FileDialog fileDialog = new FileDialog(window.getShell());
// Set the text
fileDialog.setText("Selecione um documento");
// Set filter on .txt files
fileDialog.setFilterExtensions(new String[] { "*.xml" });
// Put in a readable name for the filter
fileDialog.setFilterNames(new String[] { "Arquivos XML(*.xml)" });
// Open Dialog and save result of selection
String selected = fileDialog.open();

3.Deploy the application via java web start and try to open the FileDialog.
Comment 1 Darin Wright CLA 2010-06-08 11:42:08 EDT
Moving to SWT for comment since it sounds like a platform specific issue. Since the problem only occurs when integrated with JWS, I'm not sure this is an Eclipse issue at all.
Comment 2 Grant Gayed CLA 2010-06-08 12:31:21 EDT

*** This bug has been marked as a duplicate of bug 280649 ***