Web Application for File Upload with streaming
This gives you an entire working example (worth 1000 user manual pages) http://www.codejava.net/java-ee/servlet/apache-commons-fileupload-example-with-servlet-and-jsp .... I have tested it and put in...
View ArticleMinimalistic Java application to encode/decode in Base64
If your Outlook blocks all kind of attachments, you have here the FINAL resolution to the problem (Outlook doesn't check for Base64 text attachments) import sun.misc.BASE64Decoder;import...
View ArticleWebLogic MemorySessionContext
We had some PROD OutOfMemory recently.... done a heap dump and seen that we were in this situation: http://xmlandmore.blogspot.ch/2013/03/analyzing-performance-issue-caused-by.htmlOne instance of...
View ArticleHunting the Permgen classloader memory leak
In the past I have hunted several Memory leaks, but never a permgen leak. This is a totally different beast and there is considerably less literature and supportive tools than for heap leaks. Here...
View ArticleORA-24756: transaction does not exist
Here is the stacktrace: java.sql.SQLException: ORA-24756: transaction does not exist at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450) at...
View Articleulimit and lsof
PID of WLS is 29518 to count how many file descriptors are held by a process: ls /proc/29518/fd | wc -l 666 funnily this doesn’t match the count reported by lsof ( one day I will discover why): lsof -p...
View ArticleWebLogic: difference between self-tuning-thread-pool-size-max and...
self-tuning-thread-pool-size-maxhttps://docs.oracle.com/middleware/1212/wls/WLACH/pagehelp/Corecoreserverserverconfigtuningtitle.htmlSets the maximum thread pool size of the self-tuning thread pool.The...
View ArticleAutomate mouse click repetitions with Auto Mouse Click
http://www.murgee.com/auto-mouse-click/First, assign the "find mouse position" to F6 (you don't want to have to manually find a X-Y coordinate...)... and don't forget to define F7 as Stop... all the...
View ArticleContextClassLoader, SystemClassLoader, CurrentClassLoader
If you run this code as a Java Application (no JEE container): public class BootstrapCLTest { public static void main(String[] args) { BootstrapCLTest bootstrapCLTest = new BootstrapCLTest();...
View ArticleHow to generate a OutOfMemoryError PERMGEN
Inspired by a very interesting presentation by Pierre-Hugues Charbonneau: I have partially copied his code to generate a OOM PERMGEN: import java.lang.reflect.InvocationHandler;import...
View ArticleMissing JAVA_VENDOR and JAVA_HOME in WebLogic silent installation
in $DOMAIN_HOME/bin/SetDomainEnv.sh I keep finding: BEA_JAVA_HOME=""export BEA_JAVA_HOMESUN_JAVA_HOME=""export SUN_JAVA_HOMEif [ "${JAVA_VENDOR}" = "Oracle" ] ; then(and JAVA_VENDOR is not declared,...
View ArticleGIT: First steps with JGit
If you need a Java API for GIT, forget about JavaGit (it's just a wrapper around GIT CLI) and EGit - which internally uses JGit. http://eclipse.org/jgit/Useful snippets here...
View ArticleDeleting a non empty directory with find -delete
mkdir /opt/oracle/Pipposcriptsstaging/PippoScripts-1.23mkdir /opt/oracle/Pipposcriptsstaging/PippoScripts-1.22(put some content in both folders)this will fail:find /opt/oracle/Pipposcriptsstaging/...
View ArticleUsing Oracle pre-built VM for Oracle VM Manager and Server
No need to install from scratch, you can use these 2 prebuilt VMs: http://www.oracle.com/technetwork/server-storage/vm/template-1482544.html I download and "import appliance"...
View ArticleStarting a Managed Server with WLST and NodeManager
1) factor out commonly used constants into a setenv.sh file:#!/bin/sh#prefix for domain...
View ArticleLiquibase in Action
Download the product from http://sourceforge.net/projects/liquibase/files/Liquibase%20Core/liquibase-3.1.1-bin.zip/downloadUnzip it on your local drive Type "liquibase" , you will get a pretty help. We...
View ArticleWhich wlst.sh?
I have installed only OSB (if you install SOA Suite, you will get more instances of wlst.sh :o) )cd $ORACLE_HOMEfind . -name...
View ArticlePopular products in the CM and Build World
In the Hudson Plugin list you find a lot of references to available products and standards:Atlassian Crowd a single sign-on solutionArtifactory"Artifactory acts as a proxy between your build tool...
View ArticleJKS keystore password vs key password
Something for me confusing (I get confused quite easily) is the relation between a JKS keystore password and a key password. Some facts: a .key file SHOULD always be protected by password. a .jks store...
View ArticleOSB developer questions
How do you check the linux distribution versionHow can you see if your OS is running a 64 or 32 bit OSCan you explain me the basic Linux directory structure (/var/log/, /etc, /opt. /dev, /users)How can...
View Article