GWT Compilation Error - GXT 3.0 , GWT 2.4 - gwt

I am using GWT 2.4.0 with GXT 3.0.0b
I am trying to Google Compile the application, but every time I get this error.
org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
[ERROR] at AddNewCompDtlsForCombo.java(5): class AddNewCompDtlsForCombo
com.google.gwt.dev.jjs.ast.JClassType
Exception in thread "UnitWriteThread" java.lang.NullPointerException
at com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:182)
at com.google.gwt.dev.util.DiskCacheToken.writeObject(DiskCacheToken.java:91)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at com.google.gwt.dev.javac.PersistentUnitCache$UnitWriter.run(PersistentUnitCache.java:226)
What is the issue? Is it with some missing jars/plugins?
Earlier I was using GWT 2.1 with Gxt 2.4 which used to Compile fine.
Please help

According to this page: https://docs.sencha.com/gxt/3.1/getting_started/Versions.html
GWT 2.4.0 may be incompatible with GXT 3.0.0b. Switching to GWT 2.5.1 should help.

Related

RapidClipse UI Designer Error

I am new to RapidClipse IDE as my organization requested that I study and develop with it. After having installed version 2.3.1 windows edition, I created a project but the UI designer is showing an error and the widget palette is not showing anything. Below you can find the full stacktrace:
java.lang.NullPointerException
at xdev.eclipse.internal.vaadin.model.DefaultBeanInfo.getDefaultValue(DefaultBeanInfo.java:676)
at xdev.eclipse.internal.vaadin.model.Bean.getValueImpl(Bean.java:855) 
at xdev.eclipse.internal.vaadin.model.Bean.getValue(Bean.java:829) 
at xdev.eclipse.internal.vaadin.model.Bean.getConstraints(Bean.java:737)
at xdev.eclipse.internal.vaadin.ui.editor.VaadinDesigner.adjustRootSizeImpl(VaadinDesigner.java:1725)
at xdev.eclipse.internal.vaadin.ui.editor.VaadinDesigner.lambda$17(VaadinDesigner.java:1697)
at xdev.eclipse.internal.vaadin.ui.editor.VaadinDesigner.adjustRootSize(VaadinDesigner.java:1708)
at xdev.eclipse.internal.vaadin.ui.editor.VaadinDesigner.createUI(VaadinDesigner.java:824) 
at xdev.eclipse.internal.vaadin.ui.editor.VaadinDesigner.loadContents_createUI(VaadinDesigner.java:764)
at xdev.eclipse.internal.vaadin.ui.editor.VaadinDesigner.lambda$9(VaadinDesigner.java:701) 
at xdev.eclipse.internal.core.ui.editor.multi.SwingDesignPart.invokeUIActionImpl(SwingDesignPart.java:80)
at xdev.eclipse.internal.core.ui.editor.multi.SwingDesignPart.lambda$0(SwingDesignPart.java:69)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)j
at ava.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at xdev.eclipse.internal.core.ui.swing.XdevEventQueue.dispatchEvent(XdevEventQueue.java:138)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(UnknownSource)
at java.awt.EventDispatchThread.run(Unknown Source)
I have been able to solve this. Its probably a bug from the developers of RapidClipse. this is what i did:
The UI Libraries to display the designer and the pallette does not download when you create the project, so you will have to download the following:
xdev-server-aa
xdev-server-ui
from maven repository and include them in your library path. then you right click the project select maven and update project. Restart the RapidClipse IDE

How to debug a Gluon Application that uses Dagger in Eclipse

