Bug 14187 - error rebuilding project
Summary: error rebuilding project
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 F2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-18 19:36 EDT by OTI Support CLA
Modified: 2002-06-03 09:42 EDT (History)
0 users

See Also:


Attachments
screenshot and .log file (16.03 KB, application/zip)
2002-04-18 19:39 EDT, OTI Support CLA
no flags Details
testcase (270.50 KB, application/zip)
2002-04-18 19:40 EDT, OTI Support CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description OTI Support CLA 2002-04-18 19:36:24 EDT
Attached is a screen shot of the error dialog that occurs when trying to
rebuild a project in WSWB. This error occurs in both Windows 98 and
Windows 2000.

Removing either the IString class from the ca.paulclapham.istring package or 
the Locator class from the ca.paulclapham.locator package, allowed the project 
to be rebuilt without the NullPointerException.
Comment 1 OTI Support CLA 2002-04-18 19:39:57 EDT
Created attachment 664 [details]
screenshot and .log file
Comment 2 OTI Support CLA 2002-04-18 19:40:31 EDT
Created attachment 665 [details]
testcase
Comment 3 OTI Support CLA 2002-04-25 23:05:08 EDT
Unable to reproduce error.  Contacting Originator.
Comment 4 Kent Johnson CLA 2002-05-28 13:45:34 EDT
This is a compiler walkback:

java.lang.NullPointerException
	at org.eclipse.jdt.internal.compiler.ast.SingleNameReference.analyseCode
(SingleNameReference.java(Compiled Code))
	at org.eclipse.jdt.internal.compiler.ast.MessageSend.analyseCode
(MessageSend.java(Compiled Code))
	at org.eclipse.jdt.internal.compiler.ast.Block.analyseCode(Block.java
(Compiled Code))
	at org.eclipse.jdt.internal.compiler.ast.IfStatement.analyseCode
(IfStatement.java:59)
	at 
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.analyseCode
(AbstractMethodDeclaration.java(Compiled Code))
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.analyseCode
(TypeDeclaration.java:143)
	at 
org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression.analyseCode
(QualifiedAllocationExpression.java:48)
	at org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.analyseCode
(LocalDeclaration.java:40)
	at 
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.analyseCode
(AbstractMethodDeclaration.java(Compiled Code))
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.analyseCode
(TypeDeclaration.java:143)
	at 
org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression.analyseCode
(QualifiedAllocationExpression.java:48)
	at 
org.eclipse.jdt.internal.compiler.ast.SingleNameReference.analyseAssignment
(SingleNameReference.java:51)
	at org.eclipse.jdt.internal.compiler.ast.Assignment.analyseCode
(Assignment.java:32)
	at 
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.analyseCode
(AbstractMethodDeclaration.java(Compiled Code))
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.analyseCode
(TypeDeclaration.java(Compiled Code))
	at 
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.analyseCode
(CompilationUnitDeclaration.java:67)
	at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:379)
	at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:202)
	at 
org.eclipse.jdt.internal.core.builder.impl.AbstractImageBuilder.compile
(AbstractImageBuilder.java:90)
	at 
org.eclipse.jdt.internal.core.builder.impl.IncrementalImageBuilder.applySourceDe
lta(IncrementalImageBuilder.java:264)
	at 
org.eclipse.jdt.internal.core.builder.impl.JavaBuilder.incrementalBuild
(JavaBuilder.java:210)
	at org.eclipse.jdt.internal.core.builder.impl.JavaBuilder.build
(JavaBuilder.java:54)
	at org.eclipse.core.internal.events.BuildManager$1.run
(BuildManager.java:93)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:758)
	at org.eclipse.core.runtime.Platform.run(Platform.java:393)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:114)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:73)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:41)
	at org.eclipse.core.internal.events.BuildManager$2.run
(BuildManager.java:140)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:758)
	at org.eclipse.core.runtime.Platform.run(Platform.java:393)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:154)
	at org.eclipse.core.internal.events.BuildManager.build
