[newbie] Reentrantlock() use issue

Once again another thing I really can't understand is the way java "imports" the different classes and functions to a particular application.
I created a class that need to create a ReentrantLock object.
A ReentrantLock is owned by the thread last successfully locking, but not yet unlocking it.
A thread invoking lock will return, successfully acquiring the lock, when the lock is not owned by another thread.That's the object that matches the closiest to the MUTEX concept. That's why I needed to use this Class.
When trying to compile I got this kinf of message well known:
symbol  : class ReentrantLock
location: class consultservice.Main
        ReentrantLock MyMutex=new ReentrantLock();However I import java.util.* or java.util.concurrent.*
Is anybody can explain me how to use this Class ?
Thank you !!

Could u post the whole source code?
Maybe someting with the import command.. anyway
There has been a similar topic on this forum a while ago, maybe it'll help;
http://forum.java.sun.com/thread.jspa?threadID=604767&messageID=3269477
Edited by: wejne on Jan 13, 2008 3:29 PM

Similar Messages

  • In VF01, before saving the billing document, can we use "issue output to"

    In VF01 transaction before saving the billing document, can we use "issue output to" under Billing Document in Menu.
    i.e., can we enable the option "Billing Document -> Issue output to -> Issue output to"

    Hi,
    No as a standard, unless the billing document is created and released to accounting, you can't use issue output to.
    Regards,

  • Mac Newbie TM & Spotlight issues

    Hi All,
    I got my new iMac on 21 September 2012.  I have a NAS (Network Attached Storage) drive on my Netgear DGN 2200 router which Spotlight never really managed to index - it always estimates a huge amount of time and even if I let it go it doesn't get it done. 
    When I started TM backup it extimated about a month and I let it go because I thought it would figure out that it was a new / empty machine quite quickly and the estimate would come down.  After two days and only 2-3GB backed up I stopped it and deleted all of the backup data and started again.  Same issue.
    Then I turned off spotlight and eventually got a week-long backup done. 
    I then updated to 10.7.5 supplemental upgrade which apparently fixes long TM backup issues. 
    Now, with spotlight turned back on TM has been taking forever with its incremental backups.  For example, I turned it on an hour ago and opened pages & Chrome, then it started a backup 50 minutes ago.  It says "Backing up: 116.6 MB of 116.6 MB" but it's still going 50 MINUTES later!!!  update: 75minutes later
    Spotlight is still not indexing my external storage which is an issue because I have all of my work on the external.
    I have been trawling through this forum but being a mac newbie I don't understand all of the jargon - sudo this and that, and if I get a solution it does need to be step by step.  I have always been tinkering around under the hood of previous M$ machines and would be a 'power-user' so I'm not stupid but it's a whole new language for me.
    Should I upgrade to Mountatin Lion?
    Is there any way I can downgrade to 10.6?
    Is there any way to search without using spotlight?  On the pc I used to be able to search non-indexed locations, it would just take a little while.
    Time Machine is not trying to backup my NAS drive is it?  From my understanding it doesn't do that but maybe it's confused ... ???
    Thanks for your help.

    I don't use raid myself so I'll leave that explanation to others. I configure my Mac Pro with 4 drives. My main drive is my boot drive and has about 300+ gigs free. I have a backup drive for that which I use SuperDuper for backup, creating a fully bootable backup drive in the event my main drive has a problem. I only back up to that drive when my machine is "good and solid". That allows me to throw on the most recent update without much concern. If there is a problem then I just boot from my backup drive and I'm back up and running just fine. I also use the backup of my main drive for my Final Cut Pro scratch drive. I copy the files for my movies to external drives for archive when needed. For my data drives I use another set of 500 gig drives. One for data (mostly photos) and one to backup using superduper whenever I feel like it. You could automate it all with Retrospect for the data drives if you wanted to. I don't think Retrospect will make a bootable backup of a main drive. I use Western Digital WD5000KS ddrives, 500 megs each. They make another model for those wanting RAID. Set up RAID, by all means, if squeeking every ounce of speed is your goal to be sure. My setup is conservative, redundant and very safe. A simple search here or on google for RAID0 or such will turn up much info on raid configuations.

  • Windows 7 Ultimate 64-bit memory use issue on 890FXA-GD70 board

    ...Having read the stickies on memory recognition and speed potential, my issue is slightly different.   As noted on my system below, I have 4 x 2GB memory sticks of G.Skill F3-12800CL7D-4GBRM DDR3-1600 with CL7-8-7-24 1.6V rating.  I previously had only 2x2GB (4GB total) initially and windows performance test gave my memory a 5.5 out of 7.9 rating.  I therefore added another 2x2GB of same exact memory to give me 8GB's. Reran the test, and still a memory score of 5.5.  Now Resource Monitor of the physical memory notes that I have installed 8192 MB of memory, however, 5377 MB of it are hardware reserved which only shows 2815 MB of physical memory.  Geekbench thinks I have only 2.75 GB of memory in my system.  Both windows experience and geekbench gave my system low scores for memory.  CPUZ notes that I have 8192 MB of Dual channel Unganged at a DRAM frequency of 828.0 MHz.  My question is:  How can I change my 'hardware reserved' memory into usable memory?

    Quote from: Lithium466 on 27-March-11, 15:42:43
    Have you enabled the memory remap feature in the bios ?
    I searched the BIOS pages and could not find the memory remap feature.  Can you tell me where this is in v 1.8B5?
    Incidentally, I took my 4x2GB memory to a 790GX-G65 machine with v4.0 BIOS and my Windows 7 64-bit Ultimate loaded Revodrive SSD to it to see if that system's Phenom II 550BE driven machine to see if it could recognize and use all 8 GB's.  Same exact results... Recognises all 8 GB's of memory but reserves over 5 GB's for hardware, etc.  I am definitely missing something in translation here...  H   E   L   P    :(

  • General Use Issues

    I've been using my Playbook for a few months now and am having a really great experience with it... until my most recent trip that is. I travel for work a lot and have been using my PB quite a bit, in short, i like it... a LOT, but there's an awful lot that i'm still really displeased about and it all kinda boiled over for me today. After spending more than a few hours on the support forums and coming up empty I've decided to make a list of the things that I'm having issues with. Specifically, I'd like to point out all of the things that don't work that make me say to myself "Are people at RIM even using this?" because some of these are pretty obvious. Before this gets out of hand i really have to emphasize how much i enjoy the Playbook, it's not for everyone but I'm finding the people who take the time to look at it REALLY like owning it, count me in that group.... I just wish it worked
    1) Audio out of sync when watching videos:
    This topic has been covered in this thread ( http://supportforums.blackberry.com/t5/BlackBerry-PlayBook/Audio-in-videos-out-of-sync-randomly/td-p... ) but there is no solution. In fact somebody decided to hijack the thread to troubleshoot the same issue on their Torch. Regardless, I don't seem to be the only one having problems with audio/video being out of sync so i don't know why this hasn't been addressed. It very literally renders the "Videos" application useless for me.
    2) Podcasts
    I'm not sure how many Blackberry users out there actually listen to podcasts and I'm also not sure how many users subscribe to them via the actual podcast website but i'm guessing that i'm in the minority on this one. Nonetheless I have nothing but praise for podcast support on my Bold 9780, it's extremely well done and simple to set up subscriptions. On the PB however, this support is completely non-existent. the only option is to go through the Podcast "Store" which does not have the content i'm interested in (various ESPN broadcasts). Not only that but when i Bridge to my Berry to stream the podcast file over bluetooth it says that the playbook can't do it. To RIM's credit the Podcast Store application is EXTREMELY well done, i just wish i could use it.
    3) Copy/Paste
    Tried to copy a URL from the browser and paste it into a new Email or BBM conversation but couldn't. More specifically i tap and hold on the URL, then select "Copy All" from the selection pane, switch applications, tap and hold to bring up my "Copy Menu" and there is no "Paste" button.... this one could just be me being an **bleep** and not "doing it right" but my brain tells me i should have a Paste button beside the Copy button if i've selected/copied something. 
    4) BBM notifications when connected via Bridge
    This has been happening to me since day one and OS version 1.0.5. I get a BBM, look at/read it on either my Berry or PB and the notification just doesn't go away. Everything looks fine on my Bold, no unread messages, i have all my checkmarks and little D's and R's but for some reason my Playbook will show that i have a bunch of BBM notifications. Every time this happens it causes me to say "Are you kidding me???" (profanities excluded). I have no idea why this isn't a massive priority to fix but i'm convinced RIM doesn't care because both the .06 and .07 updates completely ignored the problem (but Oh Boy! We can zoom in on Videos now!! Come on...) 
    5) Headphone Audio Boost is lacking
    I was excited to get on a plane to try this out and was immediately disappointed when i did. like i say, i travel a lot, but it's often on small, very noisy, planes. I flew from Gander, NFLD to Saint John, NB on our corporate plane today, it's a small 6 seater that takes about 2 hours to do that trip. Naturally i figured the timing would be good enough that i could watch a movie on my PB so i fired it up, flicked on the audio boost and still could barely hear it. Maybe i need new headphones but my Thinkpad, Macbook, Bold, and ipod have never had issues before with them. they're Zagg Smartbuds for reference.
    6) Lack of Audio/Video Codec Support
    This one doesn't bother me too much because i'm used to this being the last thing that gets built into devices, it took M$ forever to finally make the 360 a viable media player. Pretty self explanatory, a lot of the movies i transfer over to my device will play the video fine but with absolutely no sound, this is different from the sync issue described in #1.
    7) Browser Lock ups
    I like the browser, it just hangs a lot. I'm not sure if i'm trying to move too quickly for it but when i click a link and the blue progress bar stops at about 1/3 of the way i know i've gotta close/reopen it. This happens to me usually about once per browsing session. 
    That's it! I expect to accomplish nothing with this post... just needed to vent about it. My first Playbook was stolen so i've spent over $1,400 hoping that this thing was the right tablet for me. After about 4 months of using it i'm convinced that i wasn't wrong, the Playbook is a fantastic device and i still love it when people ask me about it. Having said that, there are still issues with it and all i can find are people like me posting their problems, having people agree with them, and not getting a concrete resolution or ETA on a fix. How about a "We're working on it, just hang tight"?

    As a part-time sound engineer I'd be very careful about using an audio boost option. Aircraft noise can already result in hearing damage. Trying to boost headphone audio over the plane noise could be very dangerous.
    I'd recommend investing in some closed headphones - I like Sennheiser HD 280 pro, but go with whatever is comfortable and affordable for you, just make sure they are of the closed type. If headphones are too bulky, have a look at in-ear sealed earbuds, e.g. from Shure, Sennheiser or Ultimate Ears . The type musicians use on-stage are best. Make sure they have a 3.5mm connector. Best place to get those is a good musical instrument store.
    At prop aircraft noise levels a set of noise cancelling headphones will probably not work. 
    Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands

  • Newbie Automatic restore issues

    Hi:
    I have two issues with a program I am working on to do an automated restore, The restore takes a backup from production, and replaces the database entirely every day so we have offloaded current information: I avoid logical names because we don't want a
    database named production:
    FIRST ISSUE:
    I would like to be able to drop the database. When I drop it interactively, I always click the box close existing connections: The problem is what to do with an interactive connection: Is there any way with an automated restore replace to intrinsically drop
    the database? Although it's not something you normally want to do, it is something in this case that I HAVE to do to ensure the restore works and the with moves move the correctly named files.
    SECOND ISSUE
    When I run the following statement:
    USE [coll18_FinAidNoHR]
    DBCC SHRINKFILE (N'coll18_production_log' , 0, TRUNCATEONLY)
    GO
    I get the following error:
    Cannot shrink log file 2 (coll18_production_log) because the logical log file located at the end of the file is in use.
    (1 row(s) affected)
    DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    Is there any way  to work around this without programming?

    As for question 2-thanks for all the info on DBCC SHRINKFILE I think the best decision is to do it as needed.The
    Restore is a knottier problem. I can't to a restore replace because I want to change the file names. I can't have the logical names.
    I run a prestep before my restore that does this common stuff:
    if exists (select * from sys.sysdatabases where name = 'FinAidNoHR')
    EXEC msdb.dbo.sp_delete_database_backuphistory @database_name = N'FinAidNoHR'
    if exists (select * from sys.sysdatabases where name = 'FinAidNoHR')
    ALTER DATABASE [FinAidNoHR] SET  SINGLE_USER WITH ROLLBACK IMMEDIATE
    if exists (select * from sys.sysdatabases where name = 'FinAidNoHR')
        drop DATABASE  [FinAidNoHR];
    The restore step fails with this error:
    Executed as user: CAMPUS\UCCTD10_SQL. Exclusive access could not be obtained because the database is in use. [SQLSTATE 42000] (Error 3101) 
    When I run an SP_WHO it DOES show the database open in a sleeping state on a remote machine that did not shut down the instance, but this DROP should have had the effect of an interactive drop with close existing connections checked.
    When I did other tests like selecting top 1000 rows from another test database,SP_WHO shows it open in the same way but the DROP works fine.
    Before I tear out what little hair I have left, can anybody tell me why it would  not drop the connection?
    (It was my boss's PC)

  • Newbie resolution ratio issue

    I have CS3 Production Premium and I am just learning the applications. I have worked myself into a bind on my first project and wanted some advice about it.
    Here is the issue:
    The project involves footage from a DV cam (720x480 0.9)that is run through Ultra for a virtual set. The resulting .avi is 720x480.
    This will be edited together with footage that is created from scratch in After Effects. I knew that my resulting flash product had to be 320x240. So, given that AE works faster with smaller resolutions and that I wanted to see what I could get away with in 320x240, I created the AE footage to be 320x240. This represents an amount of work that cannot be redone.
    When bringing these into PrProCS3, I started with the DV cam 720x480 clips. Then I add the 320x240 clips and see that I must use the PP feature, "scale to fit frame". This leaves black bars on the left and right of the 320x240 clips as they are a different ratio than the 720x480 clips.
    So,
    1. What could I do about fixing the situation I have created?
    2. How should I have done it to start with?
    thanks very much for any ideas,
    fred

    This link may help:
    http://blogs.digitalmediaonlineinc.com/jeffschell
    Premiere Pro CS3 Podcast #11: Picture-in-Picture and Split Screen Effects
    But, to be honest, I'm not sure that's the best way to go. Why not create a custom 320x240 project (using the "Desktop mode"), and then scale your DV clip down, while leaving your AE clips at 100%. It's ALWAYS preferable to scale clips down rather than above 100%; clips over 100% lose quality.
    Simply make a new 320x240 custom project and import the old one into it.

  • Newbie ssh connection issue

    when i use putty on my windows 7 machine to ssh to one of my arch laptops i have an odd issue.
    i connect to 192.168.1.15 (arch laptop) using port 22, sshd IS running on the laptop.
    when i do
    scp -v user@laptop:filename c:\filename
    it shows this:
    debug1; Reading configuration from /etc/ssh/ssh_config
    debug1: Connecting to c [external ip] port 22
    but what is odd is my laptop is not named c nor does the ip it display even relate in the slightest to my network. this is a lan so i shouldn't even be going out to the WAN.
    i tested this from another arch laptop and it does the same thing. the issue is with scp not ssh. ssh connects fine but scp is what has the weird behavior.
    what can i do to get this working? i would prefer not to need to sftp files around and i need to move files between laptops and i use my windows machine for backups.

    whitethorn wrote:
    newarch2011 wrote:
    when i use putty on my windows 7 machine to ssh to one of my arch laptops i have an odd issue.
    i connect to 192.168.1.15 (arch laptop) using port 22, sshd IS running on the laptop.
    when i do
    scp -v user@laptop:filename c:\filename
    it shows this:
    debug1; Reading configuration from /etc/ssh/ssh_config
    debug1: Connecting to c [external ip] port 22
    but what is odd is my laptop is not named c nor does the ip it display even relate in the slightest to my network. this is a lan so i shouldn't even be going out to the WAN.
    i tested this from another arch laptop and it does the same thing. the issue is with scp not ssh. ssh connects fine but scp is what has the weird behavior.
    what can i do to get this working? i would prefer not to need to sftp files around and i need to move files between laptops and i use my windows machine for backups.
    Ok just to understand what your doing,
    1) You connect from windows 7 using putty (SSH) onto your laptop.
    2) In the shell on you laptop run the following command (while connected, right after 1)).
    scp -v user@laptop:filename c:\filename
    It seems like you don't understand how the scp command works. It's just like the cp command. You can check out the map pages for scp and cp for more information. Your main problem is.
    from cp man page
    cp [OPTION]... [-T] <b>SOURCE DESTINATION</b>
    With scp works basically the same way. scp SOURCE Destination
    Copying from local PC (where you are logged on) to a remote PC
    scp /file/you/want/to/copy user@other-pc:/file/where/you/want/it
    or if you want to get the file on your pc. Here from a remote PC scp to where you are logged in pc.
    scp user@other-pc:/file/location /where/I/want/it/on/my/pc
    To be able to scp to a computer you need a ssh server to be running on the computer you are copying to. Probably the best way for you to copy files to/from your Windows PC is to use winscp. http://winscp.net/eng/download.php
    I can try WinSCP on my Windows machine but this doesn't help the fact it has the same behavior from arch system to arch system when i try it that way. and i do use scp <source> <target> and it doesnt work.

  • My moto x doesn't receive pictures from iPhone under certain circumstances (not an end of iPhone use issue)

    Since I've had the motox, almost 4 months, I have been unable to receive MMS messaged from any iphone users when they send a text and a picture together.
    Messages from the 4s and 5 don't come in (not tested with other versions)
    I can view the picture if I download the attachment but can't view as a slideshow or if I forward it to myself.
    I've tried clearing the cache, restarting, and deleting the contact on both ends. I do not want to use hangouts
    Sorry if if this is a repeat. I couldn't figure out how to post in the existing thread.

    This is not that issue. I receive texts from iPhone users all the the time. This issue is with messages when pictures are coupled with text in the same message.  Like this:
    http://www.reddit.com/r/MotoX/comments/1ydhxi/problem_receiving_picture_message_mms_with_the/
    And
    https://community.verizonwireless.com/mobile/mobile-access.jspa#jive-content?content=%2Fapi%2Fcore%2Fv3%2Fcontents%2F1747938
    I'm not alone with this.

  • Self signed cert - X509 - importing & using issues...

    Dear Users,
     please refrain from answers if they are not based on facts as i want to find the real cause of this problem and not like to deal with guesses:
    I'm trying to access the webpage http://www.mastersnet.de but due to some issues with the offered SSL-Cert i can not establish a secure connection - hence no connection to this page over SSL at all.
    Furthermore i'm also not able to import the Cert into my nokia certification store. It works on other mobile phones like devices with windows mobile or the iphone. Checking the content of the cert with openssl x509 -text -in certname is not showing anything suspicious.
    If i export the cert from the windows cert store as DER encoded binary X.509 (.CER) file i'm able to import the cert to the certstore but am not able to set trustlevels or show details.
    It behaves like a placeholder without any function.
    Please bring some light into that - even if it's a bug.
    We tried a E63 and E72 with latest firmware.
    Thanks in advance Stefan
    Attachments:
    masters.der.txt ‏2 KB

    You're right - when using PEAP, you'll only need server certificates for authentication. However - If you want to enforce, that the client only connects to your APs*, the clients need to validate the server certificate. The only way to validate the server cert, it to check, if it was issued by a trusted CA. A trusted CA could be for example VeriSign (per system default) or your own CA (if you added it). Check your Certificate store on your client - you'll find all trusted CAs there.
    If you issue a server cert to your ACS server with a CA, the client doesn't trust, validation is impossible.
    A trusted CA cert is NOT a client certificate.
    *(Rogue-APs simulates valid APs (same SSID, encryption and authentication) to obtain user credentials or other data)

  • Good day sir. Im newbie in using SAP Crystal Report. I hope you can help me with my problem

    PROBLEM EXPLANATION
    Pretend that the attached excel file is a crystal report file
    Column A is the details to be compared. Column B is the details that i will have to use a formula in sap crystal report.
    as you can see cell B3 is same with the value in cell A2, B4 with A3, B5 with A4, B6 with A5 and so on.
    How can i get the previous data of column A and put it in column B using formula in crystal report? either basic or crystal syntax
    My Column
    Colmun with formula
    7000
    0
    7689
    7000
    9457
    7689
    8472
    9457
    2364
    8472
    12395
    2364
    18273
    12395
    84723
    18273
    57483
    84723
    493837
    57483
    2823747234
    493837
    226374
    2823747234
    7646363
    226374
    85826263
    7646363
    75756236324
    85826263
    1239534
    75756236324
    Message was edited by: Ludek Uher

    Hi,
    Use the 'previous()' function.
    Example:
    Previous({Column A})
    -Abhilash

  • SQL Developer usage (newbie) question - using for script development

    I'm new to Oracle, but not to SQL (used MS SQL Server off and on for 3 years prior). SQLDeveloper (v1.5.1) was recommended as a dev tool for the work that I'm doing in in Oracle 10.2.0.4. I'm looking to write some scripts to eventually become stored procedures. The problem I'm having is it seems i can only execute one line even though there are multiple statements in the "Enter SQL Statement" window pane.
    ie.
    select id, Full_Name, unique_name, user_id from srm_resources;
    select id, user_name, last_name, first_name from cmn_sec_users;
    when i highlight those two lines and click the "Excecute Statement" button, only the top line generates results.
    I'm used to using MS SQL's Query Analyzer where I could select one statement or multiple statements to execute, even non-SELECT statements (variable assignments, math, control loops). It does not appear that I have this kind of functionality in SQL Developer - or an I not using the tool correctly?
    Thanks
    Brian

    I'm assuming you're meaning the SQL worksheet here. The green arrow icon is execute statement (F9) The tiny green arrow is execute script (F5). I'm currently on 1.5.4 of SQL Developer.
    Hope this helps some. I would download the documentation also.
    http://download.oracle.com/docs/cd/E12151_01/index.htm
    Evita

  • Newbie Simple app issue most likely related to user coding error

    I'm fairly new to the Cyberflex infrastructure and most likely the issue is with my CODE. Basically, I wrote a simple java cardlet without much error checking to try to retrieve a stored object on the card such as a userId. What I think I'm missing or don't understand is how to capture the incoming APDU and respond to it within the process method.
    Error:
    I keep getting a [6C 01] status word return code? Is this a valid Status Word?
    Environment Setup:
    Compiler: jdk1.3.1
    Axalto SDK: 4.4
    Card: Cyberflex e-gate 32k (not personalized and it has no pin assigned to it)
    OS: Windows 2K
    Any help will be greatly appreciated.
    Thank you in advance,
    Alfredo
    Here is the code:
    package Simple.JavaCard;
    import javacard.framework.*;
    public class SimpleJcardTest extends javacard.framework.Applet
    /**======================================
    *Global/constants
    *=======================================*/
    byte userId[];
    final static short MAX_USER_ID_SIZE = ( short )10;
    /**=====================================
    * Defining APDU Instructions that the
    * card response to
    *======================================*/
    // User Defined CLA byte for the command APDU header
    final static byte CLA = ( byte )0xB0;
    //User Defined INS byte for the command APDU header
    final static byte GET_USER_ID = ( byte )0x02;
    //User Defined applet-specific return status words.
    /**====================================
    *Constructor -Create object,initialize
    * the object, register the applet instance
    *=====================================*/
    protected SimpleJcardTest(byte[] bArray, short bOffset, byte bLength )
    //1. Create the object(s)
    userId = new byte[MAX_USER_ID_SIZE];
    //2. Initialize the object(s)
    userId[0] = 0x4a; // J
    userId[1] = 0x6f; // o
    userId[2] = 0x68; // h
    userId[3] = 0x6e; // n
    userId[4] = 0x00; //
    userId[5] = 0x00; //
    userId[6] = 0x00; //
    userId[7] = 0x00; //
    userId[8] = 0x00; //
    userId[9] = 0x00; //
    //3. Register the applet instance
    register();
    /**====================================
    *Install the applet -- creates an instance
    *of the Applet Main entry point into the applet
    *=====================================*/
    public static void install(byte[] bArray, short bOffset, byte bLength )
    //bArray - contains installation parameters.
    //bOffset - contains the starting offset into the array.
    //bLength - contains the length of the parameter data in the
    // array.
    //installation parameters are loaded onto the smart
    //card when the applet is installed
    new SimpleJcardTest(bArray, bOffset, bLength);
    /**====================================
    *Wait in a suspended state until being selected by the JCRE
    *Executed after being initialized                               
    *=====================================*/
    public boolean select()
    return true;
    /**=====================================
    *Process an incoming APDU command
    *Executed after the applet is selected
    *======================================*/
    public void process(APDU apdu) throws ISOException
    //apdu - The JCRE creates an APDU object as a way to
    // communicate a command APDU to a Java Card applet
    // and to receive a response APDU from the Java Card applet.
    // All incoming requests from the host application are sent
    // to the applet's process method for processing.
    // First five bytes CLA, INS, P1, P2, P3 ]
    // [Note: minimal error checking for sample purpose]
    byte[] buffer = apdu.getBuffer(); //Get a reference to the APDU buffer
    this.getUserId(apdu); //Get the UserId stored on the Card
    private void getUserId(APDU apdu)
    byte[] buffer = apdu.getBuffer();
    // Move the UserId data into the APDU buffer
    // starting at the offset
    // src - source byte array
    // srcOff - offset within source byte array to
    // start copy from
    // dest - destination byte array
    // destOff - offset within destination byte array
    // to start copy into
    // length - byte length to be copied
    Util.arrayCopy(userId,(short)0,buffer,ISO7816.OFFSET_CDATA,MAX_USER_ID_SIZE);
    // 1.Inform system that the applet has finished processing the
    // command and the system should now prepare to construct a
    // response APDU which contains data field.
    // 2. Params
    // ISO7816.OFFSET_CDATA
    // - The offset into APDU buffer
    // MAX_USER_ID_SIZE
    // - The bytelength of the data to send
    apdu.setOutgoingAndSend(ISO7816.OFFSET_CDATA, MAX_USER_ID_SIZE);

    An oversight on my part that was discovered by a second set of eyes.
    1. Invalid expected return size was specified.
    final static short MAX_USER_ID_SIZE = ( short )10;
    needed to be changed to
    final static short MAX_USER_ID_SIZE = ( short )0xA;
    2. The calling apdu needed to be modified to
    B0 02 00 00 0A
    Well I hope this helps others as well

  • Newbie in using Oracle...

    Hi everybody,
    I am new here and new in using Oracle database or other tools, can you tell me what do I need to install in chronological order in order to learn how to use Oracle database as back-end for Visual Studio .Net 2003/2005/2008 projects?? Also, any suggestions on very useful books to learning to use Oracle (PL/SQL syntax), preferably showing equivalent of MS SQL syntax to Oracle SQL syntax and other things.
    List of possible downloads:
    1. Oracle Database 10g Express edition(Western European)
    2. Oracle Database 10g Express Edition (Universal)
    3. Oracle Database 10g Express Client
    Which of these 3 I need to download?
    1. Oracle Developer Tools for Visual Studio .NET with Oracle 10g Release 2
    2. ODAC 10.2.0.2.21
    3. Oracle 10g Release 2 ODAC 10.2.0.2.21
    4. Oracle Developer Tools for Visual Studio .NET (for Oracle Database 10g Express Edition)
    5. Oracle 10g ODAC 10.1.0.4.0
    6. Oracle Developer Tools for Visual Studio .NET 10.1.0.4
    7. Oracle 9i Release 2 ODAC 9.2.0.7.0
    Which of these above I needed for Visual Studio .Net 2003/2005/2008 (Windows App, ASP.Net, Web Service and .Net Remoting)??
    Thanks.
    Dennis

    Hi,
    check below link. It will surely help you solve your problem:
    http://www.dannorris.com/2007/06/13/oracle-http-server-apache-rotatelogs-configuration/
    Regards

  • Use issue in Currency Exchanges in report

    Hello Gurus,
    Please any one help me on this issues..User is facing some problem with exchange values in reports...please find the issue below and do the needfull.
    >
    Our sales are based on EURO and CL is also applied with EURO.
    Customer: Turk Prysmian
    CL: 50.000eur
    Sales: 43.000eur
    With TT30days
    Atradius insurance limit: 50.000eur
    The reason of over credit is due to exchange rate difference of the time approved the CL and today?
    We can not get any OC report from DWH system based on EUR.
    If we are able to get the report with EUR, we should have no OC.
    Please suggest me how to convert this currencys, but in the same report for this customer i am checking 2 currencies like TRY and EU1.
    Please advice me  what to do for getiing EUR insted of different currencies.
    Thanks in advance.
    Regards,
    Sekhar.

    i got the solution
    Its explained in metalink note 443433.1

