Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / January 2005

Tip: Looking for answers? Try searching our database.

ClassCastException in SSLContext

Thread view: 
Amrish Bharatiya - 19 Jan 2005 07:48 GMT
Hi,

When i try to get instance of SSLContext by SSLContext.getInstance("SSL") method i get a class caste exception shown below

java.security.NoSuchProviderException: No such provider: IBMJSSE version 1.4
    at com.ibm.net.ssl.d.getImpl(Unknown Source)
    at com.ibm.net.ssl.SSLContext.getInstance(Unknown Source)
    at com.aetna.health.patientmgt.proxies.ServletServicesUtilityBaseClass.<init>(ServletServicesUtilityBaseClass.java:77)

cany anyone please help me out

Amrish
Rogan Dawes - 19 Jan 2005 11:33 GMT
> Hi,
>
[quoted text clipped - 8 lines]
>
> Amrish

Looks more like a "NoSuchProviderException" to me.

I would say that your JRE cannot find the IBM JSSE that you have told it
to use. You should reread the documentation about registering a new JSSE
to solve this problem.

Rogan
Signature

Rogan Dawes

*ALL* messages to discard@dawes.za.net will be dropped, and added
to my blacklist. Please respond to "nntp AT dawes DOT za DOT net"

Amrish Bharatiya - 20 Jan 2005 02:27 GMT
Rogan, I tried the same..
but still the error is ClassCastException. and here is the sample of the error below...

java.lang.ClassCastException

       at com.ibm.net.ssl.c.<init>(Unknown Source)

       at com.ibm.net.ssl.d.a(Unknown Source)

       at com.ibm.net.ssl.d.getImpl(Unknown Source)

       at com.ibm.net.ssl.SSLContext.getInstance(Unknown Source)

       at com.aetna.health.patientmgt.proxies.ServletServicesUtilityBaseClass.<init>(ServletServicesUtilityBaseClass.java:77)

       at com.aetna.health.patientmgt.proxies.eventservices.EventServicesUtility.<init>(EventServicesUtility.java:23)

       at com.aetna.health.patientmgt.stresstester.ServiceUtility.init(ServiceUtility.java:36)

       at com.aetna.health.patientmgt.stresstester.ServiceUtility.<init>(ServiceUtility.java:25)Class Cast Exception Occoured

       at com.aetna.health.patientmgt.stresstester.EventThread.<init>(EventThread.java:163)

       at com.aetna.health.patientmgt.stresstester.EventDriver.init(EventDriver.java:24)

       at com.aetna.health.patientmgt.stresstester.EventDriver.<init>(EventDriver.java:17)

       at com.aetna.health.patientmgt.stresstester.EventDriver.main(EventDriver.java:86)

-------------------------------------------------------------------
I think it can find the JSSE. the problem must be in some configuration.

Ams


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.