Re: [Java-gnome-developer] error: java.lang.reflect.InvocationTargetException: ListenerDelegate.crea
Brought to you by:
afcowie
From: Joao V. <jvi...@ya...> - 2005-03-17 17:34:58
|
Still that bug... :/ Hey Leonardo, the version of libglade-java you're using, did you build it from sources or did you install it from some rpm/deb package? Because i would like you to try something, to help us find what's the bug exactly... (The problem we're having is that most of us can't reproduce this bug... and the message "ListenerDelegate.create failure" doesn't tell us much... so we need more info from the ppl who can reproduce it) ... here's what i'd like you to do: get the source of the version you're using, open the file 'src/java/org/gnu/glade/ListenerDelegate.java' in an editor, and search for this part of the file: } catch (InvocationTargetException e) { System.err.println("ListenerDelegate.fireEvent("+event+"): "+ e.getTargetException()); } When you find it, replace it with this: } catch (InvocationTargetException e) { System.err.println("ListenerDelegate.fireEvent("+event+"): "+ e.getTargetException()); e.getTargetException().printStackTrace(); } Now compile/build/install libglade-java, and try it. If you get the same error (i hope you do!), now you'll probably see more error msgs. So post them to us! Thanks, J.V. --- Leonardo Marques <leo...@gm...> wrote: > Error java.lang.reflect.InvocationTargetException: > ListenerDelegate.create failure > > Class: > > package org.gnome.gjobs; > > import java.io.FileNotFoundException; > import java.io.IOException; > > import org.gnu.glade.GladeXMLException; > import org.gnu.glade.LibGlade; > import org.gnu.gtk.Gtk; > > public class Principal { > > LibGlade glade; > > public Principal() throws GladeXMLException, FileNotFoundException, > IOException { > glade = new LibGlade("gtk/gjobs.glade",this); > } > > public static void main(String[] args) { > > Principal principal; > Gtk.init(args); > > try { > principal = new Principal(); > } catch (GladeXMLException e) { > e.printStackTrace(); > } catch (FileNotFoundException e) { > e.printStackTrace(); > } catch (IOException e) { > e.printStackTrace(); > } > > Gtk.main(); > } > > public void on_button3_clicked() { > System.out.println("clicado"); > } > } > > -- > Leonardo Marques > Brasília - DF > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://mail.yahoo.com.br/ |