Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    7
    Vote Rating
    0
    sesar is on a distinguished road

      0  

    Default gwt-cal compatibility problems with GXT

    gwt-cal compatibility problems with GXT


    Hi

    I got the next error when I include a project that is using gwt-cal, in a project that is using GXT libraries.
    Do you have any known compatibility problems when gwt-cal component is used in a project with GXT dependencies?

    Compiling module com.telvent.galeno.gwt.healthCareProfessional.RootModule
    [ERROR] Errors in
    'jar:file:/C:/Documents%20and%20Settings/seivma/.m2/repository/com/sencha/gxt/gxt/3.0.0-rc2/gxt-3.0.0-rc2.jar!/com/sencha/
    eme/blue/client/menu/BlueMenuItemAppearance.java'
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    at java.util.jar.Manifest$FastInputStream.<init>(Manifest.java:315)
    at java.util.jar.Manifest$FastInputStream.<init>(Manifest.java:310)
    at java.util.jar.Manifest.read(Manifest.java:178)
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at java.util.jar.JarFile.getManifestFromReference(JarFile.java:167)
    at java.util.jar.JarFile.getManifest(JarFile.java:148)
    at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:696)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:228)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$ICompilerRequestorImpl.acceptResult(AbstractCompiler.java:331)
    at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:587)
    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:498)
    at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)
    at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)



    I attached information about XML descriptor for your information.

    ---------------------
    PROJECT USING GWT-CAL
    ---------------------

    <?xml version="1.0" encoding="UTF-8"?>
    <module rename-to='GwtCalendar'>
    <inherits name='com.google.gwt.user.User' />
    <inherits name='com.google.gwt.user.theme.standard.Standard' />
    <inherits name='com.bradrydzewski.gwt.calendar.Calendar' />
    <inherits name='com.bradrydzewski.gwt.calendar.theme.google.Google' />
    <inherits name='com.allen_sauer.gwt.dnd.gwt-dnd' />
    <source path='client' />
    <source path='shared' />
    </module>

    ----------------------
    PROJECT USING GXT
    ----------------------
    <module rename-to='RootModule'>
    <inherits name='com.google.gwt.user.User' />
    <inherits name='com.google.gwt.user.theme.standard.Standard' />
    <inherits name='com.sencha.gxt.ui.GXT'/>
    <inherits name='com.sencha.gxt.chart.Chart'/>
    <inherits name='com.telvent.galeno.gwt.modules.calendar.GwtCalendar' /> // gwt-cal project importation
    <inherits name="com.google.gwt.user.ImageBundle" />
    <inherits name="com.google.gwt.resources.Resources" />
    <entry-point
    class='com.telvent.galeno.gwt.healthCareProfessional.client.RootModule'/>
    <source path='client' />
    <source path='shared' />
    </module>


    As you can see I try to import gwt-cal project as a dependency of my GXT project.

    ----------------
    USED VERSIONS
    ----------------

    GWT-CAL:
    <dependency>
    <groupId>com.bradrydzewski</groupId>
    <artifactId>gwt-cal</artifactId>
    <version>0.9.3.1</version>
    </dependency>

    GXT:
    <dependency>
    <groupId>com.sencha.gxt</groupId>
    <artifactId>gxt</artifactId>
    <version>3.0.0-rc2</version>
    </dependency>
    <dependency>
    <groupId>com.sencha.gxt</groupId>
    <artifactId>gxt-chart</artifactId>
    <version>3.0.0-rc2</version>
    </dependency>
    <dependency>
    <groupId>com.sencha.gxt</groupId>
    <artifactId>gxt-legacy</artifactId>
    <version>3.0.0-rc2</version>
    </dependency>

  2. #2
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    248
    Vote Rating
    3
    gishmo is on a distinguished road

      0  

    Default


    This looks like you have not enough memory.

    Did you try to increase the max memory of your IDE?

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    7
    Vote Rating
    0
    sesar is on a distinguished road

      0  

    Default


    Hi

    Thanks for you answer.

    I know that exception shows a problem about memory "OutOfMemoryError". But I'm not using any IDE to compile the project. I try to build a package using Maven. So I was executing a maven command using windows console, "mvn clean package" over my project.

    If I removed the dependency to the project that contains gwt-cal component, the project (gxt) is packaged without problems. So that makes me think in some kind of problem of compatibility.

    I have tested in several machines to discard problems about machine performance.

    Best regards

  4. #4
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    gishmo is correct here. This is not a bug in GXT, nor in gwt-cal. Your build process is not allowed to use that amount memory it requires. You will need to increase your heap space for your build.

  5. #5
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    248
    Vote Rating
    3
    gishmo is on a distinguished road

      0  

    Default


    Have you tried to increase the Java Heap Size by using: -Xmx512M?

    @Sven: Did not see your response. Frank

  6. #6
    Sencha User
    Join Date
    Apr 2012
    Posts
    7
    Vote Rating
    0
    sesar is on a distinguished road

      0  

    Default


    Hi
    I have tried this.
    set MAVEN_OPTS=-Xms128M -Xmx1536M

    If I set 2048 I got an error "could-not-reserve-enough-space-for-object-heap". So I set 1536, this size should be enough for packaging my project. But error still persists. It stays about fifteen minutes in "compiling module" and then compilation aborts showing the error of java heap space. I think there are more problems that a simple memory error. Maybe a cyclical dependency or something like that

    Anybody have used gwt-cal component in a project that is using gxt dependencies?

    Best regards

  7. #7
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    248
    Vote Rating
    3
    gishmo is on a distinguished road

      0  

    Default


    Well, it looks like you need more RAM ... ;-)

  8. #8
    Sencha User
    Join Date
    Apr 2012
    Posts
    7
    Vote Rating
    0
    sesar is on a distinguished road

      0  

    Default


    I have eight gigas in this machine an Im using Windows 7, so I don't think that was the real problem.

    Problem comes when I add these

    <inherits name='com.bradrydzewski.gwt.calendar.Calendar' />
    <inherits name='com.bradrydzewski.gwt.calendar.theme.google.Google' />
    <inherits name='com.allen_sauer.gwt.dnd.gwt-dnd' />

    in my gxt project. If I removed these modules , project is packaged properly.

    Anybody have used gwt-cal component in a project that is using gxt dependencies?

    Did you use it?

    Best regards

  9. #9
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    248
    Vote Rating
    3
    gishmo is on a distinguished road

      0  

    Default


    It depends on the JVM your are using. If you are using a 32 bit JVM on Windows, your heapsize is limited to something < 2048M or < 1.6 GB.

  10. #10
    Sencha User
    Join Date
    Apr 2012
    Posts
    7
    Vote Rating
    0
    sesar is on a distinguished road

      0  

    Default


    Hi

    Do you really think that 1536M is not enough for packaging a GXT project that is using the gwt-calendar component as dependency??

    Best regards