<rss version="2.0"><channel><title>RSS feed for InstantSpot site Dave Shuck&apos;s InstantSpot</title><link>http://daveshuck.instantspot.com</link><language>en-us</language><copyright>This work is Copyright &#xA9; 2008 by Dave Shuck&apos;s InstantSpot</copyright><generator>RSSVille ColdFusion FeedMaker, version 1.0</generator><pubDate>Thu, 24 Jul 2008 03:09:29 GMT</pubDate><item><title>`c-&gt;xlib.lock&apos; failed error on Java applications</title><link>http://daveshuck.instantspot.com/blog/2008/01/29/cxliblock-failed-error-on-Java-applications</link><description>&lt;p&gt;I am currently using the Alpha 3 release of Ubuntu 8.04 Hardy Heron.&amp;nbsp; Considering the fact that it is an alpha release, I tend to not get worked up over little errors that might occur.&amp;nbsp; However, I have found one that I just couldn&apos;t get around.&amp;nbsp; I use Aqua Data Studio for my database client and since loading Hardy Heron, I have been unable to run it.&lt;br /&gt;
&lt;br /&gt;
When I would start it from a terminal, I would get a dump that looked like this:&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;#0 /usr/lib/libxcb-xlib.so.0 [0x90d00767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0x90d008b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0x9039429d]
#3 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0x9063e8ce]
#4 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0x9061b067]
#5 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0x9061b318]
#6 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0x9061b61f]
#7 [0xb4cff3aa]
#8 [0xb4cf7f0d]
#9 [0xb4cf7f0d]
#10 [0xb4cf5249]
#11 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so [0x637338d]
#12 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so [0x64fd168]
#13 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so [0x6373220]
#14 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so(JVM_DoPrivileged+0x363) [0x63c90d3]
#15 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7d1096d]
#16 [0xb4cff3aa]
#17 [0xb4cf7da7]
#18 [0xb4cf5249]
#19 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so [0x637338d]
java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c-&amp;gt;xlib.lock&apos; failed.
Aborted (core dumped)&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Considering the fact that I used the Ubuntu sun-java6-jdk package from the Ubuntu repository, I decided that I would try the self-extracting bin that is available on &lt;a href=&quot;http://java.sun.com&quot;&gt;http://java.sun.com&lt;/a&gt;.&amp;nbsp; After swapping to that JVM, I still received the same dump and abort.&amp;nbsp; After doing a bit of searching, I came across a patch in one of the bug reporting forums that effectively patches your JVM and prevents this error from occurring.&amp;nbsp; I ran the patch and now everything works as it should. &amp;nbsp; If you are receiving this error, create a shell script with the following content and run it.&amp;nbsp; Assuming that it runs successfully, you should then be able to open the Java application that was failing.&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;#!/bin/sh
# S. Correia
# 2007 11 21
# A simple script to patch the java library in order
# to solve the problem with &amp;quot;Assertion &apos;c-&amp;gt;xlib.lock&apos; failed.&amp;quot;
# see bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373
LIB_TO_PATCH=libmawt.so
for f in `find /usr/lib/jvm -name &amp;quot;$LIB_TO_PATCH&amp;quot;`
do
echo &amp;quot;Patching library $f&amp;quot;
sudo sed -i &apos;s/XINERAMA/FAKEEXTN/g&apos; &amp;quot;$f&amp;quot;
done&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Big thanks to &amp;quot;S. Correia&amp;quot; for getting me back on my feet!&lt;/p&gt;</description><pubDate>Tue, 29 Jan 2008 21:16:00 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2008/01/29/cxliblock-failed-error-on-Java-applications</guid><category>Ubuntu,Java</category></item><item><title>Installing the JRE plugin in Firefox on Ubuntu</title><link>http://daveshuck.instantspot.com/blog/2008/01/18/Installing-the-JRE-plugin-in-Firefox-on-Ubuntu</link><description>&lt;p&gt;I have now been using Ubuntu for about 2 years, and oddly enough one thing that has always evaded me is how to properly set up the JRE plugin in Firefox.  It *seems* like that ought to be an easy process, but it is one of those annoying little things that just hasn&apos;t worked for me, although it has never been important enough for me to chase down.&lt;/p&gt;
&lt;p&gt;Yesterday I had to do a Webex presentation that required the JRE plugin, so I decided it was time to hack my way through it.   One thing that I was thinking my be a factor is that I use Swiftfox instead of Firefox.  I decided to take that out of the equation just to make sure, so I went ahead and removed it.  When running Firefox and hitting &lt;strong&gt;about:plugins&lt;/strong&gt; in the address bar, I could clearly see that the Java plugin was not in the list.  I looked in ~/.mozilla/plugins, and saw a libjavaplugin.so in there, but it was obviously not doing its job.&lt;/p&gt;
&lt;p&gt;So, after a lot of floundering, here are the basic steps I took that got me going...&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;First, I completely uninstalled Firefox:&lt;br /&gt;
    &lt;strong&gt;$ sudo apt-get --purge remove firefox&lt;br /&gt;
    &lt;/strong&gt;&lt;/li&gt;
    &lt;li&gt;I then reinstalled it:&lt;strong&gt;&lt;br /&gt;
    $ sudo apt-get install firefox&lt;br /&gt;
    &lt;/strong&gt;&lt;/li&gt;
    &lt;li&gt;Next, I had previously installed the sun-java2-bin package, so I wanted to wipe all evidence of that and reinstall it.  I did the following:&lt;br /&gt;
    &lt;strong&gt;$ sudo apt-get --purge remove sun-java6-bin sun-java6-jre  sun-java6-plugin&lt;br /&gt;
    &lt;/strong&gt;&lt;/li&gt;
    &lt;li&gt;To reinistall it I did:&lt;br /&gt;
    &lt;strong&gt;$ sudo apt-get install sun-java6-bin sun-java6-jre  sun-java6-plugin&lt;br /&gt;
    &lt;/strong&gt;&lt;/li&gt;
    &lt;li&gt;After doing this I opened Firefox and put &lt;strong&gt;about:plugins&lt;/strong&gt; and still didn&apos;t see the Java stuff.  At this point, I went into my ~/.mozilla/plugins directory.  From earlier attempts I had some libjavaplugin.so and libjavaplugin-[something I don&apos;t remember].so.  I decided to kill those off:&lt;br /&gt;
    &lt;strong&gt;$ sudo rm libjavaplugin*&lt;br /&gt;
    &lt;/strong&gt;&lt;/li&gt;
    &lt;li&gt;At this point looking around I found a file  &lt;strong&gt;/etc/alternatives/firefox-javaplugin.so&lt;/strong&gt; that seemed like a decent candidate, so I did a symlink like this:&lt;br /&gt;
    &lt;strong&gt;$ ln -s /etc/alternatives/firefox-javaplugin.so ./libjavaplugin.so&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;At this point I restarted the browser, hit &lt;strong&gt;about:plugins&lt;/strong&gt; and was thrilled to see an entirely new section for Java!&lt;/p&gt;
&lt;p&gt;Now, take the steps above with a grain of salt.  I certainly don&apos;t want to infer that this is by any means the right way to get it working, but it is the series of steps that finally got it working for me.  Hopefully someone else might get something out of it as well.&lt;/p&gt;</description><pubDate>Fri, 18 Jan 2008 13:59:00 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2008/01/18/Installing-the-JRE-plugin-in-Firefox-on-Ubuntu</guid><category>Ubuntu,Linux,Java</category></item><item><title>We have landed</title><link>http://daveshuck.instantspot.com/blog/2005/07/10/We-have-landed</link><description>&lt;font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;&gt;Well, I have installed my blogging software.&amp;nbsp; Time to play. :)&lt;br/&gt;
&lt;/font&gt;</description><pubDate>Sun, 10 Jul 2005 05:00:00 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2005/07/10/We-have-landed</guid><category>ColdFusion</category></item></channel></rss>