How to open ADOC (*.adoc) file?

On July 1, 2014, in Uncategorized, by Kishore Chintoju

ADOC format represents file format called Ascii Doc.

It’s similar to humar readable editable markup formats such as Markdown.

More information at

Online viewer and editor at


Ever seen this. This usually happens when the db column in question is not a BLOB.

In my case, the column was a CLOB. You wouldn’t think it should work, but it doesn’t.

Caused by: java.sql.SQLException: Invalid column type: getBLOB not implemented for class oracle.jdbc.driver.T4CClobAccessor
at oracle.jdbc.driver.DatabaseError.throwSqlException( ~[ojdbc14- JDBC Driver version - ""]
at oracle.jdbc.driver.DatabaseError.throwSqlException( ~[ojdbc14- JDBC Driver version - ""]
at oracle.jdbc.driver.Accessor.unimpl( ~[ojdbc14- JDBC Driver version - ""]
at oracle.jdbc.driver.Accessor.getBLOB( ~[ojdbc14- JDBC Driver version - ""]
at oracle.jdbc.driver.OracleResultSetImpl.getBLOB( ~[ojdbc14- JDBC Driver version - ""]
at oracle.jdbc.driver.OracleResultSetImpl.getBlob( ~[ojdbc14- JDBC Driver version - ""]
at oracle.jdbc.driver.OracleResultSet.getBlob( ~[ojdbc14- JDBC Driver version - ""]
at org.apache.commons.dbcp.DelegatingResultSet.getBlob( ~[commons-dbcp-1.4.jar:1.4]
at org.apache.commons.dbcp.DelegatingResultSet.getBlob( ~[commons-dbcp-1.4.jar:1.4]
at org.hibernate.type.descriptor.sql.BlobTypeDescriptor$5.doExtract( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.type.descriptor.sql.BasicExtractor.extract( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.type.AbstractStandardBasicType.nullSafeGet( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.type.AbstractStandardBasicType.nullSafeGet( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.type.AbstractStandardBasicType.nullSafeGet( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.type.AbstractStandardBasicType.hydrate( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.loader.Loader.loadFromResultSet( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.loader.Loader.instanceNotYetLoaded( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.loader.Loader.getRow( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.loader.Loader.getRowFromResultSet( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.loader.Loader.doQuery( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
at org.hibernate.loader.Loader.loadEntity( ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
... 17 common frames omitted

java.lang.IllegalStateException: No active session context

Have you ever seen this error while trying to use seam services from within an MDB. This is because MDB invocations do not have any seam contexts or session initialised as these requests are initiated by the server and are not coming through Seam/Identity filters.

A quick solution for this would be have an EJB interceptor which would take care setting up Seam for you. This would intialize seam context before your onMessage call and end it after it.


import java.util.HashMap;
import java.util.Map;

import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;
import javax.jms.Message;
import javax.jms.ObjectMessage;

import org.jboss.seam.Component;
import org.jboss.seam.contexts.Lifecycle;
import org.jboss.seam.log.Log;
import org.jboss.seam.log.Logging;

import com.hrx.rasp.ejb.signon.RaspIdentity;

public class MDBSeamSecurityInterceptor
	private Log logger = Logging.getLog(MDBSeamSecurityInterceptor.class);

	public Object onMessageInterceptor(InvocationContext ctx) throws Exception
		Map<String, Object> session = new HashMap<String, Object>();
		Map<String, Object> appCtx = new HashMap<String, Object>();
			Lifecycle.beginSession(session, appCtx);

			if (ctx.getMethod().getName().equals("onMessage"))
				logger.debug("onMessage method intercepted");

                                //e.g. optional seam identiy initialisation
                                RaspIdentity identity = RaspIdentity.getInstance();


			return ctx.proceed();
		catch (Exception e)
			logger.fatal("failing to authenticate MDB with seam identity", e);
			throw new RuntimeException(e);




Exception starting filter Seam Filter java.lang.ClassCastException: org.jboss.seam.servlet.SeamFilter cannot be cast to javax.servlet.Filter

Ever notice this error when deploying your application with Seam.

This usually happens due to two reasons.

  • You have duplicate seam jars in your application (e.g. EAR/lib and WAR/WEB-INF/classes/lib)
  • or
  • You have a servlet-api jar bundled as part of your app, which you never should as your web server has it (tomcat/jboss/geronimo etc)

Hope this helps someone.. coz I’ve stumbled into this and solved it couple of times.

Tagged with:

If you see this error in your logs, it just means that your JDK has not been able to locate the trustStore.

Fix this in your user profile (JDK fix)

Caused by: the trustAnchors parameter must be non-empty

You can verify this by typing this into console (command prompt in windows)

C:\>keytool -list
keytool error: java.lang.Exception: Keystore file does not exist: C:\Users\John.Doe\.keystore

A simple fix for this can be to copy your default keystore supplied by java into your profile.

C:\>copy %JAVA_HOME%\jre\lib\security\cacerts %USERPROFILE%\.keystore
1 file(s) copied.

This should put a default keystore into your profile, which you can play around with.

This by no means is the solution you should be using in server environments. There you are various ways to handle this at server level.

See below links for more info.

Fix this for a java application (e.g. Application Server like JBoss)

Set the trust store location and password on the java executable using JVM arguments.

Arguments:<TRUST_STORE_LOCATION><TRUST_STORE_PASSWORD> (default is 'changeit')

You can do this for Jboss by adding as similar instruction mentioned below to your /bin/run.bat

After placing my keystore in \server\\conf, I added this line to my run.bat.

set "JAVA_OPTS=%JAVA_OPTS%\server\<JBOSS_PROFILE>\conf\.keystore"
Tagged with:

Deploy to Artifactory (remote repository) using Maven

On December 3, 2012, in java, maven, by Kishore Chintoju


Deploy to artifactory using maven.


Add your repository server configuration to maven settings.xml

This needs to be done only once. If the repository is already configured in your user settings.xml, skip this step.

Add below configuration to your settings.xml

Below configuration can be obtained from your artifactory

  <password>{password/encrypted password}</password>

More info here

Add maven-deploy-plugin to your pom


More info

Add remote (artifactory) repository to your POM


More info at

Deploy Using Maven

Running below command would deploy it to the default repository

1.mvn deploy

In case of multiple repositories in pom, specify repository id.

1.mvn deploy -DrepositoryId

More info at

Tagged with:

We were able to complete this telugu copy of Saibaba 9 Thursday’s Vratam due to the grace of baba during our vrat. This book is a result of a huge effort from my wife.

Please download/read/correct/distribute as you see fit.

Tagged with:

Stop two words from combining in telugu font

On May 3, 2012, in fun, web development, by Kishore Chintoju

Sometimes in Telugu font if you put two words next to each other without a space they combine.
e.g. మహేష్ + తొ = మహేష్తొ
But what we want is మహేష్​తొ

In such cases use a zero width space or invisible space in my words to stop them from combining.

  1. Type మహేష్
  2. Type zero width space using “Alt+8023″ for MS word and unicode &#8023; for web
  3. Then type తొ

This trick even works in word.

Tagged with:

LinkageError in server logs due to duplicate xml api jars

On April 5, 2012, in java, jboss, maven, by Kishore Chintoju

Ever seen this  linkage error. This is caused by various reasons of duplicate jars containing xml-apis.

I had this issue when I included Apache POI jars (poi-ooxml-schemas) which in turn included stax-api jars (geronimo-stax-api_1.0_spec.jar, stax-api.jar) and xml-api’s (xml-api.jar, xmlbeans.jar).

Excluding them from your dependency would solve the issue.

Exclude Example


LinkageError Stack Trace

java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "com.sun.xml.bind.DatatypeConverterImpl.parseQName(Ljava/lang/String;Ljavax/xml/namespace/NamespaceContext;)Ljavax/xml/namespace/QName;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, com/sun/xml/bind/DatatypeConverterImpl, and the class loader (instance of ) for interface javax/xml/bind/DatatypeConverterInterface have different Class objects for the type javax/xml/namespace/QName used in the signature
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(
	at com.sun.xml.bind.v2.ContextFactory.createContext(
	at com.sun.xml.bind.v2.ContextFactory.createContext(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at javax.xml.bind.ContextFinder.newInstance(
	at javax.xml.bind.ContextFinder.find(
	at javax.xml.bind.JAXBContext.newInstance(
	at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerEJB3.invoke(
	at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(
	at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(
	at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(
	at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(
	at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.process(
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Tagged with:

I have decided to write some of the devotional text we learn in Telugu font so it is available for wider audience and can be read on any screens (Mobile/Table/PC) screens on any resolution on can be printed nicely as well. Coming from a background of Telugu medium, it does feel nice to be able to write in Telugu again. Let’s keep Telugu alive and well.

Sri Rama Rama Rameti Mantra on occasion of  Sri Rama Navami.

శ్రీ రామ రామ రామేతి
రమే రామే మనోరమే
సహస్రనామ తత్ తుల్యం
రామ నామ వరాననే

See this video for details on how it is to be pronounced.

Tagged with: