Bug 36493 - WSAD 5.0 crashed when working with JAWS 4.5
Summary: WSAD 5.0 crashed when working with JAWS 4.5
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows 2000
: P3 major with 6 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2003-04-15 08:47 EDT by Felix Wong CLA
Modified: 2004-02-11 17:29 EST (History)
8 users (show)

See Also:


Attachments
.log (85.76 KB, text/plain)
2003-04-16 13:23 EDT, Felix Wong CLA
no flags Details
.log with 4 issues: 2 opening help, 1 creating project, 1 closing Eclipse (23.29 KB, text/plain)
2003-04-23 12:20 EDT, Matthew King CLA
no flags Details
Log using the 1.4.1.02 Sun VM creating a java project (29.11 KB, text/plain)
2003-04-23 13:02 EDT, Tod Creasey CLA
no flags Details
Java core dump - wsad 5.0 Jaws 4.51 (6.04 KB, text/plain)
2003-04-29 03:36 EDT, Luca Davanzo CLA
no flags Details
Eclipse 21 crash dialog messages - jaws 4.51 (497 bytes, text/plain)
2003-04-29 03:51 EDT, Luca Davanzo CLA
no flags Details
.log for crash without java access bridge while saving a .java file (10.57 KB, text/plain)
2003-06-02 08:50 EDT, Matthew King CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Wong CLA 2003-04-15 08:47:13 EDT
An user reported that WSAD 5.0 (AFAIK is powered by Eclipse 2.0.1) crashed when
using the new project wizard with JAWS 4.5.  According to that user, this is
100% reproducible even on Eclipse 2.1.
Comment 1 DJ Houghton CLA 2003-04-15 09:53:22 EDT
We're going to need a little more information.

How does Eclipse "crash"? Java VM dump? Dialog saying that there is an error?
Is there any information in the .log file in the workspace/.metadata directory?
Is there anything special in the user's setup or is it just a straight Win32 
install on a Win2K machine?
What Locale are they running with?

We have done a lot of testing with Jaws (both versions 4.0 and 4.5) and have 
not seen these problems.
Comment 2 Felix Wong CLA 2003-04-16 13:21:23 EDT
Here is the reply from the originator:

I am running Eclipse 2.1 with a vanila install on the Win 2k standard client for
e-business on a ThinkPad T23.
I have tried running Eclipse with JAWS 4.0.103, 4.5.138, and 4.51.119. I have
not had any crashes with JAWS 4.0. But, I have had crashes with JAWS 4.5 and
4.51. Also, JAWS 4.5 and 4.51 are silent on the main menu bar, they do not read
the focus whereas JAWS 4.0 reads the focus reliably.
I have had dialogues pop-up with errors. Here is text from a couple of them:
graphic 725  Error Creating Java Project
An error occurred while creating the Java projectgraphic 673  Reason:
 Problems encountered while setting project description.
OK Details >>
graphic 725  Help Error
Help cannot be displayed.  The embedded application server could not run
helpgraphic 673  web application.  Check the log for details.
OK

And, in deed, the log has lots of detail. Here is my .log:  

I had first installed WSAD 5.0 and had the same experience. Then I unstalled
WSAD and tried Eclipse to see if the behavior was the same. When it was, I was
doing some reading and stumbled across a post on the java accessibility list
from someone else having the same problem. He recommended trying JAWS 4.0 ...
and it works.

There were significant changes in JAWS java support between 4.0 and 4.5. Now,
Freedom Scientific recommends JRE 1.4. If you can tell me how to run it on 1.4,
I'd give it a try.
Comment 3 Felix Wong CLA 2003-04-16 13:23:04 EDT
Created attachment 4616 [details]
.log

The .log file is attached
Comment 4 Tod Creasey CLA 2003-04-21 15:05:14 EDT
Looking at the stack trace it looks like you are using jdk1.3.0_02. Eclipse 
supports JDK 1.3.1 and higher - this crash may not be JAWs related at all if 
you are using an incompatible JDK. 

Please see if this occurs with 1.3.1 or later. We have tested using JAWS 4.0 
and 4.5 using 1.3.1 vms with no problem.

If you want to run with a 1.4 or higher vm just replace the one in your 
eclipse/jre directory or your classpath with a higher version one. 

For JAWS it is likely using a VM you have on your path if there is one. Be 
sure that any java.exe on your classpath is a late enough version.

