IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JPA Java Discussion :

Missing local value implementation lors du return object


Sujet :

JPA Java

  1. #1
    Futur Membre du Club
    Profil pro
    Inscrit en
    Janvier 2010
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2010
    Messages : 13
    Points : 6
    Points
    6
    Par défaut Missing local value implementation lors du return object
    Bonjour,
    Mon environnement est netbeans 7, glassfish 3.1, jEE5

    J'aimerai simplement ajouter une catégorie et que la méthode dans mon stateless bean me retourne l'object en question.
    La persistance ce fait correctement, j'ai bien ma catégorie qui est créé mais c'est lors du return côté EJB que ça coince...

    Client main :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
     
    Category category = new Category();
     
            category.setTitle("ophélie");
            System.out.println(category.getIdCategory());
            System.out.println("test1");
            category = catalogBean.createCategory(category);
            System.out.println(category.getIdCategory());
            System.out.println("test4");
    Côté stateless catalogBean :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    @Stateless
    @TransactionAttribute(value = TransactionAttributeType.REQUIRED)
    @TransactionManagement(TransactionManagementType.CONTAINER)
    public class CatalogBean implements CatalogBeanRemote, CatalogBeanLocal {
        @PersistenceContext(unitName="booxtorePU")
        private EntityManager em;
     
        @Override
        public Category createCategory(Category category) {
            System.out.println("test5");
            em.persist(category);
            return category;
     
        }
     
        @Override
        public Category findCategory(long categoryId) {
            Category category = new Category();
            category = em.find(Category.class, categoryId);    
            return category;
        }
     
        public Category updateCategory(Category category) { 
            em.merge(category);
            return category;
        }
     
        public void deleteCategory(Category category) {
            em.remove(category);
        }
     
        public void createBook(Book book) {
            em.persist(book);
        }
     
        public Book findBook(long bookId) {
            Book bookfind = em.find(Book.class, bookId);
            return bookfind;
        }
     
        public Book updateBook(Book book) {        
            em.merge(book);
            return book;
        }
     
        public void deleteBook(Book book) {
            em.remove(book);
        }
     
    }
    L'erreur et la suivante :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    Infos: ACDEPL104: Java Web Start services stopped for the app client booxtore-client
    Avertissement: ACDEPL112: The following extensions or libraries are referenced from the manifest of /home/bastien/glassfish-3.1.1/glassfish/domains/domain1/applications/xfer-8701307910290052246/booxtore-client.jar but were not found where indicated: booxtore-clientView.jar lib/booxtore-clientView.jar ; ignoring and continuing
    Infos: ACDEPL103: Java Web Start services started for the app client booxtore-client (contextRoot: /booxtore-client)
    Infos: booxtore-client a été déployé en 497 ms.
    Avertissement: IOP01000001: Missing local value implementation
    org.omg.CORBA.NO_IMPLEMENT: Avertissement: IOP01000001: Missing local value implementation  vmcid: SUN  minor code: 1 completed: Maybe
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    	at com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:248)
    	at com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:95)
    	at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.handleFullLogging(WrapperGenerator.java:387)
    	at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.access$400(WrapperGenerator.java:107)
    	at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$2.invoke(WrapperGenerator.java:511)
    	at com.sun.corba.ee.spi.orbutil.proxy.CompositeInvocationHandlerImpl.invoke(CompositeInvocationHandlerImpl.java:99)
    	at $Proxy146.missingLocalValueImpl(Unknown Source)
    	at com.sun.corba.ee.impl.io.FVDCodeBaseImpl.implementation(FVDCodeBaseImpl.java:113)
    	at com.sun.org.omg.SendingContext._CodeBaseImplBase._invoke(_CodeBaseImplBase.java:99)
    	at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:528)
    	at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:199)
    	at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1624)
    	at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1486)
    	at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:990)
    	at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:214)
    	at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:742)
    	at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:539)
    	at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2324)
    	at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
    	at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
    Caused by: java.lang.ClassNotFoundException: oracle.toplink.essentials.indirection.IndirectList (no security manager: RMI class loader disabled)
    	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:394)
    	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:184)
    	at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:637)
    	at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:219)
    	at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:152)
    	at com.sun.corba.ee.impl.util.JDKBridge.loadClassM(JDKBridge.java:319)
    	at com.sun.corba.ee.impl.util.JDKBridge.loadClass(JDKBridge.java:228)
    	at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.loadClass(Util.java:640)
    	at com.sun.corba.ee.impl.util.RepositoryId.getClassFromType(RepositoryId.java:577)
    	at com.sun.corba.ee.impl.io.ValueHandlerImpl.getClassFromType(ValueHandlerImpl.java:373)
    	at com.sun.corba.ee.impl.io.FVDCodeBaseImpl.implementation(FVDCodeBaseImpl.java:105)
    	... 12 more
    Merci bien

  2. #2
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    D'après cette erreur : ,
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Caused by: java.lang.ClassNotFoundException: oracle.toplink.essentials.indirection.IndirectList (no security manager: RMI class loader disabled)
    il doit te manquer cette lib

  3. #3
    Futur Membre du Club
    Profil pro
    Inscrit en
    Janvier 2010
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2010
    Messages : 13
    Points : 6
    Points
    6
    Par défaut
    Pourtant je l'ai dans mes librairies de l'EJB...
    Mais je vais le mettre dans le dossier lib GF

    merci

  4. #4
    Futur Membre du Club
    Profil pro
    Inscrit en
    Janvier 2010
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2010
    Messages : 13
    Points : 6
    Points
    6
    Par défaut
    L'erreur persiste...

    J'ai trouvé une piste de ce côté là : http://java.net/jira/browse/GLASSFISH-16816

    Mais je ne comprend pas où mettre ce patch ni si c'est la bonne solution

Discussions similaires

  1. ORA-00926: mot-clé VALUES absent lors de l'insertion avec tOracleOutPut
    Par hikamovic dans le forum Développement de jobs
    Réponses: 5
    Dernier message: 19/02/2015, 16h27
  2. Stereovision "local consistency implementation"
    Par saturn1 dans le forum Traitement d'images
    Réponses: 1
    Dernier message: 12/10/2012, 10h43
  3. [2008R2] "The Parameter is missing a Value"
    Par scharly3 dans le forum SSRS
    Réponses: 0
    Dernier message: 02/02/2012, 16h36
  4. Réponses: 2
    Dernier message: 23/01/2008, 16h26
  5. Réponses: 5
    Dernier message: 13/09/2005, 13h37

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo