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 59638 - 2.2.4, operators, Exception during java.awt.Robot accessing
Summary: 2.2.4, operators, Exception during java.awt.Robot accessing
Status: CLOSED WONTFIX
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-04 16:19 UTC by arhus
Modified: 2011-02-17 09:31 UTC (History)
0 users

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 arhus 2005-06-04 16:19:10 UTC
The below code calls Operator.setDefaultComponentVisualizer static method, which
throws JemmyException: Exception during java.awt.Robot accessing.

Since the setDefaultComponentVisualizer is not declared to throw an exception,
there is no need to catch the exception in the code.

Lines 472 -- 478 from jeek.modules.automatizer.dautomatizer.Runner:

final DefaultVisualizer defaultVisualizer = new DefaultVisualizer();           
defaultVisualizer.activateInternalFrame(true);                                 
defaultVisualizer.activateWindow(true);
        defaultVisualizer.checkForModal(true);                                 
        defaultVisualizer.scroll(true);
        defaultVisualizer.switchTab(true);                                     
        Operator.setDefaultComponentVisualizer(defaultVisualizer);

See the stack trace for more info:

java.lang.ExceptionInInitializerError: null
         at install (org.netbeans.jemmy.drivers.InputDriverInstaller:97)
         at setDispatchingModel (org.netbeans.jemmy.JemmyProperties:711)
         at setCurrentDispatchingModel (org.netbeans.jemmy.JemmyProperties:351)
         at <clinit> (org.netbeans.jemmy.JemmyProperties:428)
         at setDefaultComponentVisualizer
(org.netbeans.jemmy.operators.Operator:107)
         at <clinit> (org.netbeans.jemmy.operators.Operator:290)
         at initJemmy (jeek.modules.automatizer.dautomatizer.Runner:478)
         at run (jeek.modules.automatizer.dautomatizer.Runner:92)

org.netbeans.jemmy.JemmyException: Exception during java.awt.Robot accessing
         at <init> (org.netbeans.jemmy.drivers.input.RobotDriver:72)
         at <init> (org.netbeans.jemmy.drivers.input.KeyRobotDriver:50)
         at install (org.netbeans.jemmy.drivers.InputDriverInstaller:117)
         at <clinit> (org.netbeans.jemmy.drivers.DriverManager:705)
         at install (org.netbeans.jemmy.drivers.InputDriverInstaller:97)
         at setDispatchingModel (org.netbeans.jemmy.JemmyProperties:711)
         at setCurrentDispatchingModel (org.netbeans.jemmy.JemmyProperties:351)
         at <clinit> (org.netbeans.jemmy.JemmyProperties:428)
         at setDefaultComponentVisualizer
(org.netbeans.jemmy.operators.Operator:107)
         at <clinit> (org.netbeans.jemmy.operators.Operator:290)
         at initJemmy (jeek.modules.automatizer.dautomatizer.Runner:478)
         at run (jeek.modules.automatizer.dautomatizer.Runner:92)
Comment 1 Marian Mirilovic 2011-02-17 08:54:16 UTC
Jemmy sources/the whole project was moved to java.nt. In case  you still want to get issue fixed, please report it here :
http://java.net/jira/browse/JEMMY