Help coderanch get a
new server
by contributing to the fundraiser

Damodar Mukhopadhyay

Ranch Hand
+ Follow
since Jan 15, 2007
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Damodar Mukhopadhyay

When the JVM is already running and for some time, I deployed a new version that jar.

Thank you so much for your advice. Noted it.
12 years ago
I observed that, if the JVM is running and I redeploy the jar, and then if the JVM requires to load a class, its throwing this Error.

Is this an expected behaviour?
12 years ago
There are reflections, but the class I am getting Error is created directly from the program it self.

And NO.. let me explain please,
Say a.b.c.d.TheClass is called from a.b.c.e.MainClass where sometime I am getting the Error.

After this error the JVM goes down, and when I restart it, all work fine!!!

12 years ago
Its in a same and single jar, other supportive jars to that project are in classpath.

No such pattern found, but when that particular class called first time the Error comes. [and not every time actually]

12 years ago
I set classpath in script.

Also if I get this error and run it again it runs fine!!!
12 years ago
I create the jar in Eclipse and run it in linux.
12 years ago
Thanks john, but I am not running the project from Eclipse, its running in a linux server!
12 years ago
Thanks, I understood your explanation.
The surprising thing is, the program is not failing every time.

Its running properly, but some time it fails due to the Error!

Every time the classpath is the same.
12 years ago
The classpath is fine also the class is is the jar.
The problem is not consistant, it not happening every time I run it!

Sometime the JVM is not able to find that class!
12 years ago
Dear Java Gurus and Experts,

I need your help and suggestions on a strange issue I am facing. In my project sometime I am getting java.lang.NoClassDefFoundError

followded by java.lang.ClassNotFoundException

Though this Error is not consistant and not reproducable so far, below is the full stack of the Error, [ replaced the real class with com/abc/bcd/efg/ABC }

java.lang.NoClassDefFoundError: com/abc/bcd/efg/ABC
at A.B.C.D.AbstractDataCallback.update(
at A.B.C.D.DefaultRawDataCallback.update(
at A.B.C.D.ServiceHandle.processData(
at A.B.C.D.ServiceHandle.listen(
at A.B.C.D.ServiceHandle.getSubs(
at A.B.C.D.ServiceHandle.getSubs(
Caused by: java.lang.ClassNotFoundException: com/abc/bcd/efg/ABC
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(

This is surely a very strange issue, as this is not happening every time.

Thanks in advance,

With Regards,
12 years ago
Yes, but I am afraid, if the system crash and not able to close the Stream? also do I require flash() after avary new entry in the .ser file?
13 years ago
Actually the values of the messages (which are in cache) are required for some calculation when a new request comes in.
That means the new requests/messages requires the old messages.
13 years ago
Can I write the updated object into an existing serialized file?
Say the .ser file already has 10 HashMap Key value pair now can I add one more into it?
Could you please give an example?

13 years ago