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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:33:03+00:00 2026-05-22T23:33:03+00:00

I am really struggling with this issue as it seems to occur randomly for

  • 0

I am really struggling with this issue as it seems to occur randomly for me. When I call,

Desktop.browse("some url");

Internet Explorer will not display. The exception message is as follows,

The requested lookup key was not found in any active activation context.

When it occurs it occurs consistently until I restart the machine, but it eventually occurs again.

The workstations that seem to have this problem are running Windows XP with Internet Explorer 8 set as the default browser.

EDIT: I forgot to mention that if I open up Internet Explorer directly and navigate to the URL in question then it will work fine.

EDIT2: This seems to happen if Desktop.browse is invoked and then is called again at least 15 minutes later. Restarting the application now seems to fix the problem.

  • 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-22T23:33:04+00:00Added an answer on May 22, 2026 at 11:33 pm

    I narrowed down the problem and discovered what was TRULY causing this, it had nothing to do with the time after all.

    java.awt.Desktop.browse("some url"); was throwing this error because in a previous step in the application an ActiveXObject was opened programmatically using the JACOB framework.

    The developer that wrote this code using this ActiveXObject neglected to bother releasing his resources at all. For some reason, this ActiveXObject in memory was preventing or screwing with the Dispatch call to the default OS browser in java.awt.Desktop class. I suppose this makes sense.

    I fixed this by declaring a JACOB transaction, and by releasing all resources in a finally block like so:

    ActiveXObject ao1 = null;
    ActiveXObject ao2 = null;
    ComThread.initMTA();
    try {
      ao1 = new ActiveXObject("blaa.blaa");
      ao2 = new ActiveXObject("haa.haa");
      // business logic
    } finally {
      if (ao1 != null) {
        ao1.safeRelease();
        ao1 = null;
      }
      if (ao2 != null) {
        ao2.safeRelease();
        ao2 = null;
      }
      ComThread.Release();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been struggling with this issue for some days now and I really
For some reason I'm really struggling with this. I'm new to wpf and I
really struggling to resolve this issue. using nhibernate Im trying to join two different
I'm really struggling to iron out this issue. When I use the following code
I am really struggling with the issue below and need some help...I have found
I have been struggling with this issue for about 10 hours straight. I really
OK i am really struggling with this! I know had to add an image
I'm really struggling with this now, been on it for ages and asked two
Hey, I'm really struggling with this one. I'am trying to port a small piece
Really struggling to figure this out. Just trying to take in data from php

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.