I am trying to run a Java webstart application which is launched from a html page. While loading I get an alert with the message "Automation server can't create object" a couple of times after which the applications starts and works fine. The alerts come up only on one of the workstations. Any pointers on where I should look?
Regards,
Dutch
try the following IE setting: "Initialize and script ActiveX control not marked as safe."
May or may not apply to your case, but there are reported problems with the JScript Runtime throwing up errors when starting up Applets or Java WebStart applications when you have specific network settings.
Every now and again, there's a Windows Update that generates such a bug and another one that follows to fix it and you'll see some of these errors. Yours might be one of these.
Usually the workaround in-between is to either:
go to IE's Network Settings and uncheck "auto detect settings" or any PAC file setting
or go to the Java control panel's Network Settings and disable "Use browser settings" or other settings to use a direct connection instead.
Obviously, that workaround is only valid if you do not have to go through a proxy...
Related
I'm using Edge for automated tests with selenium-webdriver. I have faced an issue which prevents downloading of xml files.
Error message
Do you have any ideas how can I switch off Microsoft Defender SmartScreen when starting Edge browser? For chrome browser it can be done by setting option prefs.put("safebrowsing.enabled", false);. Is there anything similar for Edge?
The error message pop up is not controlled by Microsoft Defender SmartScreen so there's no use to switch it off.
I know that you want to control it with Selenium but there's no Edge option that can override the warning in Selenium. The solutions in other threads are for old versions of browsers. safe browsing is now the default behavior so it won't work either. There's not much Selenium can do with the warning.
If you want to get rid of the warning when downloading xml files, you can only set this group policy first, then use Selenium to automate.
For more information, you can also refer to this thread. In the accepted answer of the thread, it uses PowerShell script to update Windows Registry to set the group policy, you can also use it as a workaround.
We are trying to download something from GE that uses Java to download when logging into the site. This is a windows 7 Professional PC. I have other computers that are able to do this successfully. Here is my order of operations:
Log into the site and select the file I want to download
Click download
It takes me to the page that says it will start in a few seconds but nothing happens. It is supposed to have a box that asks for Java to run.
I have reinstalled Java fresh and still nothing. Tried with multiple user accounts. Added the site to the list of exceptions in the firewalls and Java configuration. I have tried an earlier version of Java. This happens in Mozilla, Chrome and IE. I have made sure that the Java plugin shows up and is enabled. I just cant think of what I am missing. And since we are a contractor GE is not going to help us. Can anyone here think of anything?
Are you sure you have the Java plugin enabled? e.g. in Firefox, go to Settings, Plugins, and change Java Platform SE8 'Next Generation Java Plugin' to 'always activate'?
This sounds similar to the issues I had with Cisco WebVPN, Java-style. Once you have Java installed correctly and set as a plugin for any of the browsers you would like to use, see below.
Before you even start looking at browsers - if you think it is already set up correctly
Look at your Anti-Virus programs or anything else that could prevent it from working. McAfee Host Intrusion Protection is known to cause many Java programs to fail. Kapersky had issues, a while back, with Java on Windows (Java Applets not loading in Windows 8 ).
You must have a 64-bit browser to use 64-bit Java (also mentioned in the Chrome link below).
See below for any specific things that can be modified in the browser.
Chrome 43 is the more complicated browser to set up. They have a dedicated page with instructions.
How do I use Java with the Google Chrome browser?
Firefox 38 will prompt you.
In Internet Explorer 11, it's under Internet Options->Security. I recommend adding the hostname the applet is on as a Trusted Site (Select Trusted Sites and click the Sites button, then add the first part of the url). Click the Custom level button and make sure that Scripting of Java applets is not disabled.
If you still have problems with the applet:
Verify your Java version will work with the applet you are accessing
Verify the plugin is enabled for the browser through the Java Control Panel, which is available in Windows Control Panel, or on Mac/Linux, execute it from the JDK directory ($JAVA_HOME/ControlPanel ).
I ended up fixing the issue. I had to allow their UK site on the list for Java and enable the SSL 2.0 for HTTP in Java config as well
I want to develop a Java application, hoping that the system never goes to hibernate when my application running.
The application will be deployed in Windows.
Is there any way to realize this?
There is nothing in java for this.
There are windows API to prevent hibernation. See this thread Prevent windows from going into sleep when my program is running?
You could all call them via JNI or JNA
There are two ways to avoid your system going into Hibernate mode when your application is running:
1) I don't know which Windows operating system you are talking about; but we can disable or enable Hibernation at an operating system level. The enabling/disabling method might differ for different Window versions.
2) Another way would be to write a C++ program that uses Win32 API to interact at system level. After writing the code, you can export it as a DLL library and then use it in the Java program. Below link provides a sample code that will help you achieve similar functionality.
http://www.codeguru.com/cpp/w-p/system/messagehandling/article.php/c6907/JavaC-PC-Standby-Detect-and-Prevent.htm
I had similar problems when i wanted to connect via RDP to my pc, i left teamviewer on, but my pc went to hibernate/sleep and this is my solution how i keep my pc "active".
Try this, go to Control Panel->Power Options:
and there u can select power plan, click on "Change plan settings" and u will get to this screen:
Hope that this will help u.
If u need some programmatic solution, try with this link:
How do you keep the machine awake?
I am trying to run my applet in a browser, chrome/IE but I get the following message:
Your security settings have blocked a local application from running
Due to Oracle, changing security level in java control panel from high to medium will solve the issue, but it does not. I have even tried the low level, and custom level too enabling all applications to run without any prompt. I have also changed the advanced setting to allow unsigned applets to run.
It does not work in any way.
Any help is appreciated.
Do the following
Go to IE
Tools -> Internet Options
Go to the Advanced Tab
Under Java(Sun) Select the check box saying 'Use JRE ... for applet' (requires restart)
Select Apply/Ok. Restart IE and try loading the applet again.
You can either make sure that the applet is signed by a valid cert, and it is not a self-signed cert. Or if you just want to bypass the warning, you can add the domain address to Exception Site List.
Java Control Panel -> Security tab -> Exception Site List
and also you may also try to add the website to the Trusted Zone in your IE if you are sure that the website is safe. In Trusted Zone, there are fewer restrictions to block you from running applet and running the out-of-date ActiveX.
when i try to debug the java programe , it says "Cannot find a free socket for the debugger in eclipse".Could you explain how to resolve the error ?
I have found the solution (at least in my case).
Eclipse was installed on a company share drive once I moved it to my local C drive everything worked fine.
As in this thread, you might want to explicitly mention the path of the JVM you are using to execute eclipse.
See this eclipse.ini as an example.
bug 12132 mentioned incorrect socks proxy information.
bug 27654 refered to a configuration problem (firewall, antivirus?)
The usual checks (some are Windows specifics) are:
switch off the vista firewall (it wasn't activated, to be precise)
add a firewall rule for java.exe/javaw.exe/eclipse.exe and reactivated it (just to be sure it didn't interfere although it was deactivated)
deactivated my antivirus tool (avira antivir)
ran eclipse as administrator
disabled UAC
activated/deactivated wired and wireless network interfaces
changed priorities of the network interfaces
used different jvms (1.6 and 1.7)
created an entirely new workspace
I encountered this error message when migrating to a virtual Win10 machine (Eclipse 2019-09) as of November 2019.
My solution was as follows:
First, like Dan above, make sure you do not start eclipse.exe from a network drive, but from C:...\eclipse-dir.
After I did this, Windows Defender Firewall came up with a dialogue informing me that it had 'blocked some features of this app' (eclipse.exe). After I pressed the 'Allow access'-Button, I was able to debug as I had been used to.
It appears that you have to add eclipse.exe to the applications that can communicate through Windows Defender Firewall. If you need to do this manually, go to Control Panel -> System and Security -> Windows Defender Firewall and choose Allowed apps. Press 'Change settings' and 'Allow another app...' to navigate to your eclipse.exe using the file picker dialogue.