Invalid Key Specification with DESEde algorithm and SecretKeySpec

Anyone know why attempting to create a SecretKeySpec with a byte array and the algorithm "DESede" would fail, while passing the same bytes to the DESedeSecretKeySpec constructor works? The exception from the former (see below for relevant snippet) claims that the key specification is invalid. I saw this bug which seems related, but is marked closed, so am not sure what's happening: http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=1371755199b0c24e4871e29a6028d?bug_id=4364490.
Some of the stack trace from attempting to use SecretKeySpec:
Caused by: java.security.spec.InvalidKeySpecException: Inappropriate key specification
     at com.sun.crypto.provider.DESedeKeyFactory.engineGenerateSecret(DashoA13*..)
     at javax.crypto.SecretKeyFactory.generateSecret(DashoA13*..)
     atEdited by: jgold on Jan 21, 2010 8:39 AM

Please post the code for both and a typical key byte array. You might also want to say which version of Java on which OS.

Similar Messages

  • WebServices: BAM-06011: invalid key specification

    I am new to BAM
    I did the following steps:
    1. I created Data object using BAM architect view
    2. Created report using BAM active studio view
    3. Set up the following in weblogic console
    Home >Summary of Deployments >OracleBamAdapter ->oracle.bam.adapter.adc.soap.SOAPConnectionFactory
    4. Created BAM activity sensor for the existing composite
    5. Created BAM sensor action by created BAM connection.
    6. Deployed and ran the test
    7. Seeing the following error iin the logs:
    ===========
    WebServices: BAM-06011: invalid key specification; [Ljava.lang.String;@1bbb270 found
    Unable to obtain resource from class oracle.bam.common.resources.Exceptions using key RowOperation[ Type[UPSERT5:UPSERT] Keys[_SourceSystem,_TargetSystem,_ServiceName,_OperationName,_Context,_InstanceID,_TransactionID,_TransactionNumber] Update Columns[null] Column Values[<_SourceSystem='TEST'>,<_TargetSystem=Siebel>,<_ServiceName='ORDER'>,<_OperationName='GetOrder'>,<_Context=GetOrderComposite>,<_InstanceID='Instanceid123'>,<_TransactionID='TransactionId123'>,<_TransactionNumber='TransactionNumber123'>] ].
    ===========
    Can anybody help how to proceed. I have supplied all the values that are in the Data object. Not sure why I am seeing null pointer and "Update Columns[null] "....
    Your help is greately appreciated.

    Team,
    I have to demo this functionality to upper mgt asap. Do any body has any clue on this?

  • Getting ORA-00903:invalid table name with both system and table owner

    Hi All,
    Oracle version 9.2
    I'm trying to retrieve some information from a few tables and import them to Excel. I haven't got much idea about ORACLE, but I'm not able to do anything.
    I open SQL PLus, and use CONNECT SYSTEM/[email protected] AS SYSDBA
    The console shows connected.
    I use select table_name,owner from dba_tables where owner='USER1';
    I can see the tables I want to access in the output.
    I do select * from USER1.TABLE1 and also tried with select * from TABLE1, both return ORA-00903:invalid table
    I also tried to connect with "CONNECT USER1/[email protected]" also shows connected, but then same error ORA-00903:invalid table
    Could anyone guide me so I can find out whats going on wrong??
    Thanks.. Best regards!

    Great! this worked! At least now I know I can read the data.
    Now I would like to get the data from this table into Excel 2007, but I can't install Office in the ORACLE server, so I have setup my client computer (Windows 2003 server with Excel 2007).
    I installed the ORACLE ODBC driver, and put the TNSName.ora file into the network admin folder.
    I successfully create the ODBC connector, and try connection is successfull. However, when I try to get the data, Excel send an error saying that it cannot list the tables!
    Anyway, any simple solution will do. If there is an easy way of making ORACLE create for example a CSV file with all the data from the table it will be good as well. What would be the easiest way?

  • What's going on with dynafaces? And where can I contact someone involved?

    Hi,
    I like dynafaces and its approach to ajax, but I'm a bit worried about the state of the project and whether it has a future. The official mailing list is dead (something like 3 messages in the last month, all from the same guy, all unanswered), and the project doesn't seem to have ever had an actual release, although Ed Burns has been posting release candidates over the past few months. I'd actually like to get involved with dynafaces, but obviously only if it's viable, and isn't about to be made obsolete by JSF 2.0.
    Anyone out there know what's going on?
    Regards,
    Maarten

    Hello,
    I work on the JSF specification with Ed Burns, and I am specifically working on the Ajax standardization.
    We are looking to produce a standard for all JSF/Ajax frameworks to use. This means that all frameworks
    will change to accommodate the standard. We have members representing the major JSF/Ajax frameworks
    on our Expert Group. Whether you continue to use Dynamic Faces (or not), really depends on your
    current needs and time line for a JSF/Ajax solution. If you can afford to wait a bit, then I would go with
    the JSF 2.0 implementation.
    -roger

  • No values when using key figure with constant selection?

    Hi experts,
    I have built a Webi on top of a universe that is sitting on top of a Bex query.
    In my Bex query I have a bunch of key figures defined that are restricted on time and category.
    This Webi works fine.
    Then I added an additional key figure that required a constant selection on time and on category.
    When I first added this to my Webi report it was fine. But once I refreshed my report showed no values.
    The report still seems to know that it is meant to retrieve values because it is bringing back the correct records - just no values. (ie I am showing time in my columns and it's showing the correct periods that are meant to have data)
    I refreshed a number of times and sometimes it would bring "#TOREFRESH" in some cells but once I refreshed again the cells are blank. Sometimes it would even show me a value in a couple of cells and others would show the "#TOREFRESH"
    I went back to my Bex query and removed the key figure with constant selection and the report is working again?
    Has anyone experienced something similar? Is there a way to make this work?
    Thank you!
    Sabine

    #TOREFRESH error message appears for smart measures (measure object with aggregation type Database Delegated) when the context for the measure is changed. Refreshing data will solve the issue. Database delegated measures are used for some non-additive aggregation which webi is not able to handle properly. If you are not using such aggregation, then tou can change the aggregation type to something other than database delegated to avoid #TOREFRESH.

  • Can't enroll devices with Profile Manager - invalid key

    n my case I can install profiles on devices from Profile Manager page but I cannot enroll devices.
    The certificate I download to enroll is reject by my MacBook Pro Lion: Says Invalid blablabla at the end:
    Now I have done log research and I now exactly and understand why it doesn't work:
    the scep_helper daemon is supposed to listen to port 1640 TCP (which you should forward to your server by the way, if you want to be able to enroll devices) and provide the requsting client the root CA that signed the certificate. In my case, it can't find the root CAT to provide the client with so it can finalize the cert validation process.
    In my case, that's what I see in the log:
    Jul 29 02:12:44 teknologism scep_helper[1638]: SCEP_HELPER: /SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-701.70/scep_helper/m ain.m:727 'status = SCEPGetCACert(session, NULL, 0)' = -25300
    Jul 29 02:12:44 teknologism scep_helper[1638]: SCEP_HELPER: /SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-701.70/scep_helper/m ain.m:513 'SCEPGetCACert(session, NULL, 0)' = -25300
    Jul 29 02:12:44 teknologism scep_helper[1638]: SCEP_HELPER: /SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-701.70/scep_helper/m ain.m:819 'challenge = GetChallengeFromSCEP(password, guid, hostURL)' is NULL
    Jul 29 02:12:44 teknologism ProfileManager[516]: Could not retrieve root certificate from open directory server.
    No , as for the bad news: I have no idea on how to fix. Have dug into scep_helper, googled etc. Not a single clue on how to check it's configuration or even why it can't find the root CA. By the way everyhting else (I really mean everything, ical,cardav,web,wiki etc.) work great. And profile manager too, it's just the enroll thingy that doesn't work. And the root CA cert is in /etc/certificates. My server a legit Class 1 SSL cert signed by a system trsuted CA (Startfiel to name it)
    I have tried with other certs etc... It's a no go.
    Can anyone help ??
    How can I add that missing CA Cert in opendirectory ?

    Here is some more infos...
    teknologism:root root# serveradmin settings devicemgr
    devicemgr:SSLAuthorityChain = "/etc/certificates/trinity.teknologism.org.C1D19D55699B48C94A18787E4F53B4C3230E 91FE.chain.pem"
    devicemgr:od_active = yes
    devicemgr:ssl_active = yes
    devicemgr:enableCodeSigning = yes
    devicemgr:updated_at = 2011-07-28 16:04:52 +0000
    devicemgr:email_delivery_method = ""
    devicemgr:CodeSigningPrivateKey = "/etc/certificates/teknologism.org Code Signing Certificate.ED29CE4BD9D2926D64E60EF7A117EFDB2213F0CC.key.pem"
    devicemgr:apns_active = yes
    devicemgr:CodeSigningAuthorityChain = "/etc/certificates/teknologism.org Code Signing Certificate.ED29CE4BD9D2926D64E60EF7A117EFDB2213F0CC.chain.pem"
    devicemgr:default_profile_created_at_least_once = yes
    devicemgr:knob_sets_enabled:com.apple.mail.managed = yes
    devicemgr:knob_sets_enabled:com.apple.vpn.managed = yes
    devicemgr:knob_sets_enabled:com.apple.carddav.account = yes
    devicemgr:knob_sets_enabled:com.apple.jabber.account = yes
    devicemgr:knob_sets_enabled:com.apple.caldav.account = yes
    devicemgr:email_authentication = ""
    devicemgr:email_port = 25
    devicemgr:email_username = ""
    devicemgr:id = 1
    devicemgr:last_modified_guid = ""
    devicemgr:SSLPrivateKey = "/etc/certificates/trinity.teknologism.org.C1D19D55699B48C94A18787E4F53B4C3230E 91FE.key.pem"
    devicemgr:od_master = "127.0.0.1"
    devicemgr:apns_topic = ""
    devicemgr:email_password = ""
    devicemgr:mdm_acl = 2047
    devicemgr:user_timeout = 43200
    devicemgr:server_organization = ""
    devicemgr:SSLCertificate = "/etc/certificates/trinity.teknologism.org.C1D19D55699B48C94A18787E4F53B4C3230E 91FE.cert.pem"
    devicemgr:created_at = 2011-07-24 11:47:33 +0000
    devicemgr:email_address = ""
    devicemgr:email_domain = ""
    devicemgr:CodeSigningCertificate = "/etc/certificates/teknologism.org Code Signing Certificate.ED29CE4BD9D2926D64E60EF7A117EFDB2213F0CC.cert.pem"
    devicemgr:email_server_address = ""
    devicemgr:admin_session = ""
    The 3 CodeSigning certs/keys are in /etc/certificates and their permissions are correct.
    Also, don't ask me why but my ProfileManager pane in Server.app is working again. It shows all the config...but can't modify anything....as soon as I try to modify it spins the waiting whell forever... I guess it's the same error as command line serveradmin...

  • Set JArray values with invalid key value: "LastUpdatedTime" on new alert rule creation

    Hey all!
    I'm trying to create a new alert rule using version 0.9.11 of the Monitoring Library and am getting this error on alertsClient.rules.CreateOrUpdate:
    "Set JArray values with invalid key value: "LastUpdatedTime". Array position index expected."
    That's interesting because LastUpdatedTime is a DateTime object, and whether I set it or I don't, if I set a breakpoint, it does set itself correctly, but the API appears to be expecting a JSON hash?
    I've tested alertsClient and I'm able to get existing alerts (also metrics with metrics client), so I don't believe it's an access issue.
    Any ideas?
    The full code I'm using for the test (borrowed virtually verbatim from the Cloud Cover video
    here): 
    Rule newRule = new Rule
        Name = "CPU Over 90%",
        Id = Guid.NewGuid().ToString(),
        Description = "CPU Has been over 90% for 5 minutes",
        IsEnabled = true,
        LastUpdatedTime = DateTime.Now,
        Condition = new ThresholdRuleCondition
            Operator = Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.ConditionOperator.GreaterThan,
            Threshold = 90,
            WindowSize = TimeSpan.FromMinutes(5),
            DataSource = new RuleMetricDataSource
                MetricName = "Percentage CPU",
                ResourceId = "",
                MetricNamespace = ResourceIdBuilder.BuildCloudServiceResourceId(<cloudservicename>, <deploymentname>)
    RuleAction action = new RuleEmailAction
        SendToServiceOwners = true,
    newRule.Actions.Add(action);
    OperationResponse alertResponse = alertsClient.Rules.CreateOrUpdate(new
    RuleCreateOrUpdateParameters { Rule = newRule });
    Console.WriteLine("Create alert rule response: " + alertResponse.StatusCode);

    Hi Greg,
    Thanks for your post!
    Error "JArray" has been fixed in the latest nugget package.
    Refer to:
    http://www.nuget.org/packages/Microsoft.WindowsAzure.Management.Monitoring/
    Hope this helps!
    Regards,
    Sadiqh

  • Invalid key code and multiple installs

    OK, so I got a new iMac and tried to install vista on it like I had on my old iMac (2006 Model). However, when I finished the installation it started a new installation and it ended up installing vista twice. It would have done and third install, but I held down the option key during install and manually selected the windows partition instead of the Windows install CD. However, not all of the Windows features were installed like Aero so I deleted the windows partition. My iChat buddies list got deleted so I had to delete my iChat preferences (don't know if this will help).
    Anyway I tried to re-install Vista this morning and it said my key code was invalid, although it worked yesterday. What is the problem? This is the second invalid key code problem I've had on this Mac (the first was with Logic).
    Oh also, there seems to be some remnants of Vista on the computer even after I deleted the partition because unless I held down option/alt during boot up it would try to run windows and would say no boot disc.
    Thanks in advance for any help!

    Can anybody help with this?
    I tried reinstalling it and it slowed down my boot up speed because it didn't install right and I had to delete the partition once again.
    The keycode issue has been resolved though for some reason...

  • Sparseimage Fails Verification with Invalid Key Length error.

    I recently have been having some trouble with my computer. Every time I log out of my account, all of my preferences reset. This just now started happening. It was working fine, then all of a sudden it started to do this. This only happens on my account and doesnt with the root account. On looking up solutions, I discovered that I should verify my home directory image. I logged in as a different user (root) and used disk utility to verify it. However it failed saying "invalid key length" and "Error: The underlying task reported failure on exit". When I try to repair it, it gives me the same error. I backed up my system using superduper to an external drive a while back and verified the sparseimage file that I backed up. It failed with the same error.
    When I verify my harddrive it passes with no problem. Only my sparseimage file is corrupted. I would try diskwarrior but I cant afford it right now.
    Any help would be greatly appreciated. Thanks.
    Macbook   Mac OS X (10.4.9)   100gb hd; 1gb ram; Triple-Boot(OSX-Linux-Vista)

    Would that mean that I can't turn off filevault? Way I see it is that since the image file is corrupted, I would try to have filevault unencrypt it and see if it somehow fixes it. (Since there will be no longer a filevaut image to be corrupted). All of my data in the image file seems to be fine. Everything is still there and I can access everything.
    I was also thinking that I might be able to just copy everything in the image to my external, then deleting the account and create a new one, coping everything back over when im done.
    I know I probably sound like a noob, but im really not. Ive had a lot of experience with my computer, just not this sorta thing. Thanks for your help.

  • "Invalid Key" and EKAG20NT.EXE error

    After trying to update my computer with an SSD, then returning to the original HDD's, I now get an error that says I have an invalid key. If I click through, it gives me an "Incorrect EKAG20NT.EXE version (internal error, API V2.00)". The program appears to load normally, and seems to function normally while editing, but I don't want to get in the middle of this rather large project and get stranded.
    It does not happen with AE, PS, Audition, or any other programs in the Production Suite. I have a Dell Precision T5600 twin Xeon Workstation. It does use a PERC 310 raid controller with two main 350GB enterprise drives. All video file data is kept off the machine on external eSATA drives.
    Any idea why this happened, and how I can fix it?
    Thank you-
    Addendum: It also happens if I export a file for encoding to Media Encoder.

    Jeff Bellune wrote:
    Have you ever installed the x264Pro plug-in?  If so, then that's probably the source of your issue.  Changing the hardware configuration will invalidate the current license key.  Contact 3AM Digital Studios to get it sorted.
    Jeff
    Hi,
    please contact 3am directly at [email protected] so that we can help you (if you didn't already a month ago).
    Yes, "Invalid Key" is a license problem when some hardware changes, not a bug or virus. I just became aware of this thread today.

  • Invalid key length? Continue lengthy disk repair or wipe drive and back up?

    Does Disk Repair address an invalid key length? Or should I wipe the hard drive and restore from Time Machine? Are third party disk repair apps worth considering — and the time and money?

    Use Disk Warrior if you cannot repair the drive with Disk Utility.
    Repair the Hard Drive and Permissions - Lion
    Boot from your Lion Recovery HD. When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    To boot from the Recovery HD restart the computer. After the chime hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.

  • EAPOL-key M2 with invalid MIC (WLC 4.1.171.0)

    I have a lot of client in one configuration who have problem with the message:
    EAPOL-key M2 with invalid MIC
    Config:
    4402-12 in 4.1.171.0 (and ER) sw release
    AP1242 with 2 4941 in diversity mode
    SSID in WPA-TKIP PSK and DHCP on the WLC.
    A lot of client can't connect to the switch. With Intel card, i have try the lasted drivers, and it's ok, but with some device like Intermec on windows mobile, it's not working. You can look the trace in the file log.
    Some idea ?

    I just had a few problems with the same error. It turned out that this was an issue with the client device NEEDING the key to be entered in HEX (even though it would take an ASCII if you typed it). I converted the ASCII PSK I'd configured on the controller into HEX and entered it on the client, and it works fine. You might want to try that if you haven't already.

  • Vb 2012 use regex to substitute specific key words with specific replacements

    I am creating a VB 2012 application in which I have a two-dimensional array containing a collection of specific (but case-insensitive) key words with their replacement words.  I also have a very large series of String variables which I read sequentially
    from a .CSV file.
    What I want to do is to efficiently parse each String variable searching for any occurrence(s) of the Key words held in the array and substituting with their replacement.
    I know I can use "standard" VB code to do this but my instinct tells me that using Regular Expressions might be far more efficient.
    Never having attempted to use Regular Expressions before, but having just spent several hours attempting to research the subject online, I know I need some help, please.
    Any advice or guidance will be gratefully received.
    Paul J

    Hello,
    The 'Suggestions and Feedback for the Forums' forum is to give users a voice on Forums. Users can give suggestions for improvements or vote up suggestions and know that the Forums team is listening.
    I'd ask in the
    Visual Basic .Net Language forum on MSDN.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • I just purchased the 4S and am having trouble with it at least once a day says Invalid Sim, what would cause this and how do I fix it

    I just purchased the I 4S and at least once a day, it will say Invalid Sim, what would cause this and how do I fix it?

    Then, if there's any data on the drive that you want to keep, you have to back up before you do anything else -- assuming it's still possible.
    Basically you have three options:
    1. Install a copy of the Mac OS on an external hard drive, boot from it, and copy the data from the internal drive.
    2. Start the problem Mac in FireWire target mode (command-T at startup) and connect it to a working Mac with a FireWire cable. The internal drive will mount as a FireWire device.
    3. Remove the internal drive and mount in an external enclosure on another Mac.
    Once you've backed up, follow the sequence in the support article linked below. The article is somewhat outdated. Where it refers to booting from an installation disc, you should boot from your recovery partition (if running Lion) by holding down the key combination command-R at the chime.
    Mac OS X: Gray screen appears during startup

  • Macbook pro 15" mid 2010 i spilled water on keyboard now it wont power on if the battery is connected and the keys on keyboard doesnt work it works fine with no battery and external keyboard if i order a battery and new keyboard will every else work again

    macbook pro 15" mid 2010 i spilled water on keyboard now it wont power on if the battery is connected and the keys on keyboard doesnt work it works fine with no battery and external keyboard if i order a battery and new keyboard will every else work again lik it did before

    If you have records that show that you've taken your MacBook Pro in for a year to fix the machine, I would escalate the problem to Apple Customer Relations - unfortunately I don't have a number for Spain.
    It would only seem logical to me that if you've been trying to have the machine repaired during the time that the 'recall' was in effect that you should be eligible for a new logic board. But only customer relations will be able to make that call.
    Good luck - take the issue as high up the food chain as you can and see what happens.
    Clinton

Maybe you are looking for