Eclipse crashes when trying to edit UIBinder ui.xml

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Eclipse crashes when trying to edit UIBinder ui.xml

Postby mwrightmtw » Sun Mar 06, 2011 8:51 am

When I try to edit this file in designer Eclipse goes away without an error:

Code: Select all
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
   xmlns:g="urn:import:com.google.gwt.user.client.ui">
   
   <g:HTMLPanel>
      <div id="LeftPanel">
         <div id="index-22">
            <img src="gen/images/index_22.jpg" width="21" height="499" alt=""/>
         </div>
         <div id="index-23">
            <img src="gen/images/index_23.jpg" width="165" height="37" alt=""/>
         </div>
           <div id="index-24">
            <img src="gen/images/index_24.jpg" width="17" height="499" alt=""/>
         </div>
         <div id="index-26">
            <img src="gen/images/index_26.jpg" width="165" height="26" alt=""/>
         </div>
         <div id="index-27">
            <img src="gen/images/index_27.jpg" width="165" height="406" alt=""/>
         </div>
         <div id="index-28">
            <img src="gen/images/index_28.jpg" width="165" height="30" alt=""/>
         </div>
         <div id="index-29">
            <img src="gen/images/index_29.jpg" width="203" height="119" alt=""/>
         </div>
      </div>
   </g:HTMLPanel>
      
</ui:UiBinder>

here are the lines in the css that apply:

Code: Select all
#LeftPanel {
   position:absolute;
   left:0px;
   top:0px;
   width:165px;
   height:712px;
}

#index-22 {
   position:absolute;
   left:0px;
   top:0px;
   width:21px;
   height:499px;
}

#index-23 {
   position:absolute;
   left:21px;
   top:0px;
   width:165px;
   height:37px;
}

#index-24 {
   position:absolute;
   left:186px;
   top:0px;
   width:17px;
   height:499px;
}

#index-25 {
   position:absolute;
   left:203px;
   top:0px;
   width:765px;
   height:701px;
}

#index-26 {
   position:absolute;
   left:21px;
   top:37px;
   width:165px;
   height:26px;
}

#index-27 {
   position:absolute;
   left:21px;
   top:63px;
   width:165px;
   height:406px;
}

#index-28 {
   position:absolute;
   left:21px;
   top:469px;
   width:165px;
   height:30px;
}

#index-29 {
   position:absolute;
   left:0px;
   top:499px;
   width:203px;
   height:119px;
}

I am using GWT 2.2.0(2.2.0.v201102111811), GWT Designer ( 2.2.0r36x201102111155)
mwrightmtw
 
Posts: 7
Joined: Sun Mar 06, 2011 8:45 am

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby Eric Clayberg » Sun Mar 06, 2011 9:55 am

Please provide a complete test case project that will trigger this.

We also need info about your Eclipse version, GWT version, OS version, JDK version and GWT Designer version.

Any OS crash logs would be helpful as well.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby mwrightmtw » Sun Mar 06, 2011 11:29 am

Eclipse 3.6.1 Helios Service Release 2 Build id: 20110301-1815
Google Web Toolkit DSK 2.2.0 (2.2.0 v2011111811)
Windows 7 64-bit with 8GB of memory
jdk1.6.0_23
GWT Designer 2.2.0r36x20110211155
GWT Designer Core 2.2.0.r36201102111446
GWT Designer Editor 2.2.0.r36x201102111505

The attached file contains the entire Eclipse Project. Try opening up any of the following in designer:

com.redesetgrow.gwt.client.teacher.ui.TeacherLeftPanelViewImpl.ui.xml
com.redesetgrow.gwt.client.teacher.ui.TeacherTopPanelViewImpl.ui.xml
Attachments
LessonPlanner_GWT_2.7z
(90.23 KiB) Downloaded 7 times
mwrightmtw
 
Posts: 7
Joined: Sun Mar 06, 2011 8:45 am

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby Eric Clayberg » Mon Mar 07, 2011 9:43 am

