ClassCastException while booting
Project: | JNode Core |
Component: | Code |
Category: | bug report |
Priority: | normal |
Assigned: | admin |
Status: | closed |
Jump to:
Description
While booting, sometime there is a ClassCastException. And the system is apparently completly frozen.
Here is the stacktrace :
... here a part of the stacktrace that I can't see ...
org.jnode.plugin.manager.DefaultPluginManager!startSystemPlugins(136)
org.jnode.boot.Main!vmMain(71)
Caused by: java.lang.ClassCastException: org.jnode.driver.serial.SerialPortFinder
org.jnode.vm.SoftByteCodes!classCastFailed(361)
org.jnode.driver.AbstractDeviceManager!findDevices(431)
org.jnode.driver.DeviceFinderPlugin!startPlugin(52)
org.jnode.plugin.Plugin!start(100)
org.jnode.plugin.PluginManager!startSinglePlugin(77)
org.jnode.plugin.manager.DefaultPluginManager!startSystemPlugins(136)
org.jnode.boot.Main!vmMain(71)
- Login to post comments
similarities with another issue
It has similarities with the instanceof issue. Maybe it has the same root cause.
Fabien
#1
Also fails sometimes wrt. DeviceFinder.
I guess the classloading is not completed far enough before it is being used.
I'll have a look.
#2
I'm fairly confident that I fixed this issue.
A missing synchronization in VmAbstractClassLoader could result in a class being loaded twice (on different threads), but still by the same classloader.
The change has been committed to cvs HEAD branch.
If you still encounter it (in the cvs HEAD branch), please report so.
Ewout
#3