Providers load order conflict (ExceptionInInitializerError)

Hello, I have a problem when using several java.security.Provider (BouncyCastleProvider and SunJCE), by the sight, the order in which they are loaded is the problem.
If load BouncyCastleProvider at position 1, and SunJCE in the 2, (following code) is throwed java.lang.ExceptionInInitializerError
java.security.Security.insertProviderAt(new org.bouncycastle.jce.provider.BouncyCastleProvider(), 1);
java.security.Security.insertProviderAt(new com.sun.crypto.provider.SunJCE(), 2);
SecretKeyFactory kf = SecretKeyFactory.getInstance("PBEWithMDAndDES"); // throws ExceptionInInitializerErrorIf the position are another (SunJCE at 1, and BouncyCastle 2)
java.security.Security.insertProviderAt(new com.sun.crypto.provider.SunJCE(), 1);
java.security.Security.insertProviderAt(new org.bouncycastle.jce.provider.BouncyCastleProvider(), 2);
SecretKeyFactory kf = SecretKeyFactory.getInstance("PBEWithMDAndDES"); // it works well!yes works well (need that BouncyCastle exist at position 1), but I have problems soon, with my jar library that uses BouncyCastleProvider (which I cannot modify).
I have tried to do the following:
java.security.Security.insertProviderAt(new org.bouncycastle.jce.provider.BouncyCastleProvider(), 1);
java.security.Security.insertProviderAt(new com.sun.crypto.provider.SunJCE(), 2);
Provider sunJCEProv = java.security.Security.getProvider("SunJCE");
SecretKeyFactory kf = SecretKeyFactory.getInstance("PBEWithMDAndDES", sunJCEProv); // does not work either (ExceptionInInitializerError)here I am indicating him the Provider (SunJCE), but seems to take in any case bouncycastle (the Provider in the position 1).
The full stackTrace of the exception is:
java.lang.ExceptionInInitializerError
     AT javax.crypto.SecretKeyFactory.getInstance(DashoA12275)
Caused by: java.lang.SecurityException:
     Cannot for Seth up certs trusted CAs AT javax.crypto.SunJCE_b. (DashoA12275)
... 25 and more
Caused: java.security.PrivilegedActionException: java.security.InvalidKeyException: Public for key           presented not                certificate signature AT java.security.AccessController.doPrivileged(Native Method)
     ... 26 and more
Caused by: java.security.InvalidKeyException: Public for key presented not certificate signature
     AT org.bouncycastle.jce.provider.X509CertificateObject.checkSignature(Unknown Source)
     AT org.bouncycastle.jce.provider.X509CertificateObject.verify(Unknown Source)
     AT javax.crypto.SunJCE_b.c(DashoA12275)
     AT javax.crypto.SunJCE_b.b(DashoA12275)
     AT javax.crypto.SunJCE_q.run(DashoA12275)Some idea?
Thanks to all!

First off, Im assuming the algorithm you're dealing with is actually
PBEWithMD5AndDES (not MD without the 5).
With that, Ive done some experiments and it seems to be dependent on
where in the java.security file you have the BC provider.
$JAVA_HOME/jre/lib/security/java.security
If my java.security settings look like this (other providers omitted from post)
all 3 of your tests work:
security.provider.1=sun.security.provider.Sun
security.provider.2=org.bouncycastle.jce.provider.BouncyCastleProvider
However, if its reversed like this none work.
security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider
security.provider.2=sun.security.provider.Sun
I thought the insertProviderAt() call worked independently of the java.security
settings and would override them. In this case it seems like something
else is going on...
So try making BouncyCastleProvider #2 behind Sun in your java.security file and see what happens.

