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

  • Home
  • SEARCH
  • 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 3223202
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:04:47+00:00 2026-05-17T16:04:47+00:00

The server starts fine, but the error occurs when I try to add any

  • 0

The server starts fine, but the error occurs
when I try to add any job from the Client. I get the
following error

java.rmi.MarshalException: error marshalling arguments; nested exception
is: 

    java.io.NotSerializableException: snaq.db.CacheConnection
    at Production_Stub.addGRN(Production_Stub.java:1515)
    at ProductionServices.addGRN(ProductionServices.java:21)
    at PlanningServices.addGRN(PlanningServices.java:22)
    at Planning.addtoGrn(Planning.java:9949)
    at Planning.saveAllBundleRelatedTables(Planning.java:9582)
    at Planning.savebundlesheet(Planning.java:9251)
    at Planning_Skel.dispatch(Planning_Skel.java:6555)
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:342)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
    at sun.rmi.transport.Transport$1.run(Transport.java:148)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.io.NotSerializableException: snaq.db.CacheConnection
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1059)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
    at Production_Stub.addGRN(Production_Stub.java:1513)
    ... 14 more

What is the solution?

  • 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-05-17T16:04:48+00:00Added an answer on May 17, 2026 at 4:04 pm

    What is going on here is that one of the object that you are trying to send over RMI is an instance of the class snaq.db.CacheConnection, or (more likely) contains a reference to one somewhere.

    This ain’t going to work. The CacheConnection class is not serializable, and there’s a good chance that cannot be made serializable.

    A possible cure for this is to mark the field (or fields) of type CacheConnection in the classes you are trying to send as transient.

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

Sidebar

Related Questions

suppose a client starts a selenium session on an RC server, but at the
My Apache server works fine without -DSSL, but does not start with SSL. This
When i try to debug my webapp it starts up the tomcat server and
I'm writing a python client to accept job messages from a RabbitMQ broker and
I am building a Client server app in java ,here is my code Client
When I try to launch my rails project using rails server thin it starts
We have an application that starts a WCF server and the app reads from
I need to check If a column value (string) in SQL server table starts
We have for all our tests a method which starts a Jetty Server to
How can I run solr on a windows server, so it starts up automatically?

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.