markmandel/JavaLoader

Issues with Tika 1.3+

atadams opened this issue · 2 comments

On ColdFusion 9.0.2, when I try to init Tika 1.3 or 1.4 using JavaLoader, I get the following error:

Object instantiation exception.
An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class.

My code is:

<cfset loadPaths = ArrayNew(1)>
<cfset loadPaths[1] = expandPath("tika-app-1.3.jar")>
<cfset loader = createObject("component", "javaloader.JavaLoader").init(loadPaths)>
<cfset tika = loader.create("org.apache.tika.Tika").init()>

The code works with Tika 1.2 and below.

Without the full stack trace, I cannot provide any support.

Closing as no response.