Crowlix
Crowlix

Reputation: 1269

Failure in unit cache map load - GWT

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

Upvotes: 6

Views: 8277

Answers (7)

mahdi sharbaty
mahdi sharbaty

Reputation: 158

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

Upvotes: 0

algiogia
algiogia

Reputation: 955

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.

Upvotes: 2

falconepl
falconepl

Reputation: 398

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.

Upvotes: 2

Ivan Buttinoni
Ivan Buttinoni

Reputation: 4145

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

Upvotes: 0

Mihkel L.
Mihkel L.

Reputation: 1573

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 :)

Upvotes: 4

Vielinko
Vielinko

Reputation: 1661

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.

Upvotes: 1

Crowlix
Crowlix

Reputation: 1269

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

Upvotes: 1

Related Questions