manulachathurika Posted October 8, 2015 Posted October 8, 2015 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.JsonNodejava.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
Solution manulachathurika Posted October 8, 2015 Author Solution Posted October 8, 2015 Hi All,After I adding "jackson-core-2.6.2.jar" to iReport classpath the above runtime exception get solved.Thanks !
bujdei_alexandru Posted April 14, 2016 Posted April 14, 2016 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now