(BuildManager.java:174)
	at org.eclipse.core.internal.resources.Workspace.endOperation
(Workspace.java:663)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1202)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:78)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:98)
Comment 5 Philipe Mulet CLA 2002-05-31 09:58:25 EDT
Cannot reproduce with 2.0 build, likely since testcase is incomplete.

I am getting instead the following 48 problems, which may hide the original bug:
(missing component: com.ibm.webrunner).



Kind	Status	Priority	Description	Resource	In Folder
	Location
Error			The import com.ibm cannot be resolved
	SelectByDate.java	P/ca/paulclapham/sighting	line 7
Error			The method setToolTipText(java.lang.String) is 
undefined for the type ca.paulclapham.utility.BNBDatePicker
	SelectByDate.java	P/ca/paulclapham/sighting	line 17 in 
SelectByDate.SelectByDate()
Error			The method setToolTipText(java.lang.String) is 
undefined for the type ca.paulclapham.utility.BNBDatePicker
	SelectByDate.java	P/ca/paulclapham/sighting	line 19 in 
SelectByDate.SelectByDate()
Error			The method setDate(java.util.Date) is undefined for the 
type ca.paulclapham.utility.BNBDatePicker	SelectByDate.java
	P/ca/paulclapham/sighting	line 26 in SelectByDate.SelectByDate()
Error			The method setDate(java.util.Date) is undefined for the 
type ca.paulclapham.utility.BNBDatePicker	SelectByDate.java
	P/ca/paulclapham/sighting	line 28 in SelectByDate.SelectByDate()
Error			The method add(java.awt.Component) in the type 
java.awt.Container is not applicable for the arguments 
(ca.paulclapham.utility.BNBDatePicker)	SelectByDate.java
	P/ca/paulclapham/sighting	line 36 in SelectByDate.SelectByDate()
Error			The method add(java.awt.Component) in the type 
java.awt.Container is not applicable for the arguments 
(ca.paulclapham.utility.BNBDatePicker)	SelectByDate.java
	P/ca/paulclapham/sighting	line 38 in SelectByDate.SelectByDate()
Error			The method getDate() is undefined for the type 
ca.paulclapham.utility.BNBDatePicker	SelectByDate.java
	P/ca/paulclapham/sighting	line 43 in SelectByDate.selectSightings
()
Error			The method getDate() is undefined for the type 
ca.paulclapham.utility.BNBDatePicker	SelectByDate.java
	P/ca/paulclapham/sighting	line 43 in SelectByDate.selectSightings
()
Error			The import com.ibm cannot be resolved
	SelectByTaxon.java	P/ca/paulclapham/sighting	line 9
Error			The import com.ibm cannot be resolved
	SightingsPanel.java	P/ca/paulclapham/sighting	line 15
Error			The method setToolTipText(java.lang.String) is 
undefined for the type ca.paulclapham.utility.BNBDatePicker
	SightingsPanel.java	P/ca/paulclapham/sighting	line 72 in 
SightingsPanel.SightingsPanel(BNBBean, boolean, SightingSelectorPanel)
Error			DateChangedListener cannot be resolved or is not a type
	SightingsPanel.java	P/ca/paulclapham/sighting	line 73 in 
SightingsPanel.SightingsPanel(BNBBean, boolean, SightingSelectorPanel)
Error			The method setEnabled(boolean) is undefined for the 
type ca.paulclapham.utility.BNBDatePicker	SightingsPanel.java
	P/ca/paulclapham/sighting	line 100 in 
SightingsPanel.SightingsPanel(BNBBean, boolean, SightingSelectorPanel)
Error			The method setDate(java.util.Date) is undefined for the 
type ca.paulclapham.utility.BNBDatePicker	SightingsPanel.java
	P/ca/paulclapham/sighting	line 261 in 
