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 :

erreur exécution java.lang.NoSuchMethodError


Sujet :

JPA Java

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    116
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2008
    Messages : 116
    Points : 53
    Points
    53
    Par défaut erreur exécution java.lang.NoSuchMethodError
    Bonjour je susis bloqué depuis plusieurs jours sur une erreur à l'exécution d' 1 application que je développe avec netbeans 6.5.1, j'utilise glassfish et
    java.lang.NoSuchMethodError: be.isl.TFE.entity.PList._toplink_settype(Lbe/isl/TFE/entity/TypeV
    les deux classes d'où pourrait venir le problème sont les suivantes
    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
    @Entity
    @Table(name = "t_list")
    public class PList implements Serializable, Comparable {
     
        @Id
        @GeneratedValue(strategy = GenerationType.SEQUENCE)
        private Long list_id;
     
        //relation 1:n bidirectionnnelle entre le type et la liste
        @ManyToOne(fetch = FetchType.EAGER)
        @JoinColumn(name = "list_type_id")
        private Type type = new Type();
        @Temporal(TemporalType.DATE)
        @Column(name = "list_creation_date ")
        private Date creation_date;
        @Temporal(TemporalType.DATE)
        @Column(name = "list_event_date ")
        private Date event_date;
        @Column(name = "list_av_amount ")
        private Double av_amount = 0.0;
     
        //relation 0:1 unidirectionnelle entre la liste et le nom de l'addresse(hopital, domicile, salle de fête)
        @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
        @JoinColumn(name = "ship_id", nullable = true)
        private Shipping shipping = new Shipping();
        @Column(name = "list_status ")
        private String status;// en cours ou cloturée
     
        //relation 1:n bidirectionnelle entre la liste et l'annonce
        @OneToMany(fetch = FetchType.LAZY)
        private List<Announcement> announcements;
     
        //relation n:n bidirectionnelle entre le cleint et la liste
        @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
        private Customer customer;
     
        //relation n:n unidirectionnelle entre la liste et l'article
        @ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
        @JoinTable(name = "t_list_item",
        joinColumns = {@JoinColumn(name = "list_id")},
        inverseJoinColumns = {@JoinColumn(name = "item_id")})
        private List<Item> items;
     
        //=======================================================
        //              constructeurs                           =
        //=======================================================
        /**
         *
         */
        public PList() {
        }
     
        /**
         * 
         * @param type
         * @param creation_date
         * @param av_amount
         */
        public PList(Date creation_date, Double av_amount) {
            this.creation_date = creation_date;
            this.av_amount = av_amount;
        }
    //...
    }
    la classe type
    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
    @Entity
    @Table(name = "t_list_type")
    public class Type implements Serializable, Comparable {
     
        @Id
        @GeneratedValue(strategy = GenerationType.SEQUENCE)
        //@Column(name = "list_type_id")
        private Long type_id;
        @Column(name = "list_type_name")
        private String type_name;
        //relation 1:n bidirectionnnelle entre le type et la liste
        @OneToMany(mappedBy = "type", fetch = FetchType.LAZY)
        //@OrderBy("event_date ASC")
        private List<PList> lists;
     
        //=======================================================
        //              constructeurs                           =
        //=======================================================
        public Type() {
        }
     
        public Type(String name) {
            this.type_name = name;
        }
    /...
    }
    voici le log du server
    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
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    classLoader = WebappClassLoader
      delegate: true
      repositories:
        /WEB-INF/classes/
    ----------> Parent Classloader:
    EJBClassLoader : 
    urlSet = [URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/commons-beanutils.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/commons-collections.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/commons-digester.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/commons-logging.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/log4j.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/log4j-core.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/jsf-api.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/jstl.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/TFE-ejb_jar/, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/TFE-ejb.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/TFE-war_war/WEB-INF/classes/, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/TFE-war_war/WEB-INF/lib/jsf-impl.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/TFE-war_war/WEB-INF/lib/standard.jar, URLEntry : file:/C:/Sun/AppServer/domains/domain1/generated/ejb/j2ee-apps/TFE/]
    doneCalled = false 
     Parent -> EJBClassLoader : 
    urlSet = []
    doneCalled = false 
     Parent -> java.net.URLClassLoader@9ac0f5
    SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@3a5631
    CORE5022 : Tous les ejb de [TFE] ont été déchargés avec succès !
    deployed with moduleid = TFE
    The alias name for the entity class [class be.isl.TFE.entity.Category] is being defaulted to: Category.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Category.cat_id] is being defaulted to: CAT_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Announcement] is being defaulted to: Announcement.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Announcement.announc_id] is being defaulted to: ANNOUNC_ID.
    The column name for element [private java.util.Date be.isl.TFE.entity.Announcement.ann_date] is being defaulted to: ANN_DATE.
    The alias name for the entity class [class be.isl.TFE.entity.ListItem] is being defaulted to: ListItem.
    The column name for element [private java.lang.Long be.isl.TFE.entity.ListItem.list_item_id] is being defaulted to: LIST_ITEM_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Item] is being defaulted to: Item.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Item.item_id] is being defaulted to: ITEM_ID.
    The alias name for the entity class [class be.isl.TFE.entity.PList] is being defaulted to: PList.
    The column name for element [private java.lang.Long be.isl.TFE.entity.PList.list_id] is being defaulted to: LIST_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Customer] is being defaulted to: Customer.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Customer.cust_id] is being defaulted to: CUST_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Type] is being defaulted to: Type.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Type.type_id] is being defaulted to: TYPE_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Purchase] is being defaulted to: Purchase.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Purchase.purch_id] is being defaulted to: PURCH_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Country] is being defaulted to: Country.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Country.country_id] is being defaulted to: COUNTRY_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Shipping] is being defaulted to: Shipping.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Shipping.ship_id] is being defaulted to: SHIP_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Status] is being defaulted to: Status.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Status.status_id] is being defaulted to: STATUS_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Address] is being defaulted to: Address.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Address.add_id] is being defaulted to: ADD_ID.
    The alias name for the entity class [class be.isl.TFE.entity.CustList] is being defaulted to: CustList.
    The column name for element [private java.lang.Long be.isl.TFE.entity.CustList.cust_list_id] is being defaulted to: CUST_LIST_ID.
    The target entity (reference) class for the one to many mapping element [private java.util.List be.isl.TFE.entity.Type.lists] is being defaulted to: class be.isl.TFE.entity.PList.
    The target entity (reference) class for the many to one mapping element [private be.isl.TFE.entity.Type be.isl.TFE.entity.PList.type] is being defaulted to: class be.isl.TFE.entity.Type.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Type be.isl.TFE.entity.PList.type] is being defaulted to: TYPE_ID.
    The target entity (reference) class for the one to one mapping element [private be.isl.TFE.entity.Shipping be.isl.TFE.entity.PList.shipping] is being defaulted to: class be.isl.TFE.entity.Shipping.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Shipping be.isl.TFE.entity.PList.shipping] is being defaulted to: SHIP_ID.
    The target entity (reference) class for the many to many mapping element [private java.util.List be.isl.TFE.entity.PList.items] is being defaulted to: class be.isl.TFE.entity.Item.
    The source primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.items] is being defaulted to: LIST_ID.
    The target primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.items] is being defaulted to: ITEM_ID.
    The target entity (reference) class for the one to many mapping element [private java.util.List be.isl.TFE.entity.PList.announcements] is being defaulted to: class be.isl.TFE.entity.Announcement.
    The join table name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.announcements] is being defaulted to: t_list_t_announcement.
    The source primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.announcements] is being defaulted to: LIST_ID.
    The source foreign key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.announcements] is being defaulted to: PList_LIST_ID.
    The target primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.announcements] is being defaulted to: ANNOUNC_ID.
    The target foreign key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.announcements] is being defaulted to: announcements_ANNOUNC_ID.
    The target entity (reference) class for the many to one mapping element [private be.isl.TFE.entity.Customer be.isl.TFE.entity.PList.customer] is being defaulted to: class be.isl.TFE.entity.Customer.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Customer be.isl.TFE.entity.PList.customer] is being defaulted to: CUST_ID.
    The foreign key column name for the mapping element [private be.isl.TFE.entity.Customer be.isl.TFE.entity.PList.customer] is being defaulted to: CUSTOMER_CUST_ID.
    The target entity (reference) class for the many to one mapping element [private be.isl.TFE.entity.Category be.isl.TFE.entity.Item.category] is being defaulted to: class be.isl.TFE.entity.Category.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Category be.isl.TFE.entity.Item.category] is being defaulted to: CAT_ID.
    The target entity (reference) class for the many to many mapping element [private java.util.List be.isl.TFE.entity.Item.plists] is being defaulted to: class be.isl.TFE.entity.PList.
    The join table name for the many to many mapping [private java.util.List be.isl.TFE.entity.Item.plists] is being defaulted to: t_item_t_list.
    The source primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.Item.plists] is being defaulted to: ITEM_ID.
    The source foreign key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.Item.plists] is being defaulted to: Item_ITEM_ID.
    The target primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.Item.plists] is being defaulted to: LIST_ID.
    The target foreign key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.Item.plists] is being defaulted to: plists_LIST_ID.
    The target entity (reference) class for the one to many mapping element [private java.util.List be.isl.TFE.entity.CustList.status_s] is being defaulted to: class be.isl.TFE.entity.Status.
    The source primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.CustList.status_s] is being defaulted to: CUST_LIST_ID.
    The target primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.CustList.status_s] is being defaulted to: STATUS_ID.
    The target entity (reference) class for the one to one mapping element [private be.isl.TFE.entity.Address be.isl.TFE.entity.Customer.address] is being defaulted to: class be.isl.TFE.entity.Address.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Address be.isl.TFE.entity.Customer.address] is being defaulted to: ADD_ID.
    The target entity (reference) class for the one to many mapping element [private java.util.List be.isl.TFE.entity.Customer.lists] is being defaulted to: class be.isl.TFE.entity.PList.
    The target entity (reference) class for the one to one mapping element [private be.isl.TFE.entity.Address be.isl.TFE.entity.Shipping.address] is being defaulted to: class be.isl.TFE.entity.Address.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Address be.isl.TFE.entity.Shipping.address] is being defaulted to: ADD_ID.
    The target entity (reference) class for the many to one mapping element [private be.isl.TFE.entity.PList be.isl.TFE.entity.Announcement.plist] is being defaulted to: class be.isl.TFE.entity.PList.
    The primary key column name for the mapping element [private be.isl.TFE.entity.PList be.isl.TFE.entity.Announcement.plist] is being defaulted to: LIST_ID.
    The target entity (reference) class for the one to one mapping element [private be.isl.TFE.entity.Country be.isl.TFE.entity.Address.country] is being defaulted to: class be.isl.TFE.entity.Country.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Country be.isl.TFE.entity.Address.country] is being defaulted to: COUNTRY_ID.
    The target entity (reference) class for the one to many mapping element [private java.util.List be.isl.TFE.entity.Category.items] is being defaulted to: class be.isl.TFE.entity.Item.
    be.isl.TFE.entity.PList actually got transformed
    be.isl.TFE.entity.Announcement actually got transformed
    naming.bind
    naming.bind
    naming.bind
    LDR5010 : Tous les ejb de [TFE] chargés avec succès !
    Initializing Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context '/TFE-war'
    StandardWrapperValve[Faces Servlet]: PWC1406 : servlet.service() pour le servlet Faces Servlet a émis une exception.
    java.lang.NoSuchMethodError: be.isl.TFE.entity.PList._toplink_settype(Lbe/isl/TFE/entity/Type;)V
            at be.isl.TFE.entity.PList.<init>(PList.java:30)
            at be.isl.tfe.jsf.ListController.<init>(ListController.java:29)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
            at java.lang.Class.newInstance0(Class.java:355)
            at java.lang.Class.newInstance(Class.java:308)
            at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:277)
            at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:527)
            at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
            at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
            at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
            at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:86)
            at com.sun.el.parser.AstValue.getValue(AstValue.java:127)
            at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
            at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
            at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
            at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
            at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
            at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:245)
            at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
            at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
            at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
            at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    classLoader = WebappClassLoader
      delegate: true
      repositories:
        /WEB-INF/classes/
    ----------> Parent Classloader:
    EJBClassLoader : 
    urlSet = [URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/commons-beanutils.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/commons-collections.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/commons-digester.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/commons-logging.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/log4j.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/log4j-core.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/jsf-api.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/jstl.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/TFE-ejb_jar/, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/TFE-ejb.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/TFE-war_war/WEB-INF/classes/, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/TFE-war_war/WEB-INF/lib/jsf-impl.jar, URLEntry : file:/C:/Users/Denis/Documents/NetBeansProjects/TFE/dist/gfdeploy/TFE-war_war/WEB-INF/lib/standard.jar, URLEntry : file:/C:/Sun/AppServer/domains/domain1/generated/ejb/j2ee-apps/TFE/]
    doneCalled = false 
     Parent -> EJBClassLoader : 
    urlSet = []
    doneCalled = false 
     Parent -> java.net.URLClassLoader@9ac0f5
    SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@3a5631
    CORE5022 : Tous les ejb de [TFE] ont été déchargés avec succès !
    deployed with moduleid = TFE
    The alias name for the entity class [class be.isl.TFE.entity.Category] is being defaulted to: Category.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Category.cat_id] is being defaulted to: CAT_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Announcement] is being defaulted to: Announcement.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Announcement.announc_id] is being defaulted to: ANNOUNC_ID.
    The column name for element [private java.util.Date be.isl.TFE.entity.Announcement.ann_date] is being defaulted to: ANN_DATE.
    The alias name for the entity class [class be.isl.TFE.entity.ListItem] is being defaulted to: ListItem.
    The column name for element [private java.lang.Long be.isl.TFE.entity.ListItem.list_item_id] is being defaulted to: LIST_ITEM_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Item] is being defaulted to: Item.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Item.item_id] is being defaulted to: ITEM_ID.
    The alias name for the entity class [class be.isl.TFE.entity.PList] is being defaulted to: PList.
    The column name for element [private java.lang.Long be.isl.TFE.entity.PList.list_id] is being defaulted to: LIST_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Customer] is being defaulted to: Customer.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Customer.cust_id] is being defaulted to: CUST_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Type] is being defaulted to: Type.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Type.type_id] is being defaulted to: TYPE_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Purchase] is being defaulted to: Purchase.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Purchase.purch_id] is being defaulted to: PURCH_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Country] is being defaulted to: Country.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Country.country_id] is being defaulted to: COUNTRY_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Shipping] is being defaulted to: Shipping.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Shipping.ship_id] is being defaulted to: SHIP_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Status] is being defaulted to: Status.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Status.status_id] is being defaulted to: STATUS_ID.
    The alias name for the entity class [class be.isl.TFE.entity.Address] is being defaulted to: Address.
    The column name for element [private java.lang.Long be.isl.TFE.entity.Address.add_id] is being defaulted to: ADD_ID.
    The alias name for the entity class [class be.isl.TFE.entity.CustList] is being defaulted to: CustList.
    The column name for element [private java.lang.Long be.isl.TFE.entity.CustList.cust_list_id] is being defaulted to: CUST_LIST_ID.
    The target entity (reference) class for the one to one mapping element [private be.isl.TFE.entity.Address be.isl.TFE.entity.Shipping.address] is being defaulted to: class be.isl.TFE.entity.Address.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Address be.isl.TFE.entity.Shipping.address] is being defaulted to: ADD_ID.
    The target entity (reference) class for the one to one mapping element [private be.isl.TFE.entity.Address be.isl.TFE.entity.Customer.address] is being defaulted to: class be.isl.TFE.entity.Address.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Address be.isl.TFE.entity.Customer.address] is being defaulted to: ADD_ID.
    The target entity (reference) class for the one to many mapping element [private java.util.List be.isl.TFE.entity.Customer.lists] is being defaulted to: class be.isl.TFE.entity.PList.
    The target entity (reference) class for the many to one mapping element [private be.isl.TFE.entity.Customer be.isl.TFE.entity.PList.customer] is being defaulted to: class be.isl.TFE.entity.Customer.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Customer be.isl.TFE.entity.PList.customer] is being defaulted to: CUST_ID.
    The foreign key column name for the mapping element [private be.isl.TFE.entity.Customer be.isl.TFE.entity.PList.customer] is being defaulted to: CUSTOMER_CUST_ID.
    The target entity (reference) class for the one to many mapping element [private java.util.List be.isl.TFE.entity.CustList.status_s] is being defaulted to: class be.isl.TFE.entity.Status.
    The source primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.CustList.status_s] is being defaulted to: CUST_LIST_ID.
    The target primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.CustList.status_s] is being defaulted to: STATUS_ID.
    The target entity (reference) class for the many to one mapping element [private be.isl.TFE.entity.Category be.isl.TFE.entity.Item.category] is being defaulted to: class be.isl.TFE.entity.Category.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Category be.isl.TFE.entity.Item.category] is being defaulted to: CAT_ID.
    The target entity (reference) class for the many to many mapping element [private java.util.List be.isl.TFE.entity.Item.plists] is being defaulted to: class be.isl.TFE.entity.PList.
    The join table name for the many to many mapping [private java.util.List be.isl.TFE.entity.Item.plists] is being defaulted to: t_item_t_list.
    The source primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.Item.plists] is being defaulted to: ITEM_ID.
    The source foreign key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.Item.plists] is being defaulted to: Item_ITEM_ID.
    The target primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.Item.plists] is being defaulted to: LIST_ID.
    The target foreign key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.Item.plists] is being defaulted to: plists_LIST_ID.
    The target entity (reference) class for the one to many mapping element [private java.util.List be.isl.TFE.entity.Category.items] is being defaulted to: class be.isl.TFE.entity.Item.
    The target entity (reference) class for the one to one mapping element [private be.isl.TFE.entity.Shipping be.isl.TFE.entity.PList.shipping] is being defaulted to: class be.isl.TFE.entity.Shipping.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Shipping be.isl.TFE.entity.PList.shipping] is being defaulted to: SHIP_ID.
    The target entity (reference) class for the many to many mapping element [private java.util.List be.isl.TFE.entity.PList.items] is being defaulted to: class be.isl.TFE.entity.Item.
    The source primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.items] is being defaulted to: LIST_ID.
    The target primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.items] is being defaulted to: ITEM_ID.
    The target entity (reference) class for the one to many mapping element [private java.util.List be.isl.TFE.entity.PList.announcements] is being defaulted to: class be.isl.TFE.entity.Announcement.
    The join table name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.announcements] is being defaulted to: t_list_t_announcement.
    The source primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.announcements] is being defaulted to: LIST_ID.
    The source foreign key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.announcements] is being defaulted to: PList_LIST_ID.
    The target primary key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.announcements] is being defaulted to: ANNOUNC_ID.
    The target foreign key column name for the many to many mapping [private java.util.List be.isl.TFE.entity.PList.announcements] is being defaulted to: announcements_ANNOUNC_ID.
    The target entity (reference) class for the many to one mapping element [private be.isl.TFE.entity.Type be.isl.TFE.entity.PList.type] is being defaulted to: class be.isl.TFE.entity.Type.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Type be.isl.TFE.entity.PList.type] is being defaulted to: TYPE_ID.
    The target entity (reference) class for the one to many mapping element [private java.util.List be.isl.TFE.entity.Type.lists] is being defaulted to: class be.isl.TFE.entity.PList.
    The target entity (reference) class for the many to one mapping element [private be.isl.TFE.entity.PList be.isl.TFE.entity.Announcement.plist] is being defaulted to: class be.isl.TFE.entity.PList.
    The primary key column name for the mapping element [private be.isl.TFE.entity.PList be.isl.TFE.entity.Announcement.plist] is being defaulted to: LIST_ID.
    The target entity (reference) class for the one to one mapping element [private be.isl.TFE.entity.Country be.isl.TFE.entity.Address.country] is being defaulted to: class be.isl.TFE.entity.Country.
    The primary key column name for the mapping element [private be.isl.TFE.entity.Country be.isl.TFE.entity.Address.country] is being defaulted to: COUNTRY_ID.
    be.isl.TFE.entity.PList actually got transformed
    be.isl.TFE.entity.Announcement actually got transformed
    naming.bind
    naming.bind
    naming.bind
    LDR5010 : Tous les ejb de [TFE] chargés avec succès !
    Initializing Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context '/TFE-war'

  2. #2
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    116
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2008
    Messages : 116
    Points : 53
    Points
    53
    Par défaut
    Quelqu'un a t-il une idée?
    merci

  3. #3
    Membre actif

    Inscrit en
    Octobre 2009
    Messages
    133
    Détails du profil
    Informations forums :
    Inscription : Octobre 2009
    Messages : 133
    Points : 295
    Points
    295
    Par défaut
    Bonjour,

    a vue de nez, je dirais que l'application cherche la méthode setType dans ta classe PList mais que celle-ci n'existe pas, tu n'as que :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    private Type type = new Type();
    Il te faut donc créer la méthode setType (tu dois avoir un composant faces recherchant l'attribut type de la classe PList dans ton jsf, non ?)

  4. #4
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    116
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2008
    Messages : 116
    Points : 53
    Points
    53
    Par défaut
    Bonjour henolivier et merci pour ta réponse
    Il te faut donc créer la méthode setType
    Cette méthode existe bien dans l'entity PList et j'avoue que je suis pommé quand au message où est fait référence setTpe
    (tu dois avoir un composant faces recherchant l'attribut type de la classe PList dans ton jsf, non ?)
    je ne suis pas sûr de bien comprendre ,
    voici le jsp peut être qu'il peut éclairer, j'utilise un managed bean 'list'

    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
     
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%@page contentType="text/html"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <f:view>
        <html>
            <head>
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                <link href="style.css" rel="stylesheet" type="text/css">
                <title>
                    <h:outputText value="#{msgs.windowSearchListTitle}" />
                </title>
            </head>
     
            <body>
                <%--entête--%>
                <div id="header">
                    <div class="panel">
                        <%@ include file="/WEB-INF/jspf/header.jspf" %>
                    </div>
                </div>
                <%--menu horizontal--%>
                <div id="menuH">
                    <div class="panel">
                        <%@ include file="/WEB-INF/jspf/menuH.jspf" %>
                    </div>
                </div>
                <%--menu vertical--%>
                <div id="menuV">
                    <div class="panel">
                        <%@ include file="/WEB-INF/jspf/menuV.jspf" %>
                    </div>
                </div>
     
                <h1><h:outputText value="#{msgs.windowSearchListTitle}" /></h1>
                <h:form>
                    <table>
                        <h3>Propri&eacute;taire</h3>
                        <tr>
                            <td><h:outputText value="#{msgs.first_name}" /></td>
                            <td><h:inputText value="#{list.listRech.customer.first_name}" /></td>
                        </tr>
                        <tr>
                            <td><h:outputText value="#{msgs.last_name}" /></td>
                            <td><h:inputText value="#{list.listRech.customer.last_name}" /></td>
                        </tr
                        <h3>B&eacute;n&eacute;ciaire</h3>
                        <tr>
                            <td><h:outputText value="#{msgs.first_name}" /></td>
                            <td><h:inputText value="#{list.listRech.customer.first_name}" /></td>
                        </tr>
                        <tr>
                            <td><h:outputText value="#{msgs.last_name}" /></td>
                            <td><h:inputText value="#{list.listRech.customer.last_name}" /></td>
                        </tr
                        <tr>
                            <td><h:outputText value="#{msgs.status}" /></td>
                            <td><h:inputText value="#{list.listRech.status}" /></td>
                        </tr>
                        <tr>
                            <td><h:outputText value="#{msgs.type}" /></td>
                            <td>
                                <h:selectOneMenu value="#{list.listRech.type.type_id}">
                                    <f:selectItems value="#{list.allTypes}"/>
                                </h:selectOneMenu>
                            </td>
                        </tr>
                        <tr>
                            <td><h:commandButton value="#{msgs.Rech}" action="#{list.doFindLists}" /></td>
                        </tr>
                    </table>
                </h:form>
                <!--========= L'ensemble des listes ==========================-->
                <h:form>
                    <h:dataTable value="#{list.lists}"
                                 var="listRow">
                        <f:facet name="caption">
                            <h:outputText value="#{msgs.windowShowLists}"/>
                        </f:facet>
     
                        <h:column footerClass="columnFooter">
                            <f:facet name="header">
                                <h:outputText value="#{msgs.first_name}" />
                            </f:facet>
                            <h:outputText value="#{listRow.customer.first_name}" />
                            <f:facet name="footer">
                                <h:outputText value="#{msgs.first_name}" />
                            </f:facet>
                        </h:column>
                        <h:column footerClass="columnFooter">
                            <f:facet name="header">
                                <h:outputText value="#{msgs.last_name}" />
                            </f:facet>
                            <h:commandLink action="#{list.doFindList}"
                                           value="#{listRow.customer.first_name}">
                                <f:param name="cust_id" value="#{listRow.list_id}" />
                            </h:commandLink>
                            <f:facet name="footer">
                                <h:outputText value="#{msgs.last_name}" />
                            </f:facet>
                        </h:column>
                        <h:column footerClass="columnFooter">
                            <f:facet name="header">
                                <h:outputText value="#{msgs.type}" />
                            </f:facet>
                            <h:outputText value="#{listRow.type.type_name}" />
                            <f:facet name="footer">
                                <h:outputText value="#{msgs.type}" />
                            </f:facet>
                        </h:column>
                        <h:column footerClass="columnFooter">
                            <f:facet name="header">
                                <h:outputText value="#{msgs.status}" />
                            </f:facet>
                            <h:outputText value="#{listRow.status}" />
                            <f:facet name="footer">
                                <h:outputText value="#{msgs.status}" />
                            </f:facet>
                        </h:column>
                    </h:dataTable>
     
                </h:form>
                <!-- ==================== -->
                <h:form title="Detail">
                    <table>
                        <h3>Propri&eacute;taire</h3>
                        <tr>
                            <td><h:outputText value="#{msgs.first_name}" /></td>
                            <td><h:inputText value="#{list.listDetail.customer.first_name}" /></td>
                        </tr>
                        <tr>
                            <td><h:outputText value="#{msgs.last_name}" /></td>
                            <td><h:inputText value="#{list.listDetail.customer.last_name}" /></td>
                        </tr>
                        <h3>B&eacute;n&eacute;ciaire</h3>
                        <tr>
                            <td><h:outputText value="#{msgs.first_name}" /></td>
                            <td><h:inputText value="#{list.listDetail.customer.first_name}" /></td>
                        </tr>
                        <tr>
                            <td><h:outputText value="#{msgs.last_name}" /></td>
                            <td><h:inputText value="#{list.listDetail.customer.last_name}" /></td>
                        </tr>
                        <tr>
                            <td><h:outputText value="#{msgs.type}" /></td>
                            <td>
                                <h:selectOneMenu value="#{list.listDetail.type.type_id}">
                                    <f:selectItems value="#{list.allTypes}"/>
                                </h:selectOneMenu>
                            </td>
                        </tr>
                        <tr>
                            <td><h:outputText value="#{msgs.status}" /></td>
                            <td><h:inputText value="#{list.listDetail.status}" /></td>
                        </tr>
     
                        <tr>
                            <td><h:commandButton value="#{msgs.Sauve}" action="#{list.doSave}" /></td>
                        </tr>
                    </table>
                </h:form>
     
     
                <%--pied de page--%>
                <div id="footer">
                    <div class="panel">
                        <%@ include file="/WEB-INF/jspf/footer.jspf" %>
                    </div>
                </div>
            </body>
        </html>
     
    </f:view>
    et le controller du jsp
    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
    public class ListController {
     
        @EJB
        private ListLocal listBean;
        private PList listRech = new PList();
        private PList listDetail;
        private Customer customer = new Customer();
        private Type type = new Type();
        private List<PList> lists;
        private List<Type> types;
        private Map typesCB;
     
        //============================================================
        //=             methodes publiques pour la liste             =
        //============================================================
        /**
         *
         * @return
         */
        public String doCreateList() {
            String goTo = null;
            listRech = listBean.createList(listRech);
            goTo = "list.created";
            return goTo;
        }
     
        /**
         *
         */
        public String doFindList() {
            String goTo = null;
            listDetail = listBean.findList(getParamId("list_id"));
            goTo = "list.displayed";
            return goTo;
        }
     
        /**
         *
         */
        public String doFindlists() {
            String goTo = null;
            lists = listBean.searchLists(listRech);
            goTo = "lists.displayed";
            return goTo;
        }
     
        /**
         *
         * @return
         */
        public List<PList> doFindAllLists() {
            lists = listBean.searchLists(null);
            return getLists();
        }
     
        /**
         * 
         * @return
         */
        public Map getAllTypes() {
            types = listBean.searchTypes(null);
            if (typesCB == null) {
                typesCB = new TreeMap();
                for (Type t : types) {
                    typesCB.put(t.getType_name(), new Long(t.getType_id()));
                }
            }
            return typesCB;
        }
     
        public void doSave() {
            listBean.updateList(listDetail);
        }
     
        /**
         * @return the types
         */
        public Long getParamId(String sParam) {
            FacesContext context = FacesContext.getCurrentInstance();
            Map<String, String> map = context.getExternalContext().getRequestParameterMap();
            String result = map.get(sParam);
            return Long.valueOf(result);
        }
     
        /**
         * @return the listRech
         */
        public PList getListRech() {
            return listRech;
        }
     
        /**
         * @param listRech the listRech to set
         */
        public void setListRech(PList listRech) {
            this.listRech = listRech;
        }
     
        /**
         * @return the listDetail
         */
        public PList getListDetail() {
            return listDetail;
        }
     
        /**
         * @param listDetail the listDetail to set
         */
        public void setListDetail(PList listDetail) {
            this.listDetail = listDetail;
        }
     
        /**
         * @return the lists
         */
        public List<PList> getLists() {
            return lists;
        }
     
        /**
         * @return the customer
         */
        public Customer getCustomer() {
            return customer;
        }
     
        /**
         * @param customer the customer to set
         */
        public void setCustomer(Customer customer) {
            this.customer = customer;
        }
     
        /**
         * @return the type
         */
        public Type getType() {
            return type;
        }
     
        /**
         * @param type the type to set
         */
        public void setType(Type type) {
            this.type = type;
        }
    }
    l'entity PList
    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
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    @Entity
    @Table(name = "t_list")
    public class PList implements Serializable, Comparable {
     
        @Id
        @GeneratedValue(strategy = GenerationType.SEQUENCE)
        private Long list_id;
     
        //relation 1:n bidirectionnnelle entre le type et la liste
        @ManyToOne(fetch = FetchType.EAGER)
        @JoinColumn(name = "list_type_id")
        private Type type = new Type();
        @Temporal(TemporalType.DATE)
        @Column(name = "list_creation_date ")
        private Date creation_date;
        @Temporal(TemporalType.DATE)
        @Column(name = "list_event_date ")
        private Date event_date;
        @Column(name = "list_av_amount ")
        private Double av_amount = 0.0;
     
        //relation 0:1 unidirectionnelle entre la liste et le nom de l'addresse(hopital, domicile, salle de fête)
        @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
        @JoinColumn(name = "ship_id", nullable = true)
        private Shipping shipping = new Shipping();
        @Column(name = "list_status ")
        private String status;// en cours ou cloturée
     
        //relation 1:n bidirectionnelle entre la liste et l'annonce
        @OneToMany(fetch = FetchType.LAZY)
        private List<Announcement> announcements;
     
        //relation n:n bidirectionnelle entre le cleint et la liste
        @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
        private Customer customer;
     
        //relation n:n unidirectionnelle entre la liste et l'article
        @ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
        @JoinTable(name = "t_list_item",
        joinColumns = {@JoinColumn(name = "list_id")},
        inverseJoinColumns = {@JoinColumn(name = "item_id")})
        private List<Item> items;
     
        //=======================================================
        //              constructeurs                           =
        //=======================================================
        /**
         *
         */
        public PList() {
        }
     
        /**
         * 
         * @param type
         * @param creation_date
         * @param av_amount
         */
        public PList(Date creation_date, Double av_amount) {
            this.creation_date = creation_date;
            this.av_amount = av_amount;
        }
        //=======================================================
        //              methodes publiques                           =
        //=======================================================
     
        /**
         *
         * @param l
         * @return
         */
        public int compareTo(Object l) {
            String sKey = this.getType().getType_name() + this.getStatus() + this.getList_id();
            String sKey2 = ((PList) l).getType().getType_name() + ((PList) l).getStatus() + ((PList) l).getList_id();
            return (sKey.compareTo(sKey2));
        }
     
        //=======================================================
        //              getters and setters                     =
        //=======================================================
        /**
         * @return the list_id
         */
        public Long getList_id() {
            return list_id;
        }
     
        /**
         * @param list_id the list_id to set
         */
        public void setList_id(Long list_id) {
            this.list_id = list_id;
        }
     
        /**
         * @return the type
         */
        public Type getType() {
            return type;
        }
     
        /**
         * @param type the type to set
         */
        public void setType(Type type) {
            this.type = type;
        }
     
        /**
         * @return the creation_date
         */
        public Date getCreation_date() {
            return creation_date;
        }
     
        /**
         * @param creation_date the creation_date to set
         */
        public void setCreation_date(Date creation_date) {
            this.creation_date = creation_date;
        }
     
        /**
         * @return the event_date
         */
        public Date getEvent_date() {
            return event_date;
        }
     
        /**
         * @param event_date the event_date to set
         */
        public void setEvent_date(Date event_date) {
            this.event_date = event_date;
        }
     
        /**
         * @return the av_amount
         */
        public Double getAv_amount() {
            return av_amount;
        }
     
        /**
         * @param av_amount the av_amount to set
         */
        public void setAv_amount(Double av_amount) {
            this.av_amount = av_amount;
        }
     
        /**
         * @return the shipping
         */
        public Shipping getShipping() {
            return shipping;
        }
     
        /**
         * @return the status
         */
        public String getStatus() {
            return status;
        }
     
        /**
         * @param status the status to set
         */
        public void setStatus(String status) {
            this.status = status;
        }
     
        /**
         * @return the announcements
         */
        public List<Announcement> getAnnouncements() {
            return announcements;
        }
     
        /**
         * @param announcements the announcements to set
         */
        public void setAnnouncements(List<Announcement> announcements) {
            this.announcements = announcements;
        }
     
        /**
         * @return the customer
         */
        public Customer getCustomer() {
            return customer;
        }
     
        /**
         * @param customer the customer to set
         */
        public void setCustomer(Customer customer) {
            this.customer = customer;
        }
     
        /**
         * @return the items
         */
        public List<Item> getItems() {
            return items;
        }
     
        /**
         * @param items the items to set
         */
        public void setItems(List<Item> items) {
            this.items = items;
        }
    }
    l'entity Type
    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
    @Entity
    @Table(name = "t_list_type")
    public class Type implements Serializable, Comparable {
     
        @Id
        @GeneratedValue(strategy = GenerationType.SEQUENCE)
        //@Column(name = "list_type_id")
        private Long type_id;
        @Column(name = "list_type_name")
        private String type_name;
        //relation 1:n bidirectionnnelle entre le type et la liste
        @OneToMany(mappedBy = "type", fetch = FetchType.LAZY)
        //@OrderBy("event_date ASC")
        private List<PList> lists;
     
        //=======================================================
        //              constructeurs                           =
        //=======================================================
        public Type() {
        }
     
        public Type(String name) {
            this.type_name = name;
        }
     
        //=======================================================
        //              getters and setters                     =
        //=======================================================
        /**
         * @return the type_id
         */
        public Long getType_id() {
            return type_id;
        }
     
        /**
         * @param type_id the type_id to set
         */
        public void setType_id(Long type_id) {
            this.type_id = type_id;
        }
     
        /**
         * @return the type_name
         */
        public String getType_name() {
            return type_name;
        }
     
        /**
         * @param type_name the type_name to set
         */
        public void setType_name(String type_name) {
            this.type_name = type_name;
        }
     
        /**
         * @return the lists
         */
        public List<PList> getLists() {
            return lists;
        }
     
        /**
         * @param lists the lists to set
         */
        public void setLists(List<PList> lists) {
            this.lists = lists;
        }
     
        public int compareTo(Object t) {
            return (this.type_name.compareTo(((Type) t).getType_name()));
        }
    }
    je continue à chercher

  5. #5
    Membre actif

    Inscrit en
    Octobre 2009
    Messages
    133
    Détails du profil
    Informations forums :
    Inscription : Octobre 2009
    Messages : 133
    Points : 295
    Points
    295
    Par défaut
    Avec le code directement, je ne vois pas trop le problème,
    rien ne me saute aux yeux comme ça.

    Juste au cas, j'essaierai de supprimer la construction de type de manière directe dans la classe PList (comme tu fais avec Customer) :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    private Type type = new Type();
    Pour le mettre dans le constructeur mais je vois pas en quoi cela résoudrait le problème.

    Un deuxième truc, je suis pas sur non plus que tes selectItems fonctionnent directement (cela fait longtemps que je n'en fait pas, j'ai peut être oublié mais une Map directement pour les values, je ne suis pas sur que ça marche, il faudrait peut être plutôt utiliser var comme paramétré avec une list pour qu'il récupère élément par élément et non dans une Map).

    Pour tester,
    tu devrais essayer de supprimer tes appels a la classe type depuis ta jsf (ainsi que de ton contrôleur) pour voir si le problème vient de la jsf directement ou de l'appel a PList, ensuite en fonction, tu pourrais rajouter le système de type comme inputText (si c'est un probleme jsf) ou de modifier ton bean PList pour voir comment il initialise la classe Type.

    Désolé, mais sans environnement, il m'est impossible d'aller plus, le problème ne me sautant pas directement aux yeux,
    ce qui est assez bizarre car l'exception est assez claire
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    java.lang.NoSuchMethodError: be.isl.TFE.entity.PList._toplink_settype(Lbe/isl/TFE/entity/Type;)V
    Elle indique clairement qu'il te manque la méthode settype dans ta classe PList, mais cela est incohérent avec les règles de développement (la majuscule notamment)

  6. #6
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    116
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2008
    Messages : 116
    Points : 53
    Points
    53
    Par défaut
    c'est incompréhensible, en essayant ce que tu me conseilles
    Juste au cas, j'essaierai de supprimer la construction de type de manière directe dans la classe PList (comme tu fais avec Customer) :
    Code :

    private Type type = new Type();
    ça semble fonctionner mais c'est quand même surprenant!!!

  7. #7
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    116
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2008
    Messages : 116
    Points : 53
    Points
    53
    Par défaut
    en fait pas totalement, dans le constructeur de PList je le laisse tel quel et je supprime l'instanciation de type comme dit précédemment, je fais des tests et je reviens

  8. #8
    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
    apparement toplink "oublie" de te créer une méthode "void _toplink_settype(be.isl.TFE.entity.Type)" JE connais pas toplink, mais quand ce genre de "gag" arrive avec hibernate, c'est parce que la version d'une librairie annexe (dont je sais plus le nom) chargée de faire de l'injection de code dans les classes n'est pas celle qui aurait du se trouver avec hibernate, mais une version plus vieille. C'est probablement pas un problème lié au code, car sinon le code n'aurait simplement pas compilé.

  9. #9
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    116
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2008
    Messages : 116
    Points : 53
    Points
    53
    Par défaut
    Merci tchize_ pour ta réponse et qui me rassure un peu car je commençais à m'inquiéter. Donc pour voir ce qu'il en était j'ai supprimé le persistence.xml (qui utilisait toplink) et j'ai crée un autre en choisissant hibernate et là mon appli s'exécute.
    seul bémol j'ai une exception qui est lévé
    javax.el.PropertyNotFoundException: Cible inaccessible, 'customer' a renvoyé une valeur nulle
    je confonds sans doute mais cette variable je l'ai définie dans mon controller n'est-ce pas la même? une idée?, merci

  10. #10
    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
    t'as un getCustomer qui a retourné null et ton Expression EL n'apprécie pas

  11. #11
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    116
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2008
    Messages : 116
    Points : 53
    Points
    53
    Par défaut
    j'ai bien déclaré customer et les getters et setters sont définis dans le conroller, je ne vois pas d'où pourrait venir le soucis quelqu'un a une piste

  12. #12
    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
    c'est pas un problème qu'il soit déclaré ou non, c'est une problème que sa valeur est nulle .

  13. #13
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    116
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2008
    Messages : 116
    Points : 53
    Points
    53
    Par défaut
    tu as 1 piste pour m'aiguiller car je ne trouve pas

  14. #14
    Membre actif

    Inscrit en
    Octobre 2009
    Messages
    133
    Détails du profil
    Informations forums :
    Inscription : Octobre 2009
    Messages : 133
    Points : 295
    Points
    295
    Par défaut
    Content que le problème soit en dehors du code mais dans un jar annexe,
    je me posait des questions dessus aussi (même si je connais pas non plus toplink), ça paraissait improbable qu'une exception aussi grosse ne soit pas directement visible.

    En ce qui concerne ton customer, les seuls customers que tu utilises dans ta jsf proviennent de ton bean PList (et non pas de ton contrôleur, en fait, je pense que ton customer dans ton contrôleur ne sert a rien).
    Et justement dans ton bean PList, ton customer n'est jamais instancié (tu as bien le getter et setter mais tu n'appelles jamais le constructeur),
    le problème doit donc venir de la, il faut instancier ta variable avant de pouvoir l'utiliser dans ta jsf (surtout que tu appelles des attributs comme first_name ou last_name a l'intérieur de ta variable nulle)

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

Discussions similaires

  1. Réponses: 1
    Dernier message: 19/07/2013, 10h30
  2. Réponses: 3
    Dernier message: 09/04/2008, 11h24
  3. Erreur à l'exécution : java.lang.NoClassDefFoundError
    Par cro-marmot dans le forum Général Java
    Réponses: 10
    Dernier message: 10/01/2008, 23h22
  4. erreur de fou (java.lang.NoSuchMethodError : main)
    Par saih_tam dans le forum Langage
    Réponses: 5
    Dernier message: 27/04/2007, 21h36
  5. java.lang.NoSuchMethodError erreur java
    Par mistify dans le forum Langage
    Réponses: 7
    Dernier message: 24/10/2006, 16h06

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