4 Replies Latest reply on Oct 11, 2001 2:16 PM by John Baker

    does JBoss have a problem with value objects

    Anil Tatineni Newbie

      i am using a session bean which extracts data from a database and stores the data in an object and returns to the user. this value object is implementing java.io.serilizable interface. but when i try to refer to this resulting object i get java.lang.reflect.UndeclaredThrowableException

      which doesnt explain much. my value object looks like this.


      // your java code here//Source file:
      
      package junk.ejb.Topic;
      
      
      public class Topic implements java.io.Serializable
      {
       private int Topic_ID;
       private java.lang.String Name;
       private int Display_Order;
       private int Contact_Id;
       private int Parent;
      
       public Topic()
       {
      
       }
      
       public Topic(int topic_id, java.lang.String name, int display_order, int contact_id, int parent)
       {
       this.Topic_ID = topic_id;
       this.Name = name;
       this.Display_Order = display_order;
       this.Contact_Id = contact_id;
       this.Parent = parent;
       }
      
      
       public int getTopic_ID()
       {
       return Topic_ID;
       }
      
       public int getContact_Id()
       {
       return Contact_Id;
       }
      
       public String getName()
       {
       return Name;
       }
      
       public int getDisplay_Order()
       {
       return Display_Order;
       }
      }
      
      


      has anyone had this problem before??. if u did how did u solve it.
      thanks