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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:58:39+00:00 2026-05-15T09:58:39+00:00

I know that a custom JVM can behave a little differently, and I’m trying

  • 0

I know that a custom JVM can behave a little differently, and I’m trying to see if my observed behavior is the same as the real JVM. Also, I’m looking for some way to consistently make this stuff work.

The worst part I’ve been seeing is that exceptions are being completely eaten by the JVM. For instance:

public myMethod(String test) extends Remote {
    if(test.equals("Hey"))
        doSomething()
}

I’ve seen two responses in my code to passing in null for “test”. One is that it logs “NullPointerException”. Nothing else, just that string.

The other is it logs NOTHING AT ALL. Code execution just stops, and nothing after this code is run (even if there is a try/catch around the calling method)

Also, after the exception, the calling thread never seems to continue (making bugs like this amazingly hard to track down).

If I throw a try/catch around this method and log the error, it works fine.

Admittedly I’m working on an older JVM with custom code, so I don’t expect much help, but has anyone seen behavior like this? Maybe in an old JVM? Is it supposed to throw the exception over the wire, or is it supposed to print a stack trace on the remote system?

Is wrapping the exception in a RemoteException and rethrowing it a reasonable solution?

Any suggestions? (Aside from spec a new JVM–this is so far out of the realm of possibility that it isn’t even funny)

  • 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-15T09:58:40+00:00Added an answer on May 15, 2026 at 9:58 am

    This ended up to be reproducible behavior. The exceptions thrown were not being caught/rethrown at an intermediate layer that I didn’t have access to–the thread calling my code was swallowing the exception.

    It was not a VM issue at all.

    Just putting this in so I can accept an answer for it.

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

Sidebar

Related Questions

How can I in code of the custom Qt widget know that it is
I know that i can set custom colors to items when i add them
I am trying to write an app that uses a custom keyboard. How can
I know that if I created a custom control, say MyLabel in App_Code ..
Does anyone know if its possible to turn off dreamweavers custom icons that it
Anyone know how to set the custom 404 Error pages that the Visual Studio
I know that I can hijack a form by showing a login form in
I have a library that programmatically constructs a UIView that exhibits my custom behavior.
I know that if I need a custom selector for a field in django-admin
I have a custom script that takes hostnames as parameters. I know that I

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.