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 30538 - regression: impossible to use on "bad" (by robot opinion) display
Summary: regression: impossible to use on "bad" (by robot opinion) display
Status: CLOSED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P1 blocker (vote)
Assignee: _ mriem
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-30 21:57 UTC by Viktor Lapitski
Modified: 2011-02-17 09:30 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor Lapitski 2003-01-30 21:57:10 UTC
Regression.
Jemmy can't be used on displays like "Reflection"
on Windows,
because it always starts awtRobot. 

#Exception in thread "main"
java.lang.ExceptionInInitializerError
#	at
org.netbeans.jemmy.drivers.InputDriverInstaller.install(Unknown
Source)
#	at
org.netbeans.jemmy.JemmyProperties.setDispatchingModel(Unknown
Source)
#	at
org.netbeans.jemmy.JemmyProperties.initDispatchingModel(Unknown
Source)
#	at
org.netbeans.jemmy.JemmyProperties.initDispatchingModel(Unknown
Source)
#	at
org.netbeans.jemmy.JemmyProperties.init(Unknown
Source)
#	at org.netbeans.jemmy.Test.run(Unknown Source)
#	at org.netbeans.jemmy.Test.run(Unknown Source)
#	at
com.sun.forte.performance.testing.MyConvenientTestExecutionClass.main(MyConvenientTestExecutionClass.java:8)
#Caused by: org.netbeans.jemmy.JemmyException:
Exception during java.awt.Robot accessing
#	at
org.netbeans.jemmy.drivers.input.RobotDriver.<init>(Unknown
Source)
#	at
org.netbeans.jemmy.drivers.input.KeyRobotDriver.<init>(Unknown
Source)
#	at
org.netbeans.jemmy.drivers.InputDriverInstaller.install(Unknown
Source)
#	at
org.netbeans.jemmy.drivers.DriverManager.<clinit>(Unknown
Source)
#	... 8 more


For similar problem see IZ 30537.
Comment 1 neilswingler 2003-05-02 16:26:29 UTC
I have a similar problem running on xservers which don't support the
XTEST protocol. In theory I should be able to run in event mode but an
exception is always thrown in the robot driver install.
Comment 2 Alexandre Iline 2003-05-15 19:27:10 UTC
Correct solution of this problem consist in 
rewriting driver registration procedures. It will be 
done one day, but, from now, it's hard to say when. 
 
Meanwhile, I can propose a simple fix (it's rather a 
temporary solution) which consist in using of "lazy 
initialization" of java.awt.Robot instance inside 
RobotDriver. I've checked - it's working, unless, 
naturally, you use some features which requires 
Robot directly: 
PNGEncoder, image package or drivers for AWT 
components. 
 
Next update will contain the changes. 
 
Comment 3 Alexandre Iline 2003-06-10 22:16:03 UTC
Changes described in my previous comment done in 
2.2.4 
 
Comment 4 _ mriem 2006-07-20 05:07:53 UTC
This is issue was fixed in version 2.2.4 of Jemmy. Closing, but if it is 
necessary, please reopen and attach a test case.