Caused by: java.lang.ClassNotFoundException: org.codehaus.jackson.JsonNode exception in iReport

Hi All,

I have used json datasource as my datasource in my report. When I run the report I got the following exception. Could anyone help me to resolve this isse. Is there any jar missing my iReport ?

Error filling print... java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonNode java.lang.ClassNotFoundException: org.codehaus.jackson.JsonNode
java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonNode 
    at com.jaspersoft.jrx.json.JsonDataSourceConnection.getJRDataSource(JsonDataSourceConnection.java:199) 
    at com.jaspersoft.ireport.designer.IReportConnection.getJRDataSource(IReportConnection.java:71) 
    at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:927) 
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) 
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) 
Caused by: java.lang.ClassNotFoundException: org.codehaus.jackson.JsonNode 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306) 
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247) 
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:252) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247) 

Thanks !

Manula Thantriwatte

manulachathurika's picture
Joined: Aug 12 2015 - 9:16pm
Last seen: 7 years 5 months ago

2 Answers:

Hi All,

After I adding "jackson-core-2.6.2.jar" to iReport classpath the above runtime exception get solved.

Thanks !

 

manulachathurika's picture
Joined: Aug 12 2015 - 9:16pm
Last seen: 7 years 5 months ago

I tried adding the jackson-core-2.6.2.jar but it still does not work.

The problem is that currently jackson core is under the repo "com.fasterxml.jackson.core"

while iReport keeps asking for "org.codehaus.jackson.core".

Tried looking for older versions of jackson core that are under org.codehaus and to add them to the iReport classpath but it still does not work.

I am using iReport 5.6.0 on Windows.

 

bujdei_alexandru's picture
Joined: Jun 16 2015 - 3:43am
Last seen: 1 year 4 months ago
Feedback