Hi,
I've reduced the file and attached it again. Colud somebody please take a look.
Thanks.
eve
> Date: Tue, 18 May 2010 13:38:09 +0000 > From: <email address hidden> > To: <email address hidden> > Subject: [Bug 582246] Re: yml file problems > > That's a big file, please try to remove entries to make it as small as > possible while still reproducing the error. > > ** Changed in: play > Status: New => Incomplete > > -- > yml file problems > https://bugs.launchpad.net/bugs/582246 > You received this bug notification because you are a direct subscriber > of the bug. > > Status in play framework: Incomplete > > Bug description: > I get the following error when I try running my app. - > > @62gidn956 > Internal Server Error (500) for request GET / > > Java exception (In /app/Bootstrap.java around line 13) > RuntimeException occured : Cannot load fixture initial-data.yml: null > > play.exceptions.JavaExecutionException: Cannot load fixture initial-data.yml: nu > ll > at play.jobs.Job.call(Job.java:119) > at Invocation.Job(Play!) > Caused by: java.lang.RuntimeException: Cannot load fixture initial-data.yml: nul > l > at play.test.Fixtures.load(Fixtures.java:196) > at Bootstrap.doJob(Bootstrap.java:13) > at play.jobs.Job.doJobWithResult(Job.java:37) > at play.jobs.Job.call(Job.java:110) > ... 1 more > Caused by: java.lang.NullPointerException > at play.test.Fixtures.serialize(Fixtures.java:201) > at play.test.Fixtures.load(Fixtures.java:161) > ... 4 more > > > > > Bootstrap file : > > import play.*; > import play.jobs.*; > import play.test.*; > > import models.*; > > @OnApplicationStart > public class Bootstrap extends Job { > > public void doJob() { > // Check if the database is empty > if(UserGroups.count() == 0) { > Fixtures.load("initial-data.yml"); > } > } > > } > > yml file : > > # Test data > > DEPARTMENT(K): > deptId: K > departmentname: Kids > > DEPARTMENT(M): > deptId: M > departmentname: Mens ware > > DEPARTMENT(W): > deptId: W > departmentname: Momens ware > > DEPARTMENT(H): > deptId: H > departmentname: Homeware > > USERGROUPS(Store Manager): > name: Store-Manager > description: Store Manager > > > USERGROUPS(Manager): > name: Manager > description: Manager of KAK > > USERGROUPS(Co-worker): > name: Co-worker > description: A member of staff > > USERGROUPS(Customer): > name: Customer > description: A customer > > USERGROUPS(Boss): > name: Boss > description: The boss > > SUPPLIERS(The Hyde Ltd): > address1: 566 Wall Road > address2: Barmingham, UK > suppliername: The Hyde Ltd > postcode: BQ1 7WU > phoneno: 87986768 > > SUPPLIERS(Hanna Ltd): > address1: 78 Market Place Street > address2: Oxford > suppliername: Hanna Ltd > postcode: OR4 8ET > phoneno: 8998786 > > > SUPPLIERS(Maner Ltd): > address1: 87 Corner Street > address2: Manchester > suppliername: Maner Ltd > postcode: MW3 7TY > phoneno: 987986778 > > > STAFF(Paul): > address1: P . O. BOX, 8765, Kumasi > address2: West Africa > surname: White > postcode: 8765 > firstname: Paul > phoneno: 798790987 > password: p > > > STAFF(Sarah): > address1: P . O. BOX, 9876, Kumasi > address2: West Africa > surname: Walters > postcode: 9876 > firstname: Sarah > phoneno: 879879988 > password: p2 > > > STAFF(Paul): > address1: P . O. BOX, 8745, Kumasi > address2: West Africa > surname: Smith > postcode: 8745 > firstname: Paul > phoneno: 798711653 > password: p4 > > > STAFF(Akos): > address1: P . O. BOX, 9811, Kumasi > address2: West Africa > surname: Brown > postcode: 9811 > firstname: Akos > phoneno: 879877652 > password: p3 > > DISCOUNTRATE(H): > discntcode: H > rate: 3000.0 > > DISCOUNTRATE(L): > discntcode: L > rate: 1000.0 > > DISCOUNTRATE(M): > discntcode: M > rate: 1500.0 > > DISCOUNTRATE(N): > discntcode: N > rate: 0.0 > > CONTAINERS(3cont): > contId: 3cont > totalbales: 450 > suppliercompanyent: 1 > > CONTAINERS(4cont): > contId: 4cont > totalbales: 450 > suppliercompanyent: 2 > > CONTAINERS(1): > contId: 1 > totalbales: 450 > suppliercompanyent: 1 > > BALES(Men Tops): > balsize: all sort of sizes > balpic: menjeans.png > priceInPounds: 24.0 > colour: All sort of colours > price: 56.0 > balname: Men Tops > description: All sort of men tops > deptId: M > contId: 1 > discountRateent: H > STOCKQUAN: 50 > > BALES(Children Clothes): > balsize: all sort of sizes > balpic: menjeans.png > priceInPounds: 34.0 > colour: All sort of colours > price: 67.0 > balname: Children Clothes > description: All sort of children clothes > deptId: K > contId: 3cont > discountRateent: M > STOCKQUAN: 100 > > BALES(Women Tops) : > balsize: all sort of sizes > balpic: menjeans.png > priceInPounds: 23.0 > colour: All sort of colours > price: 45.0 > balname: Women Tops > description: All sort of women tops > deptId: W > contId: 1 > discountRateent: N > STOCKQUAN: 100 > > BALES(Men Jeans): > balsize: all sort of sizes > balpic: menjeans.png > priceInPounds: 34.0 > colour: All sort of colours > price: 67.0 > balname: Men Jeans > description: All sort of men jeans > deptId: M > contId: 1 > discountRateent: L > STOCKQUAN: 100 > > > If you need further details, pls let me know. > > Thanks > > eve > > To unsubscribe from this bug, go to: > https://bugs.launchpad.net/play/+bug/582246/+subscribe
_________________________________________________________________ http://clk.atdmt.com/UKM/go/197222280/direct/01/ Do you have a story that started on Hotmail? Tell us now
Hi,
I've reduced the file and attached it again. Colud somebody please take a look.
Thanks.
eve
> Date: Tue, 18 May 2010 13:38:09 +0000 /bugs.launchpad .net/bugs/ 582246 .JavaExecutionE xception: Cannot load fixture initial-data.yml: nu Job.call( Job.java: 119) Job(Play! ) RuntimeExceptio n: Cannot load fixture initial-data.yml: nul Fixtures. load(Fixtures. java:196) doJob(Bootstrap .java:13) Job.doJobWithRe sult(Job. java:37) Job.call( Job.java: 110) NullPointerExce ption Fixtures. serialize( Fixtures. java:201) Fixtures. load(Fixtures. java:161) count() == 0) { load("initial- data.yml" ); Manager) : Co-worker) : Customer) : /bugs.launchpad .net/play/ +bug/582246/ +subscribe
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 582246] Re: yml file problems
>
> That's a big file, please try to remove entries to make it as small as
> possible while still reproducing the error.
>
> ** Changed in: play
> Status: New => Incomplete
>
> --
> yml file problems
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in play framework: Incomplete
>
> Bug description:
> I get the following error when I try running my app. -
>
> @62gidn956
> Internal Server Error (500) for request GET /
>
> Java exception (In /app/Bootstrap.java around line 13)
> RuntimeException occured : Cannot load fixture initial-data.yml: null
>
> play.exceptions
> ll
> at play.jobs.
> at Invocation.
> Caused by: java.lang.
> l
> at play.test.
> at Bootstrap.
> at play.jobs.
> at play.jobs.
> ... 1 more
> Caused by: java.lang.
> at play.test.
> at play.test.
> ... 4 more
>
>
>
>
> Bootstrap file :
>
> import play.*;
> import play.jobs.*;
> import play.test.*;
>
> import models.*;
>
> @OnApplicationStart
> public class Bootstrap extends Job {
>
> public void doJob() {
> // Check if the database is empty
> if(UserGroups.
> Fixtures.
> }
> }
>
> }
>
> yml file :
>
> # Test data
>
> DEPARTMENT(K):
> deptId: K
> departmentname: Kids
>
> DEPARTMENT(M):
> deptId: M
> departmentname: Mens ware
>
> DEPARTMENT(W):
> deptId: W
> departmentname: Momens ware
>
> DEPARTMENT(H):
> deptId: H
> departmentname: Homeware
>
> USERGROUPS(Store Manager):
> name: Store-Manager
> description: Store Manager
>
>
> USERGROUPS(
> name: Manager
> description: Manager of KAK
>
> USERGROUPS(
> name: Co-worker
> description: A member of staff
>
> USERGROUPS(
> name: Customer
> description: A customer
>
> USERGROUPS(Boss):
> name: Boss
> description: The boss
>
> SUPPLIERS(The Hyde Ltd):
> address1: 566 Wall Road
> address2: Barmingham, UK
> suppliername: The Hyde Ltd
> postcode: BQ1 7WU
> phoneno: 87986768
>
> SUPPLIERS(Hanna Ltd):
> address1: 78 Market Place Street
> address2: Oxford
> suppliername: Hanna Ltd
> postcode: OR4 8ET
> phoneno: 8998786
>
>
> SUPPLIERS(Maner Ltd):
> address1: 87 Corner Street
> address2: Manchester
> suppliername: Maner Ltd
> postcode: MW3 7TY
> phoneno: 987986778
>
>
> STAFF(Paul):
> address1: P . O. BOX, 8765, Kumasi
> address2: West Africa
> surname: White
> postcode: 8765
> firstname: Paul
> phoneno: 798790987
> password: p
>
>
> STAFF(Sarah):
> address1: P . O. BOX, 9876, Kumasi
> address2: West Africa
> surname: Walters
> postcode: 9876
> firstname: Sarah
> phoneno: 879879988
> password: p2
>
>
> STAFF(Paul):
> address1: P . O. BOX, 8745, Kumasi
> address2: West Africa
> surname: Smith
> postcode: 8745
> firstname: Paul
> phoneno: 798711653
> password: p4
>
>
> STAFF(Akos):
> address1: P . O. BOX, 9811, Kumasi
> address2: West Africa
> surname: Brown
> postcode: 9811
> firstname: Akos
> phoneno: 879877652
> password: p3
>
> DISCOUNTRATE(H):
> discntcode: H
> rate: 3000.0
>
> DISCOUNTRATE(L):
> discntcode: L
> rate: 1000.0
>
> DISCOUNTRATE(M):
> discntcode: M
> rate: 1500.0
>
> DISCOUNTRATE(N):
> discntcode: N
> rate: 0.0
>
> CONTAINERS(3cont):
> contId: 3cont
> totalbales: 450
> suppliercompanyent: 1
>
> CONTAINERS(4cont):
> contId: 4cont
> totalbales: 450
> suppliercompanyent: 2
>
> CONTAINERS(1):
> contId: 1
> totalbales: 450
> suppliercompanyent: 1
>
> BALES(Men Tops):
> balsize: all sort of sizes
> balpic: menjeans.png
> priceInPounds: 24.0
> colour: All sort of colours
> price: 56.0
> balname: Men Tops
> description: All sort of men tops
> deptId: M
> contId: 1
> discountRateent: H
> STOCKQUAN: 50
>
> BALES(Children Clothes):
> balsize: all sort of sizes
> balpic: menjeans.png
> priceInPounds: 34.0
> colour: All sort of colours
> price: 67.0
> balname: Children Clothes
> description: All sort of children clothes
> deptId: K
> contId: 3cont
> discountRateent: M
> STOCKQUAN: 100
>
> BALES(Women Tops) :
> balsize: all sort of sizes
> balpic: menjeans.png
> priceInPounds: 23.0
> colour: All sort of colours
> price: 45.0
> balname: Women Tops
> description: All sort of women tops
> deptId: W
> contId: 1
> discountRateent: N
> STOCKQUAN: 100
>
> BALES(Men Jeans):
> balsize: all sort of sizes
> balpic: menjeans.png
> priceInPounds: 34.0
> colour: All sort of colours
> price: 67.0
> balname: Men Jeans
> description: All sort of men jeans
> deptId: M
> contId: 1
> discountRateent: L
> STOCKQUAN: 100
>
>
> If you need further details, pls let me know.
>
> Thanks
>
> eve
>
> To unsubscribe from this bug, go to:
> https:/
_______ _______ _______ _______ _______ _______ _______ _______ _______ __ clk.atdmt. com/UKM/ go/197222280/ direct/ 01/
http://
Do you have a story that started on Hotmail? Tell us now