NullPointerException avec le corrigé du TP03

Modérateurs : graffion, jmdouin, agoncal, mlebihan

ARequier
Messages : 25
Inscription : 25 oct. 2016 21:08

Re: NullPointerException avec le corrigé du TP03

Message par ARequier » 10 nov. 2016 0:11

c'est bien figé


ARequier
Messages : 25
Inscription : 25 oct. 2016 21:08

Re: NullPointerException avec le corrigé du TP03

Message par ARequier » 10 nov. 2016 0:30

le tp03.html

Voici les tests qui ont posé des problèmes à votre exécutable. Cette liste est vide si tous se sont déroulés sans incident.

testUpdateItem(F): Votre exécutable a échoué en levant une exception.

Exception levée: java.lang.NullPointerException

Pile d'appel:
java.lang.NullPointerException
at com.yaps.petstore.domain.product.ProductDAO.insert(ProductDAO.java:131)
at F.b(Unknown Source)
at F.testUpdateItem(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at K.tester(Unknown Source)
at K.testerEtQuitter(Unknown Source)
at Tests.main(Unknown Source)

testUpdateItem(F): null

testFindAllProducts(g): Votre exécutable a échoué en levant une exception.

Exception levée: java.lang.NullPointerException

Pile d'appel:
java.lang.NullPointerException
at com.yaps.petstore.domain.product.ProductDAO.insert(ProductDAO.java:131)
at g.b(Unknown Source)
at g.testFindAllProducts(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at K.tester(Unknown Source)
at K.testerEtQuitter(Unknown Source)
at Tests.main(Unknown Source)

testFindAllProducts(g): null

testCreateCategory(V): Votre exécutable a échoué en levant une exception.

Exception levée: java.lang.NullPointerException

Pile d'appel:
java.lang.NullPointerException
at V.a(Unknown Source)
at V.testCreateCategory(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at K.tester(Unknown Source)
at K.testerEtQuitter(Unknown Source)
at Tests.main(Unknown Source)

testCreateCategory(V): null

testCreateItem(F): Votre exécutable a échoué en levant une exception.

Exception levée: java.lang.NullPointerException

Pile d'appel:
java.lang.NullPointerException
at com.yaps.petstore.domain.product.ProductDAO.insert(ProductDAO.java:131)
at F.b(Unknown Source)
at F.testCreateItem(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at K.tester(Unknown Source)
at K.testerEtQuitter(Unknown Source)
at Tests.main(Unknown Source)

testCreateItem(F): null

testCreateProduct(g): Votre exécutable a échoué en levant une exception.

Exception levée: java.lang.NullPointerException

Pile d'appel:
java.lang.NullPointerException
at com.yaps.petstore.domain.product.ProductDAO.insert(ProductDAO.java:131)
at g.b(Unknown Source)
at g.testCreateProduct(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at K.tester(Unknown Source)
at K.testerEtQuitter(Unknown Source)
at Tests.main(Unknown Source)

testCreateProduct(g): null

testUpdateProduct(g): Votre exécutable a échoué en levant une exception.

Exception levée: java.lang.NullPointerException

Pile d'appel:
java.lang.NullPointerException
at com.yaps.petstore.domain.product.ProductDAO.insert(ProductDAO.java:131)
at g.b(Unknown Source)
at g.testUpdateProduct(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at K.tester(Unknown Source)
at K.testerEtQuitter(Unknown Source)
at Tests.main(Unknown Source)

testUpdateProduct(g): null

testUpdateCategory(V): Votre exécutable a échoué en levant une exception.

Exception levée: java.lang.NullPointerException

Pile d'appel:
java.lang.NullPointerException
at V.a(Unknown Source)
at V.testUpdateCategory(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at K.tester(Unknown Source)
at K.testerEtQuitter(Unknown Source)
at Tests.main(Unknown Source)

testUpdateCategory(V): null

testUpdateItemWithInvalidValues(F): Votre exécutable a échoué en levant une exception.

Exception levée: java.lang.NullPointerException

Pile d'appel:
java.lang.NullPointerException
at com.yaps.petstore.domain.product.ProductDAO.insert(ProductDAO.java:131)
at F.b(Unknown Source)
at F.testUpdateItemWithInvalidValues(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at K.tester(Unknown Source)
at K.testerEtQuitter(Unknown Source)
at Tests.main(Unknown Source)

testUpdateItemWithInvalidValues(F): null

testFindAllItems(F): Votre exécutable a échoué en levant une exception.

Exception levée: java.lang.NullPointerException

Pile d'appel:
java.lang.NullPointerException
at com.yaps.petstore.domain.product.ProductDAO.insert(ProductDAO.java:131)
at F.b(Unknown Source)
at F.testFindAllItems(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at K.tester(Unknown Source)
at K.testerEtQuitter(Unknown Source)
at Tests.main(Unknown Source)

testFindAllItems(F): null

Répondre

Qui est en ligne ?

Utilisateurs parcourant ce forum : Yahoo [Bot] et 1 invité