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 7776533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:54:35+00:00 2026-06-01T17:54:35+00:00

I have a simple RMI server which stores files in a map and returns

  • 0

I have a simple RMI server which stores files in a map and returns them when requested. The type of the files stored in the map is Object. I have done this so I won’t need to import library with the other part of the project containing the specific file stored( is there any other way to do it ?).

Shouldn’t I be ok without importing, since the type stored is Object? At the same time with the error I am getting java Finalizer thread crash . Here is the stack :

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.lang.ClassNotFoundException: util.MyClass (no security manager: RMI class loader disabled)
Invalid memory access of location 0x0 rip=0x7fff91016390 <<< this is from crash
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:334)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)

Also here is some of the code from Client :

public void uploadProjects(List<MyClass> projects) {
        try {
            Object obj = projects;
            rmiServer.upload(channel, obj); // <<<< exception on this line
        } catch (RemoteException ex) {
            Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

And here is the interface method :

void upload(String channel, Object projects) throws RemoteException;

Am I doing something wrong there? Shouldn’t it work fine with Object without needed import of the specific class?Also I have tried using Security manager in the past but it only lead to more trouble and had to do AllPermissions for it to work(on other project)…

The crash doesn’t happen always but it must be cause by RMI.

  • 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-01T17:54:36+00:00Added an answer on June 1, 2026 at 5:54 pm

    The type of the objects stored in the Map is whatever you put into it, and whatever type that is must be accessible to the client via its CLASSPATH.

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

Sidebar

Related Questions

I have a very simple Java RMI Server that looks like the following: import
I have simple application with single AppDomain which is periodicaly launched on a server.
I have two applications communicating via RMI, a slave server (of which there will
I have a simple RMI 'compute' server application (similar to this ) that accepts
I have simple form. <form target=_blank action=somescript.php method=Post id=simpleForm> <input type=hidden name=url value=http://...> <input
I have simple SSIS package which reads data from flat file and insert into
I have simple SSIS package in which On Error event handler I have created
I have functioning RMI client-server system. The server's host information is known to the
I have simple node js http server. var http = require(http); http.createServer(function(request, response) {
I am writing a very simple RMI server, and I am seeing intermittent java.rmi.NoSuchObjectExceptions

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.