Thread: [Java-gnome-developer] GConf assertion failures
Brought to you by:
afcowie
From: Lars W. <la...@di...> - 2005-11-23 02:53:01
|
Hi everyone, whenever I try to get an int value from a ConfClient using getInt I get an assertion failure like this: (java-gnome:10739): GConf-CRITICAL **: gconf_client_get_int: assertion `err == NULL || *err == NULL' failed The same is true for bool and list values. Is this a known error in the version of Java-GConf I use (2.10.1-1 from Ubuntu Breezy) and if so, is it going to be fixed soon (if it hasn't been already)? Or should I try to look more closely for an error on my part (which seems rather unlikely to me currently)? Regards, Lars |
From: Lars W. <la...@di...> - 2005-11-23 02:59:26
|
> whenever I try to get an int value from a ConfClient using getInt I get > an assertion failure like this: > > (java-gnome:10739): GConf-CRITICAL **: gconf_client_get_int: > assertion `err == NULL || *err == NULL' failed > > The same is true for bool and list values. Forgot to mention the worst part: the call to getInt() always returns 0 even if a key with a different value exists. |
From: Andrew C. <an...@op...> - 2005-11-24 05:10:23
|
On Wed, 2005-23-11 at 03:52 +0100, Lars Weber wrote: > Is this a known error in the version of Java-GConf I use (2.10.1-1 from > Ubuntu Breezy) I don't know of anyone still using 2.10; on the other hand while there were significant changes to libgtk-java in the last cycle, gconf isn't getting much love. As ever, if someone can run your test case it makes it easier for a hacker to localize the problem and maybe fix it. Recommend you follow up with a link to the code that's borking on you. [ie, my own apps don't use GConf, and we run Gentoo, so...] Of course, offering bottles of scotch also accelerates the rate at which things get fixed. :) AfC Sydney -- Andrew Frederick Cowie Operational Dynamics Bio: http://www.operationaldynamics.com/about/staff/andrew/ Blog: http://research.operationaldynamics.com/blogs/andrew/ GPG key: 0945 9282 449C 0058 1FF5 2852 2D51 130C 57F6 E7BD Sydney +61 2 9977 6866 New York +1 646 472 5054 Toronto +1 416 848 6072 London +44 207 1019201 |
From: Lars W. <la...@di...> - 2005-11-24 15:24:50
|
Am Donnerstag, den 24.11.2005, 16:10 +1100 schrieb Andrew Cowie: > I don't know of anyone still using 2.10; on the other hand while there > were significant changes to libgtk-java in the last cycle, gconf isn't > getting much love. Are there Debian or Ubuntu packages of more recent versions available somewhere? Or is a source-install the best option for me to get up to date? > As ever, if someone can run your test case it makes it easier for a > hacker to localize the problem and maybe fix it. Recommend you follow up > with a link to the code that's borking on you. [ie, my own apps don't > use GConf, and we run Gentoo, so...] Sorry, I somehow expected the problem to be known. The following simple program prints the mentioned assertion failure and shows the returned value as beeing 0: --->8--- package test; import org.gnu.gconf.*; public class Test { public static void main(String[] args) { ConfClient conf_client = ConfClient.getInstance(); int value = -1; try { conf_client.setInt("/apps/test/value", 42); value = conf_client.getInt("/apps/test/value"); } catch (Exception e) { e.printStackTrace(); } System.out.println(value); } } ---8<--- When I change the above code to use {get,set}String everything works as expected. > Of course, offering bottles of scotch also accelerates the rate at which > things get fixed. :) Yes, maybe. Perhaps as soon as we got anywhere with the program we are about to develop :) At the moment, all that I'm prepared to offer is my gratitude for the fact that people are working on Java bindings for Gtk, glade, etc. as this releases us from the burdon of using such awkward toolkits as AWT, Swing or SWT! Hope you find the energy to keep this going! Regards, Lars PS: speaking of GConf, does there exist any experience with using GConf-Java under Windows? Is it known or at least expected to work or should I expect there to be major problems and therefore maybe switch to use something else? |
From: Lars W. <la...@di...> - 2005-12-05 02:11:45
|
Hi (again) everyone, > PS: speaking of GConf, does there exist any experience with using > GConf-Java under Windows? Is it known or at least expected to work or > should I expect there to be major problems and therefore maybe switch to > use something else? since nobody answered this earlier question let me ask it again in more general terms: what kind of difficulties should we expect when trying to develop an application with java-gnome (most importantly -gtk) that runs out-of-the-box on Windows? How much experience is there with Windows as a target platform? GConf-support we could actually live without but easy installation on Windows is pretty close to a must-have... Regards, Lars |
From: Nicholas R. <ni...@mo...> - 2005-12-05 10:14:31
|
On Mon, 2005-12-05 at 03:11 +0100, Lars Weber wrote: > Hi (again) everyone, > > > PS: speaking of GConf, does there exist any experience with using > > GConf-Java under Windows? Is it known or at least expected to work or > > should I expect there to be major problems and therefore maybe switch to > > use something else? > > since nobody answered this earlier question let me ask it again in more > general terms: what kind of difficulties should we expect when trying to > develop an application with java-gnome (most importantly -gtk) that runs > out-of-the-box on Windows? How much experience is there with Windows as > a target platform? > > GConf-support we could actually live without but easy installation on > Windows is pretty close to a must-have... a pure java, gtk-java application should run "out-of-the-box" on windows (baring, perhaps, some path issues). note, however, the small problem with the windows build of gtk-java described below. As for windows as a target platform, you might find this wiki page interesting. http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/WindowsCompilation I'm not sure that it has been updated in a while, but it's a place to start. Once you have the bindings compiled for windows, there was one outstanding issue (if i remember correctly) that prevented a complete out-of-the-box usage. See the FAQ at the end of the wiki page mentioned above. The 2nd response to the last question (about incompatible jar files) describes this issue a bit. basically, as far as i understood the problem at the time, there was an incompatibility/inconsistency between the names of the libraries on the 2 platforms. this meant we needed to load the JNI libraries calling System.loadLibrary with a platform dependent string. thus the jar files compiled on linux would not work if simply copied to a windows box. you have to use the windows compiled jars on windows and the linux compiled jars on linux. this is obviously not the ideal situation (especially for distributing a gtk-java application). however, i'm confident that someone with a bit more automake experience would be able to find an acceptable solution.... hope this helps, nick |
From: Lars W. <la...@di...> - 2005-12-06 01:28:13
|
Am Montag, den 05.12.2005, 11:14 +0100 schrieb Nicholas Rahn: > a pure java, gtk-java application should run "out-of-the-box" on windows > (baring, perhaps, some path issues). note, however, the small problem > with the windows build of gtk-java described below. Is this true also for glade? If it is, than that's basically all that I want to hear :) > Once you have the bindings compiled for windows, there was one > outstanding issue (if i remember correctly) that prevented a complete > out-of-the-box usage. [...] Ok, this sounds like a problem we should be able to handle. We'll look into it once our application is in a more mature state. > hope this helps, Great, thanks! Regards, Lars |