Why I got Error with RandomData

Dear,
In my code, I tried to use the RandomData class.
I use Java_card_kit-2_2. the code is as fellow:
RandomData random_data = RandomData.getInstance(javacard.security.RandomData.ALG_SECURE_RANDOM);
random_data.generateData((byte[])buffer, (short)0, (short)31);
In my display, i receive SW1: 6f, SW2: 00
please help.

Dear,
I haven't any dollar euxx :(
Yes Eddy, the buffer is allocated. If you want, the code is
byte[] buffer = apdu.getBuffer();
short le = apdu.setOutgoing();
RandomData random_data = RandomData.getInstance(javacard.security.RandomData.ALG_SECURE_RANDOM);
random_data.setSeed(randomChallenge, (short)0, (short)31);
random_data.generateData(randomChallenge, (short)0, (short)31);
apdu.sendBytesLong(randomChallenge, (short)0, (short)31);
It return SW1:6F, SW2:00
i.e. the Sun's reference implemantation (version 2.2), the setSeed is as abstract, Must i define it?
Thank you

Similar Messages

  • Got error with newfs command for disk on a Storagetek ST2540.

    Hi,
    It's the first time that use forum and I have pour english language.
    I have Solaris 9 on Sunfire V480 with Qlogic HBA qla2340 connected to SAN ST2540.
    I have 3 LUNs on virtual disk on ST2540 (2 X 2TB and 1 about 730 GB).
    I can create a UFS file system on one of those 3 LUNs.
    A UFS file sytem of 2 TB.
    I got error on ohters like this.
    newfs /dev/rdsk/c6t3d2s0
    newfs: construct a new file system /dev/rdsk/c6t3d2s0: (y/n)? y
    Warning: 2128 sector(s) in last cylinder unallocated
    /dev/rdsk/c6t3d2s0: 4095981488 sectors in 666664 cylinders of 48 tracks, 128 sectors
    1999991.0MB in 4662 cyl groups (143 c/g, 429.00MB/g, 448 i/g)
    super-block backups (for fsck -F ufs -o b=#) at:
    32, 878752, 1757472, 2636192, 3514912, 4393632, 5272352, 6151072, 7029792,
    7908512,
    Initializing cylinder groups:
    ...........................write error on sector 1182585152: I/O error
    Log message in /var/adm/messages
    scsi: [ID 107833 kern.warning] WARNING: /pci@8,600000/QLGC,qla@1/sd@3,2 (sd99):
    SCSI transport failed: reason 'aborted': retrying command
    I don't know which trace look for.
    It is somebody has a idea?

    try the -T param for newfs. beware that you need a later edition of solaris 9.. 08/03 or so...
    Edited by: sid_sanders on Sep 12, 2008 2:47 PM

  • Why I got error ORA-02429 when I tried to drop a tablespace?

    I use the following command to drop the tablespace:
    drop tablespace users including contents and datafiles;The error message is below:
    Error report:
    SQL Error: ORA-00604: error occurred at recursive SQL level 1
    ORA-02429: cannot drop index used for enforcement of unique/primary key
    00604. 00000 -  "error occurred at recursive SQL level %s"
    *Cause:    An error occurred while processing a recursive SQL statement
               (a statement applying to internal dictionary tables).
    *Action:   If the situation described in the next error on the stack
               can be corrected, do so; otherwise contact Oracle Support.However, I have removed all the tables and indexes in this tablespace.
    Nothing found when I issued the following enquiries.
    select index_name from user_indexes where TABLESPACE_NAME = 'USERS';
    select table_name from user_tables where TABLESPACE_NAME = 'USERS';Is there anything I missed?
    Thanks in advance.

    999274 wrote:
    Could you please let me know how to purge recyclebin ?It's bad form to hijack someone else's thread for your own questions.
    As for your question
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to [url tahiti.oracle.com]tahiti.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • Lenovo Thinkpad T410 got errors with Fingerprint sensor device! So frustrating!

    I have just bought a new Lenovo Thinkpad T410 2518-FAA from one of main agencies of Lenovo in my country. The new-buy laptop was said to be totally new, i.e. it was not a re-furbished, and I actually checked for manything to confirm the real status of this laptop. However, when I bought it back to my house, a serious problem appeared. At the laptop store, I did not have enough time to check the Fingerprint device, thus I skipped to check it. When I came back home, the Fingerprint sensor error of this new-buy laptop completely drived me crazy!!! I installed the Fingerprint software of Lenovo, but this software continuously reported errors: "Can not enroll users, can not update passport, and can not find fingerprint sensor device." I have tried uninstalled and reinstalled this software many times, and already checked for the latest version of this software, it was Thinkvantage Fingerprint sofware 5.9.3 for Win 7-32 bit. My operation system is Win 7-32 bit. But these errors still appeared again and again. I already checked the status of TouchChip Fingerprint Coprocessor in Biometric Devices, uninstalled then re-installled this device, and it showed that this device was working properly and up-to-date, and I already unchecked the option "Allow the computer to turn off this device to save power", but all of my efforts was in vain!!! These errors still appeared and it drives me crazy! Up to now I had been unable to enroll my fingerprint to set up the fingerprint reader! These 3 errors just kept prompting in front of my eyes! Another problem is that the laptop can transfer files to my Nokia E51 mobile via Bluetooth, but I could not make the reverse transfer for a file from this mobile to laptop! Oh, I am very disappointed about Lenovo now! Inside the manufacture box that carried the laptop, there are just some instruction guides without any installation CD for installing Thinkvantage softwares... I had to go to the website of Lenovo and find a bunch of links of softwares that I tried many times but I still did not know how to donwload... I had to donwload the Thinkvantage Fingerprint software from another website... Please help me, guys! Did you encounter the same problem with me? May you please instruct me how to solve these problems! Thank you a lot!

    hey Moon_Light,
    i would suggest uninstalling all ThinkVantage software, then go to http://support.lenovo.com ; download all drivers for you unit and install.
    at the same time do a bios update as well.
    WW Social Media
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    Follow @LenovoForums on Twitter!
    Have you checked out the Community Knowledgebase yet?!
    How to send a private message? --> Check out this article.

  • Why getting printer errors with Lion

    Since getting my new computer with Lion, when I print to my Lexmark laser printer, I keep very briefly getting an error in the printer queue of "Printer does not support IPP/2.0. trying IPP/1.1". The pages do print after the error message.
    The laser has the latest printer firmware update from Lexmark and I have the latest printer drivers from Apple.
    I am assuming Lion is implementing new printing protocols that aren't recognized by the printers. Even behind the curve Adobe products give the same message, so would appear it is the OS that is calling for IPP/2.0, not the software. The error doesn't appear with the software running under Snow Leopard partition.

    Same problem with Mountain Lion, with latest driver from App store. Mountain Lion automatically chooses the driver.
    Easiest fix appears to be to select the default or highest priority protocol at the printer's web page. Bonjour will then automatically use that protocol instead of IPP.
    See Apple fix for Windows - which recommends LPD Printing (BINPS) or 9100 Printing. I read that 9100 RAW uses HP JetDirect Socket.
    http://support.apple.com/kb/ts2236
    My HP CP4025DN supports many incoming protocols, just not IPP/2.0. If IPP is chosen in the printer as highest priorotyprotocol, then that's what Bonjour installs.

  • Got Error with System Partiton in VM 3.1.1

    Dear All,
    Who used to convert Physical Machine to Virtual Machine with Window 2008R2 has EFI System partition?
    I don't know whether Oracle VM support Window has MBR, UEFI, EFI, MSR,.... or not.
    Please kindly shared experience about that.
    Thanks and regards,
    Vandy

    I haven't tried what you're asking about using p2v but I have had success Ghosting a physical machine and then ghosting it back down into a virtual guest. Its been a while since I've done it but it works for me most of the time. Might be a viable alternative if you're having issues with p2v.

  • I got error with my slidedeck website, i'm running firefox 20.0.1. Please help me, thanks

    http://hidrolikmobilmotor.com/

    I have the same issue, on a client's site. Client complained that "his" computer didn't display the slideshow anymore. The slideshow is built into his site home page:
    http://www.herbariasoap.com/
    I rolled his FF installation back to v19.0.2, and SlideDeck resumed correct functioning.
    Working from my home, I realized the same slideshow on -my- browser had stopped. My home installation had updated itself to v20.0.1.
    Today, I am working at herbariasoap.com office on a different work station. It also has stopped the slidedeck.
    Please advise.
    Lee Fischer
    ''(link removed by Moderator)''

  • Got error while importing objects

    Hi,
    I got error with return code 8 while importing objects.
    Actually, i created Multiprovider and Two queries on that and transported those objects in the same request and released in SE09 and while importing these objects I got error with Return Code 8.
    Pls Help me, what i should do now.
    Thanks&Regards,
    Rafi

    Hi Mohd.
    Return code 8 is an error which indicates that some objects are missing. You will have to include these missing objects before you can create the transport successfully. In your scenario it might be a structure, CKF, RKF, missing info providers etc.
    Hope it helps.
    BR
    Stefan

  • Error With Menu Parameter

    Dear friends,
    This is emergency issue, my boos asked me to create report which it can show all branches and selected branches.
    Oracle BI Publisher Enterprise : 10.1.3.4.0.
    I have tried:
    Data Model SQL : select (:branch) from dual
    Values : select branch_code from branch_param; Identifier = branch
    Parameters:
              Identifier : branch
              Datatype : string
              Type       : menu ( List Of Lalue = branch) ; Multiple Selection= Yes ; Can Select All = All Values Passed
    Every Times I View Report is got error with message : " ORA-00907: missing right parenthesis "
    Please help me......
    Thank So Much.......!!!

    Hi,
    I see list of branches in Parameter Branch: ALL,001,002,003,140,150,160.
    when i selected one of those branch and click VIEW report generated normal, but when I selected 'ALL' or (001,140,160) then it was error.
    What do you think about this?
    Thank,
    Dorang

  • I ve updated my i pod touch to version 6.0.1. Installation got failed with some error msg, and now my i pod is not getting detedted in my system.Help me to fix it up.

    i ve updated my i pod touch to version 6.0.1. Installation got failed with some error msg, and now my i pod is not getting detedted in my system.Help me to fix it up.

    What's the error mesage?

  • When syncing with itunes, got error message saying had error and now ipad2 will not do anything other than showing the USB cable with arrow pointing to Itunes on screen.  have done the reset and restart, but still get same thing.

    when syncing with itunes, got error message saying had error and now ipad2 will not do anything other than showing the USB cable with arrow pointing to Itunes on screen.  have done the reset and restart, but still get same thing.  Ipad does not show up in itunes even though cable plugged in.  Have shut down and restarted Windows 7 computer.

    I had done all of that to no avail.  I did call Apple Tech Support and after he suggested I try a USB port in the rear of the Win 7 computer, things starting working again.  I had tried switching the USB port at the front of the machine but that had not helped.  Everything is good to go again.  thanks for  your reply

  • Tried to update to newest version. I got error because i didn't have this recovery program disc that was supposed to come with the purchase but it didn't and now my ipod touch 8gb won't connect with itunes and is stuck on a connection with itunes screen

    I tried to update to newest version via pc. I got error because i didn't have this recovery program disc that was supposed to come with the purchase so it says, but it didn't and now my ipod touch 8gb won't connect with itunes anymore and is stuck on a screen displaying an itunes icon with a usb icon.

    oke i'm not done with the whole thing, but i'm doing that right now. Most of the advice I've already read didn't work and at a certain point it said something about shutting down programs then restart. but i notice that there are some pretty important system things in that list and i don't want to mess up my pc :s i'm not a pc genius... and because i'm dutch and my pc-language is in dutch I often have trouble translating and well... i don't always understand the technical stuff in all the articles -_-

  • Why  would an error pop up saying the installer is damaged. The Installer can't open the package. There may be a problem with file ownership or permissions. when trying to install java 7?

    why  would an error pop up saying the installer is damaged. The Installer can’t open the package. There may be a problem with file ownership or permissions. when trying to install java 7?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select
    /var/log ▹ install.log
    from the hierarchical list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, click the Clear Display button in the toolbar of the Console window and then try the installation again.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • Offline Backup got error Status Finished with error

    Dear all ,
    OS AIX , DB Oracle , SAP ECC6.0 , Tivoli Storage Manager
    Offline Backup got error Status shows Finished with Error   (Backups are fired through DB13)
    Retune Code :0005 Error during processing
    Detail Logs:
    BKI0027I: Time: 12/10/09 05:19:06 Object: 47 of 47 in process: /oracle/IRP/origlogA/cntrl/cntlrIRP.dbf Size: 14.422 MB, MGMNT-CLASS: WEEKLYMGM
    BKI5005E: Tivoli Storage Manager Error:
    ANS1312E (RC12)   Server media mount not possible
    BKI1208W: The object '/oracle/IRP/origlogA/cntrl/cntlrIRP.dbf' will be retried [4].
    BKI0027I: Time: 12/10/09 05:19:38 Object: 47 of 47 in process: /oracle/IRP/origlogA/cntrl/cntlrIRP.dbf Size: 14.422 MB, MGMNT-CLASS: WEEKLYMGM
    BKI5005E: Tivoli Storage Manager Error:
    ANS1312E (RC12)   Server media mount not possible
    BKI1231E: Maximum number of retries for file /oracle/IRP/origlogA/cntrl/cntlrIRP.dbf exceeded.
    BR0233E Backup utility has reported an error while saving file /oracle/IRP/origlogA/cntrl/cntlrIRP.dbf
    BR0280I BRCONNECT time stamp: 2009-12-10 05.20.07
    #END /oracle/IRP/origlogA/cntrl/cntlrIRP.dbf
    BR0280I BRCONNECT time stamp: 2009-12-10 05.20.07
    BR0304I Starting and opening database instance IRP ...
    BR0280I BRCONNECT time stamp: 2009-12-10 05.20.26
    BR0305I Start and open of database instance IRP successful
    BR0280I BRCONNECT time stamp: 2009-12-10 05.20.26
    BKI1215I: Average transmission rate was 237.735 GB/h (67.622 MB/sec).
    BKI1227I: Average compression factor was 1.000.
    BKI0405I: TDP waited 497 sec. for BRBACKUP in util_file_online communication.
    BKI0020I: End of program at: Thu Dec 10 05:20:33 IST 2009 .
    BKI0021I: Elapsed time: 02 h 20 min 31 sec .
    BKI0024I: Return code is: 2.
    BR0280I BRBACKUP time stamp: 2009-12-10 05.20.33
    BR0279E Return code from '/usr/sap/IRP/SYS/exe/run/backint -u IRP -f backup -i /oracle/IRP/sapbackup/.beccdcmb.lst -t file_online -p /oracle/I
    BR0232E 0 of 47 files saved by backup utility
    BR0280I BRBACKUP time stamp: 2009-12-10 05.20.33
    BR0231E Backup utility call failed
    BR0056I End of database backup: beccdcmb.aff 2009-12-10 05.20.33
    BR0280I BRBACKUP time stamp: 2009-12-10 05.20.35
    BR0054I BRBACKUP terminated with errors
    BR0280I BRBACKUP time stamp: 2009-12-10 05.20.35
    BR0291I BRARCHIVE will be started with options '-U -jid ALGOF20091210030000 -d util_file -c force -p initIRPweekly.sap -cds'
    BR0280I BRBACKUP time stamp: 2009-12-10 05.23.07
    BR0292I Execution of BRARCHIVE finished with return code 5
    regards

    Hi,
    > BKI5005E: Tivoli Storage Manager Error:
    > ANS1312E (RC12)   Server media mount not possible
    Have you checked tape is properly mounted on TSM ?
    Check below guide on page 69.
    http://www.redbooks.ibm.com/redbooks/pdfs/sg246554.pdf
    Thanks
    Sunny
    Edited by: Sunny Pahuja on Dec 12, 2009 12:25 PM

  • I cannot purchase level 96 on candy crush saga. It says there is an error with my account payment, there is money in there to support a purchase. Anyone got the answer for me, please ?

    I cannot purchase level 96 on candy crush saga as it says there is an error with my payments. There is money in the account, as I have checked. Has anyone got an idea of what the problem is ? Please.

    https://expresslane.apple.com/Issues.action

Maybe you are looking for

  • Inutilização de NF-e rejeitada

    Foi criado uma NF-e  que recebeu o status de rejeição pela SEFAZ, solicitou-se a inutilização da mesma só que no retorno do GRC o billing estava bloqueado por outro usuário então no GRC e no ECC o status code = 102 porém o fleg de cancelado no ECC  n

  • Is it possible to Delete BP's from production system

    Hi All, Is it possible to delete old BP numbers from production system? if yes please let me know the procedure and impact on the system. if no please let me know ,how to prevent user from entering old BP number into order. Thanks in advance for your

  • InDesign CS6 (CC edition) crashes on save/export

    I'm having trouble with InDesign CS6 crashing every single time I attempt to save or export a document I just finished. It has never been saved before, other documents save and close fine, I've tried removing all the links from the file, and it still

  • Problem launching BSP application

    Hi all, I'm currently working in CRM 5.0 and I'm trying to launch the BSP application (CRM_IC -> default_dh.htm). I was able to succesfully launch it in the web browser. However, I could only see the toolbar buttons in the browser. The Workarea and t

  • Would this hard drive be compatible with a Compaq Presario CQ50-115NR?

    I'm wondering if this hard drive would fit in and be compatible with my laptop: http://www.wdc.com/en/products/products.asp?driveid=684 I'm not sure if this 12mm, 2.5 inch drive would fit in it or be compatible with it. I plan to purchase this one if