To check if this is the case open a command prompt and execute java -version. 
If there is a java on your classpath you will know the version then.
Comment 5 Tod Creasey CLA 2003-04-21 15:15:30 EDT
Here is the reference to the required VM for JAWS 4.5 - 
http://www.freedomscientific.com/fs_products/software_jaws45newfea.asp
Comment 6 Nick Edgar CLA 2003-04-22 15:01:57 EDT
Although Freedom Scientific specifies the use of Java SDK 1.4.0 and Java Access 
Bridge 1.0.2 with JAWS 4.5, these requirements are specifically for 
applications implemented using AWT/Swing.  Since Eclipse is implemented using 
SWT, which uses native widgets, JAWS can be used with Eclipse on Java SDK 1.3.1 
(or the corresponding JRE).

I strongly suspect the failures above were caused either due to the use of 
1.3.0, or due to having conflicting JREs on your system path.  The error log 
shows that it was unable to find net.dll (which it should have been able to 
even if you were running 1.3.0).  Since the loadlibrary call is in a static 
method in java.net.InetAddress, this caused it to fail the initialization of 
InetAddress, which caused the subsequent NoClassDefFoundErrors 
(UniversalUniqueIdentifier refers to InetAddress).

Note that you can run eclipse with a specific VM using the -vm command line 
option.  For example:
eclipse -vm c:\jre1.3.1\bin\javaw.exe

I recommend trying this with a 1.3.1 or 1.4.x VM.
Please let us know whether this fixes the problem for you.
Comment 7 Matthew King CLA 2003-04-23 12:15:51 EDT
I have implemented all suggestions with no change in results.

I removed all JRE's listed in control panel. I removed all system path entries 
that pointed to a java.exe or javaw.exe. Now, as far as JAWS is concerned, 
there is no java on my system. I do have two JDKs installed: jdk1.3.0_02 and 
j2sdk1.4.1_02. Neither JDK is accessible via the system path at a command 
prompt and neither JDK has the access bridge installed (although that shouldn't 
matter as already pointed out). 

I am now starting Eclipse 2.1.0 using a shortcut with the following target:

D:\eclipse\eclipse.exe -vm C:\j2sdk1.4.1_02\jre\bin\javaw.exe -data 
D:\Projects\eclipse\MyWorkspace

When I run with JAWS 4.0, all works well. When I run with JAWS 4.51, I get 
crashes like those in the .log (.log.2003.04.22) I will attach. This .log has 
two crashes when trying to open the help table of contents, one while trying to 
create a new java project, and one while trying to close Eclipse just after 
attempting to create the new project.

It is also worth noting that when running with JAWS 4.51.119, I observe the 
following:
1. It takes longer to start Eclipse (maybe 10 sec or so)
2. If I press/release alt and navigate the main menubar (file, edit, ...), JAWS 
is silent.

My JAWS install is completely ordinary. I used the "automatic" install option 
and only made minor config changes like speech rate and keyboard layout after 
install completed.

Today I am adding a braille display to my system. Even though it is not 
necessary, I will completely reinstall JAWS 4.51 and check Eclipse before I 
have made any changes at all to JAWS. I will report if anything is different.

It is also important to note I am not the only user with this issue. Others on 
the java accessibility mailing list have experienced it.
Comment 8 Matthew King CLA 2003-04-23 12:20:33 EDT
Created attachment 4682 [details]
.log with 4 issues: 2 opening help, 1 creating project, 1 closing Eclipse
Comment 9 Tod Creasey CLA 2003-04-23 12:45:25 EDT
We are using version 4.50.138 but if you have heard of this from others I 
wouldn't be surprised if 4.5x is all we need.

The 1.4.1_02 you are using - is this the Sun VM from February 2003?

Also please give steps to crash - as we can't replicate here thus far there 
may be a subtle step we are not doing the same way.
Comment 10 Tod Creasey CLA 2003-04-23 13:00:52 EDT
Using 2.1 with the Sun 1.4.1_02 February 2003 VM I can get the 
UnsatisfiedLinkError to occur (I will attach the log) so I think we have 
replicated the issue here - thanks for the extra info Matt. This problem did 
not occur with the IBM 1.3.1 RC2 VM - I will check with the 1.4.0 vm as well.
Comment 11 Tod Creasey CLA 2003-04-23 13:02:27 EDT
Created attachment 4683 [details]
Log using the 1.4.1.02 Sun VM creating a java project

STEPS
1) Start with a fresh workspace
2) Create a Java Project
3) Error will occur trying to create a java nature.
Comment 12 Tod Creasey CLA 2003-04-23 13:12:06 EDT
Same problem occurs with IBM 1.4.0 VM and with the 1.3.0 RC2 IBM VM using 4.5 
and a fresh workspace.
Comment 13 Luca Davanzo CLA 2003-04-24 15:22:54 EDT
I can confirm this Eclipse 2.1 and Websphere Studio 5.0 crash with jaws 4.5 and 
jaws 4.51 using both winnt 4.0 SP6 and Windows 98 Se, with following Virtual 
machines:
 Sun JDK 1.3.1, Sun JDK 1.4.0, SUN JDK 1.4.1

