gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.52k stars 374 forks source link

Unable to load *.wbp-component.xml description - client.CellTable #7146

Closed dankurka closed 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 7149

Found in GWT Release (2.4.0):

Encountered on OS / Browser (Windows 7 - 32Bit):

Hi,
i'm using eclipse 3.7 with latest gwt-designer( GWT Designer Core   2.5.0.r37x201112291019  com.google.gdt.eclipse.designer.hosted.feature.feature.group    Google,
Inc.)
 plugin.
If I try to view an CellTable I get following error.
It's also not possible anymore to select a Celltree in
the designer palette.
Please see also for more information the attached
error report.

org.eclipse.wb.internal.core.utils.exception.DesignerException: 502 (Unable to load
*.wbp-component.xml description.). com.google.gwt.user.cellview.client.CellTable
    at org.eclipse.wb.internal.core.model.description.helpers.ComponentDescriptionHelper.getDescription0(ComponentDescriptionHelper.java:442)
    at org.eclipse.wb.internal.core.model.description.helpers.ComponentDescriptionHelper.getDescription0(ComponentDescriptionHelper.java:289)
    at org.eclipse.wb.internal.core.model.description.helpers.ComponentDescriptionHelper.getDescription(ComponentDescriptionHelper.java:258)
    at org.eclipse.wb.internal.core.model.JavaInfoUtils.createJavaInfo(JavaInfoUtils.java:386)
    at org.eclipse.wb.internal.core.parser.AbstractParseFactory.createInstance(AbstractParseFactory.java:504)
    at org.eclipse.wb.internal.core.parser.AbstractParseFactory.create(AbstractParseFactory.java:174)
    at com.google.gdt.eclipse.designer.parser.ParseFactory.create(ParseFactory.java:173)
    at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.endVisit(JavaInfoParser.java:696)
    at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:401)
    at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$110fc9f6.endVisit(<generated>)
    at org.eclipse.jdt.core.dom.ClassInstanceCreation.accept0(ClassInstanceCreation.java:337)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
    at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
    at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:355)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:337)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:348)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:337)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:248)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:236)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:444)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:393)
    at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$110fc9f6.endVisit(<generated>)
    at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
    at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:245)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
    at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:355)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:337)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:348)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:337)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:248)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:236)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:444)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:393)
    at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$110fc9f6.endVisit(<generated>)
    at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
    at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:245)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
    at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:355)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:337)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:348)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:337)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:248)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:236)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:444)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:393)
    at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$110fc9f6.endVisit(<generated>)
    at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
    at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:245)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
    at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:355)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:337)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:348)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:337)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:248)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:236)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:444)
    at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:393)
    at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$110fc9f6.endVisit(<generated>)
    at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
    at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:245)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
    at org.eclipse.jdt.core.dom.ExpressionStatement

Workaround if you have one:

Links to relevant GWT Developer Forum posts:

Link to patch posted at http://gwt-code-reviews.appspot.com:

Reported by marco.samstag on 2012-01-24 18:22:55


dankurka commented 9 years ago

Reported by clayberg@google.com on 2012-01-24 18:35:35

dankurka commented 9 years ago
i have the same problem...
i loaded my own project from another one computer and when i try to use the Designer
i have the follow error

Unable to load *.wbp-component.xml description

Reported by giovatoso on 2012-01-26 14:11:10

dankurka commented 9 years ago
I suddenly have the same problem as well.

Reported by justjoheinz on 2012-01-27 19:11:56

dankurka commented 9 years ago
I'm having the same issue with the latest plugin for Eclipse 3.7 on Debian Linux & Win7
64bit 

Reported by shchagin on 2012-01-30 09:50:42

dankurka commented 9 years ago
Have similar problem.

Windows XP SP3, Eclipse 3.6.2, GPE 2.5.1

In design view, can't select CellTable.

When open a existing form with a CellTable gives wbp-component.xml error.

This problem occur only after upgrading GEP to recent version.

Before upgrading, it worked fine.

Reported by kimunha74 on 2012-01-31 01:35:07

dankurka commented 9 years ago
I'm sorry, this is my oversight.
I've adopted GWT Designer for the next version of GWT and accidentally introduced dependency
on GWT 2.5 in CellTable.

If you want to fix this before next release, you can change manually file.
com.google.gdt.eclipse.designer\wbp-meta\2.4\com\google\gwt\user\cellview\client\AbstractCellTable.wbp-component.xml

Remove declaration of two methods with "int" parameter:

        <method name="setColumnWidth">
            <parameter type="int"/>
            <parameter type="java.lang.String"/>
        </method>
        <method name="setColumnWidth">
            <parameter type="int"/>
            <parameter type="double"/>
            <parameter type="com.google.gwt.dom.client.Style$Unit"/>
        </method>

  These methods were introduced in GWT 2.5, so WindowBuilder fails parsing this component
description.

Reported by scheglov@google.com on 2012-01-31 04:34:48

dankurka commented 9 years ago
Windows XP SP3, Eclipse 3.6.2, GPE 2.5.1

Search for specified file (AbstractCellTable.wbp-component.xml) using search function
of Windows XP, gave no result.

Attached directory structure of eclipse of 'feature' and 'plugins' directory.
(Other directory does not include any name including 'com.google'.)

Is the xml file (AbstractCellTable.wbp-component.xml) compressed in a jar file?

Reported by kimunha74 on 2012-01-31 07:02:39


dankurka commented 9 years ago
Found and fixed the xml file inside com.google.gdt.eclipse.designer_2.5.0.r37x201112291029.jar
(eclipse 3.7 indigo).
Works like a charm! Thanks!

Reported by shchagin on 2012-01-31 09:31:41

dankurka commented 9 years ago
Fix works for me, thanks a lot!

Reported by marco.samstag on 2012-01-31 10:49:57

dankurka commented 9 years ago
Fix works. Thank you!

Reported by kimunha74 on 2012-02-01 00:39:07

dankurka commented 9 years ago
Fix works for me also. Thanks :)

Reported by stefan.i.alexandru on 2012-02-14 13:52:25

dankurka commented 9 years ago
Kudos.Worked.

Reported by ajpahl1008 on 2012-02-24 02:15:35

dankurka commented 9 years ago
jar's path is %ECLIPSE_HOME%/plugins/com.google.gdt.eclipse.designer_2.5.0.r37x201112291029.jar
like.. 
open jar with a winrar or equivalent program. navigate to \wbp-meta\2.4\com\google\gwt\user\cellview\client\AbstractCellTable.wbp-component.xml
delete or comment out the xml block as mentioned above.

it also worked for me.

Reported by eozardic on 2012-03-12 12:08:41

dankurka commented 9 years ago
Issue 7245 has been merged into this issue.

Reported by clayberg@google.com on 2012-03-13 23:18:46

dankurka commented 9 years ago
moved to google plugin for eclipse issue tracker: https://code.google.com/p/google-plugin-for-eclipse/issues/detail?id=133

Reported by dankurka@google.com on 2013-04-16 22:14:55