After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 169261 - Signals dont seem to work in java bindings
Signals dont seem to work in java bindings
Status: VERIFIED FIXED
Product: java-gnome
Classification: Bindings
Component: LibGlade
Really Ancient
Other All
: Normal normal
: ---
Assigned To: java-gnome bindings maintainers
java-gnome bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-05 02:04 UTC by plehal
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glade xml file (28.05 KB, text/plain)
2005-03-05 02:05 UTC, plehal
Details
java file (1.40 KB, text/plain)
2005-03-05 02:06 UTC, plehal
Details

Description plehal 2005-03-05 02:04:59 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:
Comment 1 plehal 2005-03-05 02:05:59 UTC
Created attachment 38282 [details]
glade xml file
Comment 2 plehal 2005-03-05 02:06:36 UTC
Created attachment 38283 [details]
java file
Comment 3 Jeffrey Morgan 2005-03-12 15:42:21 UTC
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.
Comment 4 Jeffrey Morgan 2005-03-12 18:24:42 UTC
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.
Comment 5 Joao Victor 2005-03-15 13:03:07 UTC
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.
Comment 6 Joao Victor 2005-03-22 12:13:00 UTC
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).
Comment 7 Jeffrey Morgan 2005-03-23 12:42:09 UTC
This issue has now been resolved
Comment 8 Stefan Thesing 2005-10-09 22:04:34 UTC
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? 
Comment 9 Ismael Juma 2005-10-09 22:12:32 UTC
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).