Damodar Mukhopadhyay

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

Recent posts by Damodar Mukhopadhyay

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

@Rob
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 aa.bb.cc.dd.ee.ff.ABC.BCD.TEST$TESTSubscription.processingSomething(TEST.java:502)
at aa.bb.cc.dd.ee.ff.ABC.BCD.TEST$TESTSubscription.processUpdate(TEST.java:363)
at aa.bb.cc.dd.ee.ff.ABC.BCD.TEST$TESTSubscription.processInsert(TEST.java:327)
at A.B.C.D.AbstractDataCallback.update(AbstractDataCallback.java:26)
at A.B.C.D.DefaultRawDataCallback.update(DefaultRawDataCallback.java:64)
at A.B.C.D.ServiceHandle.processData(Service.java:804)
at A.B.C.D.ServiceHandle.listen(Service.java:747)
at A.B.C.D.ServiceHandle.getSubs(Service.java:558)
at A.B.C.D.ServiceHandle.getSubs(Service.java:508)
at aa.bb.cc.dd.ee.ff.ABC.BCD.TEST$TESTSubscription$1.run(TEST.java:1091)
Caused by: java.lang.ClassNotFoundException: com/abc/bcd/efg/ABC
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)


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



Thanks in advance,

With Regards,
Damodar
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?
12 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.
12 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?

Regards,
Damodar
12 years ago