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

Community
  • 1
  • 1
Crowlix
  • 1,269
  • 9
  • 19

7 Answers7

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

Mihkel L.
  • 1,543
  • 1
  • 27
  • 42
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.

falconepl
  • 398
  • 1
  • 3
  • 15
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.

algiogia
  • 936
  • 2
  • 14
  • 40
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

Crowlix
  • 1,269
  • 9
  • 19
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.

Community
  • 1
  • 1
Vielinko
  • 1,659
  • 1
  • 13
  • 17
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
Community
  • 1
  • 1
Ivan Buttinoni
  • 4,110
  • 1
  • 24
  • 44
0

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