FileTooBigException for EAR artifact

Hi,


I have a java project with several modules, packaged in a WAR module which in turn is packaged in an EAR module. When i change a file in the war module (for example logback.xml) and do CTRL-SHIFT-F9 to package it i always get this exception:


Cannot package file

IO Error: com.intellij.openapi.util.io.FileTooBigException: Attempt to          load          'C:\Users\heymajo\AppData\Local\Temp\1\packageFiletestproject2_war_0_0_13_SNAPSHOT_war1349766193857868650war'          in memory buffer, file length is 97692257 bytes.

Intellij is configured with these vm options:

-Xms256m
-Xmx768m
-XX:MaxPermSize=250m
-XX:ReservedCodeCacheSize=64m
-XX:+UseCodeCacheFlushing
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true


Thanks
Jorg

6 comments

Hi Jorg,

Please provide your idea.log file (main menu | help | show log)

Denis

0

I looked at the log file and there are no stacktraces or even an error message at the time when I trigger the error. I can reproduce the error easily so if there is another debug setting to enable to get a stacktrace let me know.

0

'Package File' action indeed doesn't work when big nested archives are involved. Is your WAR file really that big (97MB)?

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Yes our war file is 97MB, it is really not that big for an enterprise grade application from what i can see around here :-)

So the problem is really that the war is embedded in an ear, couldn't I get around that by telling IntelliJ not to package but instead create the archive in exploded mode ?

Thanks

0

I'm having similar issues with a 30951325 byte .war archive.  Unfortunately I can't use an exploded WAR because it's a Maven project.

0

Please sign in to leave a comment.