Similar Messages

  • VLD-1137 Target Load Ordering foreign keyrelationships mapping flowconflict

    Hi,
    I face a error when validating the mapping under the following condition.
    Error while validating a mapping after adding foreign key relationship on the table (for the second time. For example a table named journal had a foreign key on the same table (like jou_pk, now I have included one more foreign key to refer the journal table as jou1_fk.
    When used in the mapping this is the only target table, but it is used in the Key Lookup to populate the foreign key column on journal.
    Error Reported while validating / generating the mapping:
    VLD-1137 Target Load Ordering foreign key relationships and mapping flow conflict
    Please help in avoiding this error.
    Thanks,
    Leo.

    Hi,
    how did you solve this....?
    i am also getting this error message
    Thanks

  • Target Load order is not working properly in 11.2.0.2

    Hi,
    Mappings whihc are migrated from OWB10.2 version to 11.2 which contains multiple targets are not working in accordance with the target load order given in the mapping.
    The order in which targets are loaded changes between execution.
    To test is this a problem with migration we had created a smaple mapping containg 3 targets and mentioned loading order in each target table as well as in mapping property.
    The order in which the targets are loaded was random. But when we have 2 targets it seems to be working. But for migrated maps this is also not working.
    Is there any bug reported in 11.2.0.2 for this issue? Any help is highly appreciated.
    Thanks and Regards,
    Pnreddy

    Target load ordering is set to false by default in 11.2.
    You need to set it to true if you want your mapping to use it.

  • Undesired Load order of  FLV and MP3s

    Hello
    I have added a scrolling Flash page with a FLV and several
    MP3 files in each their own player to site below.
    I have set the video to autostart.
    The MP3s are set to not autostart.
    When I export the FLA the swf nicely plays the video first,
    and the mp3s are loading in the background simultaniously.
    When viewing the page in Firefox and Netscape the same
    happens, just as intended.
    Problem:
    But in IE and Safari all the sound files are loading first
    (and not playing) and not until they are fully loaded will the
    video start loading and playing. This results in viewing an empty
    video window for a long time.
    1) Is there are way to make all browsers load the video first
    and play it first?
    2) And in general manage load order of video and audio files
    in a Flash file?
    Thank you on beforehand.
    ggaarde
    http://www.corpstory.com/video.htm

    no, the sounds wouldn't be playing until you used the start()
    method of those sound instances or you assigned the source property
    of your mediaplayer and you wouldn't want to do either until your
    flv completed play.
    in fact, it would be optimal to first load one sound: the mp3
    that follows the flv. then when that sound completed loading, load
    the 2nd sound.

  • Load Order in a mapping

    any one has done a SINGLE MAPPING WITH multiple SOURCE TO multiple target
    like      source a TO target a
         source b TO target b
         source c TO target c
    in an order, which is first a should be feeded, THEN b and so ON...
    we have load order in Paris to resolve this, I'd like to know is there ANY way we can do it with 10GR1

    I dont think there is anything like load order in 10gR1 but when i had similer problem we sorted that out with use of process flow by spliiting the mappings.
    If you know a better way out then do let me know.
    I have come across a previous thread in the forum on the same issue which says that we can not control load control WITHIN the mapping and OWB decided it by default in the order in which objects are drppoed on canvas!!!!!!!!!!!!!!

  • SWF Load order.

    Hello all,
    I have a group of FC outputs that I have used to create a virtual tour of my client's showroom here:
    electronic-lifestyle.com
    But the SWF files I have linked in the FXP are loading from back to front.  The last Page is loading first and the first loads last creating some issues.  I have one more pass I need to maker to fix some glitches with the vertical scroll bar and several other points but I need to know if I can adjust the order in which the SWF files load into the page.  I would prefer they load when called for but if that is not possible I would like to load from the first page to the last.
    On an associated thought, is it possible to create a progress bar in FC or Flash that will give the viewer some feed back on the SWF files loading in.  Right now the area is blank until they arrive.
    I have a feeling that this level of control is something achieved in Flash Builder, not in FC.  That is fine, I am planning on importing the file into FB to enable deep linking anyway but since there is no round trip function I figured I would get all of the FC work finished first, then go into FB and make whatever changes need to happen there.
    It is starting to seem silly that the two programs were separated to begin with.  It seems a natural evolution that Catalyst and Builder be joined into the same application sometime in the near future.  Once the round trip issue is taken care of, why not just work toward combining the two apps?
    Anyway, if someone could give me a pointer on the load order issue that would be wonderful.
    Thanks,
    Brett

    dmcdonald wrote:
    > Is there a way to dictate load order of html page?
    No.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Why did Apple OS loose the ability to adjust load order of login items

    In OS X.3.9 I was able to adjust the load order of log in items.
    I can't do this in OS X.4.11. I would like to adjust two items Mozy and Yahoo! Widgets so that they load last. Although all my log in items including them load they hesitate while Mozy and Yahoo widgets load. I would like to make Yahoo widgets load very last and Mozy next to last.

    Another approach which might work would be to delete some, most, or all of your current set of login items and replace them with a single Automator workflow, one set up to open individual applications in a predetermined order.
    The workflow would be comprised solely of separate *Launch Application* actions (from Automator's Finder library) and might look like this:
    1) *Launch Application* -- click the popup button and select the first application you'd like to open.
    2) *Launch Application* -- select the next application you'd like to open.
    3) *Launch Application* -- 3rd app.
    4) *Launch Application* -- etc, etc, until you reach the last application, which could be Yahoo! Widgets.
    From Automator's File menu select Save As > File Format: Application, and add the saved Automator applet to your login items.
    Good luck.

  • Not allowed to move load order of Control panels in System Preferences Tige

    I post here because System refuses to let me post in Tiger forum depite my being a forum member since purchasing my G4-500 new just a few months after coming out.
    The problem is associated with my PowerBook17" bought new March a year ago. I currently am running 10.4.6 Tiger.
    On my G4-500 using Panther 3.9 I am allowed to drag and drop the load order of extension and control panel in System > Accounts > Startup items, at will.
    If I try the same thing on my PowerBook 17" It want let me Drag or if I do get it appear to drag what it does instead is remove from the list.
    Suggestions?

    How do I mark one portion of my question as being answered ( the part so named in the subject line.) and one part as not part about not being able to get into sub category so far as adding a question.
    You can use the Helpful buttons without using Solved. Solved will result in your thread being marked as answered, Helpful won't. It is possible to mark a question answered without marking any posts as helpful or solved. You would do this if you found the solution somewhere other that the thread with the question. It is good form to post what the solution is so that others can benefit. You can go back & "unmark" a question as answered, but I'm not sure if there is a time limit from the time you originally marked it answered.

  • Java Load Order

    Hi All,
    We are trying to override existing OOTB method through our custom component but system is calling the OOTB method only. Below are the ways we tried to call our custom component method, request you to advice us where we are making mistake.
    Problem statement:
    There is a method public void abc() in class SomeHandler. This is OOTB class provided by Oracle. This is getting used in service XYZ with action as 3:abc::4:null
    We created a custom service handler CustomSomeHandler and overwritten this method. We also increased the load order of this custom service handler to 200.
    We tried below approaches, but nothing is working.
    1) Approach 1
    public class CustomSomeHandler extends ServiceHandler {
    public void abc(){
    2) Approach 2
    public class CustomSomeHandler extends SomeHandler{
    public void abc(){
    }

    When you define a service handler, there is no loadOrder... there is searchOrder. Therefore, you need to set it a number that is lower than the method you're trying to override.
    Also, make sure you're merging your configuration table to the ServiceHandlers table...

  • Parent-Child Apps and Classloading...Wrong load order?

    Ah, everyone's favourite two oracle topics slammed into one. I've been using Oracle's parent-child application deployment for some time, to reasonable success in Oracle App Server 9.0.4. Though screwing about with the classloaders in this way usually fills me with dread, the benefits of developing child apps in isolation from the parent are excellent.
    In general I have always deployed in the following way:
    server.xml
    <application name="msip-app" path="../applications/msip-app.ear" parent="default" start="true" />
    <application name="msip-services" path="../applications/msip-services.ear" parent="msip-app" start="true" />
    default-web-site.xml
    <web-app application="msip-app" name="msip-web" load-on-startup="true" root="/msip" />
    <web-app application="msip-services" name="msip-services" load-on-startup="true" root="/msip-ws" />
    orion-application.xml (parent app)
    <library path="./msip-web/WEB-INF/classes" />
    <library path="./msip-web/WEB-INF/lib" />
    (Note: this generic approach has always worked...)
    Now I am trying to upgrade to oc4j 10.1.3.x, and I seem to be trapped in configuration hell. OC4J now appears to load the child application first, which inevitably screws up the classloader for the parent app. Surely this doesn't make any sense, as the parent app is the dependency and should be started first?!
    I haven't discovered any way to control the load order for apps in the config files; the only workaround is to set the load-on-startup for the child app to "false". This is fine, until I redeploy through Oracle EM, which switches load-on-startup back to true. Again, there doesn't seem to be any way in deployment to control this parameter!
    Why in the heck would oc4j have changed it's load priority for parent child apps? Is there any way to force load order through config? Am I just crazy and no one else has seen this?
    Help.

    Thanks for the reply. Gave that a look, but unfortunately, that link concerns a problem at a lower level than the one I've encountered. A classloading problem alerted me to what I believe is a bigger issue, namely that oc4j appear to be launching my child app before the parent app, and this consistently screws up the initialisation phases for both ear files. This appears to be an explicit decision in the Oracle app loader about which war file (parent or child) to launch first, but for the life of me, I can't find the offending code by decompiling oc4j.
    If it turns out that this intentional, surely this must be a mistake? The parent app is the dependency and must be loaded first! or I missing something big...

  • Load order in wls 7 sp4

    Hi,
    I have a strange problem with the load order in wls 7.0 sp4. I have 2 ear files
    ear1 and ear2.
    I have one war file in each of the ear files. I set the load order of ear1 to
    1000 and ear2 to 100. I see the load order in the console correctly, but I dont
    see the value in config.xml. So, i edited the value and added it manually.
    Even after that, I have the problem where a servlet in the war file of ear1 is
    executing ahead of ear2 during startup.
    Any ideas to fix the problem?
    thanks

    Alright:
    So I wrote up a simple small isolated reproducible test case.
    http://www.niffgurd.com/mark/work/blog/index.html
    So this is a bug, and I have filed CR125989, you will need to contact [email protected]
    to follow up on this.
    Cheers
    mbg
    "Mark Griffith" <[email protected]> wrote:
    Babu:
    There is synchronization issue between making the changes to the runtime
    mbeans via the console and when it is persisted to config.xml. There
    is a 5
    minute timer that does the actual persisting. I do believe though that
    if
    you shutdown the server gracefully we flush the writes to the config.xml.
    So after you manually added the values in config.xml you still are not
    seeing the load order being honored?
    So:
    ear1 LoadOrder=1000
    ear2 LoadOrder=100
    You want ear2 to be loaded first and then ear1 to be loaded second?
    Can you attach your config.xml and your portion of weblogic log that
    shows
    deployment?
    cheers
    mbg
    "babu" <[email protected]> wrote in message
    news:3f8edfc7$[email protected]..
    Hi,
    I have a strange problem with the load order in wls 7.0 sp4. I have2 ear
    files
    ear1 and ear2.
    I have one war file in each of the ear files. I set the load orderof ear1
    to
    1000 and ear2 to 100. I see the load order in the console correctly,but I
    dont
    see the value in config.xml. So, i edited the value and added it manually.
    Even after that, I have the problem where a servlet in the war fileof
    ear1 is
    executing ahead of ear2 during startup.
    Any ideas to fix the problem?
    thanks

  • IM52-Load Order Budget Upload Program

    Hi All,
    I'm Working on IM52-Load order budget Change BDC Load Program.i'm using Call Transaction for it.
    here i'm getting a problem while recording(With SHDB) the tcode IM52, It showing the error like 'no measure found'.
    But the same error i'm not getting while creating manually(i.e., With out SHDB).
    So i developed the program by own using technical information, instead of recording in SHDB .
    and i ran the program, but i'm getting the same error "No measures Found"
    can any one tell me how to develope the BDC program for IM52-Load order budgets change.
    should i follow in different way instead of normal BDC programm?
    Thanks in advance
    Ramesh

    Hi Caforio Claudio,
    Pls check if you have (If the Investment Measure is Internal Order)
    You performed the commitment carryforward for measures belonging to the investment program - KOCF
    You performed the budget carryforward for measures belonging to the investment program - KOCO
    which are pre-requisites for Budget Carryforward for Investment Programs...
    Pls check and revert back...
    Srikanth Munnaluri

  • Adding pre-mapping process breaks target load order

    OWB 11.2.0.2 on Oracle database 11.2.0.2
    I created a mapping that has 4 sources (views on external tables) and 4 targets (3 regular tables).
    V1 => T1 (truncate/insert)
    V2 => T2 (truncate/insert)
    V3 => T3 (truncate/insert)
    V4 => T3 (update/insert)
    The above is the target load order. It tested fine.
    I added a pre-mapping process (packaged procedure) that is unrelated to any of these source/target tables, but just exits or raises a failure to control whether the mapping should continue to run or not.
    When I run it, the selected/inserted/merged counts are identical, but from what I'm seeing in T3 is that the order was update/insert followed by truncate/insert. I verified that the target load order remained the same.
    Has anyone else run into this problem?

    Hi,
    For OWB 11.2.0.2 the target load order property will set to 'False' by default.
    If this is the case you can not guarantee that the targets will be loaded in the order specified. It should be set to 'true'
    Right click on your map and select configure -> Code generation Properties -> Use target load ordering set it to true.
    Please note that you should have ODI EE licence and you must have installed OWB with Enterprise opton to set this property.
    Regards,
    Pnreddy

  • Load order overwrite impossible and ORA-01790

    Hi,
    I'm using Oracle 11g Rel. 1 EE and I have some problems with a mapping in OWB. I mapped my customer dimension (SCD type 2) with the corresponding tables. The first problem is that I can't overwrite the load order for this dimension.
    I've set up the customer dimension with following levels: customer, city, state, country, region and I also configured the foreign keys. The load order is changing every time I do an inbound synchronization for this dimension. In the manual it is written that the order is based on the foreign key relations but it is not in the correct order. When I try to change the loading order within the mapping and save the mapping, the settings will be resetted after I closed the mapping window. Why is the loading order changing all the time, although the dimension has not changed? And why can't I overwrite the loading order in the mapping, is there any restriction for this setting?
    My second problem is that I get the error: ORA-01790: expression must have same datatype as corresponding expression. In the sql code it seems that the problem is my attribute "Birthyear". The source table delivers an integer value for age. The dimension stores the birthyear as char(4). Therefore I used an expression to convert the age into the correct year as char(4), but I still get the error message. I assume that the compiler gives me the correct line number where the problem occurs and it is always where Birthyear occurs. Did anybody experience a similar problem and knows a solution for this?
    Greetings,
    Joerg

    The post Was truncated... here is the rest of the story:
    And what is worst: I can not drop the table because I receive an ORA-00600 !
    I can not even drop the USER, I still receive ORA-00600.
    I would really appreciate any help. All I want is to drop the user and clean
    up my database.
    Best Regards,
    Jose Hime
    ==========================================================================
    select * from user_objects
    OBJECT SUBOBJECT OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE GENERATED
    NAME  NAME
    TESTE D3A 146096 146684 TABLE SUBPARTITION N
    TESTE D3B 146097 146685 TABLE SUBPARTITION N
    TESTE D3C 146098 146686 TABLE SUBPARTITION N
    TESTE D3D 146099 146687 TABLE SUBPARTITION N
    TESTE D3E 146100 146688 TABLE SUBPARTITION N
    TESTE D3F 146101 146689 TABLE SUBPARTITION N
    TESTE D3G 146102 146690 TABLE SUBPARTITION N
    TESTE D3H 146103 146691 TABLE SUBPARTITION N
    TESTE 145922 TABLE N
    9 rows retrieved
    ==========================================================================
    Long postings are being truncated to ~1 kB at this time.

  • Control load order of third-party menulets / menu extras at startup

    Does anyone know how to control or adjust the load order of third-party menulets / menu extras at startup? I am using the latest update to Tiger.

    There are two types of third-party menulets: those that use Apple's sanctioned "NSStatusItem" (which is not as full featured as Apple's menulets) and those that use the reversed-engineered (and unpublished) "NSMenuExtra" which is exactly what Apple's menulets use. The method for arranging these in your menubar depend on the type:
    1) Apple and "NSMenuExtra" menulets: hold down the command key (and keep it down) and you can click and drag these in the order your like.
    2) "NSStatusItem" menulets: these are added to left side of the the other menulets in the order they are launched. If these applications are in your "Login Items" then OS X launches these simultaneously, which means those that launched "quicker" will end up towards the right, and others will end up towards the left. The only real solution to controlling this order is to control the launch order by writing an AppleScript for each one that puts in an artificial delay before launch. Then, use these AppleScripts as your Login Items instead.

Maybe you are looking for

  • HT1449 Can I move my iTunes library onto Time Capsule and share it across my devices (similar to a NAS drive)?

    Hi Would anyone know if I can I move my iTunes library onto Time Capsule and share it across my devices (similar to a NAS drive)? This would give me some hard drive space on my iMac and more importantly mean my iTunes library is available all the tim

  • ITunes wont find my music on my external drive (when it used to!)

    I recently filled my PC's interntal harddrive with music to the point where it was so slow I had to to buy an external drive to keep it on. I tranferred all my music on to the hard drive and have had no problems with it until today. Today, I started

  • Drop down Menu from UNDER a banner?

    Here is an image of what I'm trying to create in Adobe Muse. I want the pictured drop down menu to appear to come from beneath the banner menu when you hover over the word "Accommodations". I got a response from a staff member that said this was poss

  • My After effects wont render the whole video?

    So I recently switched to After Effects CC 2014 and for some reason, When I go to render my video, the first clip is the only thing rendered. I Have the whole area selected open however.

  • Suppress PRINT ACKNOWLEDGE browser page.

    Hi, I am able to direct print the reports on web using normal parameters...i.e. desname, destype and desformat. When it prints successfully, it gives us a message in a separate browser window "The report has been successfully printed out" And we don'