TP11 ERREURS

Modérateurs : graffion, jmdouin, agoncal, mlebihan

sophie2017
Messages : 24
Inscription : 26 nov. 2017 23:54

TP11 ERREURS

Message par sophie2017 » 07 janv. 2018 22:31

Bonjour,


J'ai obtenu beaucoup d'erreurs après avoir lancé ant yaps-test

Code : Tout sélectionner

  [junit] Testcase: testServiceDeleteInvalidOrder took 0,005 sec
    [junit]     Caused an ERROR
    [junit] Lookup or Create exception; nested exception is:
    [junit]     com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/OrderSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: OrderSB not found]
    [junit] java.rmi.RemoteException: Lookup or Create exception; nested exception is:
    [junit]     com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/OrderSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: OrderSB not found]
    [junit]     at com.yaps.petstore.common.delegate.OrderDelegate.getOrderService(Unknown Source)
    [junit]     at com.yaps.petstore.common.delegate.OrderDelegate.deleteOrder(Unknown Source)
    [junit]     at com.yaps.petstore.common.delegate.OrderDelegateTest.deleteOrder(Unknown Source)
    [junit]     at com.yaps.petstore.common.delegate.OrderDelegateTest.testServiceDeleteInvalidOrder(Unknown Source)
    [junit] Caused by: com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/OrderSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: OrderSB not found]
    [junit]     at com.yaps.petstore.common.locator.ServiceLocator.getHome(Unknown Source)
    [junit]     at com.yaps.petstore.common.locator.ServiceLocator.getHome(Unknown Source)
    [junit] Caused by: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/OrderSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: OrderSB not found]
    [junit]     at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
    [junit]     at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
    [junit]     at javax.naming.InitialContext.lookup(InitialContext.java:417)
    [junit] Caused by: javax.naming.NameNotFoundException: OrderSB not found
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:237)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:204)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
    [junit]     at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:66)
    [junit]     at com.sun.enterprise.naming.impl.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:109)
    [junit]     at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:143)
    [junit]     at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:173)
    [junit]     at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatchToServant(ServerRequestDispatcherImpl.java:528)
    [junit]     at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatch(ServerRequestDispatcherImpl.java:199)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequestRequest(MessageMediatorImpl.java:1549)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:1425)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleInput(MessageMediatorImpl.java:930)
    [junit]     at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:213)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:694)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.dispatch(MessageMediatorImpl.java:496)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.doWork(MessageMediatorImpl.java:2222)
    [junit]     at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
    [junit]     at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
    [junit]
    [junit] Testcase: testDelegateCreateOrder took 0,006 sec
    [junit]     Caused an ERROR
    [junit] Lookup or Create exception; nested exception is:
    [junit]     com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/CatalogSB!com.yaps.petstore.server.service.catalog.CatalogService' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: CatalogSB!com.yaps.petstore.server.service.catalog.CatalogService not found]
    [junit] java.rmi.RemoteException: Lookup or Create exception; nested exception is:
    [junit]     com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/CatalogSB!com.yaps.petstore.server.service.catalog.CatalogService' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: CatalogSB!com.yaps.petstore.server.service.catalog.CatalogService not found]
    [junit]     at com.yaps.petstore.common.delegate.CatalogDelegate.getCatalogService(Unknown Source)
    [junit]     at com.yaps.petstore.common.delegate.CatalogDelegate.createCategory(Unknown Source)
    [junit]     at com.yaps.petstore.common.delegate.OrderDelegateTest.createOrder(Unknown Source)
    [junit]     at com.yaps.petstore.common.delegate.OrderDelegateTest.testDelegateCreateOrder(Unknown Source)
    [junit] Caused by: com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/CatalogSB!com.yaps.petstore.server.service.catalog.CatalogService' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: CatalogSB!com.yaps.petstore.server.service.catalog.CatalogService not found]
    [junit]     at com.yaps.petstore.common.locator.ServiceLocator.getHome(Unknown Source)
    [junit]     at com.yaps.petstore.common.locator.ServiceLocator.getHome(Unknown Source)
    [junit] Caused by: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/CatalogSB!com.yaps.petstore.server.service.catalog.CatalogService' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: CatalogSB!com.yaps.petstore.server.service.catalog.CatalogService not found]
    [junit]     at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
    [junit]     at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
    [junit]     at javax.naming.InitialContext.lookup(InitialContext.java:417)
    [junit] Caused by: javax.naming.NameNotFoundException: CatalogSB!com.yaps.petstore.server.service.catalog.CatalogService not found
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:237)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:204)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
    [junit]     at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:66)
    [junit]     at com.sun.enterprise.naming.impl.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:109)
    [junit]     at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:143)
    [junit]     at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:173)
    [junit]     at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatchToServant(ServerRequestDispatcherImpl.java:528)
    [junit]     at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatch(ServerRequestDispatcherImpl.java:199)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequestRequest(MessageMediatorImpl.java:1549)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:1425)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleInput(MessageMediatorImpl.java:930)
    [junit]     at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:213)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:694)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.dispatch(MessageMediatorImpl.java:496)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.doWork(MessageMediatorImpl.java:2222)
    [junit]     at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
    [junit]     at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
    [junit]
    [junit] Testcase: testGetCart took 0,006 sec
    [junit]     Caused an ERROR
    [junit] Lookup or Create exception; nested exception is:
    [junit]     com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/ShoppingCartSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: ShoppingCartSB not found]
    [junit] java.rmi.RemoteException: Lookup or Create exception; nested exception is:
    [junit]     com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/ShoppingCartSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: ShoppingCartSB not found]
    [junit]     at com.yaps.petstore.common.delegate.ShoppingCartDelegate.getShoppingCart(Unknown Source)
    [junit]     at com.yaps.petstore.common.delegate.ShoppingCartDelegate.empty(Unknown Source)
    [junit]     at com.yaps.petstore.common.delegate.ShoppingCartDelegateTest.setUp(Unknown Source)
    [junit] Caused by: com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/ShoppingCartSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: ShoppingCartSB not found]
    [junit]     at com.yaps.petstore.common.locator.ServiceLocator.getHome(Unknown Source)
    [junit]     at com.yaps.petstore.common.locator.ServiceLocator.getHome(Unknown Source)
    [junit] Caused by: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/ShoppingCartSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: ShoppingCartSB not found]
    [junit]     at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
    [junit]     at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
    [junit]     at javax.naming.InitialContext.lookup(InitialContext.java:417)
    [junit] Caused by: javax.naming.NameNotFoundException: ShoppingCartSB not found
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:237)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:204)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
    [junit]     at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:66)
    [junit]     at com.sun.enterprise.naming.impl.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:109)
    [junit]     at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:143)
    [junit]     at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:173)
    [junit]     at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatchToServant(ServerRequestDispatcherImpl.java:528)
    [junit]     at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatch(ServerRequestDispatcherImpl.java:199)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequestRequest(MessageMediatorImpl.java:1549)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:1425)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleInput(MessageMediatorImpl.java:930)
    [junit]     at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:213)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:694)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.dispatch(MessageMediatorImpl.java:496)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.doWork(MessageMediatorImpl.java:2222)
    [junit]     at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
    [junit]     at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
    [junit]
    [junit] Testcase: testAddItemsToSeveralCarts took 0,005 sec
    [junit]     Caused an ERROR
    [junit] Lookup or Create exception; nested exception is:
    [junit]     com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/ShoppingCartSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: ShoppingCartSB not found]
    [junit] java.rmi.RemoteException: Lookup or Create exception; nested exception is:
    [junit]     com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/ShoppingCartSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: ShoppingCartSB not found]
    [junit]     at com.yaps.petstore.common.delegate.ShoppingCartDelegate.getShoppingCart(Unknown Source)
    [junit]     at com.yaps.petstore.common.delegate.ShoppingCartDelegate.empty(Unknown Source)
    [junit]     at com.yaps.petstore.common.delegate.ShoppingCartDelegateTest.setUp(Unknown Source)
    [junit] Caused by: com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/ShoppingCartSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: ShoppingCartSB not found]
    [junit]     at com.yaps.petstore.common.locator.ServiceLocator.getHome(Unknown Source)
    [junit]     at com.yaps.petstore.common.locator.ServiceLocator.getHome(Unknown Source)
    [junit] Caused by: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/ShoppingCartSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: ShoppingCartSB not found]
    [junit]     at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
    [junit]     at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
    [junit]     at javax.naming.InitialContext.lookup(InitialContext.java:417)
    [junit] Caused by: javax.naming.NameNotFoundException: ShoppingCartSB not found
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:237)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:204)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
    [junit]     at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:66)
    [junit]     at com.sun.enterprise.naming.impl.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:109)
    [junit]     at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:143)
    [junit]     at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:173)
    [junit]     at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatchToServant(ServerRequestDispatcherImpl.java:528)
    [junit]     at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatch(ServerRequestDispatcherImpl.java:199)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequestRequest(MessageMediatorImpl.java:1549)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:1425)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleInput(MessageMediatorImpl.java:930)
    [junit]     at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:213)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:694)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.dispatch(MessageMediatorImpl.java:496)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.doWork(MessageMediatorImpl.java:2222)
    [junit]     at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
    [junit]     at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
    [junit]
    [junit] Testcase: testAddAndUpdateAndRemoveItems took 0,004 sec
    [junit]     Caused an ERROR
    [junit] Lookup or Create exception; nested exception is:
    [junit]     com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/ShoppingCartSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: ShoppingCartSB not found]
    [junit] java.rmi.RemoteException: Lookup or Create exception; nested exception is:
    [junit]     com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/ShoppingCartSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: ShoppingCartSB not found]
    [junit]     at com.yaps.petstore.common.delegate.ShoppingCartDelegate.getShoppingCart(Unknown Source)
    [junit]     at com.yaps.petstore.common.delegate.ShoppingCartDelegate.empty(Unknown Source)
    [junit]     at com.yaps.petstore.common.delegate.ShoppingCartDelegateTest.setUp(Unknown Source)
    [junit] Caused by: com.yaps.petstore.common.locator.ServiceLocatorException: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/ShoppingCartSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: ShoppingCartSB not found]
    [junit]     at com.yaps.petstore.common.locator.ServiceLocator.getHome(Unknown Source)
    [junit]     at com.yaps.petstore.common.locator.ServiceLocator.getHome(Unknown Source)
    [junit] Caused by: javax.naming.NamingException: Lookup failed for 'java:global/yapswtp11/ShoppingCartSB' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: ShoppingCartSB not found]
    [junit]     at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
    [junit]     at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
    [junit]     at javax.naming.InitialContext.lookup(InitialContext.java:417)
    [junit] Caused by: javax.naming.NameNotFoundException: ShoppingCartSB not found
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:237)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:204)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
    [junit]     at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
    [junit]     at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:66)
    [junit]     at com.sun.enterprise.naming.impl.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:109)
    [junit]     at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:143)
    [junit]     at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:173)
    [junit]     at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatchToServant(ServerRequestDispatcherImpl.java:528)
    [junit]     at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatch(ServerRequestDispatcherImpl.java:199)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequestRequest(MessageMediatorImpl.java:1549)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:1425)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleInput(MessageMediatorImpl.java:930)
    [junit]     at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:213)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:694)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.dispatch(MessageMediatorImpl.java:496)
    [junit]     at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.doWork(MessageMediatorImpl.java:2222)
    [junit]     at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
    [junit]     at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
    [junit]
    [junit] Testcase: testUtilUniqueId took 0,116 sec
    [junit] Testcase: testWebCheckPages took 0,044 sec
    [junit]     FAILED
    [junit] Root http://localhost:8080/yapswtp11 hasn't been found
    [junit] junit.framework.AssertionFailedError: Root http://localhost:8080/yapswtp11 hasn't been found
    [junit]     at com.yaps.petstore.web.WebTest.testWebCheckPages(Unknown Source)
    [junit]
    [junit] Testcase: testWebShoppingCart took 0,056 sec
    [junit]     FAILED
    [junit] cart.jsp hasn't been found
    [junit] junit.framework.AssertionFailedError: cart.jsp hasn't been found
    [junit]     at com.yaps.petstore.web.WebTest.testWebShoppingCart(Unknown Source)
    [junit]
    [junit] Testcase: testWebCheckLogin took 0,007 sec
    [junit]     FAILED
    [junit] signon.jsp hasn't been found
    [junit] junit.framework.AssertionFailedError: signon.jsp hasn't been found
    [junit]     at com.yaps.petstore.web.WebTest.testWebCheckLogin(Unknown Source)
    [junit]
    [junit] Testcase: testWebCheckServlets took 0,021 sec
    [junit]     FAILED
    [junit] The CreateCustomerServlet hasn't been found
    [junit] junit.framework.AssertionFailedError: The CreateCustomerServlet hasn't been found
    [junit]     at com.yaps.petstore.web.WebTest.testWebCheckServlets(Unknown Source)
    [junit]
    [junit] Testcase: testServletCreateCustomer took 0,006 sec
    [junit]     FAILED
    [junit] Service is bound. Call should have succed
    [junit] junit.framework.AssertionFailedError: Service is bound. Call should have succed
    [junit]     at com.yaps.petstore.web.servlet.CreateCustomerServletTest.findCustomer(Unknown Source)
    [junit]     at com.yaps.petstore.web.servlet.CreateCustomerServletTest.testServletCreateCustomer(Unknown Source)
    [junit]
    [junit] Testcase: testServletCreateCustomerWithInvalidValues took 0,007 sec
    [junit] Testcase: testServletCreateCustomerWithInvalidPassword took 0,007 sec
    [junit] Testcase: testWebVisualiseCatalog took 0,007 sec
    [junit]     Caused an ERROR
    [junit] Error on HTTP request: 404 Not Found [http://localhost:8080/yapswtp11/index.jsp]
    [junit] com.meterware.httpunit.HttpNotFoundException: Error on HTTP request: 404 Not Found [http://localhost:8080/yapswtp11/index.jsp]
    [junit]     at com.meterware.httpunit.WebClient.validateHeaders(WebClient.java:575)
    [junit]     at com.meterware.httpunit.WebClient.updateClient(WebClient.java:464)
    [junit]     at com.meterware.httpunit.WebWindow.updateWindow(WebWindow.java:139)
    [junit]     at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:130)
    [junit]     at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:121)
    [junit]     at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:102)
    [junit]     at com.meterware.httpunit.WebClient.getResponse(WebClient.java:87)
    [junit]     at com.yaps.petstore.web.VisualiseCatalogTest.testWebVisualiseCatalog(Unknown Source)
    [junit]
    [junit] Testcase: testBarkBankVerifyOldCreditCard took 0,677 sec
    [junit] Testcase: testBarkBankVerifyValidCreditCard took 0,015 sec
    [junit] Testcase: testBarkBankVerifyInvalidXMLDocument took 0,012 sec
    [junit] Testcase: testBarkBankVerifyInvalidNumberCreditCard took 0,016 sec
    [junit] Test AllTests FAILED