I'm trying do create a JavaFX application based on Gluon. Therefor I'm using Eclipse with the Gluon plugin.
I need to say that I am new to Gradle and JavaFX as well, so maybe I disgrace myself with this question, because it's too obvious.
I created a fresh project with the Gluon project wizard that I am able to compile and start via the Gradle task "run". After some toying with the project I produced an error that I would like to debug step by step with the eclipse debugger.
So, how can you debug a Gluon/Gradle application? I'm also interested where I can configure the Gradle tasks. I see the preconfigured ones in the task list, but can only execute them by doubleclick. There isn't even a context menu. One idea was that there was a debug gradle task in the list, but I couldn't find one so far.
UPDATE:
I)
I need to add that I want to use Gluon ignite with dagger and my application can't be started by the eclipse run menu, because the code generation for the dagger modules has not been performed. Debugging and launching without Dagger seems to work. So my question is bit more specific than I thought...
II)
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplication(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Module adapter for class com.myapp.main.MyApp$DaggerModule could not be loaded. Please ensure that code generation was run for this module.
at dagger.internal.FailoverLoader$1.create(FailoverLoader.java:45)
at dagger.internal.FailoverLoader$1.create(FailoverLoader.java:40)
at dagger.internal.Memoizer.get(Memoizer.java:56)
at dagger.internal.FailoverLoader.getModuleAdapter(FailoverLoader.java:57)
at dagger.internal.Modules.loadModules(Modules.java:43)
at dagger.ObjectGraph$DaggerObjectGraph.makeGraph(ObjectGraph.java:174)
at dagger.ObjectGraph$DaggerObjectGraph.access$000(ObjectGraph.java:138)
at dagger.ObjectGraph.create(ObjectGraph.java:129)
at com.gluonhq.ignite.dagger.DaggerContext.init(DaggerContext.java:58)
at com.myapp.main.MyApp.start(MyApp.java:85)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source)
... 1 more
Exception running application com.myapp.main.MyApp
Thanks in advance!

How to update Eclipse GWT Plugin 2.6.0 to higher version

There seems to be an annoying bug with GWT 2.6.0. Since The current version in the repository for Eclipse is 2.6.0 I was wondering how I could update to 2.6.1 or 2.7.0 myself.
Is there a way to do that?
The error I am dealing with:
java.lang.NoSuchMethodError: com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(Lcom/google/gwt/core/ext/TreeLogger;Ljava/lang/String;Z)Lcom/google/gwt/dev/cfg/ModuleDef;
at com.google.gwt.dev.shell.designtime.HostedModeSupportImpl.loadModule(HostedModeSupportImpl.java:85)
at com.google.gwt.dev.shell.designtime.HostedModeSupportImpl.createModuleSpaceHost(HostedModeSupportImpl.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
..
which gets thrown as I open a file with the GWT Designer.
You need to download and unzip the SDK manually, then tell Eclipse where to find it: https://developers.google.com/eclipse/docs/using_sdks#adding-sdks
…but GWT Designer is deprecated and won't work with newer versions of GWT. 2.6.1 is the last that works.

Could not find main class : Program will exit

I was messing with the JRE setup on Eclipse. Originally the project was set to 1.6 and when set to 1.7, my program started showing a lot of errors. So when i switched back to 1.6, all the compile time errors vanished but i have a new problem now.
This was shown on the console when i tried to run the started class containing the main function. The .class files all exist. Please advice.
java.lang.UnsupportedClassVersionError: Demo : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main"
Version 51.0 means the are still class files compiled with Java 7. This files wont run with a JRE 6. You have to recompile them first (Rebuild project or clean compile using ant/maven).
Check if java versions match in your Java Build path and Java Compiler in Project properties. I think you compiled with 1.6 and is trying to run with java 1.7

PMD 3.2.6 Issue With Eclipse 3.2

I have installed PMD 3.2.6 plugin on eclipse 3.2 using the steps mentioned in
http://pmd.sourceforge.net/integrations.html#eclipse
However, I get following error if I try to open the PMD views or try to PMD code check.
Note that I did re-start my eclipse after installation.
Also it worked fine when I installed it in Eclipse 3.3. Unfortunately I have to stick to Eclipse 3.2 due to some other constraints.
Error: Unable to create view: An unexpected exception was thrown.
java.lang.NullPointerException
at net.sourceforge.pmd.eclipse.ui.views.PriorityFilter.<init>(Unknown Source)
at net.sourceforge.pmd.eclipse.ui.views.ViolationOverview.init(Unknown Source)
at org.eclipse.ui.part.ViewPart.init(ViewPart.java:122)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:305)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:197)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActive(WorkbenchPage.java:3915)
at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2929)
at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1936)
at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2873)
at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2821)
at org.eclipse.ui.internal.Workbench$20.run(Workbench.java:1697)
at org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1437)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1695)
at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1666)
at org.eclipse.ui.internal.Workbench$18.run(Workbench.java:1545)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1489)
at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:702)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1101)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Anyone faced this issue before?
That's an old version of Eclipse! If PMD isn't supported with that version, you can run PMD at the command line or as an Ant script. Then the plugin integration fails to be a factor.