google-code-export / cypal-studio

Automatically exported from code.google.com/p/cypal-studio
0 stars 0 forks source link

org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.genericType thrown when running a simple project #113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Eclipse 3.4 + Cypal-Studio 1.0 in a Mac with JVM 1.5
2. Install GWT-Ext 2.05
3. Create a simple class that extends a GWTExt Panel

What is the expected output? What do you see instead?

Well, you expect to see a simple empty panel. You get this exception instead:

java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.genericType()L
org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding;
    at
com.google.gwt.dev.jdt.TypeRefVisitor.maybeDispatch(TypeRefVisitor.java:178)
    at com.google.gwt.dev.jdt.TypeRefVisitor.endVisit(TypeRefVisitor.java:96)
    at
org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.traverse(
ParameterizedSingleTypeReference.java:222)
    at
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclarati
on.java:210)
    at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.j
ava:1149)
    at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(Compil
ationUnitDeclaration.java:487)
    at
com.google.gwt.dev.javac.BinaryTypeReferenceRestrictionsChecker.findAllBinaryTyp
eReferenceSites(BinaryTypeReferenceRestrictionsChecker.java:144)
    at
com.google.gwt.dev.javac.BinaryTypeReferenceRestrictionsChecker.check(BinaryType
ReferenceRestrictionsChecker.java:114)
    at
com.google.gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits(Com
pilationUnitInvalidator.java:139)
    at
com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:123)
    at com.google.gwt.dev.cfg.ModuleDef.updateTypeOracle(ModuleDef.java:477)
    at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:324)
    at
com.google.gwt.dev.GWTShell$BrowserWidgetHostImpl.createModuleSpaceHost(GWTShell
.java:252)
    at
com.google.gwt.dev.shell.mac.BrowserWidgetSaf$ExternalObject.gwtOnLoad(BrowserWi
dgetSaf.java:66)
    at
com.google.gwt.dev.shell.mac.BrowserWidgetSaf$GwtOnLoad.invoke(BrowserWidgetSaf.
java:155)
    at org.eclipse.swt.internal.carbon.OS.ReceiveNextEvent(Native Method)
    at org.eclipse.swt.widgets.Display.sleep(Display.java:3801)
    at com.google.gwt.dev.GWTShell.sleep(GWTShell.java:749)
    at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:721)
    at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
    at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

What version of the product are you using? On what operating system?

Cypal 1.0
Mac OS 10.5.5
JVM Apple 1.5.0

Original issue reported on code.google.com by juanme...@gmail.com on 20 Sep 2008 at 10:33

GoogleCodeExporter commented 9 years ago
Same problem here!

Please help us. It's taking too long to debug apps.

Cypal 1.0
Windows XP Professional Service Pack 2
JVM 1.5.0_16
Eclipse 3.3

Original comment by rbaltaza...@gmail.com on 9 Mar 2009 at 3:12

GoogleCodeExporter commented 9 years ago
I noticed that this problem might occur if you use a target runtime (I used 
Tomcat
6.0). So, try to remove from your .classpath file the following line:
    <classpathentry kind="con"
path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtim
eTarget/Apache
Tomcat v6.0"/>

The .classpath file must look like:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
    <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry kind="output" path="build/classes"/>
</classpath>

Original comment by s0c...@gmail.com on 4 Apr 2009 at 1:49

GoogleCodeExporter commented 9 years ago
Try this It worked!. Just go to Project Build path in Eclipse and move
the GWT libraries above all in Order and Export tab. That will do the magic

Original comment by anitha.p...@gmail.com on 12 Oct 2012 at 10:32