<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Random Bugs</title>
	<atom:link href="http://www.randombugs.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.randombugs.com</link>
	<description>Just another Bastard Operator From Hell. Everything from *nix to programming</description>
	<lastBuildDate>Wed, 10 Dec 2014 15:13:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.8</generator>
	<item>
		<title>VMware, knife-vsphere, rbvmomi and NicSettingMismatch</title>
		<link>http://www.randombugs.com/vmware/knifevsphere-rbvmomi-nicsettingmismatch.html</link>
		<comments>http://www.randombugs.com/vmware/knifevsphere-rbvmomi-nicsettingmismatch.html#comments</comments>
		<pubDate>Wed, 20 Feb 2013 22:28:06 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[chef]]></category>
		<category><![CDATA[knife]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=815</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/bug.png" width="24" height="24" alt="Bugs" title="Bugs" /><img src="http://www.randombugs.com/wp-content/uploads/icons/ruby.png" width="24" height="24" alt="Ruby" title="Ruby" /><img src="http://www.randombugs.com/wp-content/uploads/icons/vmware_2327_48.png" width="24" height="24" alt="vmware" title="vmware" /><br/>I finished my Chef Recipes and obviously next step is to create and bootstrap VMware virtual machines directly from scripts. I started to test 2 knife plugins knife-esx and knife-vsphere. Quickly I dropped knife-esx solution, because was based on ssh access to the ESX host and  we, &#8220;the common people&#8221;, don&#8217;t have rights on that machine. A little bit about my ESX environment: Is an environment with multiple datacenters, multiple clusters, hundreds of virtual machines. On this environment I don&#8217;t have full access and requesting one, it takes weeks/months ...<div id="crp_related"> </div>]]></description>
		<wfw:commentRss>http://www.randombugs.com/vmware/knifevsphere-rbvmomi-nicsettingmismatch.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ruby: Sorting an array based on other array values</title>
		<link>http://www.randombugs.com/howto/ruby-sorting-array-based-array-values.html</link>
		<comments>http://www.randombugs.com/howto/ruby-sorting-array-based-array-values.html#respond</comments>
		<pubDate>Mon, 18 Feb 2013 12:43:18 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=810</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/help-contents.png" width="24" height="24" alt="How-to" title="How-to" /><img src="http://www.randombugs.com/wp-content/uploads/icons/ruby.png" width="24" height="24" alt="Ruby" title="Ruby" /><br/>In the following article I will try to show you, the power of Ruby in three short hash/array examples.
First I will show you how to sort a key value array by value. Second I will modify the keys name and create another array with this keys (which are already sorted by values).
Third we will sort an array based on the other array keys.

1. For example we have:
y = {"x"=>990,"y"=>2,"z"=>666,"a"=>222,"b"=>1}
To sort them based on the value is easy:
y.sort_by {&#124;name,weight&#124; weight}
=> [["b", 1], ["y", 2], ["a", 222], ["z", 666], ["x", 990]]

2. Now ...<div id="crp_related"> </div>]]></description>
		<wfw:commentRss>http://www.randombugs.com/howto/ruby-sorting-array-based-array-values.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Glassfish 3.1.1 workaround for Denial of Service through hash table multi-collisions</title>
		<link>http://www.randombugs.com/java/glassfish/glassfish-311-workaround-denial-service-hash-table-multicollisions.html</link>
		<comments>http://www.randombugs.com/java/glassfish/glassfish-311-workaround-denial-service-hash-table-multicollisions.html#respond</comments>
		<pubDate>Thu, 05 Jan 2012 11:42:48 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[DOS]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=783</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/bluefish.png" width="24" height="24" alt="Glassfish" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/text-x-java.png" width="24" height="24" alt="Java" title="Java" /><img src="http://www.randombugs.com/wp-content/uploads/icons/gpg.png" width="24" height="24" alt="Security" title="Security" /><br/>This is an old bug, first discovered in 2003, but now was applied to the hash table functions from the new programming languages. The main idea behind this bug is to create hashes which collide, because collision will eat a lot more cpu cycles on your server. For a post of 2 MB is resulting in a 44 minutes of CPU time which will results in a DOS.

As suggested in advisory released by nruns.com  we can limit the maximum post size from several 10&#8217;s of KB. In Glassfish 3.1.1 ...<div id="crp_related"> </div>]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/glassfish-311-workaround-denial-service-hash-table-multicollisions.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Choosing a communication library for a distributed application</title>
		<link>http://www.randombugs.com/cluster/choosing-communication-library-distributed-application.html</link>
		<comments>http://www.randombugs.com/cluster/choosing-communication-library-distributed-application.html#comments</comments>
		<pubDate>Tue, 03 Jan 2012 08:34:57 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=774</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/cluster.png" width="24" height="24" alt="Clustering" title="Clustering" /><br/>Together with some colleagues I started to put the base for a distributed application. Everything is looking good, but we have a big dilemma. We don&#8217;t know what communication API to choose. In first phase we didn&#8217;t have so many options to choose, but after some research, we found several good communications libraries, and now, is very hard for us to select the best solution. 

