A lot of projects run integration and unit tests, but often miss a little something – logging. When you use logging you often check if the log level is enabled or not before you log. But this means that you introduce a control flow statement that enables or disables some code. So if you […]
Some time ago I wrote the blog “Remove directories and files permanently from git”. Removing files from a git history is not an unusual task and I thought that it would be nice if there is an easier and faster way to do it. I thought that there should be a gui that help you to find […]
When multiple developers work on one project it is also essential that they all commit source code that matches some formatting rules. Otherwise reviewing changes and merging source code can be a great challenge.
When using git repositories you can install hooks. Hooks are any kind of executables that can be run before something happens […]
As of java 1.7 the java language specification allows integer literals to contain underscores in order to make them more readable. If it is applied in a good way it can enormously increase the readability of your code.
In java 1.6 one had to define integer literals like this:
int iterations = 10000000;
long bytes = 0b11010010011010011001010010010010;
With java 1.7 such integer literals can be […]
How to fix java.lang.ClassNotFoundException: com.ibm.websphere.ssl.protocol.SSLSocketFactory in eclipse
If you use IBM’s WebSphere plugin for eclipse you might have the problem that other plugins can’t establish an SSL connection anymore. The result is most times a ClassNotFoundException: com.ibm.websphere.ssl.protocol.SSLSocketFactory. This blog explains the reason behind the problem and gives a workaround to prevent that exception.
When a component within eclipse (e.g. atlassian jira connector) tries to connect to […]
Some day you might want to remove files or directories from git permanently, because someone committed sensitive data or large binary files that should not reside in the repository to keep clone times short. In this blog I want to show you how to delete directories and files permanently from a git repository.
The first chapter […]
When trying to execute a wsadmin command using ant you might get the error
Unable to parse setupCmdLine: null\bin\setupCmdLine.bat (The system cannot find the path specified)
This error is caused when you don’t provide the user.install.root system property or no wsadmin task profileName property.
In order to fix you can either add a user.install.root property and point it to your websphere profile directory (in default installations […]
Some time ago I stumbled on a weird exception when deploying an EAR on IBM WebSphere Application Server 8.5. The EAR got successfully installed, but when the application server tried to start the WAR archive of my EAR I got this exception:
javax.naming.ConfigurationException: NamingManager.getURLContext cannot find the factory for this scheme: java
After searching the web for this exception I came to the conclusion that I have to […]