BUILD SUCCESSFUL
Total time: 16 seconds

Avez vous des idées sur l'origine de ces erreurs?

Merci

sophie2017
Messages : 24
Inscription : 26 nov. 2017 23:54

Re: TP11 ERREURS

Message par sophie2017 » 07 janv. 2018 22:45

Il y a des erreurs dans la console quand je lance Glassfish

Code : Tout sélectionner


  Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001524 Unable to load proxy class for bean Session bean [class com.yaps.petstore.server.service.catalog.CatalogServiceBean with qualifiers [@Any @Default]; local interfaces are [] with class class com.yaps.petstore.server.service.catalog.CatalogServiceBean using classloader WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
        at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:225)
        at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:537)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)
        at org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:164)
        at org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:595)
        at org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:482)
        at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:410)
        at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:401)
        at org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:233)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
[color=#BF0000]Caused by: org.jboss.weld.exceptions.WeldException: WELD-001524 Unable to load proxy class for bean Session bean [class [/color]com.yaps.petstore.server.service.catalog.CatalogServiceBean with qualifiers [@Any @Default]; local interfaces are [] with class class com.yaps.petstore.server.service.catalog.CatalogServiceBean using classloader WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
        at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:306)
        at org.jboss.weld.injection.producer.ejb.SessionBeanProxyInstantiator.<init>(SessionBeanProxyInstantiator.java:55)
        at org.jboss.weld.bean.SessionBean.initializeAfterBeanDiscovery(SessionBean.java:287)
        at org.jboss.weld.bootstrap.BeanDeployer.doAfterBeanDiscovery(BeanDeployer.java:354)
        at org.jboss.weld.bootstrap.BeanDeployment.afterBeanDiscovery(BeanDeployment.java:280)
        at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:522)
        at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:213)
        ... 18 more
