IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Problem ClassCastException iaikasn1structuresName

  • 1.  Problem ClassCastException iaikasn1structuresName

    Posted Wed April 21, 2004 03:56 PM

    So does my question not warrant a response, or do I have you all stumped?


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: Problem ClassCastException iaikasn1structuresName

    Posted Tue April 27, 2004 11:13 PM

    I cannot be sure if this is relevant to your problem, but I found this when researching the same exception when trying to use Sun’s JCE:

    “Due to a bug in the Java 2 SDK, you must list the “SUN” provider as the first security provider when loading a signed JAR file.”

    If you can, dump your list of providers (loop through array from Security.getProviders() ) and make sure “SUN” is first. If another provider is before it (in particular “IAIK”) you may want to get pre-emptive and add those providers to your java.security file after ‘security.provider.1=sun.security.provider.Sun’, or do it dynamically from your code with something like:

    Provider provider = new iaik.security.provider.IAIK();
    Security.removeProvider(provider.getName());
    Security.addProvider(provider);

    This resolved my problem with getting that exception.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB