Jump to content
Changes to the Jaspersoft community edition download ×

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


manulachathurika
Go to solution Solved by manulachathurika,

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 6 months later...

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.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...