cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

NoClassDefFoundError on Cius

58
Views
0
Helpful
0
Comments
This document was generated from CDN thread

Created by: Matthew J Denapoli on 19-05-2011 10:51:52 AM
I had an issue on the Cius that is not present on other devices.
I have a file that contains multiple java classes as follows:

class A {
}

class B {
}

Class B is a helper class that class A uses. Class A does an instanceof operation to see if a variable is an instanceof class B. On the Cius I get a java.lang.NoClassDefFoundError for class B.
However, if I change the file to:

class B {
}

class A {
}

then every thing works fine.

Subject: RE: NoClassDefFoundError on Cius
Replied by: David Staudt on 19-05-2011 03:02:06 PM
Very curious...
 
I would think such a low-level JVM-type issue would be in code that Cisco touches very little if at all, but we can investigate.  Probably the best way to demonstrate and troubleshoot the issue would be if you could provide a small sample Eclipse project that demonstrates the issue..?

Subject: RE: NoClassDefFoundError on Cius
Replied by: Matthew J Denapoli on 19-05-2011 10:59:56 PM
I was unable to duplicate the error in a standalone way.
I am also no longer getting the error if I undo the work around and put the code back the way it was so I would have to assume that the class file got corrupted somehow and the editing of the file forced a recompile which fixed the problem.

Thanks

Subject: RE: NoClassDefFoundError on Cius
Replied by: Larry Michalewicz on 20-05-2011 10:09:21 AM
Hi Don,
 
I'm glad it "fixed" itself.  Please let us know if you see this again, this one really got my attention.  I use inner classes all the time and haven't seen this.  Hopefully it was a one time event.
 
Larry M.
 
I was unable to duplicate the error in a standalone way.
I am also no longer getting the error if I undo the work around and put the code back the way it was so I would have to assume that the class file got corrupted somehow and the editing of the file forced a recompile which fixed the problem.

Thanks

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here