A few words about this new project. 
The main idea behind this distributed project is to have a frontend, a backend (processing application) and hundreds ...<div id="crp_related"> </div>]]></description>
		<wfw:commentRss>http://www.randombugs.com/cluster/choosing-communication-library-distributed-application.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>User [admin] from host null does not have administration access</title>
		<link>http://www.randombugs.com/java/glassfish/user-admin-host-null-administration-access.html</link>
		<comments>http://www.randombugs.com/java/glassfish/user-admin-host-null-administration-access.html#respond</comments>
		<pubDate>Wed, 23 Nov 2011 08:24:33 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[jmx]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=771</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/bluefish.png" width="24" height="24" alt="Glassfish" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/text-x-java.png" width="24" height="24" alt="Java" title="Java" /><img src="http://www.randombugs.com/wp-content/uploads/icons/recovery.gif" width="24" height="24" alt="Recovery" title="Recovery" /><br/>I should admit, I didn&#8217;t read the Glassfish 3.1 Administration Manual, and I don&#8217;t know if this is documented. Anyway the main problem appeared when I tried to connect on my cluster instances with admin credentials. If I connect with VisualVM or JConsole to Domain Administration Server (DAS) on 8686 I don&#8217;t have any problem. When I&#8217;m trying to connect to my cluster instances on port 28686 with admin credentials I get from JConsole

Connection Failed: Retry?
The connection to admin@rb.randombugs.com:28686 did not succeed.
Would you like to try again?

and on server.log

[#&#124;2011-11-23T12:12:40.599+0000&#124;INFO&#124;glassfish3.1.1&#124;javax.enterprise.system.tools.admin.com.sun.enterprise.container.common&#124;_ThreadID=34;_ThreadName=Thread-2;&#124;User [admin] ...<div id="crp_related"> </div>]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/user-admin-host-null-administration-access.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP transport error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed</title>
		<link>http://www.randombugs.com/java/glassfish/http-transport-error-javaxnetsslsslhandshakeexception-sunsecurityvalidatorvalidatorexception-pkix-path-validation-failed-javasecuritycertcertpathvalidatorexception-signature-check-failed.html</link>
		<comments>http://www.randombugs.com/java/glassfish/http-transport-error-javaxnetsslsslhandshakeexception-sunsecurityvalidatorvalidatorexception-pkix-path-validation-failed-javasecuritycertcertpathvalidatorexception-signature-check-failed.html#comments</comments>
		<pubDate>Wed, 13 Jul 2011 02:45:02 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=762</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/bluefish.png" width="24" height="24" alt="Glassfish" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/text-x-java.png" width="24" height="24" alt="Java" title="Java" /><img src="http://www.randombugs.com/wp-content/uploads/icons/gpg.png" width="24" height="24" alt="Security" title="Security" /><br/>I switched all my Java Glassfish webservices to SSL, because I wanted to have an encrypted communication between me and my clients. Until then, all my applications worked flawlessly over the HTTP protocol, but now, after switching to SSL, I got the following error:
HTTP transport error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed

That means, the client doesn&#8217;t have the certificate and cannot check response against the server certificate. The most simple solution is to export the certificate from the webserver server and import it on the webservice ...<div id="crp_related"> </div>]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/http-transport-error-javaxnetsslsslhandshakeexception-sunsecurityvalidatorvalidatorexception-pkix-path-validation-failed-javasecuritycertcertpathvalidatorexception-signature-check-failed.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Apache Dynamic Virtual Hosting and PHP security</title>
		<link>http://www.randombugs.com/php/apache-dynamic-virtual-hosting-php-security.html</link>
		<comments>http://www.randombugs.com/php/apache-dynamic-virtual-hosting-php-security.html#comments</comments>
		<pubDate>Mon, 06 Jun 2011 10:35:21 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Virtual Hosting]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=739</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/images.jpeg" width="24" height="24" alt="Apache" title="Apache" /><img src="http://www.randombugs.com/wp-content/uploads/icons/debian.png" width="24" height="24" alt="Debian" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/help-contents.png" width="24" height="24" alt="How-to" title="How-to" /><br/>
