Re: [g-a-devel]java-access-bridge



Bernard:

We catch exceptions (one should always catch them in Java!) but since we
print a stack trace, they are not expected in normal operation.  If you
are seeing them there there is probably an underlying bug.

- Bill

On Thu, 2003-09-25 at 14:50,
gnome-accessibility-devel bernard-hugueney org wrote:
> Bonjour,
> I was getting some exceptions [1] when tracing OO.org with at-spi.
> Did notknow whowas at fault : at-spi, java-access-bridge, OO.org, me ?
> Looking into TextImpl.java I saw this knid of code.
> "
> 	public int getCharacterAtOffset (int offset) {
>         try {
>             if (accText != null) {
>                 return (int) accText.getAtIndex(
>                     javax.accessibility.AccessibleText.CHARACTER, 
>                     offset).charAt(0);
>             }
>         }
>         catch ( Exception e ) {
>             e.printStackTrace();
>         }
> 		return 0;
> 
> 	}
> "
> So many exceptions are to be expected, after all.
> 
> Any thought on the subject ?
> 
> Bernard, on Mandrake with OO.org 1.1RC4 and java-access-bridge from 
> CVS.
> 
> [1]
> com.sun.star.lang.DisposedException:
>         at 
> com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(NativeMethod)
>         at 
> com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:204)
>         at $Proxy22.getTextAtIndex(Unknown Source)
>         at
> org.openoffice.java.accessibility.AccessibleTextImpl.getAtIndex(AccessibleTextImpl.java:499)
>         at org.GNOME.Accessibility.TextImpl.getText(TextImpl.java:124)
>         at 
> org.GNOME.Accessibility.TextPOATie.getText(TextPOATie.java:49)
>         at org.GNOME.Accessibility.TextPOA._invoke(TextPOA.java:81)
>         at
> com.sun.corba.se.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:517)
>         at
> com.sun.corba.se.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:207)
>         at
> com.sun.corba.se.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:109)
>         at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:252)
>         at
> com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
>         at
> com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
> 
> _______________________________________________
> Gnome-accessibility-devel mailing list
> Gnome-accessibility-devel gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]