Eclipse crashes showing a dialog box  "Java VM terminated: error code: - 1"

There is no error in workspace\.metadata\.log file.

To reproduce consistently the problem  I just launch Eclipse with one of the 
jdk in a workspace that is non empty; just shiftctrl+f7 to switch current view 
a fiew time, arrow up and down in package explorer or navigator and eclipse 
crashes.

All works perfectly with jaws 4.02 and below with every jdk ii've tried.

I've Java Access Bridge  1.02 installed on the Windows NT machine, BUT NOT on 
the Win98 machine.
Comment 14 Tod Creasey CLA 2003-04-28 10:59:45 EDT
If you get a crash from the VM you should also have a javacore file. If you do 
please append it to this problem report.
Comment 15 Luca Davanzo CLA 2003-04-28 11:54:00 EDT
Java core file? whats the name of the file?
Comment 16 Tod Creasey CLA 2003-04-28 12:43:28 EDT
It would be javacoreXXX.txt where the XXX is some sort of timestamp. It would 
likely be in your eclipse root.
Comment 17 Luca Davanzo CLA 2003-04-29 03:36:54 EDT
Created attachment 4723 [details]
Java core dump - wsad 5.0 Jaws 4.51
Comment 18 Luca Davanzo CLA 2003-04-29 03:39:37 EDT
No javacore when running eclipse 2.1 with the various Sun sdks; I have the 
attached javacore dump when running wsad 5.0 with jaws 4.51
Comment 19 Luca Davanzo CLA 2003-04-29 03:47:50 EDT
Another crash when running eclipse 2.1 with jaws 4.51, no javacore but the 
following dialogs which may be useful (translated in english italian messages)
Comment 20 Luca Davanzo CLA 2003-04-29 03:51:22 EDT
Created attachment 4724 [details]
Eclipse 21 crash dialog messages - jaws 4.51
Comment 21 jose vilmar estacio de souza CLA 2003-04-29 04:45:36 EDT
 I'd like to report that in addition to the crashes already reported, there is 
also a significant slow down in my computer when running eclipse and jaws 
4.5.1.  This can be observed specially when exploring the preference page.
Comment 22 Tod Creasey CLA 2003-05-12 14:07:41 EDT
I did some experimentation myself and found that the perspective switching is 
the easiest way to replicate the slowness.
Comment 23 Tod Creasey CLA 2003-05-12 14:19:53 EDT
Also note that I am running XP and there appears to be greater performance 
issues in 2k than on XP (Matt King has played his JAWS over the phone for me 
on 2K). We will investigate any 2K differences here but the really bad case 
was in perspective switching (this was bad on all platforms).
Comment 24 Tod Creasey CLA 2003-05-28 10:43:03 EDT
Created Bug 38194 for the performance issue
Comment 25 Kip Harris CLA 2003-05-28 12:21:49 EDT
I may have isolated the root cause:  the presense or absense of the Java 
Access bridge.  With the Java Access Bridge installed, I can execute the crash 
repro scenarios (new Java project, Help - Help Contents) without error.  That 
is, Eclipse executes normally, albeits quite slow.  When I remove the Java 
Access Bridge from the configuration, the repro scenarios do crash, and I 
obtain stack trace similar to the logs above.  I should note that in either 
configuration, I continue to see the other defects noted in this log, that is, 
the performance problems and the loss of voice in the menus.

My configuration is JAWS 4.5.138 (demo version), SUN JRE 1.4.0_01, Access 
Bridge 1.0.2 (I know there's a 1.0.3 out now, but i didn't fetch it yet), and 
Eclipse 2.1.

Java Access Bridge is at http://java.sun.com/products/accessbridge/.   
Comment 26 Matthew King CLA 2003-06-02 08:47:43 EDT
For me, it can crash without the access bridge installed. I am attaching a log 
of this crash occuring while using JAWS 4.51.119 and Sun JVM 1.4.1_02. I was 
saving a file in the java editor when it occurred. It might be the case that 
there are more ways of reproducing this crash when the bridge is present, but 
it can definitely happen without the bridge.
Comment 27 Matthew King CLA 2003-06-02 08:50:49 EDT
Created attachment 5024 [details]
.log for crash without java access bridge while saving a .java file
Comment 28 Kip Harris CLA 2003-06-02 14:50:40 EDT
Matt, perhaps i worded my entry poorly, but the discovery on my configuration 
is that there is no crash with Access Bridge installed.  There is a crash when 
the Bridge is not installed.
Comment 29 Matthew King CLA 2003-06-25 15:22:28 EDT
Here are my results, thus far, of attempting different combinations of JAWS, 
JVMs, Eclipse, and the java access bridge.

