home / JAVA

Category: JAVA

HOW TO: Install Javadocs using Netbeans and OS X MAC

  After java programming within Netbeans, I noticed the javadocs were not included as part of the vanilla installation. If you have experienced the Oracle website in the past, you will understand how much of a nightmare it is to navigate through. So here's a simple demonstration on how to install the Javadocs for your netbeans/OS X MAC installation.

Understanding Java memory

  This article takes a simplistic approach for individuals to understand about memory allocated to Java. I'm a true believer that new learning should be built on prior knowledge of which allows an individual to deepen their existing understanding instead of starting from scratch. I'm assuming you know something about java though unless you're highly intuitive, understanding java memory performance issues can become difficult to grasp and easily forgotten. I've deliberately avoided any technical jargon for the initial phase to prevent individuals stopping mid-sentence to look up the terminology though by the end of this blog hope you understand java in it's correct form.

HOW TO: Create a properties file in Java

  This blog quickly outlines how to use Java properties file, which consists of property values that is then stored into a string value and can be used however you wish

InputStream not writing to file in Java

  I experienced that inputStream within a Java class was working after a few times though it managed to stop writing

Enabling Assert Java in Eclipse

  Assert is used for data validation to ensure the values are realistic. Age is a good example, if you pass over a value off 600, it's not realistic and therefore you can apply an assertion within the code. Assert is used during development and should not be used in production environments.

Caused by: javax.naming.NameNotFoundException: Unable to resolve 'jdbc.xxx'. Resolved 'jdbc'

  I was receiving a datastore connection error when trying to connect a JNDI call to the Weblogic datastore.

How to resolve java.lang.ClassNotFoundException in Java

  ClassNotFoundException is a nightmare for developers regardless on their java experience. java.lang.ClassNotFoundException occurs because a particular java class cannot be found. Simple enough, there's many reasons why this may be the case.

Difference between double equals, instanceof(), and equals() method in Java

  Difference between double equals, instanceof(), and equals() method in Java

Minimal Weblogic memory allocation for OIM 11gR2PS2

  I could not locate the absolute memory allocation for the Weblogic managed servers for OIM and SOA. Allocating the maximum allocation pool (-Xmx), heap size, does not allocate the total RAM memory to the Weblogic managed servers. Items outside the realms of the maximum allocations poll, such as thread stacks, perm sizes, and library memory allocations also need to be considered.

Starting up SOA - java.lang.OutOfMemoryError: Java heap space

  It's likely that you've either run out of memory, or that the heap size allocated is insufficient

Installing OIM 11gR2PS2 Customization Installer JDeveloper Extension

  The steps required to use the exposed OIM 11gR2PS2 APIs from JDeveloper to your VM OIM instance, running on MAC and RHEL respectively. The example below goes through a quick demonstration on how to create a user using the exposed OIM APIs

Login errorjavax.security.auth.login.LoginException: No LoginModules configured for xellerate

  You need to include the system property of the 'java.security.auth.login.config'. The fastest way is to include the following System.setProperty line within your java code when authenticating against weblogic

How to use OIM 11g APIs

  Dont bother about Thor, just use Oracle apis instead, use the Oracle http://docs.oracle.com/cd/E21764_01/doc.1111/e14309/apis.htm#BCFBHAAD

Add java code within blog

  Here are the steps on how to add colourful java code within your custom blog.

AQ Message from java to Oracle Database Example

  The script below highlights the example of the (raw) AQ Message creation

HOW TO: Enqueue a JMS_TEXT_MESSAGE from java to Oracle database Queue

  In this example, I've quickly highlighted the JMS (Java Message Service) components with a simple POJO (Plain Old Java Object) for an asynchronous oracle database queue as well as constructing a JMS_TEXT_MESSAGE to the queue.

Tomcat NioEndpoint$SocketProcessor.doRun java.lang.NullPointerException error

  When initiating the Tomcat instance, the cas-stderr log file will log a SEVERE error logging multiple times every few seconds

Comments