Solved

java.lang.RuntimeException: Export restriction: SunJSSE only

Posted on 2002-04-30
6
1,358 Views
Last Modified: 2008-03-04
In my program i am getting this exception
java.lang.RuntimeException: Export restriction: SunJSSE only  

can somebody tell me what could be reason for the same
0
Comment
Question by:anuj_roy
6 Comments
 
LVL 2

Expert Comment

by:userquin
ID: 6980491
Hi:

If you are not in US or Canada (JSSE domestic) you cannot put your own classes such as SSLSocket. Next text is extracted from JSSE 1.0.2 (JDK1.3) documentation:

JSSE 1.0.2 is designed to allow other implementations of certain classes to be plugged in seamlessly, thus providing alternate protocol and Public Key Infrastructure (PKI) implementations. (Note: there are currently a number of restrictions on pluggability, especially for non-domestic users. Basically, it is not possible for global users to use SSLSocketFactory, or SSLServerSocketFactory implementations other than the ones supplied by the SunJSSE provider.

Hope this help.

Bye.

J.
0
 

Author Comment

by:anuj_roy
ID: 6980560
hi,
i am using only the default classes .in my case i am trying to make a connection from a iPlanet portal server to weblogic server.Is it because of the key size that is there in the certificate.i beleive the key size is 512bit.do u have any idea about it.
anuj
0
 
LVL 2

Expert Comment

by:userquin
ID: 6980592
Hi:

Could you send full stack trace?

Bye.

J.
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

Author Comment

by:anuj_roy
ID: 6981017
i am including the full stack trace

java.lang.RuntimeException: Export restriction: SunJSSE only
     at java.lang.Throwable.fillInStackTrace(Native Method)
     at java.lang.Throwable.fillInStackTrace(Compiled Code)
     at java.lang.Throwable.<init>(Compiled Code)
     at java.lang.Exception.<init>(Compiled Code)
     at java.lang.RuntimeException.<init>(RuntimeException.java:47)
     at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.checkCreate([DashoPro-V1.2-120198])
     at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([DashoPro-V1.2-120198])
     at com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer([DashoPro-V1.2-120198])
     at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1.2-120198])
     at com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>([DashoPro-V1.2-120198])
     at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>([DashoPro-V1.2-120198])
     at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])
     at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])
     at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([DashoPro-V1.2-120198])
     at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getOutputStream([DashoPro-V1.2-120198])
     at com.oneport.connector.https.Connector.getOS(Connector.java:118)
     at com.oneport.connector.https.MessageHandler.sendMessage(MessageHandler.java:55)
     at OnlineMessageHandler.sendMessage(OnlineMessageHandler.java:83)
     at OfflineListener_Svt.doPost(OfflineListener_Svt.java:64)
     at javax.servlet.http.HttpServlet.service(Compiled Code)
     at javax.servlet.http.HttpServlet.service(Compiled Code)
     at com.netscape.server.http.servlet.NSServletRunner.Service(Compiled Code)
0
 
LVL 9

Expert Comment

by:Venci75
ID: 7992736
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
PAQ'd and pts refunded
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venci75
EE Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8048329
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jar file executable 12 51
nextBoolean(double p) for Random class 3 40
Groovy problem when using SOAPUI : DispatchException occurred 7 43
jsp login check 12 27
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now