Monday, June 2, 2008, 10:06 AM - Java
Issue:
The installation files as downloadable from Bea Weblogic are jar files instead of the executable files as mentioned in the installation manual.
Solution:
Use a different manual.
The important command is:
java -jar <jarfile> -mode=console
| permalink
Friday, May 23, 2008, 09:17 AM - Java
Issue:
Bea Weblogic JMS information is not showing on any other machine in a cluster except the physical machine where the JMS is running.
Solution:
Bea implemented the JMS service standard as a high performance solution. To use this:
A JMS server has to be created per managed server (non-migratable);
The queues have to be created as (uniform) distributed queues with as target the cluster;
The connection factory also has to target the cluster.
| permalink
Wednesday, April 16, 2008, 04:24 PM - General applicable solutions
Issue:
Unknown run time error in IE7 occurs while trying to put content in a div with javascript. No errors are to be seen in Firefox.
Solution:
Most likely a reserved keyword has been used as id for the div (like id=submit). Rename the div to another term, and the problem will most likely disappear.
| permalink
Tuesday, April 8, 2008, 01:03 PM
Issue:
While using dbms_output.put_line no output shows up at the console using sqlplus.
Solution:
Set serveroutput to on:
set serveroutput on
Now output will be visible
| permalink | related link
Tuesday, April 8, 2008, 11:18 AM - Oracle, Oracle
Issue:
You have an custom exception you want to catch in plsql.
Solution:
Create a custom exception:
declare
MISSING_DATA exception;
PRAGMA EXCEPTION_INIT(MISSING_DATA, exception_number);
begin
begin
Your SQL;
exception when MISSING_DATA then dbms_output.put_line(' exception caught');
end;
end;
/
The important part is to set the correct exception_number:
Run your sql and see what exception oracle throws as first exception (ORA-12345). Replace exception_number with -12345.
| permalink
Saturday, March 29, 2008, 06:10 PM - Java
Issue:
Bea Weblogic 9.1 fails during the change of configuration using the admin console (apply changes) with the exception: weblogic.management.provider.EditFailedException
Solution:
There is 2 possible solutions: First try the solution posted by Bea.
If this does not work, try the following:
Stop Bea (with most likely a kill -4). Assign more memory to Bea. Start Bea again. This might solve your issue.
Maybe a complete reboot of your environment will work too.
| permalink | related link
Sunday, March 23, 2008, 02:15 PM - Microsoft SQL Server
Issue:
You are trying to grow a Sequoia (giganteum) from seed (germination) and do not know how to do this.
Solution:
The shopping list:
- Buy standard plant soil at your local garden center;
- Buy breakable plastic pots, organic pots or be prepared to kill of your flower pot when the tree grows, diameter pot about 8 cm at the top;
- Buy a germination hothouse (about 20 cm high is a nice size) with some ventilation holes, and possibility to mount a light on it;
- Buy a small light (bulb/tube: Bulb if outside since it also gives sufficient warmth, 6 to 10 watts light is enough);
- Some aluminium foil for reflecting the light.
The planting:
1) Mount the lamp onto the hothouse;
2) Coat the inside of the hothouse bottom and the sides (until halfway the height of the hothouse) with aluminium foil=> Reflection increases the efficiency of the light, so 6 to 10 watts of light is enough;
3) Take the pots and fill them to the top with soil, do not compress the soil;
4) Add a generous amount of water to the soil;
5) Put some seeds on top of the soil (about 5 per pot);
6) Put very little (1 to 2 millimeter) soil on top of the seeds;
7) Add a bit more water;
8) Put the pot(s) into the hothouse;
9) Place the pots inside your house;
10) Plugin & turn on the light. Leave the light on for about 18 hours per day (longer is allowed unless it disturbs you).
About 2.5 to 3 weeks are between sowing the seeds and the first sequoia emerging using a surrounding temperature of about 15 to 20 degrees Celsius.
If the inside of the hothouse fogs up to much, you can clean it.
Occasional sunlight will help the process (and makes it possible for you to turn of the light)
Notes:
A small percentage of seeds really grows into tiny sequoias with even less of those surviving the first year. Expect about 25% to grow with this method.
| permalink
Saturday, February 16, 2008, 10:53 PM - Joomla
Issue:
Extending group management in Joomla (1.0) does not seem to work with script from http://forum.joomla.org/viewtopic.php?f=231&t=257938.
Solution:
The table structure of the jos_core_acl_aro_groups changed slightly. The new script should look like:
SET @parent_name = 'Registered';
SET @new_name = 'Support';
-- Select the parent node to insert after
SELECT @ins_id := group_id, @ins_lft := lft, @ins_rgt := rgt
FROM jos_core_acl_aro_groups
WHERE name = @parent_name;
SELECT @new_id := MAX(group_id) + 1 FROM jos_core_acl_aro_groups;
-- Make room for the new node
UPDATE jos_core_acl_aro_groups SET rgt=rgt+2 WHERE rgt>=@ins_rgt;
UPDATE jos_core_acl_aro_groups SET lft=lft+2 WHERE lft>@ins_rgt;
-- Insert the new node
INSERT INTO jos_core_acl_aro_groups (group_id,parent_id,name,lft,rgt)
VALUES (@new_id,@ins_id,@new_name,@ins_rgt,@ins_rgt+1);
| permalink | related link
Sunday, January 27, 2008, 02:42 PM - SuSE, Oracle
Issue:
The Oracle installer fails with the following error on SuSE 10.3:
java: xcb_xlib.c:52: xcb_xlib_unlock: Assertion `c->xlib.lock' failed
Solution:
The java based installer is not compiled on the local machine and is expecting certain libraries with a certain version. The comparison of these libraries can be relaxed by setting the following environment parameter:
export LIBXCB_ALLOW_SLOPPY_LOCK=0
Try to run the installer again. It should start.
| permalink
Sunday, December 16, 2007, 06:51 PM - SuSE
Issue:
Page with an apache2 http proxy gives a 403 error using SuSE linux. The logfile shows:
[Sun Dec 16 18:46:20 2007] [warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Sun Dec 16 18:46:20 2007] [warn] proxy: No protocol handler was valid for the URL /error/HTTP_FORBIDDEN.html.var. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
Solution:
Add the following to /etc/sysconfig/apache2:
APACHE_MODULES=".. proxy proxy_connect proxy_ftp proxy_http"
In which .. are the modules you already have in place.
| permalink
Monday, December 10, 2007, 10:34 PM - Java
Issue:
java.lang.NoClassDefFoundError: javax/mail/Authenticator in Tomcat while using javamail.
Solution:
Javamail contains a slight issue with locating the activation jar file from JAF.
Place the mail jars and activation.jar in tomcat/common/lib. This will solve the problem.
| permalink
Saturday, December 1, 2007, 04:34 PM - php
Issue:
You have a problem installing pear:
Installing PEAR environment: /usr/local/php5/lib/php/
Notice: unserialize(): Error at offset 255 of 987 bytes in phar://install-pear-nozlib.phar/PEAR/Config.php on line 1007
Fatal error: Call to undefined method PEAR_Error::getLayers() in phar://install-pear-nozlib.phar/index.php on line 66
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2
Solution:
Delete your pear.conf from where ever it is (usually /etc or your php $basedir/etc). It contains different data than expected by the installer, causing the installer to crash.
| permalink
Saturday, December 1, 2007, 04:32 PM - General applicable solutions
Issue:
Qmail delivers message many times after migration from Plesk to vpopmail setup.
Solution:
Remove "|autoresponder" from .qmail configuration for the troubled user. The queue will than empty itself delivering the messages 1 last time.
| permalink
Saturday, December 1, 2007, 04:31 PM - General applicable solutions
Issue:
Qmail bounces email after migration of some mailboxes (from Plesk to vpopmail setup).
The bounce mail from vpopmail:
Hi. This is the qmail-send program at xyz.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<abc@xyz.com>:
This message is looping: it already has my Delivered-To line. (#5.4.6)
Solution:
You setting contains a forward which is not understood by the vpopmail setup of qmail. Replace the .qmail-default file content for this domain with:
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
| permalink
Saturday, December 1, 2007, 04:27 PM - Java
Issue:
The logrotate of Bea Weblogic does not seem to work, while in the rotated files directory created by the admin, files are created. The logfiles just keep growing untill the disk is full.
Solution:
The issue is that Bea weblogic wants an absolute path in the configuration for the logrotate, but appearently can live with a relative path when writing to the logfiles itself. Replace all the paths to the logfiles and also to the rotation location with absolute paths, and the problem should be solved. Restart admin server to verify it works.
| permalink
Saturday, July 7, 2007, 02:02 PM - General applicable solutions
Issue:
Greybox provides pop-up frames by altering the href with javascript code. The onclick gets defined.
When wanting to use the same code from Flash, there are some problems with the transparancy of the greybox code.
Solution:
To get the greybox pop-up working correctly, call the javascript from flash with the following function (from greybox examples.html file):
getUrl("javacript:GBFlashCall(caption,url,height,width)");
In which you can set the caption, url, height and width yourself.
Add a script link in the header of you html file after the greybox files, also add the GB_ROOT_DIR, else it will not work:
<script type="text/javascript">
var GB_ROOT_DIR = "./greybox/";
</script>
<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<script type="text/javascript" src="GBFlashCall.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
Create the GBFlashCall.js file with the following content on the correct loction as defined in the <script> call:
GB_myShow = function(caption, url, /* optional */ height, width, callback_fn) {
var options = {
caption: caption,
center_win:true,
height: height || 500,
width: width || 500,
fullscreen: false,
show_loading: true,
callback_fn: callback_fn
}
var win = new GB_Window(options);
return win.show(url);
}
function GBFlashCall(caption, url, height, width) {
myShow(caption, url, height, width);
}
You can alter the true/false options to alter the behaviour of you pop-up, or you can move the options over to flash to get the same results.
| permalink
Monday, March 19, 2007, 03:32 PM - Oracle
Issue:
Using unix variables in an Oracle sql script with sqlplus.
Solution:
Use the following parameters to pass the sql to sqlplus:
$SQLDIR/sqlplus -silent $USER/$PASSWORD $SCRIPTNAME.sql PARAM
Important is the @ before the $SCRIPTNAME. The last parameter PARAM can be used in sqlplus with &INT where INT is the number of the parameter (in this case 1=> &1).
Also important is the SQL which you parse into sqlplus in this case: Put a quit on the last line to prevent sqlplus from not exiting in batchmode, for example if it is run from the cron deamon.
| permalink
Sunday, March 18, 2007, 07:44 PM - Oracle
Issue:
Oracle SQL Developer and other graphic userinterfaces use database properties to determine how to update or delete a row in a database. This can lead to mystery record locks which can not be traces.
No lock can be found in V$LOCK, no abnormal sessions can be found in V$SESSION.
Typical oracle where statement looks like:
WHERE ROWID = 'ABCDE+ABCDEFGHIJKL' AND ORA_ROWSCN = '123456'
Solution:
Type your own update statement instead of the SQL Developer generated one, and see if that works. If so, it is a problem with SQL Developer, else search on.
| permalink
Wednesday, March 7, 2007, 01:49 PM - Oracle
Issue
The SET ECHO OFF command in sqlplus does not produce the required result. In other words: You are still seeing SQL code in your logfiles or spoolfiles.
Solution
There is a sqlplus parameter which is also of influence. This parameter is: silent. If you call sqlplus with -silent, the SQL code will not show anymore.
| permalink
Sunday, January 21, 2007, 04:46 PM - php
Issue:
There is a possibitiy that at least the pathway module replaces an & to many with &amp;.
Solution:
The ampReplace function in the includes/mambo.php does not take single & with spaces around it in account. To counter that, add a str_replace for this single &:
function ...
$text = str_replace( '& ', '*--*', $text );
...
$text = str_replace( '*--*', '& ', $text );
...
Leading to the total function as displayed below:
/**
* Replaces & with & for xhtml compliance
*
* Needed to handle unicode conflicts due to unicode conflicts
*/
function ampReplace( $text ) {
$text = str_replace( '& ', '*--*', $text );
$text = str_replace( '&#', '*-*', $text );
$text = str_replace( '&', '&', $text );
$text = str_replace( '*-*', '&#', $text );
$text = str_replace( '*--*', '& ', $text );
return $text;
}
| permalink
Back Next





