0 Replies Latest reply on Mar 10, 2016 10:07 AM by John82

    An error occurs when attempting to display directory. oracle.jbo.NoDefException: JBO-25058

    John82

      Hi
      Help me find the error. The error occurs when attempting to display a directory.


      ===============================================================================

      <10.03.2016 11:58:35 MSK> <Warning> <oracle.adf.controller.faces.lifecycle.Utils> <BEA-000000> <ADF: Adding the following JSF error message: Определение id типа Атрибут в ViewDefUserState13_209 не найдено.

      oracle.jbo.NoDefException: JBO-25058: Определение id типа Атрибут в ViewDefUserState13_209 не найдено.

              at oracle.jbo.server.ViewObjectImpl.findAttributeDef(ViewObjectImpl.java:7414)

              at oracle.adf.model.bc4j.DCJboDataControl.getAttributeDefs(DCJboDataControl.java:2612)

              at oracle.adf.model.bean.DCBeanDataControl.getAttributeDefs(DCBeanDataControl.java:1979)

              at oracle.adf.model.binding.DCIteratorBinding.getAttributeDefs(DCIteratorBinding.java:3321)

              at oracle.jbo.uicli.binding.MyIteratorBinding.getAttributeDefs(JUAccessorIteratorDef.java:502)

           ........

      ================================================================================

      @MappedSuperclass

      public abstract class PObject implements Serializable{

       

          @Id

          @GeneratedValue(strategy = GenerationType.IDENTITY)

          @Column(name = "ID")

          private int id;

       

          @Column(name = "DATE_CREATED")

          private Timestamp dateCreate;

       

          @ManyToOne(targetEntity = User.class)

          @JoinColumn(name = "USER_CREATED_ID")

          private User userCreated;

           ...

      }

       

      @MappedSuperclass

      public abstract class PCatalog extends PObject implements Serializable{

       

          @Column(name="NAME",nullable = false,unique = true)

          private String name;

       

          @Column(name="DESCRIPTION")

          private String description;

       

          @Column(name="ICON_ID")

          private int iconId;

           ...

      }

       

      @Entity

      @NamedQueries( { @NamedQuery(name = "allUserState", query = "select o from UserState o"),

                       @NamedQuery(name = "userStateByView",query = "select o from UserState o where o.view=:view") })

      @Table(name="users_states")

      public class UserState extends PCatalog implements Serializable {

       

          @SuppressWarnings("compatibility:-6651683455929413883")

          private static final long serialVersionUID = 4319296546404945000L;

         

          @OneToMany(targetEntity = User.class,mappedBy = "state")

          private Set<User> users;

         

          public UserState(){

          }

       

          public Set<User> getUsers() {

              return users;

          }

      }

       

      ================================================================================

       

      PersistenceProvider (org.eclipse.persistence.jpa)

      JDeveloper 11g2 Weblogic Server 11gR1