We have 2 types of submissions : Free (BASIC) and Payed (PREMIUM)
|
|
www.randombugs.com | Details | hits : 222 |
|
-
RSS Feeds : Random Bugs - Just another real Bastard Operator From Hell :
-
Glassfish 3.1.1 workaround for Denial of Service through hash table multi-collisions - 05-01-2012



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′s of KB. In Glassfish 3.1.1 ...
-
Choosing a communication library for a distributed application - 03-01-2012

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’t know what communication API to choose. In first phase we didn’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 ...
-
User [admin] from host null does not have administration access - 23-11-2011



I should admit, I didn’t read the Glassfish 3.1 Administration Manual, and I don’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’t have any problem. When I’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
[#|2011-11-23T12:12:40.599+0000|INFO|glassfish3.1.1|javax.enterprise.system.tools.admin.com.sun.enterprise.container.common|_ThreadID=34;_ThreadName=Thread-2;|User [admin] ...
-
Apache Dynamic Virtual Hosting and PHP security - 06-06-2011



It’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’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 ...
-
Installing a Glassfish 3.1 Cluster on Debian 6.0 only from command line - 04-05-2011



Finlay is here. For me, Glassfish 3.1, was one of most awaited piece of software, for all it’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 ...
-
Glassfish Enhanced Broker Cluster and ?Failed to load JDBC driver? - 14-04-2011



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:
[...]
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
[...]
and after at restart I got the following error:
[13/Apr/2011:12:12:30 CEST] [B1060]: Loading persistent data…
[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)
...
-
Snmp support for Glassfish 2.1.1 (with cluster support) - 14-03-2011



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’m a lazy person, so I choose to add SNMP support for all our clusters .
To do that you should do 3 easy steps:
1. Upload the ...
-
My Reading List or what I should read in the near future - 25-02-2011
Howdy everyone! Because I travel a lot, I build a list of books which I should buy and read next in the airports, bus stations etc or everywhere I should wait some amount of time. This list contain everything what an System / Application Administrator should know. I’m usually dealing with Java/Tomcat/Glassfish/Jboss under Linux, but also I have a strong background of networking, security and cloud computing. This books are my choice and I think is a good choice for everyone who want to learn or improve your skills as ...
-
sun.jvm.hotspot.debugger.NoSuchSymbolException: Could not find symbol ?gHotSpotVMTypeEntryTypeNameOffset? - 08-02-2011



This, probably, is a bug which was not spotted very often because is very obscure and the Debian guys moved very quick and fixed the problem. I know, I found a lot of bugs related to sun.jvm.hotspot.debugger.NoSuchSymbolException: Could not find symbol “gHotSpotVMTypeEntryTypeNameOffset”, but this is different. Usually was a problem of “striping symbols from libjvm.so”, but in my case wasn’t that. Also I found this error related to OpenJDK (I use Sun JDK) and the solution was to use -server flag to get the correct libjvm.so. Anyway it took me ...