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

Glassfish et Payara Java Discussion :

Erreur lors de l'invocation d'un EJB distant déployé sur Glassfish


Sujet :

Glassfish et Payara Java

  1. #1
    Membre habitué Avatar de JacNar6
    Homme Profil pro
    Développeur Java/Java EE/Android
    Inscrit en
    Mai 2012
    Messages
    163
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Développeur Java/Java EE/Android

    Informations forums :
    Inscription : Mai 2012
    Messages : 163
    Points : 134
    Points
    134
    Par défaut Erreur lors de l'invocation d'un EJB distant déployé sur Glassfish
    J'espère que le StackeTrace suffira pour m'aider à résoudre mon problème; si vous désirez mieux que, je reste entièrement disponible. Je ne comprends pas l'origine de cette erreur.
    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
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
     
     
    juil. 02, 2013 2:00:52 PM com.sun.enterprise.iiop.security.SecurityMechanismSelector postConstruct
    SEVERE: IIOP1005: An exception has occured in the ejb security initialization.
    org.jvnet.hk2.component.ComponentException: injection failed on org.glassfish.api.invocation.InvocationManagerImpl.invHandlers with class [Lorg.glassfish.api.invocation.ComponentInvocationHandler;
    	at org.jvnet.hk2.component.InjectionManager.error_injectionException(InjectionManager.java:277)
    	at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:159)
    	at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:91)
    	at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
    	at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
    	at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
    	at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
    	at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
    	at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
    	at org.jvnet.hk2.component.Habitat.getByContract(Habitat.java:1042)
    	at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:777)
    	at com.sun.enterprise.iiop.security.SecurityMechanismSelector.postConstruct(SecurityMechanismSelector.java:166)
    	at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
    	at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
    	at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
    	at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
    	at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
    	at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
    	at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:1048)
    	at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:1029)
    	at com.sun.hk2.component.InjectInjectionResolver.getComponentInjectValue(InjectInjectionResolver.java:159)
    	at com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:90)
    	at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:141)
    	at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:91)
    	at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
    	at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
    	at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
    	at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
    	at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
    	at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
    	at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:1048)
    	at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:1029)
    	at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:779)
    	at com.sun.enterprise.iiop.security.Lookups._getSecurityContextUtil(Lookups.java:97)
    	at com.sun.enterprise.iiop.security.Lookups.getSecurityContextUtil(Lookups.java:92)
    	at com.sun.enterprise.iiop.security.SecClientRequestInterceptor.<init>(SecClientRequestInterceptor.java:119)
    	at com.sun.enterprise.security.appclient.AppclientIIOPInterceptorFactory.getClientInterceptorInstance(AppclientIIOPInterceptorFactory.java:127)
    	at com.sun.enterprise.security.appclient.AppclientIIOPInterceptorFactory.createClientRequestInterceptor(AppclientIIOPInterceptorFactory.java:96)
    	at org.glassfish.enterprise.iiop.impl.GlassFishORBInitializer.post_init(GlassFishORBInitializer.java:132)
    	at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.postInitORBInitializers(PIHandlerImpl.java:915)
    	at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.initialize(PIHandlerImpl.java:265)
    	at com.sun.corba.ee.impl.orb.ORBImpl.postInit(ORBImpl.java:643)
    	at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:704)
    	at com.sun.corba.ee.impl.orb.ORBImpl.setParameters(ORBImpl.java:691)
    	at com.sun.corba.ee.spi.osgi.ORBFactory.initialize(ORBFactory.java:107)
    	at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:581)
    	at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.getORB(GlassFishORBManager.java:263)
    	at org.glassfish.enterprise.iiop.impl.GlassFishORBFactoryImpl.createORB(GlassFishORBFactoryImpl.java:93)
    	at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:120)
    	at com.sun.enterprise.naming.impl.SerialContext.getORB(SerialContext.java:365)
    	at com.sun.enterprise.naming.impl.SerialContext.getProviderCacheKey(SerialContext.java:372)
    	at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:402)
    	at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:347)
    	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:504)
    	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
    	at javax.naming.InitialContext.lookup(InitialContext.java:411)
    	at com.stage.testclientmaven.locator.ServiceLocator.getRemoteInterface(ServiceLocator.java:42)
    	at com.stage.testclientmaven.delegate.ClasseDelegate.getClasseControllerRemote(ClasseDelegate.java:18)
    	at com.stage.testclientmaven.delegate.ClasseDelegate.creerClasse(ClasseDelegate.java:22)
    	at com.stage.testclientmaven.App.main(App.java:18)
    Caused by: org.jvnet.hk2.component.ComponentException: Failed to create class com.sun.enterprise.resource.pool.PoolManagerImpl
    	at com.sun.hk2.component.ConstructorCreator.create(ConstructorCreator.java:71)
    	at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:80)
    	at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
    	at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
    	at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
    	at org.jvnet.hk2.component.Habitat$5.get(Habitat.java:701)
    	at java.util.AbstractList$Itr.next(AbstractList.java:358)
    	at java.util.AbstractCollection.toArray(AbstractCollection.java:188)
    	at com.sun.hk2.component.InjectInjectionResolver.getArrayInjectValue(InjectInjectionResolver.java:113)
    	at com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:81)
    	at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:141)
    	... 58 more
    Caused by: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/resource/ResourceException
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    	at java.lang.Class.getDeclaredConstructors0(Native Method)
    	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2413)
    	at java.lang.Class.getConstructor0(Class.java:2723)
    	at java.lang.Class.newInstance0(Class.java:345)
    	at java.lang.Class.newInstance(Class.java:327)
    	at com.sun.hk2.component.ConstructorCreator.create(ConstructorCreator.java:65)
    	... 68 more
     
    Exception in thread "main" java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/ejb/RemoveException
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    	at java.lang.Class.getDeclaredMethods0(Native Method)
    	at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)
    	at java.lang.Class.privateGetPublicMethods(Class.java:2571)
    	at java.lang.Class.privateGetPublicMethods(Class.java:2581)
    	at java.lang.Class.privateGetPublicMethods(Class.java:2581)
    	at java.lang.Class.getMethods(Class.java:1429)
    	at com.sun.corba.ee.impl.presentation.rmi.IDLTypesUtil.validateRemoteInterface(IDLTypesUtil.java:96)
    	at com.sun.corba.ee.impl.presentation.rmi.IDLNameTranslatorImpl.<init>(IDLNameTranslatorImpl.java:226)
    	at com.sun.corba.ee.impl.presentation.rmi.IDLNameTranslatorImpl.<init>(IDLNameTranslatorImpl.java:65)
    	at com.sun.corba.ee.impl.presentation.rmi.IDLNameTranslatorImpl$2.run(IDLNameTranslatorImpl.java:169)
    	at com.sun.corba.ee.impl.presentation.rmi.IDLNameTranslatorImpl$2.run(IDLNameTranslatorImpl.java:167)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at com.sun.corba.ee.impl.presentation.rmi.IDLNameTranslatorImpl.get(IDLNameTranslatorImpl.java:166)
    	at com.sun.corba.ee.impl.presentation.rmi.PresentationManagerImpl$ClassDataImpl.<init>(PresentationManagerImpl.java:153)
    	at com.sun.corba.ee.impl.presentation.rmi.PresentationManagerImpl$1.lookup(PresentationManagerImpl.java:103)
    	at com.sun.corba.ee.impl.presentation.rmi.PresentationManagerImpl$1.lookup(PresentationManagerImpl.java:100)
    	at com.sun.corba.ee.spi.orbutil.misc.WeakCache.get(WeakCache.java:114)
    	at com.sun.corba.ee.impl.presentation.rmi.PresentationManagerImpl.getClassData(PresentationManagerImpl.java:131)
    	at com.sun.corba.ee.impl.presentation.rmi.StubFactoryFactoryDynamicBase.createStubFactory(StubFactoryFactoryDynamicBase.java:91)
    	at com.sun.corba.ee.impl.util.Utility.loadStub(Utility.java:835)
    	at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:252)
    	at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:153)
    	at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:406)
    	at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:75)
    	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
    	at com.sun.enterprise.naming.impl.SerialContext.getObjectInstance(SerialContext.java:556)
    	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:514)
    	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
    	at javax.naming.InitialContext.lookup(InitialContext.java:411)
    	at com.stage.testclientmaven.locator.ServiceLocator.getRemoteInterface(ServiceLocator.java:42)
    	at com.stage.testclientmaven.delegate.ClasseDelegate.getClasseControllerRemote(ClasseDelegate.java:18)
    	at com.stage.testclientmaven.delegate.ClasseDelegate.creerClasse(ClasseDelegate.java:22)
    	at com.stage.testclientmaven.App.main(App.java:18)

  2. #2
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Points : 48 804
    Points
    48 804
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Caused by: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/resource/ResourceException
    Typiquement l'erreur que tu obtiens quand tu tente d'utiliser dans ton application le javaee-api fournis par java.net. Ce jar ne contient que des classes "creuse" (disons carrément bidouillées) destinées à la compilation d'application j2ee. Jamais ce jar ne doit être présent dans l'application final, car il ne peut pas s'exécuter. Il faut lui substituer une implémentation concrète de java-ee. En général, c'est le conteneur J2EE qui le fournis.

  3. #3
    Membre habitué Avatar de JacNar6
    Homme Profil pro
    Développeur Java/Java EE/Android
    Inscrit en
    Mai 2012
    Messages
    163
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Développeur Java/Java EE/Android

    Informations forums :
    Inscription : Mai 2012
    Messages : 163
    Points : 134
    Points
    134
    Par défaut
    mille fois Merci, cette erreur est corrigée; Rassurez- vous je penserai à résolu, mon client accède bien à l'EJB de type stateless et persiste même mon entity, mais une fois cela réalisé, comme si nous avions un problème particulier, il me dit :
    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
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
     
    juil. 03, 2013 9:33:36 AM com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator handleFullLogging
    WARNING: IOP00810011: Exception from readValue on ValueHandler in CDRInputStream
    org.omg.CORBA.MARSHAL: WARNING: IOP00810011: Exception from readValue on ValueHandler in CDRInputStream  vmcid: OMG  minor code: 11 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 com.sun.proxy.$Proxy24.valuehandlerReadException(Unknown Source)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRMIIIOPValueType(CDRInputStream_1_0.java:1022)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1123)
    	at com.sun.corba.ee.impl.encoding.CDRInputObject.read_value(CDRInputObject.java:531)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:2064)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2533)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectUsingFVD(IIOPInputStream.java:1695)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:423)
    	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:308)
    	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:274)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRMIIIOPValueType(CDRInputStream_1_0.java:1015)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1123)
    	at com.sun.corba.ee.impl.encoding.CDRInputObject.read_value(CDRInputObject.java:531)
    	at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$14.read(DynamicMethodMarshallerImpl.java:384)
    	at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:483)
    	at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:203)
    	at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
    	at com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase.invoke(CodegenStubBase.java:227)
    	at com.stage.controller.classe.__ClasseControllerRemote_Remote_DynamicStub.creerClasse(com/stage/controller/classe/__ClasseControllerRemote_Remote_DynamicStub.java)
    	at com.stage.controller.classe._ClasseControllerRemote_Wrapper.creerClasse(com/stage/controller/classe/_ClasseControllerRemote_Wrapper.java)
    	at com.stage.testclientmaven.delegate.ClasseDelegate.creerClasse(ClasseDelegate.java:22)
    	at com.stage.testclientmaven.App.main(App.java:18)
    Caused by: java.io.IOException: Mismatched serialization UIDs : Source (Rep. IDRMI:org.eclipse.persistence.indirection.IndirectList:DB07FBD8A483BA07:F9223F322ACBAE18) = F9223F322ACBAE18 whereas Target (Rep. ID RMI:org.eclipse.persistence.indirection.IndirectList:8102E50083D1A43F:380A1369A37237A8) = 380A1369A37237A8
    	at com.sun.corba.ee.impl.util.RepositoryId.useFullValueDescription(RepositoryId.java:679)
    	at com.sun.corba.ee.impl.util.RepositoryId.useFullValueDescription(RepositoryId.java:639)
    	at com.sun.corba.ee.impl.io.ValueHandlerImpl.useFullValueDescription(ValueHandlerImpl.java:360)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:422)
    	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:308)
    	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:274)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRMIIIOPValueType(CDRInputStream_1_0.java:1015)
    	... 20 more
     
    juil. 03, 2013 9:33:36 AM com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator handleFullLogging
    WARNING: ORBIO00013: Stream corrupted
    java.io.StreamCorruptedException: WARNING: ORBIO00013: Stream corrupted
    	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.WrapperGenerator.makeStandardException(WrapperGenerator.java:271)
    	at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$ExtensionBase.makeException(WrapperGenerator.java:159)
    	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 com.sun.proxy.$Proxy69.streamCorrupted(Unknown Source)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2569)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectUsingFVD(IIOPInputStream.java:1695)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:423)
    	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:308)
    	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:274)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRMIIIOPValueType(CDRInputStream_1_0.java:1015)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1123)
    	at com.sun.corba.ee.impl.encoding.CDRInputObject.read_value(CDRInputObject.java:531)
    	at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$14.read(DynamicMethodMarshallerImpl.java:384)
    	at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:483)
    	at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:203)
    	at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
    	at com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase.invoke(CodegenStubBase.java:227)
    	at com.stage.controller.classe.__ClasseControllerRemote_Remote_DynamicStub.creerClasse(com/stage/controller/classe/__ClasseControllerRemote_Remote_DynamicStub.java)
    	at com.stage.controller.classe._ClasseControllerRemote_Wrapper.creerClasse(com/stage/controller/classe/_ClasseControllerRemote_Wrapper.java)
    	at com.stage.testclientmaven.delegate.ClasseDelegate.creerClasse(ClasseDelegate.java:22)
    	at com.stage.testclientmaven.App.main(App.java:18)
     
    juil. 03, 2013 9:33:36 AM com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator handleFullLogging
    WARNING: IOP00810011: Exception from readValue on ValueHandler in CDRInputStream
    org.omg.CORBA.MARSHAL: WARNING: IOP00810011: Exception from readValue on ValueHandler in CDRInputStream  vmcid: OMG  minor code: 11 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 com.sun.proxy.$Proxy24.valuehandlerReadException(Unknown Source)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRMIIIOPValueType(CDRInputStream_1_0.java:1022)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1123)
    	at com.sun.corba.ee.impl.encoding.CDRInputObject.read_value(CDRInputObject.java:531)
    	at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$14.read(DynamicMethodMarshallerImpl.java:384)
    	at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:483)
    	at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:203)
    	at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
    	at com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase.invoke(CodegenStubBase.java:227)
    	at com.stage.controller.classe.__ClasseControllerRemote_Remote_DynamicStub.creerClasse(com/stage/controller/classe/__ClasseControllerRemote_Remote_DynamicStub.java)
    	at com.stage.controller.classe._ClasseControllerRemote_Wrapper.creerClasse(com/stage/controller/classe/_ClasseControllerRemote_Wrapper.java)
    	at com.stage.testclientmaven.delegate.ClasseDelegate.creerClasse(ClasseDelegate.java:22)
    	at com.stage.testclientmaven.App.main(App.java:18)
    Caused by: java.io.StreamCorruptedException: WARNING: ORBIO00013: Stream corrupted
    	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.WrapperGenerator.makeStandardException(WrapperGenerator.java:271)
    	at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$ExtensionBase.makeException(WrapperGenerator.java:159)
    	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 com.sun.proxy.$Proxy69.streamCorrupted(Unknown Source)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2569)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectUsingFVD(IIOPInputStream.java:1695)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:423)
    	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:308)
    	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:274)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRMIIIOPValueType(CDRInputStream_1_0.java:1015)
    	... 11 more
     
    Exception in thread "main" javax.ejb.EJBException: java.rmi.MarshalException: CORBA MARSHAL 1330446347 Maybe; nested exception is: 
    	org.omg.CORBA.MARSHAL: WARNING: IOP00810011: Exception from readValue on ValueHandler in CDRInputStream  vmcid: OMG  minor code: 11 completed: Maybe
    	at com.stage.controller.classe._ClasseControllerRemote_Wrapper.creerClasse(com/stage/controller/classe/_ClasseControllerRemote_Wrapper.java)
    	at com.stage.testclientmaven.delegate.ClasseDelegate.creerClasse(ClasseDelegate.java:22)
    	at com.stage.testclientmaven.App.main(App.java:18)
    Caused by: java.rmi.MarshalException: CORBA MARSHAL 1330446347 Maybe; nested exception is: 
    	org.omg.CORBA.MARSHAL: WARNING: IOP00810011: Exception from readValue on ValueHandler in CDRInputStream  vmcid: OMG  minor code: 11 completed: Maybe
    	at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:267)
    	at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:213)
    	at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
    	at com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase.invoke(CodegenStubBase.java:227)
    	at com.stage.controller.classe.__ClasseControllerRemote_Remote_DynamicStub.creerClasse(com/stage/controller/classe/__ClasseControllerRemote_Remote_DynamicStub.java)
    	... 3 more
    Caused by: org.omg.CORBA.MARSHAL: WARNING: IOP00810011: Exception from readValue on ValueHandler in CDRInputStream  vmcid: OMG  minor code: 11 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 com.sun.proxy.$Proxy24.valuehandlerReadException(Unknown Source)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRMIIIOPValueType(CDRInputStream_1_0.java:1022)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1123)
    	at com.sun.corba.ee.impl.encoding.CDRInputObject.read_value(CDRInputObject.java:531)
    	at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$14.read(DynamicMethodMarshallerImpl.java:384)
    	at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:483)
    	at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:203)
    	... 6 more
    Caused by: java.io.StreamCorruptedException: WARNING: ORBIO00013: Stream corrupted
    	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.WrapperGenerator.makeStandardException(WrapperGenerator.java:271)
    	at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$ExtensionBase.makeException(WrapperGenerator.java:159)
    	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 com.sun.proxy.$Proxy69.streamCorrupted(Unknown Source)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2569)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectUsingFVD(IIOPInputStream.java:1695)
    	at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:423)
    	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:308)
    	at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:274)
    	at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRMIIIOPValueType(CDRInputStream_1_0.java:1015)
    	... 11 more
    ------------------------------------------------------------------------
    BUILD FAILURE
    ------------------------------------------------------------------------
    Total time: 22.594s
    Finished at: Wed Jul 03 09:33:37 WAT 2013
    Final Memory: 25M/263M
    ------------------------------------------------------------------------
    Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project TestClientMaven: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
     
    To see the full stack trace of the errors, re-run Maven with the -e switch.
    Re-run Maven using the -X switch to enable full debug logging.
     
    For more information about the errors and possible solutions, please read the following articles:
    [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
    Je précise que j'utilise maven, et j'avoue débuter avec l'outil; du coup beaucoup de soucis pour résoudre les problèmes de dépendance, cependant je l'apprécie pour ses dépendances transitives. Vos conseils seront les bienvenus sur utilisation de ce dernier.

  4. #4
    Membre habitué Avatar de JacNar6
    Homme Profil pro
    Développeur Java/Java EE/Android
    Inscrit en
    Mai 2012
    Messages
    163
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Développeur Java/Java EE/Android

    Informations forums :
    Inscription : Mai 2012
    Messages : 163
    Points : 134
    Points
    134
    Par défaut
    Le problème apparemment est loin d'être un problème de bibliothèque ou de jar. En fais je suis dans des espèces de "Hello world" où j'utilise deux classes : Etudiant et Classe, ma préoccupation finale étant de tester les web services.
    L'exception ci-dessus est générée au moment de persister une instance de Classe, alors que tout ce passe bien pour une instance de Etudiant. ci-dessous le l’implémentation de mes deux classes
    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
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
     
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    package com.stage.entity;
     
    import java.io.Serializable;
    import java.util.List;
    import javax.persistence.CascadeType;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.OneToMany;
    import javax.xml.bind.annotation.XmlRootElement;
     
    /**
     *
     * @author JacNar6
     */
    @XmlRootElement
    @Entity
    public class Classe implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;
     
        private String libelle;
     
        @OneToMany(mappedBy = "classe", cascade = CascadeType.ALL)
        private List<Etudiant> listeEtudiants;
        public Long getId() {
            return id;
        }
     
        public void setId(Long id) {
            this.id = id;
        }
     
        public String getLibelle() {
            return libelle;
        }
     
        public void setLibelle(String libelle) {
            this.libelle = libelle;
        }
     
        public List<Etudiant> getListeEtudiants() {
            return listeEtudiants;
        }
     
        public void setListeEtudiants(List<Etudiant> listeEtudiants) {
            this.listeEtudiants = listeEtudiants;
        }
     
        @Override
        public int hashCode() {
            int hash = 0;
            hash += (id != null ? id.hashCode() : 0);
            return hash;
        }
     
        @Override
        public boolean equals(Object object) {
            // TODO: Warning - this method won't work in the case the id fields are not set
            if (!(object instanceof Classe)) {
                return false;
            }
            Classe other = (Classe) object;
            if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
                return false;
            }
            return true;
        }
     
        @Override
        public String toString() {
            return "com.stage.entity.Classe[ id=" + id + " ]";
        }
     
    }
    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
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
     
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    package com.stage.entity;
     
    import java.io.Serializable;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.xml.bind.annotation.XmlRootElement;
     
    /**
     *
     * @author JacNar6
     */
    @XmlRootElement
    @Entity
    public class Etudiant implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;
     
        private String nom;
        private String prenom;
     
        @ManyToOne
        @JoinColumn(name = "ID_Classe")
        private Classe classe;
     
        public String getNom() {
            return nom;
        }
     
        public void setNom(String nom) {
            this.nom = nom;
        }
     
        public String getPrenom() {
            return prenom;
        }
     
        public void setPrenom(String prenom) {
            this.prenom = prenom;
        }
     
        public Classe getClasse() {
            return classe;
        }
     
        public void setClasse(Classe classe) {
            this.classe = classe;
        }
     
        public Long getId() {
            return id;
        }
     
        public void setId(Long id) {
            this.id = id;
        }
     
        @Override
        public int hashCode() {
            int hash = 0;
            hash += (id != null ? id.hashCode() : 0);
            return hash;
        }
     
        @Override
        public boolean equals(Object object) {
            // TODO: Warning - this method won't work in the case the id fields are not set
            if (!(object instanceof Etudiant)) {
                return false;
            }
            Etudiant other = (Etudiant) object;
            if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
                return false;
            }
            return true;
        }
     
        @Override
        public String toString() {
            return "com.stage.entity.Etudiant[ id=" + id + " ]";
        }
     
    }
    peut-être un défaut dans les annotations JPA!

  5. #5
    Membre habitué Avatar de JacNar6
    Homme Profil pro
    Développeur Java/Java EE/Android
    Inscrit en
    Mai 2012
    Messages
    163
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Développeur Java/Java EE/Android

    Informations forums :
    Inscription : Mai 2012
    Messages : 163
    Points : 134
    Points
    134
    Par défaut
    Je tiens à préciser que l'exception est levée après avoir bel et bien persisté dans ma base de données une instance de ma classe "Classe".

  6. #6
    Membre habitué Avatar de JacNar6
    Homme Profil pro
    Développeur Java/Java EE/Android
    Inscrit en
    Mai 2012
    Messages
    163
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Développeur Java/Java EE/Android

    Informations forums :
    Inscription : Mai 2012
    Messages : 163
    Points : 134
    Points
    134
    Par défaut
    Plus personne pour m'aider ?

    Voici un lien qui donne une piste intéressante. http://www.developpez.net/forums/d78...a-transporter/
    J'essaie donc de trouver, le glassfish-embedded-all qui contient la version d'eclipselink équivalente à celle utilisée sur le serveur; mais cela semble relever d'un casse tête chinois, il y a apparemment une "infinité de version
    http://download.java.net/maven/glass...-embedded-all/

  7. #7
    Membre habitué Avatar de JacNar6
    Homme Profil pro
    Développeur Java/Java EE/Android
    Inscrit en
    Mai 2012
    Messages
    163
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Développeur Java/Java EE/Android

    Informations forums :
    Inscription : Mai 2012
    Messages : 163
    Points : 134
    Points
    134
    Par défaut
    Après avoir longtemps cherché sans trouvé, on fini par trouver sans chercher! Le problème viens justement de la différence entre le .jar eclipseLink côté serveur et celui côté client. J'ai utilisé maven pour l'application côté serveur (d'où une bibliothèque télécharger depuis un dépôt) alors que côté client j'ai utilisé ant (par défaut sous netbeans); en téléchargeant moi même ma bibliothèque "tout en un" pour le client celui-ci embarquait une version d'eclipseLink différente de celle utilisée côté serveur. Il fallait donc modifier le jar du côté où bon me semblait.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. erreur lors de l'exécution de client EJB
    Par khadi8 dans le forum Wildfly/JBoss
    Réponses: 0
    Dernier message: 06/10/2013, 14h06
  2. Message d'erreur lors de l'invocation d'une méthode
    Par Rony Rauzduel dans le forum Langage
    Réponses: 2
    Dernier message: 06/03/2013, 16h19
  3. Réponses: 3
    Dernier message: 19/01/2013, 14h33
  4. Erreur lors de l'invocation d'un web service REST
    Par yashiro dans le forum Services Web
    Réponses: 0
    Dernier message: 13/12/2011, 13h42
  5. [EJB2] Erreur lors de la creation de l'ejb
    Par Abdelmonam Kouka dans le forum Java EE
    Réponses: 4
    Dernier message: 18/08/2009, 10h08

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