Exception in thread “AWT-EventQueue-0” java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant at...












0















When I'm retrieve data from Data Base ,seems there is no issues.But when I generate jasper reports its giving below Exception.This working for MySQL,but not working for MS-SQL.Requirement is MS-SQL. Please help me some one.Why we are getting commonly like this Excepton:-



Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:157)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:115)
at net.sf.jasperreports.functions.FunctionsBundle.addFunctionClass(FunctionsBundle.java:84)
at net.sf.jasperreports.functions.FunctionsBundle.<init>(FunctionsBundle.java:54)
at net.sf.jasperreports.functions.FunctionsRegistryFactory.createRegistry(FunctionsRegistryFactory.java:76)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:239)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:214)









share|improve this question

























  • Can you provide more details on when you are getting this exception?

    – hagrawal
    Jun 29 '15 at 19:41











  • possible duplicate of Exception in thread "main" java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant

    – Ken Y-N
    Jun 30 '15 at 2:13
















0















When I'm retrieve data from Data Base ,seems there is no issues.But when I generate jasper reports its giving below Exception.This working for MySQL,but not working for MS-SQL.Requirement is MS-SQL. Please help me some one.Why we are getting commonly like this Excepton:-



Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:157)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:115)
at net.sf.jasperreports.functions.FunctionsBundle.addFunctionClass(FunctionsBundle.java:84)
at net.sf.jasperreports.functions.FunctionsBundle.<init>(FunctionsBundle.java:54)
at net.sf.jasperreports.functions.FunctionsRegistryFactory.createRegistry(FunctionsRegistryFactory.java:76)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:239)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:214)









share|improve this question

























  • Can you provide more details on when you are getting this exception?

    – hagrawal
    Jun 29 '15 at 19:41











  • possible duplicate of Exception in thread "main" java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant

    – Ken Y-N
    Jun 30 '15 at 2:13














0












0








0








When I'm retrieve data from Data Base ,seems there is no issues.But when I generate jasper reports its giving below Exception.This working for MySQL,but not working for MS-SQL.Requirement is MS-SQL. Please help me some one.Why we are getting commonly like this Excepton:-



Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:157)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:115)
at net.sf.jasperreports.functions.FunctionsBundle.addFunctionClass(FunctionsBundle.java:84)
at net.sf.jasperreports.functions.FunctionsBundle.<init>(FunctionsBundle.java:54)
at net.sf.jasperreports.functions.FunctionsRegistryFactory.createRegistry(FunctionsRegistryFactory.java:76)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:239)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:214)









share|improve this question
















When I'm retrieve data from Data Base ,seems there is no issues.But when I generate jasper reports its giving below Exception.This working for MySQL,but not working for MS-SQL.Requirement is MS-SQL. Please help me some one.Why we are getting commonly like this Excepton:-



Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:157)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:115)
at net.sf.jasperreports.functions.FunctionsBundle.addFunctionClass(FunctionsBundle.java:84)
at net.sf.jasperreports.functions.FunctionsBundle.<init>(FunctionsBundle.java:54)
at net.sf.jasperreports.functions.FunctionsRegistryFactory.createRegistry(FunctionsRegistryFactory.java:76)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:239)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:214)






java multithreading jodatime noclassdeffounderror






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 9 at 8:26









Arpit

12.9k85482




12.9k85482










asked Jun 29 '15 at 18:48









MusniMusni

347




347













  • Can you provide more details on when you are getting this exception?

    – hagrawal
    Jun 29 '15 at 19:41











  • possible duplicate of Exception in thread "main" java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant

    – Ken Y-N
    Jun 30 '15 at 2:13



















  • Can you provide more details on when you are getting this exception?

    – hagrawal
    Jun 29 '15 at 19:41











  • possible duplicate of Exception in thread "main" java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant

    – Ken Y-N
    Jun 30 '15 at 2:13

















Can you provide more details on when you are getting this exception?

– hagrawal
Jun 29 '15 at 19:41





Can you provide more details on when you are getting this exception?

– hagrawal
Jun 29 '15 at 19:41