Maybe you are looking for

  • Ipod touch will no longer turn on or charge.

    Hi there, I recently restored my iPod touch and i didn't really watch the restore. I know the loading bar on ipod was nearly at end. Anyways, 10-15mins later i go to use my ipod and clicking the home button nothing displays. I then try to turn on, ye

  • Ipod playlists syncing onto Iphone problem

    Hello, and thanks in advance for looking at this thread! I got an X-mas iphone, and I'm so confused. I have created multiple playlists on my ipod, and I was hoping that I would be able to copy and sync them onto my new iphone. Problem is, when I go t

  • Where is my Save As in Lion?

    Perhaps this only applies to Preview, but I went to do something I do all the time: convert a screenshot from .png to .jpg just in case some Windows user couldn't read it, when I suddenly realised Preview no longer has Save As and it's stupid "Save a

  • Iphone 3.0 Update with Carrier Update After?

    I just updated to Iphone 3.0 and now I see that there is an update for Carrier Settings? should I do it? Im on the Fidos/Rogers network...

  • I want to export with alpha channel using a codec that carries less data than gopro cineform

    Hi--I want to export some intermediate files with an alpha channel. i'm using gopro cineform, and these files end up being so large, meaning that i have to sit through hour long renders.  is there a a codec i can use that has an alpha chanel but crea