Cannot load fixture data.yml: GC overhead limit exceeded

71 views
Skip to first unread message

Thiago Augusto V. Lima

unread,
Dec 21, 2011, 5:24:43 PM12/21/11
to play-framework
I have an initial data fixture, pre-loaded (PROD mode), with about 3MB
of yml data. By checking the backtrace and online reading, it seems
that the problem is related to the timestamp field of one of my types.

Any clues?


Thanks is advance,

------- Log/backtrace ---------

D:\Workspaces\PlayFramework\MyApp>play run
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2.3, http://www.playframework.org
~ framework ID is thiago
~
~ Ctrl+C to stop
~
19:17:37,983 INFO ~ Starting D:\Workspaces\PlayFramework\MyApp
19:17:37,989 INFO ~ Module crud is available (C:\play\modules\crud)
19:17:37,989 INFO ~ Module router is available (C:\play\modules
\router-1.1)
19:17:37,990 INFO ~ Module secure is available (C:\play\modules
\secure)
19:17:38,092 INFO ~ Precompiling ...
19:17:51,183 INFO ~ Connected to jdbc:h2:mem:play;MODE=MYSQL
19:17:52,181 INFO ~ Application 'MyApp' is now started !
19:17:52,386 DEBUG ~ delete from TypeA
19:17:52,394 DEBUG ~ delete from TypeB
19:17:52,397 DEBUG ~ delete from TypeC
19:17:52,399 DEBUG ~ delete from TypeD
19:17:52,402 DEBUG ~ delete from TypeE
19:17:52,405 DEBUG ~ delete from TypeF
19:17:52,407 DEBUG ~ delete from TypeH
19:18:25,823 ERROR ~

@68nfcf915
Error during job execution (jobs.Bootstrap)

Execution exception (In /app/jobs/Bootstrap.java around line 15)
RuntimeException occured : Cannot load fixture gendata.yml: GC
overhead limit exceeded

play.exceptions.JavaExecutionException: Cannot load fixture
gendata.yml: GC overhead limit exceeded
at play.jobs.Job.call(Job.java:155)
at Invocation.Job(Play!)
Caused by: java.lang.RuntimeException: Cannot load fixture
gendata.yml: GC overhead limit exceeded
at play.test.Fixtures.loadModels(Fixtures.java:223)
at jobs.Bootstrap.doJob(Bootstrap.java:15)
at play.jobs.Job.doJobWithResult(Job.java:50)
at play.jobs.Job.call(Job.java:146)
... 1 more
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Calendar.<init>(Calendar.java:931)
at java.util.GregorianCalendar.<init>(GregorianCalendar.java:
574)
at java.util.Calendar.createCalendar(Calendar.java:1011)
at java.util.Calendar.getInstance(Calendar.java:963)
at org.yaml.snakeyaml.constructor.SafeConstructor
$ConstructYamlTimestamp.construct(SafeConstructor.java:313)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:
184)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:
327)
at
org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:
125)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:
308)
at org.yaml.snakeyaml.constructor.SafeConstructor
$ConstructYamlMap.construct(SafeConstructor.java:443)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:
184)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:
327)
at
org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:
125)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:
308)
at org.yaml.snakeyaml.constructor.SafeConstructor
$ConstructYamlMap.construct(SafeConstructor.java:443)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:
184)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:
143)
at
org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:
129)
at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
at org.yaml.snakeyaml.Yaml.load(Yaml.java:238)
at play.test.Fixtures.loadModels(Fixtures.java:176)
... 4 more

Guillaume Bort

unread,
Dec 22, 2011, 6:25:35 AM12/22/11
to play-fr...@googlegroups.com
It looks like a snakeYaml issue. Try to ask them, it is perhaps a known issue.

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>

--
Guillaume Bort

Reply all
Reply to author
Forward
0 new messages