Results 1 to 5 of 5

Thread: Maven Project causes eclipse to null pointer after switching to gxt 3.0.0-beta3

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Canada
    Posts
    19

    Default Maven Project causes eclipse to null pointer after switching to gxt 3.0.0-beta3

    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:


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

    Code:
    <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

  2. #2
    Sencha User
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Answers
    109

    Default

    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.

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    48

    Question

    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?

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Location
    Canada
    Posts
    19

    Default

    For 2.2.5-gwt22 I made my own pom

    Code:
    <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

  5. #5

    Default

    Hi,

    You can also add them to your local repository:

    Code:
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •