zxJDBC, invoking stored procedures passing parameters (zxjdbc callproc)
for the 2 world users of zxJDBC: This works, the stored procedure is defined as: create or replace PROCEDURE PVTESTPROC AS BEGIN INSERT INTO PVTEST (COLUMN1) VALUES ('mamma'); commit;END PVTESTPROC;...
View ArticleGarbage Collection: testing the GC plugin for VisualVM
Watch the excellent tutorialInstall VisualVm GC plugin (I had to download it locally to install it, I could not install directly...) (beware, you should use visualvm for java 7, otherwise the plugin...
View ArticlePoll result: Automation and Puppet
In my organization we automate configuration of our servers..it looks like Puppet is still not that much popular.... infrastructure is still largely configured with ad-hoc home-grown methodologies.
View ArticleGetting rid of Windows line feeds
This script to find infected files: #!/bin/shPATH_TO_SCAN=$1if [ "${PATH_TO_SCAN}" == "" ]; then PATH_TO_SCAN="."fiFILELIST=$(find "${PATH_TO_SCAN}" |egrep...
View ArticleHow to demo Garbage Collection, JConsole and VisualVM
First, create with JDK 7 this Java Project in Eclipse: package com.pierre.gctests;import java.lang.management.ManagementFactory;import javax.management.InstanceAlreadyExistsException;import...
View ArticleXlib: PuTTY X11 proxy: MIT-MAGIC-COOKIE-1 data did not match
I got this message logging as user1 with X11 forwarding with putty, then sudo su - user2, then run JConsole solution: login as user1 xauth list (you get here a list of entries, say line1, line2...)...
View Articlejvisualvm: java.lang.OutOfMemoryError: PermGen space
I get OOM while profiling a JMV. If you do jvisualvm -J-XX:MaxPermSize=512m you get this: ps -ef | grep visualsoa 16602 15386 0 18:06 pts/0 00:00:00 /bin/bash...
View ArticleNeed a X-Server? Say welcome to Mobaxterm, and farewell to XMing
http://mobaxterm.mobatek.net/download.htmlI was really fed up with XMing hanging and crashing... mobaxterm is a lot sleeker and loaded with options.... I might even consider going PRO and using it...
View Articledifference between java and javaw
create this file JavaConsole.java: import java.io.Console;public class JavaConsole { public static void main(String[] args) { Console console = System.console(); System.out.println("the console is " +...
View ArticleOutage of JavaMonAmour.org
I have deleted by mistake the blog... luckily you have 90 days in blogger.com to recover the blog. Unfortunately the link between javamonamour.org and javamonamour.blogspot.ch was lost, and it was a...
View ArticleOpatch: ApplySession failed during prerequisite checks: Prerequisite check...
Trying to apply a patch: /opt/oracle/fmw11_1_1_5/oracle_common/OPatch/opatch apply -jdk /opt/oracle/java/ -invPtrLoc /opt/oracle/fmw11_1_1_5/oraInst.locInvoking OPatch 11.1.0.8.2Oracle Interim Patch...
View ArticleConfiguring JProfiler for WebLogic
Download and install JProfiler 7.2 (the latest is 8 at the time of writing). Enter the licensing information. Run the Session/Integration/New Remote Integration.Then remote Application Server: this...
View ArticleJProfiler connection through SSH Tunnel
If you don't want to open a firewall for JProfiler, here is a simple trick: - on the monitored server, run the startManagedWebLogic_jprofiler.sh - make sure the port 8849 is being listened to (netstat...
View ArticleMicrosoft Office Communicator chat history
Microsoft stinks, and his products are bloated with useless cosmetic features and lack essential stuff. Communicator is so ridiculous that it doesn't even keep a chat history, so if you close the chat...
View ArticleWLST to create machines
run wlst, and stay in offline mode. I read the domain "osbpl1do", which has already 1 machine, and I want to add an extra machine. readDomain('/opt/oracle/domains/osbpl1do')cd('AnyMachine')ls()and here...
View Articlemanaging cron entries with Puppet
Puppet has a predefined type cron. Which is very cool. The only issue is that we don't want to hardcode cron stuff in any pp manifest, since each node has to be configured in a different way. This is...
View ArticleJMA for Afghanistan, and against war
While here we talk about logstash and puppet, women and children are destroyed daily in one of the most preposterous wars in history, the Afghanistan war. The media don't even mention any more WHY...
View ArticleDrag and Drop movies disabled in STINKY iTunes
First make sure that your movie type is actually accepted in STINKY Iphone (STINKY Iphone plays only a small subset of movie types) Solution:Start STINKY Itunes in safe mode (hold down SHIFT+CONTROL...
View ArticleWebLogic: how to recover a config.xml reduced to 0 size
if you have "configuration archive enabled" in your domain, you can retrieve the latest archive and apply diffs since last configuration changeor you can do the same using the config.xml.bckif your...
View Article