Thanks for the test case. We traced this to a problem in WebKit for Windows when using jpeg images.

At the moment, the only work around that we are aware of is to use png images rather than jpeg images.

We are researching a better work around, so may have better news shortly.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby Eric Clayberg » Mon Mar 07, 2011 7:37 pm

Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby mwrightmtw » Tue Mar 08, 2011 7:09 am

I tried updating using http://dl.google.com/eclipse/inst/d2gwt/beta/3.6 and got the following error:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer,2.2.0.r36x201103071541
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.GWTExt,2.2.0.r36x201103071544
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.GXT,2.2.0.r36x201103071544
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.GXT.databinding,2.2.0.r36x201103071544
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.SmartGWT,2.2.0.r36x201103071544
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.UiBinder,2.2.0.r36x201103071541
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.UiBinder.wizards,2.2.0.r36x201103071544
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.doc.user,2.2.0.r36x201103071544
No repository found containing: org.eclipse.update.feature,com.google.gdt.eclipse.designer.editor.feature,2.2.0.r36x201103071541
No repository found containing: org.eclipse.update.feature,com.google.gdt.eclipse.designer.feature,2.2.0.r36x201103071544
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted,2.2.0.r36x201103071218
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.1_6,2.2.0.r36x201103071218
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.1_6.super,2.2.0.r36x201103071218
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_0,2.2.0.r36x201103071218
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_0.super,2.2.0.r36x201103071218
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_0.webkit,2.2.0.r36x201103071218
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_0.webkit_win32x64,2.2.0.r36x201103071218
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_2,2.2.0.r36x201103071218
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_2.webkit,2.2.0.r36x201103071218
No repository found containing: org.eclipse.update.feature,com.google.gdt.eclipse.designer.hosted.feature,2.2.0.r36x201103071218
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.lib,2.2.0.r36x201103071218
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.launch,2.2.0.r36x201103071544
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.preferences,2.2.0.r36x201103071544
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.usageprofiler,2.2.0.r36x201103071544
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.usageprofiler.ui,2.2.0.r36x201103071544
No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.wizards,2.2.0.r36x201103071544
No repository found containing: osgi.bundle,org.eclipse.wb.core,0.9.0.r36x201103071212
No repository found containing: osgi.bundle,org.eclipse.wb.core.databinding,0.9.0.r36x201103071212
No repository found containing: osgi.bundle,org.eclipse.wb.core.databinding.xml,0.9.0.r36x201103071215
No repository found containing: org.eclipse.update.feature,org.eclipse.wb.core.feature,0.9.0.r36x201103071212
No repository found containing: osgi.bundle,org.eclipse.wb.core.lib,0.9.0.r36x201103071212
No repository found containing: osgi.bundle,org.eclipse.wb.core.ui,0.9.0.r36x201103071215
No repository found containing: org.eclipse.update.feature,org.eclipse.wb.core.ui.feature,0.9.0.r36x201103071215
No repository found containing: osgi.bundle,org.eclipse.wb.core.xml,0.9.0.r36x201103071215
No repository found containing: org.eclipse.update.feature,org.eclipse.wb.core.xml.feature,0.9.0.r36x201103071215
No repository found containing: osgi.bundle,org.eclipse.wb.css,0.9.0.r36x201102190706
No repository found containing: org.eclipse.update.feature,org.eclipse.wb.css.feature,0.9.0.r36x201102190706
No repository found containing: osgi.bundle,org.eclipse.wb.doc.user,0.9.0.r36x201103071214
No repository found containing: org.eclipse.update.feature,org.eclipse.wb.doc.user.feature,0.9.0.r36x201103071214
No repository found containing: osgi.bundle,org.eclipse.wb.jdt.fragment,0.9.0.r36x201103071212
No repository found containing: osgi.bundle,org.eclipse.wb.os,0.9.0.r36x201103071212
No repository found containing: osgi.bundle,org.eclipse.wb.os.win32,0.9.0.r36x201103071212
No repository found containing: osgi.bundle,org.eclipse.wb.runtime,0.9.0.r36x201103071212
No repository found containing: osgi.bundle,org.eclipse.wb.runtime.lib,0.9.0.r36x201103071212

