Thursday, December 13, 2012
Negative seek offset error / Checksum validation fails
Negative seek offset error / Checksum validation fails
If you face any of these issue , while using nexus with tomcat. Do not doubt the nexus, whose all versions are stable and works fine.
This is the issue with Tomcat. I faced this issue when i use tomcat apache-tomcat-7.0.28 with nexus.
I changed the nexus version from 1.9.2 to 2.3 and tried. Faced similar issue. and changed...
Thursday, November 29, 2012
Plist File Parsing Using Java
Plist File Parsing Using Java
Below example illustrates , how to iterate over a plist file Nodes using apache's XMLPropertyListConfiguration
public void infoPlistConversion(String plistPath) throws Exception {
XMLPropertyListConfiguration conf = new XMLPropertyListConfiguration(plistPath);
...
Monday, October 29, 2012
Tomcat Maven Plugin Remote Debugging using Eclipse
I am developing a maven based web application. i am running the application with tomcat maven plugin like
mvn tomcat:run
I want to debug the application from eclipse.
Step 1:
export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512m" which allocates 512 MB of memory.
Step 2:
export MAVEN_OPTS="-agentlib:jdwp=transport=dt_socket,address=2480,server=y,suspend=n"
Step 3:
run the application...
Thursday, August 16, 2012
Jdom CRUD Operations
Hi,
Jdom CRUD Operations
Here is sample code to do some operations like
//Adding elements
public void addElementAtXpath() {
try {
XPath xpath = XPath.newInstance("publishers");
...
Wednesday, August 8, 2012
Eclisep Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf

Eclisep Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf
If you face this issue in eclipse while running a standalone java application. Eclipse will allocate only 384 MB of Java heap memory. based on the type of JRE you are using and...
Thursday, August 2, 2012
JDOM - How to insert an element, after another
JDOM - How to insert an element, after another
private Document document_ = null;
private Element root_ = null;
@Test
public void generateXml() {
//Url path of the file
String filePath = "http://172.................. .xml";
...
Wednesday, June 27, 2012
Convert Java Objects to / from JSON using Gson
Here is the example code which will give you the overview of gson
package com.file;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import com.google.gson.Gson;
import...
Thursday, May 24, 2012
Compile Jasper reports with Maven Plugin
jasperreports-maven-plugin is a plugin which is used to convert all the jrxml files(Designed templtes) to .jasper files.
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
...
Friday, January 20, 2012
JMeter Calculation

Throughput Calculation In JMeter
select a label name in result.xml which is generated by jmeter
search the min (timestamp(ts)) for corresponding labels
search the max (timestamp (ts) + elapsed time (t)) for corresponding labels.
calculate the difference...
Subscribe to:
Posts (Atom)