Build: NetBeans IDE Dev (Build 201306022301)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
aldobrucale: Starting netbeans
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number
Created attachment 135305 [details]
Is the issue reproducible with a clean userdir? Do you have a reproducible test case? Thanks.
As soon as i kill my m2/repository, netbeans will throw this all time long. Its really annoying!
*** Bug 233232 has been marked as a duplicate of this bug. ***
Unfortunately, I'm not able to reproduce the problem. Could you please provide a reproducible test case? Thanks.
This happens every time I open a certain Java source file (J2EE entity bean).
I tried to use the trick of starting with a clean userdir. So I did not close the problematic file (to make the IDE open it after the next startup), shut the IDE down, deleted the "userdir" and started the IDE again. It did not help, the exception occurred again.
I cannot provide the problematic source code file but I can help with finding the cause - e.g. by installing a custom patch with extensive logging (preferred) or by trying to find the root cause by reducing it progressively (pretty much time-consuming for me).
I reopened this bug because it has almost 20 duplicates and I because I want to help fix it.
Created attachment 140173 [details]
Fine Marian, if you are willing to help please replace the original nb-javac-impl.jar (located in java/modules/ext) with the patched version that should add more information to the ClassCastExceptions being thrown. Then try to reproduce the problem and attach the additional information provided. Thanks.
I did not get the exception with the patched nb-javac. When I replaced it with the original nb-javac from NB 7.4 Beta, I got the exception again. Maybe the bug is already fixed in recent development versions of NB 7.4?
I downloaded and installed dev. version of NetBeans 7.4 (build 201309180002) and installed the patched nb-javac-impl.jar there. But I did not get any exception.