It&#8217;s been a while since I configured the latest Dynamic Mass Virtual Hosting Server. Last time I used mod_vhost_alias to create a dynamic virtual hosting and it worked without any problem for what we need in that time. Then we didn&#8217;t care about the ftp and virtual users, the sites was updated from web pages and security was pretty much handled by upload application who managed the virtual hosting. Now, the problem is a little bit changed: We need a secure sever which should support ftp virtual users with quota ...<div id="crp_related"> </div>]]></description>
		<wfw:commentRss>http://www.randombugs.com/php/apache-dynamic-virtual-hosting-php-security.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Installing a Glassfish 3.1 Cluster on Debian 6.0 only from command line</title>
		<link>http://www.randombugs.com/java/glassfish/installing-glassfish-31-cluster-debian-60-command-line.html</link>
		<comments>http://www.randombugs.com/java/glassfish/installing-glassfish-31-cluster-debian-60-command-line.html#comments</comments>
		<pubDate>Wed, 04 May 2011 12:48:05 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=729</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/cluster.png" width="24" height="24" alt="Clustering" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/bluefish.png" width="24" height="24" alt="Glassfish" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/help-contents.png" width="24" height="24" alt="How-to" title="How-to" /><br/>Finlay is here. For me, Glassfish 3.1, was one of most awaited piece of software, for all it&#8217;s new features and clustering support. Glassfish 3.1 slightly changed the way to install cluster, in a much better and integrated way. This version come with a lot of new functionality, but also with improved parts related to Glassfish 2.1. 

The most interesting features of Glassfish 3.1 are: Clustering (100 instances per domain), SSH provisioning, Centralized management (with the help of ssh), High Availability Session Persistence, High Availability Java Message Service, RMI-IIOP Load ...<div id="crp_related"> </div>]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/installing-glassfish-31-cluster-debian-60-command-line.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Glassfish Enhanced Broker Cluster and &#8220;Failed to load JDBC driver&#8221;</title>
		<link>http://www.randombugs.com/java/glassfish/glassfish-enhanced-broker-cluster-failed-load-jdbc-driver.html</link>
		<comments>http://www.randombugs.com/java/glassfish/glassfish-enhanced-broker-cluster-failed-load-jdbc-driver.html#respond</comments>
		<pubDate>Thu, 14 Apr 2011 10:44:11 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[imq]]></category>
		<category><![CDATA[JMS]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=721</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/cluster.png" width="24" height="24" alt="Clustering" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/bluefish.png" width="24" height="24" alt="Glassfish" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/help-contents.png" width="24" height="24" alt="How-to" title="How-to" /><br/>Is not a bug, but a pretty annoying configuration thing which appear when you try to configure Enhanced Broker Cluster in Glassfish. I configured my persistent store, for Enhanced Broker Cluster, as jdbc / MySQL:

[&#8230;]
imq.persist.jdbc.dbVendor=mysql
imq.persist.jdbc.mysql.driver=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
imq.persist.jdbc.mysql.property.url=jdbc\:mysql\://sqlserver\:3306/jms
imq.persist.jdbc.mysql.needpassword=true
imq.persist.jdbc.mysql.user=jms
[&#8230;]

and after at restart I got the following error:

[13/Apr/2011:12:12:30 CEST] [B1060]: Loading persistent data&#8230;
[13/Apr/2011:12:12:30 CEST] ERROR [B3198]: Error initializing cluster manager:
com.sun.messaging.jmq.jmsserver.util.BrokerException: [B3024]: Failed to load JDBC driver: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
        at com.sun.messaging.jmq.jmsserver.persist.jdbc.DBManager.(DBManager.java:428)
        at com.sun.messaging.jmq.jmsserver.persist.jdbc.DBManager.getDBManager(DBManager.java:219)
        at com.sun.messaging.jmq.jmsserver.persist.jdbc.JDBCStore.(JDBCStore.java:98)
  ...<div id="crp_related"> </div>]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/glassfish-enhanced-broker-cluster-failed-load-jdbc-driver.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snmp support for Glassfish 2.1.1 (with cluster support)</title>
		<link>http://www.randombugs.com/java/glassfish/snmp-support-glassfish-211-cluster-support.html</link>
		<comments>http://www.randombugs.com/java/glassfish/snmp-support-glassfish-211-cluster-support.html#comments</comments>
		<pubDate>Mon, 14 Mar 2011 11:57:21 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[snmp]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=701</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/cluster.png" width="24" height="24" alt="Clustering" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/debian.png" width="24" height="24" alt="Debian" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/bluefish.png" width="24" height="24" alt="Glassfish" title="Glassfish" /><br/>Why you choose SNMP when Glassfish have strong JMX support? I presume, the answer for all who use SNMP is (almost) the same: Because the architecture of current monitoring solution is not scalable enough, and I cannot load my monitoring servers with supplementary JAVA processes. 

Before starting using SNMP I tried to see what solutions I have:
1. Re-design entire monitoring solution
2. Use SNMP
I&#8217;m a lazy person, so I choose to add SNMP support for all our clusters :).
[ad#ad-2]
To do that you should do 3 easy steps:
1. Upload the  JVM-MANAGEMENT-MIB ...<div id="crp_related"> </div>]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/snmp-support-glassfish-211-cluster-support.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
