Reputation: 1269
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:
Upvotes: 6
Views: 8277
Reputation: 158
you must clean your project first (Project -> Clean) then remove /gwt-unitCache then rebuild it.
Upvotes: 0
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
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
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
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
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:
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
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:
lib contains your compile-time libraries
Upvotes: 1