Maven – java.lang.OutOfMemoryError

[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.expandCapacity(
at java.lang.AbstractStringBuilder.append(
at java.lang.StringBuffer.append(

set MAVEN_OPTS=”-Xmx1024m”


maven findbugs Exception – Caused by: /target/findbugsXml.xml

Problem Statement:

Embedded error: /target/findbugsXml.xml (No such file or directory)
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: A java source file could not be added

Caused by: /target/findbugsXml.xml (No such file or directory)

This bug is not producible in Windows OS



After using following settings, the error is gone. The problem is version number. 
If we dont give version it will take 1.2.1 and failed in Linux. 
If you put 1.2 it works fine in Linux.



Java-Oracle The Network Adapter could not establish the connection Exception

Problem Statement: Java / Oracle Exception

logExceptions, Io exception: The Network Adapter could not establish the connection

Test cases are working fine in dev environment. Same tests are failed in unix environment and caused the above exception.

Solution: In config file database host name is abcd. From Unix environment, it failed to resolve this name to ip address.

Replaced host name with ip address. Now it is working in windows and unix too.