• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1329
  • Last Modified:

Java applet stopped working in Java 7.21

Hi,

We have a Java applet client in our application. Since we updated our machines to Java 7.21, it stopped working. This is what I got on console.

Java Plug-in 10.21.2.11
Using JRE version 1.7.0_21-b11 Java HotSpot(TM) Client VM
User home directory = C:\Users\Cityuser
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------



It just hangs after this. Its Windows 7 64 bit with 32 bit Java. Its not working on any browser(chrome,IE,firefox etc)

It think it is not working because of some security related changes in Java.

Moreover, Applet was running intermittently means it did work on some versions of Java 7 and stopped on others versions since we moved to Java 7. Strange part is that applet is running fine on one developer machine. We compare settings of this machine with rest of all machines, everything is same.

Now our customer wants use Java 7.21 ASAP. Anybody could please help us to resolve it.

Cheers
0
IPA_tech
Asked:
IPA_tech
  • 6
  • 6
  • 3
1 Solution
 
CEHJCommented:
Its Windows 7 64 bit with 32 bit Java.
Try using 64 bit plugin after uninstalling that one:
http://java.com/en/download/faq/java_win64bit.xml
0
 
IPA_techAuthor Commented:
Hi CEHJ,

Thanks for the reply. We tried and even its not working on Windows XP 32 bit. Everything is 32 bit.

Is there any change in Java security manager which stops the applet from running?

Cheers
0
 
rrzCommented:
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
CEHJCommented:
Starting with Java SE 7 Update 21 in April 2013, all Java Applets and Web Start Applications should be signed with a trusted certificate.
For the best possible user experience, your Applets and Web Start Applications should be signed.
Java SE 7u21 will introduce changes to Java browser plug-in behavior, encouraging application authors and vendors to sign code with a certificate from a trusted Certificate Authority.
So - is it mandatory to sign or not!?
0
 
IPA_techAuthor Commented:
I am signing the jar using "C:\Program Files\Java\jdk1.6.0\bin\JARSIGNER.exe" etc. Is there a different way for 7.21?

Java browser plug-in behavior?
Do I need to install any new plugin
0
 
CEHJCommented:
jarsigner is the signing executable. ALL jars of the applet need to be signed
0
 
IPA_techAuthor Commented:
Yes we are signing our own jars only. I think You mean even the third party also...right?

If yes then how can I sign the third party jars which are quite old? I dont have the code or anything?
0
 
CEHJCommented:
If yes then how can I sign the third party jars which are quite old? I dont have the code or anything?
You don't need the code
0
 
IPA_techAuthor Commented:
Let me try it tomorrow then and will post my feedback. thanks
0
 
rrzCommented:
CEHJ>So - is it mandatory to sign or not!?
I don't know. All I can post is my experience on my desktop. I used to be able to run my old  applets, from a local HTML file, without signing them. Now (with version  1.7.0_21-b11), they throw
java.lang.SecurityException: Your security settings have blocked a local application from
running
I tried to change the Security Level (see Security tab in Java Control Panel) but it seems that High is the only acceptable level. If I do lower the level in the control panel, then it automatically reverts back to the High level. I am able to self-sign my applets and run them (after clicking the annoying prompts).

IPA_tech,
It is strange that you don't get any messages in your Java Console.
You could go into your Java Control Panel and on the Advanced tab under debugging check Enable tracing and click Apply. Try running again afterwards.
What happens when you go to
http://www.java.com/en/download/testjava.jsp.
http://docs.oracle.com/javase/tutorial/deployment/applet/getStarted.html 
Do the applets run ? Do any prompts come up? Do you see any messages in the Java console when tracing is enabled?
0
 
CEHJCommented:
Yes. Sounds like a massive (and panicked) kludge
0
 
IPA_techAuthor Commented:
rrz@871311  ---> Tracking is already enabled and I can't see anything except what I mentioned above. Even testjava.jsp says everything is fine.

I will sign all jars and then try today. Will back once I complete it.
0
 
rrzCommented:
>Tracking is already enabled and I can't see anything except what I mentioned
I am surprised by that. When I go to Sun's testjava.jsp my Java Console prints a couple hundred lines. They include security, network, and basic applet lifecycle messages.
Did you check your log directory? It should be in your user home directory. If you don't know where your log directory is located, then focus on your Java Console and type  s  on your keyboard. Look for the deployment property
deployment.user.logdir
0
 
IPA_techAuthor Commented:
This solution was one part of the issue and helped me to fix the issue. I have made few changes like changed the location from etc folder to user folder, merging my jars and etc.
0
 
CEHJCommented:
Err ... rrz@871311 made a larger contribution to that than i. Why no points split?
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 6
  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now