Bug 190602 - [misc] NPE in AbstractJavaCompletionProposal
Summary: [misc] NPE in AbstractJavaCompletionProposal
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
: 190603 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-01 18:19 EDT by Jeff Norris CLA
Modified: 2007-06-22 10:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Norris CLA 2007-06-01 18:19:38 EDT
eclipse.buildId=I20070517-1700
java.version=1.6.0_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US


I was digging through my log file looking for information on another problem and I found quite a few of these:

!ENTRY org.eclipse.jface.text 2 0 2007-06-01 10:09:47.889
!MESSAGE
!STACK 0
java.lang.NullPointerException
        at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal\
.getCSSStyles(AbstractJavaCompletionProposal.java:547)
        at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal\
.getAdditionalProposalInfo(AbstractJavaCompletionProposal.java:524)
        at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(\
AdditionalInfoController.java:102)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I didn't notice any problems while I was using Eclipse, but I thought you might want to know about the NPE anyway.
Comment 1 Olivier Thomann CLA 2007-06-01 18:41:53 EDT
Move to JDT/UI
Comment 2 Dani Megert CLA 2007-06-02 05:13:49 EDT
Was this in the standard Java editor?
Comment 3 Dani Megert CLA 2007-06-02 05:18:54 EDT
*** Bug 190603 has been marked as a duplicate of this bug. ***
Comment 4 Dani Megert CLA 2007-06-02 05:27:32 EDT
Jeff, those two bugs surface the same problem: for whatever reason Eclipse cannot find or load the following two files which are part of the 'org.eclipse.jdt.ui' plug-in:

  org.eclipse.jdt.ui/JavadocHoverStyleSheet.css
  org.eclipse.jdt.ui/JavadocViewStyleSheet.css

I suggest to do a complete install of the latest Eclipse SDK again (use I20070601-1539 which is 3.3 RC3) as we have never seen this so far and I just checked that it works on out Linux box.

Then, check whether the <install>/eclipse/plugins/org.eclipse.jdt.ui_3.3.0.*.jar contains the two files (top level).

Afterwards check whether some read errors occur while reading those files.

You can trigger that code by hovering over a method or class or by opening code assist and then wait for the hover on the right.

If we cannot open those style sheets your .log will be filled with NPEs and the hover will look ugly.
Comment 5 Dani Megert CLA 2007-06-04 08:04:37 EDT
Jeff, we're getting to the end of 3.3. Fast feedback on this bug would be appreciated.
Comment 6 Jeff Norris CLA 2007-06-04 13:32:43 EDT
I'm sorry - I don't think I'm going to be able to get back in front of the computer where I saw this problem for a couple of days.  As I mentioned, this wasn't a huge issue for me, just something I saw in the error log that I thought you might be interested in.

When would you need additional feedback by in order to meet your 3.3 deadlines?
Comment 7 Dani Megert CLA 2007-06-05 02:11:37 EDT
Tomorrow, as this is the last week of development. Is something special with this computer? I suspect it is an install or permission issue on that machine.
Comment 8 Dani Megert CLA 2007-06-06 02:43:46 EDT
Setting to REMIND unless we have more data.
Comment 9 Dani Megert CLA 2007-06-22 09:59:40 EDT
Get rid of deprecated state.
Comment 10 Dani Megert CLA 2007-06-22 10:04:50 EDT
.