SightingsPanel.SightingsPanel(BNBBean, boolean, SightingSelectorPanel)
Error			The method setDate(java.util.Date) is undefined for the 
type ca.paulclapham.utility.BNBDatePicker	SightingsPanel.java
	P/ca/paulclapham/sighting	line 267 in 
SightingsPanel.SightingsPanel(BNBBean, boolean, SightingSelectorPanel)
Error			The method setConstraints(java.awt.Component, 
java.awt.GridBagConstraints) in the type java.awt.GridBagLayout is not 
applicable for the arguments (ca.paulclapham.utility.BNBDatePicker, 
java.awt.GridBagConstraints)	SightingsPanel.java
	P/ca/paulclapham/sighting	line 347 in 
SightingsPanel.SightingsPanel(BNBBean, boolean, SightingSelectorPanel)
Error			The method add(java.awt.Component) in the type 
java.awt.Container is not applicable for the arguments 
(ca.paulclapham.utility.BNBDatePicker)	SightingsPanel.java
	P/ca/paulclapham/sighting	line 348 in 
SightingsPanel.SightingsPanel(BNBBean, boolean, SightingSelectorPanel)
Error			The import org.apache.xerces cannot be resolved
	SightingTextPanel.java	P/ca/paulclapham/sighting	line 13
Error			The import org.apache.xml.serialize cannot be resolved
	SightingTextPanel.java	P/ca/paulclapham/sighting	line 21
Error			The import org.apache.xml.serialize cannot be resolved
	SightingTextPanel.java	P/ca/paulclapham/sighting	line 22
Error			SAXParser cannot be resolved or is not a type
	SightingTextPanel.java	P/ca/paulclapham/sighting	line 75 in 
SightingTextPanel.SightingTextPanel(SightingEntry, Callback)
Error			OutputFormat cannot be resolved or is not a type
	SightingTextPanel.java	P/ca/paulclapham/sighting	line 130 in 
SightingTextPanel.SightingTextPanel(SightingEntry, Callback)
Error			OutputFormat cannot be resolved or is not a type
	SightingTextPanel.java	P/ca/paulclapham/sighting	line 130 in 
SightingTextPanel.SightingTextPanel(SightingEntry, Callback)
Error			XMLSerializer cannot be resolved or is not a type
	SightingTextPanel.java	P/ca/paulclapham/sighting	line 133 in 
SightingTextPanel.SightingTextPanel(SightingEntry, Callback)
Error			XMLSerializer cannot be resolved or is not a type
	SightingTextPanel.java	P/ca/paulclapham/sighting	line 133 in 
SightingTextPanel.SightingTextPanel(SightingEntry, Callback)
Error			The import com.ibm cannot be resolved
	TotalsListOtherCreator.java	P/ca/paulclapham/total	line 7
Error			The method setToolTipText(java.lang.String) is 
undefined for the type ca.paulclapham.utility.BNBDatePicker
	TotalsListOtherCreator.java	P/ca/paulclapham/total	line 23 in 
TotalsListOtherCreator.getDataPanel()
Error			The method setToolTipText(java.lang.String) is 
undefined for the type ca.paulclapham.utility.BNBDatePicker
	TotalsListOtherCreator.java	P/ca/paulclapham/total	line 25 in 
TotalsListOtherCreator.getDataPanel()
Error			DateChangedListener cannot be resolved or is not a type
	TotalsListOtherCreator.java	P/ca/paulclapham/total	line 39 in 
TotalsListOtherCreator.getDataPanel()
Error			DateChangedListener cannot be resolved or is not a type
	TotalsListOtherCreator.java	P/ca/paulclapham/total	line 64 in 
TotalsListOtherCreator.getDataPanel()
Error			The method add(java.awt.Component) in the type 
java.awt.Container is not applicable for the arguments 
(ca.paulclapham.utility.BNBDatePicker)	TotalsListOtherCreator.java
	P/ca/paulclapham/total	line 91 in TotalsListOtherCreator.getDataPanel()