[color=#FF0000]Caused by: java.lang.RuntimeException: java.lang.VerifyError: Cannot inherit from final class[/color]
        at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:97)
        at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:416)
        at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:299)
        ... 24 more
Caused by: java.lang.VerifyError: Cannot inherit from final class
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:104)
        at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:93)
        ... 26 more
|#]

[#|2018-01-07T21:38:37.589+0100|SEVERE|glassfish 4.0|javax.enterprise.system.core|_ThreadID=96;_ThreadName=AutoDeployer;_TimeMillis=1515357517589;_LevelValue=1000;|
  Exception while loading the app|#]

[#|2018-01-07T21:38:37.647+0100|SEVERE|glassfish 4.0|javax.enterprise.web|_ThreadID=96;_ThreadName=AutoDeployer;_TimeMillis=1515357517647;_LevelValue=1000;_MessageID=AS-WEB-GLUE-00192;|
  Undeployment failed for context /yapswtp11|#]

[#|2018-01-07T21:38:37.652+0100|SEVERE|glassfish 4.0|javax.enterprise.web.util|_ThreadID=96;_ThreadName=AutoDeployer;_TimeMillis=1515357517652;_LevelValue=1000;|
  The web application [unknown] created a ThreadLocal with key of type [org.glassfish.pfl.dynamic.codegen.impl.CurrentClassLoader$1] (value [org.glassfish.pfl.dynamic.codegen.impl.CurrentClassLoader$1@1875aad1]) and a value of type [org.glassfish.web.loader.WebappClassLoader] (value [WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.|#]

[#|2018-01-07T21:38:37.681+0100|SEVERE|glassfish 4.0|javax.enterprise.system.core|_ThreadID=96;_ThreadName=AutoDeployer;_TimeMillis=1515357517681;_LevelValue=1000;|
  Exception while loading the app : CDI deployment failure:WELD-001524 Unable to load proxy class for bean Session bean [class com.yaps.petstore.server.service.catalog.CatalogServiceBean with qualifiers [@Any @Default]; local interfaces are [] with class class com.yaps.petstore.server.service.catalog.CatalogServiceBean using classloader WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
org.jboss.weld.exceptions.WeldException: WELD-001524 Unable to load proxy class for bean Session bean [class com.yaps.petstore.server.service.catalog.CatalogServiceBean with qualifiers [@Any @Default]; local interfaces are [] with class class com.yaps.petstore.server.service.catalog.CatalogServiceBean using classloader WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
        at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:306)
        at org.jboss.weld.injection.producer.ejb.SessionBeanProxyInstantiator.<init>(SessionBeanProxyInstantiator.java:55)
        at org.jboss.weld.bean.SessionBean.initializeAfterBeanDiscovery(SessionBean.java:287)
        at org.jboss.weld.bootstrap.BeanDeployer.doAfterBeanDiscovery(BeanDeployer.java:354)
        at org.jboss.weld.bootstrap.BeanDeployment.afterBeanDiscovery(BeanDeployment.java:280)
        at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:522)
        at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:213)
        at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:537)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)
        at org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:164)
        at org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:595)
        at org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:482)
        at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:410)
        at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:401)
        at org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:233)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.RuntimeException: java.lang.VerifyError: Cannot inherit from final class
        at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:97)
        at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:416)
        at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:299)
        ... 24 more
