Exception in thread “AWT-EventQueue-0” java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant at...
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
add a comment |
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
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
add a comment |
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
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
java multithreading jodatime noclassdeffounderror
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
Check if you have below dependency in your classpath
:
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.8<version>
</dependency>
1
Thank you very much Arpit .It's work out
– Musni
Jul 9 '15 at 8:54
add a comment |
just simply add this jar file
https://mvnrepository.com/artifact/joda-time/joda-time/2.8.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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Check if you have below dependency in your classpath
:
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.8<version>
</dependency>
1
Thank you very much Arpit .It's work out
– Musni
Jul 9 '15 at 8:54
add a comment |
Check if you have below dependency in your classpath
:
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.8<version>
</dependency>
1
Thank you very much Arpit .It's work out
– Musni
Jul 9 '15 at 8:54
add a comment |
Check if you have below dependency in your classpath
:
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.8<version>
</dependency>
Check if you have below dependency in your classpath
:
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.8<version>
</dependency>
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
add a comment |
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
add a comment |
just simply add this jar file
https://mvnrepository.com/artifact/joda-time/joda-time/2.8.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
add a comment |
just simply add this jar file
https://mvnrepository.com/artifact/joda-time/joda-time/2.8.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
add a comment |
just simply add this jar file
https://mvnrepository.com/artifact/joda-time/joda-time/2.8.1
just simply add this jar file
https://mvnrepository.com/artifact/joda-time/joda-time/2.8.1
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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