Error			The method add(java.awt.Component) in the type 
java.awt.Container is not applicable for the arguments 
(ca.paulclapham.utility.BNBDatePicker)	TotalsListOtherCreator.java
	P/ca/paulclapham/total	line 93 in TotalsListOtherCreator.getDataPanel()
Error			The method setDate(java.util.Date) is undefined for the 
type ca.paulclapham.utility.BNBDatePicker	TotalsListOtherCreator.java
	P/ca/paulclapham/total	line 108 in TotalsListOtherCreator.setStartDate
(Date)
Error			The method setDate(java.util.Date) is undefined for the 
type ca.paulclapham.utility.BNBDatePicker	TotalsListOtherCreator.java
	P/ca/paulclapham/total	line 113 in TotalsListOtherCreator.setEndDate
(Date)
Error			The import com.ibm cannot be resolved
	TotalsListYearCreator.java	P/ca/paulclapham/total	line 8
Error			NumericSpinner cannot be resolved (or is not a valid 
type) for the field TotalsListYearCreator.yearSpinner
	TotalsListYearCreator.java	P/ca/paulclapham/total	line 13 in 
TotalsListYearCreator.yearSpinner
Error			yearSpinner cannot be resolved
	TotalsListYearCreator.java	P/ca/paulclapham/total	line 26 in 
TotalsListYearCreator.getDataPanel()
Error			NumericSpinner cannot be resolved or is not a type
	TotalsListYearCreator.java	P/ca/paulclapham/total	line 26 in 
TotalsListYearCreator.getDataPanel()
Error			yearSpinner cannot be resolved
	TotalsListYearCreator.java	P/ca/paulclapham/total	line 29 in 
TotalsListYearCreator.getDataPanel()
Error			yearSpinner cannot be resolved
	TotalsListYearCreator.java	P/ca/paulclapham/total	line 31 in 
TotalsListYearCreator.getDataPanel()
Error			yearSpinner cannot be resolved
	TotalsListYearCreator.java	P/ca/paulclapham/total	line 33 in 
TotalsListYearCreator.getDataPanel()
Error			yearSpinner cannot be resolved
	TotalsListYearCreator.java	P/ca/paulclapham/total	line 39 in 
TotalsListYearCreator.getDataPanel()
Error			yearSpinner cannot be resolved
	TotalsListYearCreator.java	P/ca/paulclapham/total	line 71 in 
TotalsListYearCreator.setYear(int)
Error			The import com.ibm cannot be resolved
	BNBDatePicker.java	P/ca/paulclapham/utility	line 3
Error			DatePicker cannot be resolved or is not a valid 
superclass	BNBDatePicker.java	P/ca/paulclapham/utility	line 6 
in BNBDatePicker
Error			The method setDateFormatString(java.lang.String) is 
undefined for the type ca.paulclapham.utility.BNBDatePicker
	BNBDatePicker.java	P/ca/paulclapham/utility	line 9 in 
BNBDatePicker.BNBDatePicker()
Error			The method getPreferredSize() is undefined for the type 
ca.paulclapham.utility.BNBDatePicker	BNBDatePicker.java
	P/ca/paulclapham/utility	line 12 in BNBDatePicker.getMinimumSize
()
Comment 6 Philipe Mulet CLA 2002-05-31 09:59:29 EDT
Can you get the client to provide the exact unit which caused grief ? It has a 
compilation error reading "Internal compiler error...".
Comment 7 Philipe Mulet CLA 2002-05-31 10:08:17 EDT
Ignore my previous comment. By moving back to a 1.0 build, I was getting this 
build failure, where in 2.0 we proceed and report expected compilation errors 
(in spite of the missing prerequisites).

Closing, has been fixed in 2.0 stream.
Comment 8 David Audel CLA 2002-06-03 09:42:24 EDT
Verified.