Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8111035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:57:43+00:00 2026-06-06T01:57:43+00:00

I m making an rmi client server based program which is suppose to pass

  • 0

I m making an rmi client server based program which is suppose to pass Image object through remote object interfaces. The Client receives an Image from the Server.

Following is my code….

At Client

       public class ImageReceiver
       {
                  public static ImageIcon imageicon;

                  public static void main(String Data[])
                  {

                         imageicon = new ImageIcon(url);
                         imageicon=remoteObject.getImageFromServer();
                  }

        }
        // The Details regarding the binding of remote objects are excluded since they are worling fine...

sendImage is an interfacing method implemented…

        public ImageIcon getImageFromServer() throws RemoteException;

At Server

           public ImageIcon getImageFromServer()
           {
                  ImageIcon ic = new ImageIcon("local url specified");
                  return ic;
           }

         // Much of the Exceptions and other binding details are excluded for simpicity.....

Now the problem is, i m getting an error called

          java.rmi.UnmarshalException: error unmarshalling return
          nested exception is: java.io.EOFException               

Now, Actually i don’t have much of any idea how it came…
The two major doubts I have is….

Is it possible to send ImageIcon objects through rmi…?? If yes, What could be probably the mistake here. If not, does there exist any simple way to pass Image based objects as parameter through rmi…??

I’ve also heard somewhere that javax.swing.ImageIcon is serial….but it’s not happening in my case

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T01:57:45+00:00Added an answer on June 6, 2026 at 1:57 am

    The same problem occured…when i tried to pass ImageIcon object through RMI….

    After a long checking….i found the url i specifed was incorrect…..

    it happens…the complier in this often shows Unmarshall exception exactly as you shown…….

    try checking your local URL…..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i m making a rmi based client server application. At Server side, it consists
Making a small WCF test program which is based on a Store that has
I have some code which I am making available via RMI. If my program
Making a simple program which will generate a multiple choice form. I have an
Long story short, I have an RMI Server and Client. The Server and Client
Making an adobe flex ui in which data that is calculated must use proprietary
Im making a login/logout class that logs users in, sets cookies based on user's
I'm coding an application that requires remote binding, i.e., bind a remote object to
Making a flash page that can cycle through these three images on mouseclick. For
I am participating in the development of a distributed solution, based on RMI, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.