Results 1 to 3 of 3
  1. #1
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Posts
    119
    Rep Power
    0

    Default Exception [TOPLINK-8030] (Oracle TopLink Essentials - 2006.8

    I need help with this exception
    javax.ejb.EJBException: Exception [TOPLINK-8030] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLExceptio n

    Exception Description: Unknown state or association field [idcliente] of class [com.selsa.linnet.entidad.Cuenta].; nested exception is:

    Exception [TOPLINK-8030] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLExceptio n

    Exception Description: Unknown state or association field [idcliente] of class [com.selsa.linnet.entidad.Cuenta].; nested exception is: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8030] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLExceptio n



    Exception Description: Unknown state or association field [idcliente] of class [com.selsa.linnet.entidad.Cuenta].

    at com.evermind.server.ejb.EJBUtils.getUserException( EJBUtils.java:346)

    at com.evermind.server.ejb.interceptor.system.Abstrac tTxInterceptor.convertAndHandleMethodException(Abs tractTxInterceptor.java:69)

    at com.evermind.server.ejb.interceptor.system.TxRequi redInterceptor.invoke(TxRequiredInterceptor.java:5 2)

    at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:119)

    at com.evermind.server.ejb.interceptor.system.DMSInte rceptor.invoke(DMSInterceptor.java:52)

    at com.evermind.server.ejb.interceptor.InvocationCont extImpl.proceed(InvocationContextImpl.java:119)

    at com.evermind.server.ejb.InvocationContextPool.invo ke(InvocationContextPool.java:55)

    at com.evermind.server.ejb.StatefulSessionEJBObject.O C4J_invokeMethod(StatefulSessionEJBObject.java:844 )

    at ProveedorController_RemoteProxy_19fi21p.getActivo( Unknown Source)
    sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)

    The entity is defined like this:
    Java Code:
    @Table(name = "\"ln1095dsldxpla\"")
    
    @IdClass(CountPK.class)
    
    public class Count implements Serializable {
       @Id
       @Column(nullable = false, insertable=false, updatable = false, name = "k_idterc_cli")
        private Integer idClient;
        @Id
        @Column(nullable = false, insertable=false, updatable = false, name = "k_idterc_pro")
        private Integer idProv;
        @Id
        @Column(nullable = false, insertable=false, updatable = false, name = "k_idplast")
        private Integer idPlastic;
       @Id
        @Column(nullable = false, name = "k_serie")
        private Integer idCount;
     
       @ManyToOne
    
        @JoinColumn(name = "k_idterc_pro", referencedColumnName = "k_idterc", insertable=false, updatable = false)    
    
       private Prov prov;
        @ManyToOne
        @JoinColumns({
          @JoinColumn(name = "k_idterc_cli", referencedColumnName = "k_idterc", insertable=false, updatable = false),
          @JoinColumn(name = "k_idterc_pro", referencedColumnName = "k_idterc_pro", insertable=false, updatable = false)
        })
    
        private Client client;
        @ManyToOne
           @JoinColumns({
           @JoinColumn(name = "k_idplast", referencedColumnName = "k_idplast" ),
           @JoinColumn(name = "k_idterc_pro", referencedColumnName = "k_idterc_pro" ),
           @JoinColumn(name = "k_idterc_cli", referencedColumnName = "k_idterc_cli" )
        })
    
        private Plastic plastic;
    any ideas?

  2. #2
    Jack is offline Senior Member
    Join Date
    Jun 2007
    Posts
    130
    Rep Power
    0

    Default

    mmm I don't know if it is the problem but I can see that you are defining a CountPK class, so you shouldn't use "ID" annotations in Count class, else in CountPK class
    check if it is the problem, and then tell me.
    good luck

  3. #3
    bbq
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Posts
    132
    Rep Power
    0

    Default

    check if the @NamedQuery are calling correctly the properties

Similar Threads

  1. Decent Book For JBuilder 2006
    By MayheM in forum New To Java
    Replies: 2
    Last Post: 08-12-2008, 01:33 PM
  2. Replies: 1
    Last Post: 03-08-2008, 06:41 PM
  3. MS SQL2005 to Oracle DB
    By bmongtangco in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-07-2007, 02:58 AM
  4. Oracle and JDBC
    By Eric in forum JDBC
    Replies: 3
    Last Post: 08-11-2007, 08:49 PM
  5. oracle problem
    By Peter in forum JDBC
    Replies: 1
    Last Post: 07-09-2007, 04:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •