Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.StackOverflowError

843802Jun 4 2002 — edited Jun 14 2002
Hi,

I get the following exception while executing a
java app using Java Web Start(The app works fine while running
standalone i.e., java -cp ... <app>...).

java.lang.StackOverflowError
at java.lang.ClassNotFoundException.<init>(Unknown Source)
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.security.Security.getImpl(Unknown Source)
at java.security.MessageDigest.getInstance(Unknown Source)
at sun.security.util.ManifestEntryVerifier.setEntry(Unknown Source)
at java.util.jar.JarVerifier.beginEntry(Unknown Source)
at java.util.jar.JarVerifier$VerifierStream.<init>(Unknown Source)
at java.util.jar.JarFile.getInputStream(Unknown Source)
at com.sun.javaws.security.JNLPClassPath$4.getInputStream(Unknown Source)
at com.sun.javaws.security.Resource.getBytes(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.defineClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.access$1(Unknown Source)
at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.security.Security.getImpl(Unknown Source)
at java.security.MessageDigest.getInstance(Unknown Source)
at sun.security.util.ManifestEntryVerifier.setEntry(Unknown Source)
at java.util.jar.JarVerifier.beginEntry(Unknown Source)
at java.util.jar.JarVerifier$VerifierStream.<init>(Unknown Source)
at java.util.jar.JarFile.getInputStream(Unknown Source)
at com.sun.javaws.security.JNLPClassPath$4.getInputStream(Unknown Source)
......
......

My JNLP launch.jnlp is:
<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://localhost:80/TelycoWebApp/app" href="launch.jnlp">
<information>
<title>Demostracion de cliente Java</title>
<vendor>IT Deusto</vendor>
<description>Aplicacion de Telyco</description>
<icon href="images/logo.gif"/>
</information>
<resources>
<j2se version="1.3" maximum-heap-size="600m"/>
<jar href="TelycoClient.jar"/>
<jar href="iaik_jce.jar"/>
</resources>
<application-desc/>
<security>
<all-permissions/>
</security>
</jnlp>

The Java code is:

java.security.Security.insertProviderAt(new iaik.security.provider.IAIK(),1);
iaik.security.provider.IAIK.addAsProvider(true);
// The error is in the following line:
javax.crypto.KeyGenerator kg = javax.crypto.KeyGenerator.getInstance("DES");
javax.crypto.SecretKey key = kg.generateKey();
.......

Can Anyone help me?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2002
Added on Jun 4 2002
1 comment
424 views