PDA

View Full Version : Maven Project causes eclipse to null pointer after switching to gxt 3.0.0-beta3



jtaekema
16 Feb 2012, 6:55 PM
I have a project that is currently using GWT-2.4.0 and GXT-2.2.5-gwt22

I changed the following dependancy in my pom.xml from:



<dependency>
<groupId>com.extjs</groupId>
<artifactId>gxt</artifactId>
<version>2.2.5-gwt22</version>
<scope>compile</scope>
</dependency>

to:


<dependency>
<groupId>com.sencha.gxt</groupId>
<artifactId>gxt</artifactId>
<version>3.0.0-beta3</version>
<scope>compile</scope>
</dependency>


Now eclipse says: Problem Occurred

'Building workspace' has encountered a problem.
Errors occurred during the build.

Details:
Errors occurred during the build.
Errors running builder 'Java Builder' on project 'xxxxxx'.
java.lang.NullPointerException


It seems as though whenever I do anything that popup window obstructs the editor, additionally the project explorer doesn't show any java files as being broken except one, which has the following error:

Internal compiler error: java.lang.NullPointerException at org.eclispe.jdt.internal.compiler.apt.model.Factory.newElement(Factory.java:250)


Any thoughts?


EDIT:
Eclipse Version: Indigo Release
Build id: 20110615-0604

Colin Alworth
17 Feb 2012, 9:49 AM
My best guess is that something didnt get updated correctly in the project. Try right-clicking the project, Maven > Update Project Configuration.

If that doesn't work, try rt click > Run As... > Maven install, or running mvn install from the command line, if you have it.

$p00ky
26 Feb 2012, 6:10 PM
Hi,

The official Maven Repository's latest version of com.extjs.gxt is 2.2.0.

Which repository are you using to get versions 2.2.5 and 3.0.0?

jtaekema
27 Feb 2012, 12:58 PM
For 2.2.5-gwt22 I made my own pom


<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.extjs</groupId>
<artifactId>gxt-gwt22</artifactId>
<version>2.2.5</version>
</project>

3.0.0-beta3 is here http://mvnrepository.com/artifact/com.sencha.gxt/gxt

robferguson
27 Feb 2012, 3:02 PM
Hi,

You can also add them to your local repository:


mvn install:install-file -DgroupId=com.sencha.gxt -DartifactId=gxt -Dversion=3.0.0-beta3 -Dpackaging=jar -Dfile=gxt-3.0.0-beta3.jar -DgeneratePom=true

Cheers
Rob