Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: serialization problem

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default serialization problem

    i have a Java application made using NetBeans and i have been trying to serialize an object in the main jframe but it's not working can somebody please help me figure out the problem


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: serialization problem

    Wow, could you please hand us some more information, what object are you trying to serialize and how are you doing it?

    // Json

  3. #3
    Junior Member
    Join Date
    Nov 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: serialization problem

    Hi,

    I have like 30 classes in the application. The main superclass is business then some classes are derived from business and then some others are derived from the ones derived from business and so on. I wanna save the business object every time i stop the application and load it every time i run it so i have used objectinputstream and objectoutstream to do that (i have done that in the main jframe of the application, which has the main class).
    but the problem is that when i run the application an exception is thrown saying that Business.order.masterordercatalog is not serializable
    so do all the classes in the application need to implement Serializable in order to save the business object?

    Thanks you for showing interest in this thread.

Tags for this Thread