Caused by: java.lang.VerifyError: Cannot inherit from final class
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:104)
        at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:93)
        ... 26 more
|#]

[#|2018-01-07T21:38:37.681+0100|WARNING|glassfish 4.0|javax.enterprise.resource.resourceadapter.org.glassfish.jdbc.deployer|_ThreadID=62;_ThreadName=pool-6-thread-1;_TimeMillis=1515357517681;_LevelValue=900;|
  |#]

[#|2018-01-07T21:38:40.646+0100|WARNING|glassfish 4.0|javax.enterprise.system.tools.deployment.autodeploy|_ThreadID=96;_ThreadName=AutoDeployer;_TimeMillis=1515357520646;_LevelValue=900;_MessageID=NCLS-DEPLOYMENT-00036;|
  [AutoDeploy] Autodeploy failed : D:\Application\glassfish-4.0\glassfish\domains\domain1\autodeploy\yapswtp11.war.|#]

[#|2018-01-07T21:38:40.652+0100|WARNING|glassfish 4.0|javax.enterprise.system.tools.deployment.autodeploy|_ThreadID=96;_ThreadName=AutoDeployer;_TimeMillis=1515357520652;_LevelValue=900;_MessageID=NCLS-DEPLOYMENT-00041;|
  [color=#FF0000]Attempt to create file D:\Application\glassfish-4.0\glassfish\domains\domain1\autodeploy\.autodeploystatus\yapswtp11.war failed; no further information.|#][/color]



sophie2017
Messages : 24
Inscription : 26 nov. 2017 23:54

Re: TP11 ERREURS

Message par sophie2017 » 08 janv. 2018 2:03

J'ai corrigé un peu d'erreurs , c'est mieux maintenant. Mais j'ai encore une erreur dans le fichier log de Glassfish

Code : Tout sélectionner

[2018-01-08T00:43:50.850+0100] [glassfish 4.0] [WARNING] [ejb.system_exception] [javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: _ThreadID=137 _ThreadName=p: thread-pool-1; w: 1] [timeMillis: 1515368630850] [levelValue: 900] [[
  EJB5184:A system exception occurred during an invocation on EJB ShoppingCartSB, method: public java.lang.Double com.yaps.petstore.server.cart.ShoppingCartBean.getTotal()]]

[2018-01-08T00:43:50.851+0100] [glassfish 4.0] [WARNING] [] [javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: _ThreadID=137 _ThreadName=p: thread-pool-1; w: 1] [timeMillis: 1515368630851] [levelValue: 900] [[
  
javax.ejb.EJBException
	at com.sun.ejb.containers.EJBContainerTransactionManager.processSystemException(EJBContainerTransactionManager.java:748)
	at com.sun.ejb.containers.EJBContainerTransactionManager.completeNewTx(EJBContainerTransactionManager.java:698)
	at com.sun.ejb.containers.EJBContainerTransactionManager.postInvokeTx(EJBContainerTransactionManager.java:503)
	at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4475)
	at com.sun.ejb.containers.StatefulSessionContainer.postInvokeTx(StatefulSessionContainer.java:1853)
	at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2009)
	at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1979)
	at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:212)
	at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:79)
	at com.sun.proxy.$Proxy238.[color=#BF0000]getTota[/color]l(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 com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:143)
	at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:173)
	at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatchToServant(ServerRequestDispatcherImpl.java:528)
	at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatch(ServerRequestDispatcherImpl.java:199)
	at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequestRequest(MessageMediatorImpl.java:1549)
	at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:1425)
	at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleInput(MessageMediatorImpl.java:930)
	at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:213)
	at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:694)
	at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.dispatch(MessageMediatorImpl.java:496)
	at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.doWork(MessageMediatorImpl.java:2222)
	at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
	at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
Caused by: java.lang.NullPointerException
	at com.yaps.petstore.server.cart.ShoppingCartBean.getItems(Unknown Source)
	at com.yaps.petstore.server.cart.ShoppingCartBean.getTotal(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 org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
	at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
	at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4695)
	at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:630)
	at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
	at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
	at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55)
	at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
	at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
	at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
	at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4667)
	at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4655)
	at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:205)
	... 19 more
]]
ci-après ma methode getTotal

Code : Tout sélectionner

	public Double getTotal() {
	      final String mname = "getTotal";
	      Trace.entering(getCname(), mname);
	      Double total=null;
	     double coutTotal = 0 ;
	     Collection<ShoppingCartItemDTO> shoppingCartItemDTOs = getItems();
	     if ( shoppingCartItemDTOs != null && !shoppingCartItemDTOs.isEmpty()) {
		    for (ShoppingCartItemDTO shoppingCartItemDTO : shoppingCartItemDTOs )
		    {
		    	coutTotal = coutTotal +	shoppingCartItemDTO.getTotalCost();	    	
		    }
		    total=new Double(coutTotal);
	    }
	    
		return total;
		}
Merci

Répondre

Qui est en ligne ?

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