Continous exceptions in JSE 8 IDE

Hi,

Lastly, it has been happening more and more often that the IDE (SJSE8 on Linux, up to date with current patches) launchs an exception like this (or similar):

Annotation: Exception occurred in Request Processor

java.lang.NullPointerException

at org.netbeans.modules.javacore.parser.ClassFileInfoUtil.getJavadocFile(ClassFile InfoUtil.java:705)

at org.netbeans.modules.javacore.parser.ClassFileInfoUtil.getHtmlReader(ClassFileI nfoUtil.java:633)

at org.netbeans.modules.javacore.parser.ClassFileInfoUtil.createParamsInfo(ClassFi leInfoUtil.java:582)

at org.netbeans.modules.javacore.parser.ClassFileInfoUtil.createMethodInfo(ClassFi leInfoUtil.java:213)

at org.netbeans.modules.javacore.parser.ClassFileInfoUtil.createClassInfo(ClassFil eInfoUtil.java:153)

at org.netbeans.modules.javacore.parser.ClassFileInfoUtil.createClassInfo(ClassFil eInfoUtil.java:66)

at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.getResInfoFromClas sFile(ResourceImpl.java:413)

(...)

I've searched in the forum and I've found previous threads about this. In some of them, it was said that this is "standard behaviour" with NetBeans and that the only workaround was to clean .jstudio/Ent8/var/cache/. So I did it, and problems went away... for a few days.

Now it is happening again, and cleaning the .../var/cache directory doesn't seem to help at all. IDE is almost unusable, because the exception is thrown every time the IDE tries to offer contextual help of methods, or check the syntax. Basically, if I leave the cursor resting for more than two seconds, the exception window appears.

Is there anything I can do to relieve the problem? I'd rather not upgrade to NB 5.5 or so if possible, because I've read that it changes the project information files and I wouldn't be able to downgrade if needed. Besides, it requires more memory (min. 512 MB) and it could be a bit too much for my laptop (512 MBytes, 1,3 GHz Celeron).

TIA

[2027 byte] By [RickieNewbie] at [2007-11-26 8:57:30]
# 1

While I'm not aware of the way to get rid of the excetions you mention, I'm curious why you are so reluctant about moving to NetBeans 5.5 + Enteprirse Pack 5.5. They ARE better performing and more stable than JSE 8..

I would suggest than you give it a try. You can always backup the nbproject directory and use it to revert to JSE 8 if really needed, but I doubt that you'll want to :-)

KSorokin at 2007-7-6 22:57:51 > top of Java-index,Development Tools,Java Tools...
# 2

>I'm curious why you are so

> reluctant about moving to NetBeans 5.5 + Enteprirse

> Pack 5.5. They ARE better performing and more stable

> than JSE 8.

Because, while I usually work in my desktop computer (AMD XP 2800+, 1 GB RAM), I want to be able to work also in my laptop (I have Linux on both machines and got a scripting procedure to keep them in sync), and my laptop only has 512 MB RAM, while Netbeans 5.5 requires just that and recommends 1 GB:

http://www.netbeans.org/community/releases/55/relnotes.html#system_requirements

And I'm not sure that's going to fix the problem. I think I'm going to try first updating JDK to 1.5.0.7 (I have 1.5.0.6).

RickieNewbie at 2007-7-6 22:57:51 > top of Java-index,Development Tools,Java Tools...
# 3
Well, in terms of system requirements, JSE 8 is no better - http://developers.sun.com/prodtech/javatools/jsenterprise/features/sysreq.jsp So...
KSorokin at 2007-7-6 22:57:51 > top of Java-index,Development Tools,Java Tools...
# 4
Did you ever get this problem resolved? I'm getting the same exception while using JSE 8 IDE
danielrathinam at 2007-7-6 22:57:51 > top of Java-index,Development Tools,Java Tools...
# 5

> Did you ever get this problem resolved? I'm getting

> the same exception while using JSE 8 IDE

Well, fifty-fifty. As in the project I'm working now I'm not using UML, I tried Netbeans 5.5 Beta 2 and problems have been away (for the moment). That suggests me that the problem was not in my project's data.

Netbeans 5.5 Beta 2 works the same for me than JSE8, but it's true that the context suggestions (methods and so) pop up sooner than in JSE8, so you're a bit faster coding. :-)

That reminds me that, while giving all 10 Duke dollars to Ksorokin could be too much, since he has suggested a work-around a not a solution, at least he deserves 5. :-)

RickieNewbie at 2007-7-6 22:57:51 > top of Java-index,Development Tools,Java Tools...