GNOME Bugzilla – Bug 169261
Signals dont seem to work in java bindings
Last modified: 2009-08-15 18:40:50 UTC
Please describe the problem: Any signals from glade xml file do not work. It throws java.lang.reflect.InvocationTargetException: ListenerDelegate.create failure I tried the example given at http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/GladeWidgetPropertiesAndEvents and also created 2-3 more applications but with th esame result. I am running Fedora core 3 and sun jdk 1.4.2 Gui launches fine but signals are not attached. Steps to reproduce: 1. Create any glade file with a signal event defined. 2. Compile it. 3. Run it. Actual results: java.lang.reflect.InvocationTargetException: ListenerDelegate.create failure Expected results: Does this happen every time? yes Other information:
Created attachment 38282 [details] glade xml file
Created attachment 38283 [details] java file
I downloaded the files, compiled the java code, and it worked with no problems. The button signals where handled and i saw the text in the entry fields.
I have tested your example you uploaded on two different systems and it worked properly on each. I suggest you post this issue to the mailing list or go to the irc channel to try to debug the issue on your system.
There are some ppl who are getting this bug... i've got an impression that what causes it is a weird mix of gtk/glade versions... (though that shouldn't be a problem). I think we should add a printStackTrace at the place the "bug" occurs, so we could get some more info.
This bug has been solved, according to discussion in the dev mail list (http://sourceforge.net/mailarchive/forum.php?thread_id=6860988&forum_id=5689). The problem was that that very specific 2.8.2 version of libglade had a bug on LibGlade.java. Basically, the 'owner' of LibGlade wasn't been assigned to a local field, which led to a NullPointerException, which led to the InvocationTargetException. The problem is fixed in the rpm of libglade 2.8.1 (http://people.redhat.com/fitzsim/java-gnome/i386/libglade-java-2.8.1-2.i386.rpm), and is also fixed in the newest version of LibGlade (which doesn't have rpms yet).
This issue has now been resolved
Hm... I still get this error on my Ubuntu Hoary system (libglade-java version: 2.8.3). Maybe now still a problem in the Debian/Ubuntu packages?
That is strange. At any rate libglade-java 2.8.3 is very old. I would recommend trying a newer version (2.10.x or the newly released 2.12) and if the problem still occurs, please file a new bug report with steps to reproduce (and if possible a test case).