<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>16</bug_id>
          
          <creation_ts>2003-06-23 10:17:11 +0200</creation_ts>
          <short_desc>Accessibility breaks jogl</short_desc>
          <delta_ts>2010-03-24 07:45:28 +0100</delta_ts>
          <reporter_accessible>0</reporter_accessible>
          <cclist_accessible>0</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:45:28 +0100</bug_when>
    <thetext>


---- Reported by rmm20 2003-06-23 10:17:11 ----

If Java accessibility.properties is set to:
assistive_technologies=com.sun.java.accessibility.AccessBridge

the jawt.dll is loaded twice, with bad results:
This fails on both demos:

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\&gt;cd jogl\jogl\demos

CC:\jogl\jogl\demos\vertexArrayRange&gt;java VertexArrayRange
Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: Native Library D:\Pro
gram Files\Java\j2re1.4.1_02\bin\jawt.dll already loaded in another classloader
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1437)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1389)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:832)
        at com.sun.java.accessibility.AccessBridge$2.run(AccessBridge.java:736)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.java.accessibility.AccessBridge.&lt;init&gt;(AccessBridge.java:733)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:306)
        at java.lang.Class.newInstance(Class.java:259)
        at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:652)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:738)
        at java.awt.Window.getToolkit(Window.java:675)
        at java.awt.Window.init(Window.java:239)
        at java.awt.Window.&lt;init&gt;(Window.java:268)
        at java.awt.Frame.&lt;init&gt;(Frame.java:398)
        at VertexArrayRange.run(VertexArrayRange.java:192)
        at VertexArrayRange.main(VertexArrayRange.java:160)

Removing accessibility.properties from java jre\lib eliminates this error.
It also eliminates accessibility.

Robert Mitchell



---- Additional Comments From kbr 2003-06-30 01:14:09 ----

Probably fixable by catching UnsatisfiedLinkError in NativeLibLoader and looking
for the string &quot;already loaded&quot; in the detail message. Gross, but will work
without having to add native code to load jawt.dll / libjawt.so.




---- Additional Comments From kbr 2003-07-14 22:28:34 ----

I wasn&apos;t able to reproduce the UnsatisfiedLinkError below after installing the
AccessBridge, but have still put in a clause looking for a detail message
containing &quot;already loaded&quot; and skipping the exception in this case.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:45 EDT  ---

This bug was previously known as _bug_ 16 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=16
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>