Summary:

Eclipse crashes and errors depend on the eclipse version, JVM version
and whether or not the access bridge is present in the JVM as well
as the JAWS version.  There are four variables involved:

1. The version of Eclipse: I am trying the 5/28 and 6/11 integration builds.
2. The version of JAWS: I am trying 4.0.103 and 4.51.119.
3. The JVM: I am trying IBM JRE 1.4.1, Sun JRE 1.4.1, and the IBM J9.
4.  Whether or not the access bridge is installed in the VM.  I am using
only Access Bridge 1.03.  To uninstall the bridge, I am closing Eclipse,
removing all 3 bridge files (accessibility.properties and the 2 jars) from
the VM tree, and restarting Eclipse. I have also, in some cases, removed the 3
bridge DLLs from the Windows path (in those cases, I have rebooted as
well).

There are too many combinations for me to test.  Someone else will have to
pick up the rest.  I have some preliminary findings below.

Here are the test cases I am using:

1. Open eclipse and test the menu bar and menus.
2. Load help contents in IE 5.5. Follow a few links and close.
3. From the resource  navigator, Create a new java project.
4. From the Java package explorer, create a new package.
5. Create a new class.
6. Edit and save the class.
7. delete the package.
8. delete the project.

1. Eclipse 6/11 integration build

This version of Eclipse is not useable with JAWS, any version, as JAWS
cannot track the cursor in the editor.  At first I thought that was
dependent on other aspects of the installation, but I found that it is
not.  Nonetheless, I did find:

With the IBM 1.4.1 VM:
1. All tests complete with JAWS 4.0, with or without the access bridge.
2. With JAWS 4.51 and no access bridge, the menubar does not read, project 
creation fails, and help will not load.
3.  With JAWS 4.51 and the access bridge, menubar does not read, Eclipse
cannot find the Help contents, and all other tests complete.

2. Eclipse 5/28 integration build

With the IBM 1.4.1 JVM:
1. With JAWS 4.0, with or without the access bridge, all test complete.
2.  With JAWS 4.51 and no access bridge, help contents will not load; page
not found error.  Menus do not read.  All other test complete.
3. With JAWS 4.51 and the access bridge, the results are the same as without 
the access bridge.

With the Sun 1.4.1 JVM:
1. With JAWS 4.0, all test complete.
Comment 30 Tod Creasey CLA 2003-07-03 10:22:21 EDT
I have just retested the M1 3.0 build with the following conditions

JAWS 4.51.119
Windows XP
Eclipse build 3.0 M1 using the sidecar June 27 version
1.4.1 Sun JRE installed on my path (I assume this is one that JAWS would use). 
As it is just a JRE I do not have the access bridge installed.

Using this parameters all of the tests Matt describe passed without a crash 
(although there are some issues with focus on the entries in the help view).

However I can confirm that the text is not read using this build and does work 
with the 2.1.1 release - I will log this is a seperate bug.
Comment 31 Tod Creasey CLA 2003-07-03 10:32:02 EDT
I have logged Bug 39600 as a seperate bug for the Java Editor issue. This bug 
only occurs on build M1 and later and not in WindowEyes so I think that this 
is a tool specific problem.

The performance on WindowEyes is quite good for this cases.
Comment 32 Luca Davanzo CLA 2004-01-22 11:45:30 EST
any news on this bug? 
Comment 33 Frank DiPalermo CLA 2004-02-11 15:09:47 EST
Freedom Scientific released an upgrade for JAWS 5.0 today.  This upgrade 
includes the code that gets rid of the sluggishness we were seeing in Eclipse 
with 4.51 and 5.0.  Anyone, who is authorized for 5.0 can download the upgrade 
from:
http://www.freedomscientific.com/fs_products/software_jaws5intro.asp
I have also tested this new version with WSAD 5.1.1 and the sluggishness is 
solved there as well.
I think this problem is now solved.
Comment 34 Carolyn MacLeod CLA 2004-02-11 17:29:21 EST
I agree that this problem is solved using the new JAWS 5.0 update (5.00.809).
All issues discussed here - performance, menus not being read, text editor not 
being read, etc. are all fixed. I have not had any crashes (but of course, I 
am running the latest eclipse with a fairly recent VM). I encourage folks to 
try the newest version of JAWS with eclipse 2.x (or WSAD versions built on 
older eclipse versions).

I am closing this bug report. If there are still JAWS issues, please open new 
bug reports.