• 0

[Java] How to suppress Fatal Errors in the log


Question

Hi everyone,

I have a Java program that does some XML manipulation. It throws this error in my log:

[Fatal Error] :-1:-1: Premature end of file.

It is not causing any problems and it is beyond my control to fix it. Is there any way I can suppress these errors and clean up my log? Or maybe, change the message to be more friendly?

Thanks for any help. :)

Recommended Posts

  • 0

Aww, I sense a Rimmer & Lister type of relationship between you guys. :geek:

On a more serious note, although an agreement was never reached, I would like to thank you both for a well informed and informative topic. It makes a refreshing change to see a disagreement on any forum be discussed in such a manner.

SilverB.

  • 0

Well SilverB I do feel like I spend most days performing tasks too menial for the skutters.

  Quote
Lister: D?ya think Wilma?s sexy?

Cat: Wilma Flintstone?

Lister: Maybe we?ve been alone in deep space too long, but every time I see that body, it drives me crazy. Is it me?

Cat: Well, I think in all probability, Wilma Flintstone is the most desirable woman that ever lived.

Lister: That?s good. I thought I was going strange.

Cat: She?s incredible!

Lister: What d?ya think of Betty?

Cat: Betty Rubble? Well, I would go out with Betty ? but I?d be thinking of Wilma.

Lister: This is crazy. Why are we talking about going to bed with Wilma Flintstone?

Cat: You?re right. We?re nuts. This is an insane conversation.

Lister: She?ll never leave Fred, and we know it.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Minor update.  All is going well for the most part.  Picked up some new information today though from my server logs. Just discovered a new #ByteDance scraper's useragent; imageSpider.  More specifically: "Mozilla/5.0 (compatible; imageSpider; scrapedia-receive@bytedance.com)" Added to my list. I'm also adding #Alibaba IP ranges to a "drop" rule on my firewall because they've aggressively scraping me (hundreds of thousands of requests per day), but they're not using accurate user agents.  They're ignoring robots.txt (big surprise) and pretending to be everything from Chrome 114 to Internet Explorer 6 and not self identifying as a bot.
    • TLDR: Doom 2016 style reboot, which is what we have been asking since Bungie announced this "reboot"
    • I'm gonna take the bait but here we go: It's closed source as far as Linux goes but it is not locked to the Steam as a gaming platform. Yes, you need a Steam account to start using SteamOS, but after that you can use whatever Linux compatible launcher you want, ie Heroic or Lutris It doesn't need an antivirus, it's Arch Linux. Anticheats work, depending on the game and publisher. Many games with EAC work. None with kernel level malware anticheat work, and they should NOT work on Windows either (MS really needs to block this). It is compatible with Linux applications, Flatpak applications. You can also enable regular Pacman/AUR yourself. It's disabled, not removed, out of the box to protect the OS from you But surely you do know you don't have to use SteamOS on the Steam Deck, right?
    • Preparation of bringing subscription model to WhatsApp. Pathetic and greedy.
    • Doing that has only worked for me with the Enterprise version.
  • Recent Achievements

    • Week One Done
      Peterlll06 earned a badge
      Week One Done
    • One Month Later
      gatilogistic earned a badge
      One Month Later
    • One Year In
      Custom Greek Shirts earned a badge
      One Year In
    • One Month Later
      Custom Greek Shirts earned a badge
      One Month Later
    • Week One Done
      Custom Greek Shirts earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      673
    2. 2
      ATLien_0
      281
    3. 3
      Michael Scrip
      222
    4. 4
      +FloatingFatMan
      190
    5. 5
      Steven P.
      145
  • Tell a friend

    Love Neowin? Tell a friend!