Failure in unit cache map load - GWT
Asked Answered
I

7

6

I get this error during compile-time of my GWT project, there is no such folder as 'gwt-UnitCache' to delete, as suggested in the following questions

I'm using IntelliJ IDEA (IDE), SmartGWT EE (Framework), JBoss AS (Server) and JPA

Here's the error log:

enter image description here

Infield answered 24/4, 2013 at 9:55 Comment(2)
Share the stack trace. It might be a issu with idea gwt plugin and not exactly related to GWT.Coroner
Added the stack traceInfield
I
1

I was able to fix it by systematically removing, compiling and re-adding every artifact piece. If you're having this problem, make sure you have a structure like this:

enter image description here

lib contains your compile-time libraries

Infield answered 25/4, 2013 at 7:19 Comment(0)
H
4

If you change the value of your <module rename-to='<appname>'> in .gwt.xml it will give the same error :) but then you can just delete your gwt-unitCache and all is ok :)

Hutchens answered 6/10, 2013 at 8:7 Comment(0)
F
2

IntelliJ IDEA stores GWT cache files in other location than <ProjectFolder>/gwt-unitCache, which is a default directory for a cache if you are using, for example, Eclipse with GPE (Google Plugin for Eclipse).

In IDEA, GWT cache should be located by default at <your_home>/.IntelliJIdea12/system/gwt (IntelliJ IDEA 12, Linux). For other operating systems you can check Project and IDE Settings.

If you delete mentioned gwt folder contents, IntelliJ will create a new cache, which in turn might solve your Failure in unit cache... (and similar Unable to read from byte cache) problem.

Fusee answered 13/11, 2013 at 17:4 Comment(0)
B
2

I had the same problem with Eclipse.

Unfortunately looks like the only solution is the one given by Crowlix. I tried to delete gwtCache and Temp files, but nothing worked.

The problem only got fixed when deleting the entire project and re-importing it.

Beograd answered 10/12, 2013 at 10:34 Comment(1)
I got it fixed clearing the GWT cache in temp files , guess people can try giving it a shotHairpiece
I
1

I was able to fix it by systematically removing, compiling and re-adding every artifact piece. If you're having this problem, make sure you have a structure like this:

enter image description here

lib contains your compile-time libraries

Infield answered 25/4, 2013 at 7:19 Comment(0)
O
1

I am face off this same error, this tip doesn't works for me, moreover, I keep about looking for a solution, and finally, I got this advice:

Java stack overflow error

I tried with -Xss1m, but the error persists, I keep on trying, my final value was -Xss5m

I am using GWT 2.5.1 and IntelliJ 12.

Outbound answered 25/4, 2013 at 15:6 Comment(2)
Thanks for your input, I'm sure both answers will be very useful for quite some people =)Infield
fixed it for me, on a project with 150K LOC + Sencha GXTPlauen
J
0

I've got same problem building a project with maven.

Usign both suggestion of Nishant and @iVieL:

$ export MAVEN_OPTS="-Xms512m -Xmx1024m -Xss32m"
$ mvn clean package
Jacobs answered 9/10, 2013 at 8:3 Comment(0)
E
0

you must clean your project first (Project -> Clean) then remove /gwt-unitCache then rebuild it.

Edwinaedwine answered 13/10, 2020 at 14:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.