Bug 321277 - Java Builder crashes when building EclipseLink from source
Summary: Java Builder crashes when building EclipseLink from source
Status: CLOSED DUPLICATE of bug 306464
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 319784
  Show dependency tree
 
Reported: 2010-07-29 19:32 EDT by David Green CLA
Modified: 2010-09-14 00:24 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Green CLA 2010-07-29 19:32:58 EDT
What steps will reproduce the problem?
1. Provision a clean workspace with EclipseLink from source
2. Observe that the JavaBuilder crashes with NPE

The following projects were in my workspace, configured per http://wiki.eclipse.org/EclipseLink/Building and http://wiki.eclipse.org/EclipseLink/Source#EclipseLink_Source_Control_Repositories

javax.activation
javax.mail
javax.persistence
javax.resource 1.5.0
javax.servlet
javax.wsdl
javax.xml.bind
javax.xml.rpc
javax.xml.stream
javax.xml.ws
org.apache.ant
org.eclipse.persistence.core
org.eclipse.persistence.jpa
org.eclipse.persistence.jpa.equinox
org.eclipse.persistence.jpa.equinox.weaving


-- Error Details --
Date: Thu Jul 29 16:27:04 PDT 2010
Message: Errors running builder 'Java Builder' on project 'org.eclipse.persistence.jpa'.
Severity: Error
Product: Eclipse SDK 3.6.0.v201006080911 (org.eclipse.sdk.ide)
Plugin: org.eclipse.jdt.core
Session Data:
eclipse.buildId=I20100608-0911
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.sdk.ide
Command-line arguments:  -product org.eclipse.sdk.ide -data C:\Users\David Green\workspace-eclipselink -os win32 -ws win32 -arch x86 


Exception Stack Trace:
java.lang.NullPointerException
at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.missingTypeInMethod(ProblemReporter.java:5150)
at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:448)
at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:359)
at org.eclipse.jdt.internal.compiler.ast.Expression.resolve(Expression.java:915)
at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:90)
at org.eclipse.jdt.internal.compiler.ast.WhileStatement.resolve(WhileStatement.java:250)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:451)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:212)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:410)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1147)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1235)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:540)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:759)
at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137)
at java.lang.Thread.run(Unknown Source)
Comment 1 Michael OBrien CLA 2010-07-29 20:22:37 EDT
>workarounds (SUN 1.6 32 and 64 bit JVM's as well as the 1.6 32-bit versions of JRockit and IBM J9 (via WebSphere 7)
>Eclipse 3.5 64-bit OK using ini settings
via
http://wiki.eclipse.org/EclipseLink/Building/64bit

-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.0.200.v20090519
-showlocation
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
-framework
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
-Dsun.lang.ClassLoader.allowArraySyntax=true
-Dosgi.requiredJavaVersion=1.5
-vmargs
-Xms40m
-Xmx512m

>Eclipse 3.5 32-bit OK using ini settings
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
512M
-showlocation
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
-vmargs
-Dsun.lang.ClassLoader.allowArraySyntax=true
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

>Eclipse 3.6 32-bit Helios (pending test)
Comment 2 Michael OBrien CLA 2010-07-29 20:33:47 EDT
>The following Eclipse 3.5 based IDE installs are verified as OK
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR2/eclipse-jee-galileo-SR2-win32.zip
>Oracle Enterprise Pack for Eclipse (3.5)
http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/oepe-11115-089873.html
>I have a Helios 3.5 Eclipse install back at the office that I will verify early tomorrow.
Comment 3 Olivier Thomann CLA 2010-09-02 12:27:03 EDT
Difficult to know if I have the right test case. I have many compile errors.
Is this expected ?
Could you please try using the 3.6.1 RC3 build?
Comment 4 Olivier Thomann CLA 2010-09-02 12:27:29 EDT
I believe this is a duplicated of bug 306464.
Comment 5 Olivier Thomann CLA 2010-09-02 12:31:31 EDT
I tried to set up the same environment and I don't get the exception anymore. But it would be nice if you could confirm that the problem is gone.
Closing as a duplicate of bug 306464

*** This bug has been marked as a duplicate of bug 306464 ***
Comment 6 Srikanth Sankaran CLA 2010-09-14 00:24:01 EDT
Verified for 3.7 M2 using build I20100909-1700