possible duplicate of Exception in thread "main" java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant

– Ken Y-N
Jun 30 '15 at 2:13





possible duplicate of Exception in thread "main" java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant

– Ken Y-N
Jun 30 '15 at 2:13












2 Answers
2






active

oldest

votes


















1














Check if you have below dependency in your classpath:



<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.8<version>
</dependency>





share|improve this answer



















  • 1





    Thank you very much Arpit .It's work out

    – Musni
    Jul 9 '15 at 8:54



















-2














just simply add this jar file
https://mvnrepository.com/artifact/joda-time/joda-time/2.8.1






share|improve this answer
























  • You should mention why in your answer too (I suspect that's the reason behind the downvotes). Otherwise, this looks a lot like a link-only answer, which are subject to deletion.

    – Zoe
    Nov 22 '18 at 16:26











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f31123260%2fexception-in-thread-awt-eventqueue-0-java-lang-noclassdeffounderror-org-joda%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Check if you have below dependency in your classpath:



<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.8<version>
</dependency>





share|improve this answer



















  • 1





    Thank you very much Arpit .It's work out

    – Musni
    Jul 9 '15 at 8:54
















1














Check if you have below dependency in your classpath:



<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.8<version>
</dependency>





share|improve this answer



















  • 1





    Thank you very much Arpit .It's work out

    – Musni
    Jul 9 '15 at 8:54














1












1








1







Check if you have below dependency in your classpath:



<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.8<version>
</dependency>





share|improve this answer













Check if you have below dependency in your classpath:



<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.8<version>
</dependency>






share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 29 '15 at 18:50









ArpitArpit

12.9k85482




12.9k85482








  • 1





    Thank you very much Arpit .It's work out

    – Musni
    Jul 9 '15 at 8:54














  • 1





    Thank you very much Arpit .It's work out

    – Musni
    Jul 9 '15 at 8:54








1




1





Thank you very much Arpit .It's work out

– Musni
Jul 9 '15 at 8:54





Thank you very much Arpit .It's work out

– Musni
Jul 9 '15 at 8:54













-2














just simply add this jar file
https://mvnrepository.com/artifact/joda-time/joda-time/2.8.1






share|improve this answer
























  • You should mention why in your answer too (I suspect that's the reason behind the downvotes). Otherwise, this looks a lot like a link-only answer, which are subject to deletion.

    – Zoe
    Nov 22 '18 at 16:26
















-2














just simply add this jar file
https://mvnrepository.com/artifact/joda-time/joda-time/2.8.1






share|improve this answer
























  • You should mention why in your answer too (I suspect that's the reason behind the downvotes). Otherwise, this looks a lot like a link-only answer, which are subject to deletion.

    – Zoe
    Nov 22 '18 at 16:26














-2












-2








-2







just simply add this jar file
https://mvnrepository.com/artifact/joda-time/joda-time/2.8.1






share|improve this answer













just simply add this jar file
https://mvnrepository.com/artifact/joda-time/joda-time/2.8.1







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 21 '18 at 18:53









Agrawal JeetAgrawal Jeet

1




1













  • You should mention why in your answer too (I suspect that's the reason behind the downvotes). Otherwise, this looks a lot like a link-only answer, which are subject to deletion.

    – Zoe
    Nov 22 '18 at 16:26



















  • You should mention why in your answer too (I suspect that's the reason behind the downvotes). Otherwise, this looks a lot like a link-only answer, which are subject to deletion.

    – Zoe
    Nov 22 '18 at 16:26

















You should mention why in your answer too (I suspect that's the reason behind the downvotes). Otherwise, this looks a lot like a link-only answer, which are subject to deletion.

– Zoe
Nov 22 '18 at 16:26





You should mention why in your answer too (I suspect that's the reason behind the downvotes). Otherwise, this looks a lot like a link-only answer, which are subject to deletion.

– Zoe
Nov 22 '18 at 16:26


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f31123260%2fexception-in-thread-awt-eventqueue-0-java-lang-noclassdeffounderror-org-joda%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()