I am running on a 64-bit computer using the 64-bit JDK...I will try it with 32-bit.
mwrightmtw
 
Posts: 7
Joined: Sun Mar 06, 2011 8:45 am

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby mwrightmtw » Tue Mar 08, 2011 7:29 am

The latest version from the beta update site worked for 32-bit...when will the 64-bit version be available?
mwrightmtw
 
Posts: 7
Joined: Sun Mar 06, 2011 8:45 am

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby Eric Clayberg » Tue Mar 08, 2011 7:35 am

There is only one version which supports both 32-bit and 64-bit, so both were available simultaneously.

What you saw earlier was a very common Eclipse p2 failure. Just wait 5 minutes and restart Eclipse.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby mwrightmtw » Tue Mar 08, 2011 9:36 am

Thanks for the tip. I have tried it several times with waiting at least 5 minutes, but it fails with the same error every time. I have tried both going through the Install new software and through check for updates. Is there another way to get the update to get around the problem of installing in the 64-bit environment?
mwrightmtw
 
Posts: 7
Joined: Sun Mar 06, 2011 8:45 am

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby Eric Clayberg » Tue Mar 08, 2011 2:10 pm

Have you tried installing into a new, clean Eclipse 64-bit environment?

I tested the update site with both 64-bit and 32-bit and did not have any problems. It is the same update site and bits in both cases, so it does not make sense that you are seeing an error in one case and not the other unless there is some sort of local issue with your Eclipse environment (maybe a corrupt Eclipse p2 cache).

You can also try installing using the archived upate site...

Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby mwrightmtw » Tue Mar 08, 2011 6:46 pm

I actually have three installs (a 32-bit J2EE Eclipse 3.6.1 on a 64-bit Windows 7, a 64-bit 3.6.1 J2EE Eclipse on a 64-bit Windows 7 and a 32-bit Eclipse on a 32-bit Mac OS X 10.6). The 64-bit Eclipse on Windows 7 and the 32-bit on Mac OS X have the same problem. The 64-bit J2EE Eclipse 3.6.1 on 64-bit Windows install is not fresh, so I will download the 3.6.2 64-bit J2EE version and try to install it in that one.

The one on the Mac is a fresh install with the GWT plugin and Git Plug installed (This is the same setup as the 32-bit Eclipse running on my 64-bit Windows 7 that does work).

Since it is a very common Eclipse p2 error do you happen to know of the fix or a refresh to some thread that gives some ideas how to get around it? (I'm assuming it is not wait 5 minutes, restart and then try again).
mwrightmtw
 
Posts: 7
Joined: Sun Mar 06, 2011 8:45 am

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby Eric Clayberg » Tue Mar 08, 2011 7:46 pm

I just tried it under OSX, and it loaded just fine.

The problem is usually caused by a local communications problem which Eclipse misinterprets as being unable to find the repository. It caches that info for the session. Waiting 5 minutes and restarting Eclipse clears it up 99% of the time. In rare occasions, the actual Eclipse p2 cache is corrupted, so a fresh Eclipse install is necessary. Those are the only solutions I have ever seen mentioned.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby mwrightmtw » Wed Mar 09, 2011 8:07 am

Installing the 64-bit Eclipse j2EE 3.6.2 version on my 64-bit Windows 7 and then installing the GWT plugin as well as the GWT Designer Beta plugin worked. I will try the same thing on the Max OSX that is not working to see if that fixes it.

Thanks for the information.
mwrightmtw
 
Posts: 7
Joined: Sun Mar 06, 2011 8:45 am

Re: Eclipse crashes when trying to edit UIBinder ui.xml

Postby Eric Clayberg » Wed Mar 09, 2011 7:05 pm

I'm glad you got it working.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests

cron