Problems in library libnsl.so.1

Hi all!
By human error, the library was deleted libnsl.so.1 via ssh.
Libnsl.so.1 I tried to copy the file from another machine, via CD.
The Solaris server (10.6) via ssh does not connect more, and restart the machine, it is a loop in the message below:
WARNING: init(1M) exited on fatal signal 9: restarting automatically+
over and over
I put the installation CD for Solaris 10.6, and rebooted the machine with the parameter:
boot cdrom-sw
I tried to copy the file 'libnsl.so.1' original, but I believe it is compressed, as it did not solve the problem, and I can no longer logged on. When it asks the user (root), and I press ENTER, the following message appears:
ld.so.1: login: fatal: relocation error: file /usr/lib/passwdutil.so.1: symbol __nsl_fgetspent_r: referenced symbol not found+
I thought to remove the package SUNWcsl using the pkgrm command , and then reinstall it from the cdrom, but the following occurs:
*#/usr/sbin/pkgrm -n  SUNWcsl*
pkg ERROR: unable to open admin file <default> No such file or directory+
*#/usr/sbin/pkgadd -d /cdrom/Solaris_10/Product SUNWcsl*
pkg ERROR: unable to open admin file <default> No such file or directory+
PS: When you start the system by the command 'boot cdrom -sw " I'm mount the harddisk with the command
+*# mount -F ufs / dev/dsk/c1t0d0s0 /a*+
I need help because I do not want to have to reinstall the operating system.
Tks!

Hi.
Main problem, that some library depend from other. When patch applyed, it change some sets of library. CDROM have old version of the library.
What you can do :
1. Boot from cdrom and mount disk as you already write.
2. Check what size was libnsl.so.1
grep libnsl.so.1 /a/var/sadm/install/contents
You not write full path of deleted lib.
Some of path - real file, but other - just link and you can recreate it.
/lib/libnsl.so=libnsl.so.1 s none SUNWcslr
/lib/libnsl.so.1 f none 0755 root bin 870184 33622 1246072578 SUNWcslr
/lib/sparcv9/libnsl.so=libnsl.so.1 s none SUNWcslr
/lib/sparcv9/libnsl.so.1 f none 0755 root bin 1047928 14180 1246072578 SUNWcslr
/usr/lib/libnsl.so=../../lib/libnsl.so.1 s none SUNWcsl
/usr/lib/libnsl.so.1=../../lib/libnsl.so.1 s none SUNWcsl
/usr/lib/sparcv9/libnsl.so=../../../lib/sparcv9/libnsl.so.1 s none SUNWcsl
/usr/lib/sparcv9/libnsl.so.1=../../../lib/sparcv9/libnsl.so.1 s none SUNWcslFile /a/var/sadm/pkg/SUNWcsl/pkginfo contents list of patches for package SUNWcsl
For found what patch can change this lib:
grep libnsl /a/var/sadm/patch/*/R*
Select what patch was applied last. ( Check date of /a/var/sadm/patch/* )
Download this patch again. Unpack and try copy file.
In case using pkgrm/pkgadd you need specify root dir like :
/usr/sbin/pkgadd -d /cdrom/Solaris_10/Product -R /a SUNWcsl
Regards.

Similar Messages

  • Problem with library file libnsl.so.1

    Hello,
    By mistake we have copied the library file - (libnsl.so.1) to another location and deleted. After that everything stoped working .
    Oracle started throwing error ..instance crashed.
    Error is as below - "Fatal error libnsl.so.1 open failed no such file or directory"
    We are using Solaris 10 update 8 on X86 - 64-bit.
    Is there any way to recover from this?
    Thanks and best regards,
    Dinesh

    You could also grab it from the installation media (its in the Core Solaris package, SUNWcsl), yet again it might be compressed (IIRC with bzip and cpio).
    If you have previouly installed patch 141023-02 or 141023-01, you can probably find an old version in the back-out data under /var/sadm/patch, or you could grab the version from the patch (141023-02\SUNWcslr\reloc\lib\libnsl.so.1)
    Or you can of course copy it from a similar system, or your backup.
    .7/M.

  • New effects problem on library loops

    My Logic has been performing close to flawless since I've had it. An update installed today and a new problem has arisen that I can not find a way to fix. Whenever the project tempo is different than the loop tempo, for example, when a drum loop in the library reads 120 and I change the project tempo is 85, the loop preview plays at the correct tempo but has reverb and delay all over it which sounds awful. Any help would be greatly appreciated.

    That is exactly the same problem I've been having on my iPod 20G.
    1. I've just upgraded my PC with XP, including Service Packs and updates.
    2. Installed the newest iTunes
    3. Imported all music files over from scratch, (did not import old iTunes library).
    4. Installed iPod Updater 2006-01-10 for my version of the iPod.
    5. Installed the new version for the iPod.
    6. Then used the restore feature to wipe the iPod clean and then plugged it into the power supply like instructed by the Updater.
    7. Launched iTunes with the iPod not connected.
    8. Then connected the iPod and created a name for the iPod.
    The problem occurs when the draging created Playlists to the iPod. It starts transferring files and then stops anywhere from 50 to 70 songs into the process. When it freezes, the iPod's "Do Not Disconnect" icon stops flashing and I can hear the harddrive inside the iPod still spinning. If you press the reset combination on the iPod at just the right time, it will reset. From that point I have formatted the iPod and started from sratch three times but it keep freeze around the same number of files. Still happens with different playlists.
    Any suggestions?

  • Setup problem importing library from external hard drive

    my old iMac died, and I am setting up iPhoto on my new iMac (10.7.2).  I had backed up my iPhoto library to an external hard drive before the old iMac went kaput.  However, when I try to import this library when setting up iPhoto, the Library file itself is inhibited / not selectable. 
    I also tried copying the Library to my Pictures folder on the new iMac, but that is failing (error code -36) about a third of the way through.  That incomplete file, also, is inhibited. 
    appreciate any suggestions on how to confront this problem.  thanks.

    Thanks, Terence. 
    When I held down the command/option keys, it prompted me to select a Library.  This time, I chose the Library resident on the EHD.  iPhoto then indicated it needed to run an upgrade in order to render the library (paraphrasing - I should've written down what it said).  That took about 20 minutes, and then it proceeded to import.  I could see all of my Events, and everything appeared to be good to go.  My plan was going to be to then figure out a way to get the photos individually backed up and then monkey with it some more until I could have the Library resident on the Mac HD and backed up on the EHD.
    However, before I got that far, I noted that many of my Events were empty.  I would see a thumbnail image for it, but clicking in it would indicate that there were zero photos in that Event.  I'm flummoxed. 
    Right now, I am individually exporting the files to newly created sub-folder within Pictures so that I at least have a copy of everything on the new iMac, but that is failing about a third of the way through and yielding an error indicating that the files cannot be copied to users/....  Further, I'm not exactly sure what to make of the empty Events issue.  I read another thread on this that says to close and re-launch iPhoto with Command/Option held down and run the repairs, but someone had written that their empty events vanished when they closed the application.  Should I proceed?
    Thanks again to you both.

  • Problems moving library from pc to mac via external drive

    Hi, I have searched hi&lo for an answer to my problem, and now I'm having another problem. I have just got a macbook and had all my music on an external drive in WMA format. I dragged my library into itunes on a pc to transfer it all to mp3 format so I could play it on my mac. That took some time (I have about 50GB worth of music) but it worked. Why can't I just save and replace the old wma library with the new mp3 library? Or do I have to save the new one and then delete the old one? I have just spent hours organizing all the files and artwork, etc. So in order to save the itunes music folder and copy it to the external drive I must consolidate, right? Now the new problem. When I click consolidate library I get an error "Coping Music failed: filename was invalid or too long." I have plenty of space on the pc cdrive and on the external drive. I have done export library and it just puts a small xml file there that obviously isn't 50gb of music! The itunes folder looks like it has most files in it, but no artwork, etc? I have read about the find&replace (can't figure that out either) and other articles, but nothing is working for me yet, any help would be greatly appreciated as I have been at this for days and am getting really frustrated. This is my first mac and use of itunes and I don't see why it's so difficult to transfer your music over! Please help!

    This page may be of some help: How to move an iTunes library from a PC to Mac (and back)

  • Problems moving library from old external drive to new one

    I keep all my music on an external hard drive connected to my laptop at home. I am now spending several months away from home, and couldn't take my external drive with me.
    I planned to handle this by using iTunes backup feature to put my whole library on DVD, then buy a new external hard drive to take with me, and sse iTunes backup feature to rebuild the library on the new external HDD.
    However, I can't get the library to restore/re-load/re-import from the backup DVDs. The iTunes backup/restore instructions tell you to open iTunes then insert the backup DVD. When I do that, I get the following error message:
    "The Disc "Backup2007-07-09" cannot be read. An unknown error occurred (-69)."
    However, I can read the DVD using just going through My Computer, so I really don't believe it's a problem with the disc.
    So, if this backup method isn't working, how can I re-create my library on the new hard drive? I have dozens and dozens of playlists, a lot of them smart playlists that depend on such things as play count, rating, and date added, so i really need to keep all my tags.
    I thought of two possible work-arounds.
    Plan A: Copy all the music myself (ie, not using iTunes) onto the new external hard drive, using the same filename and path as they had on the old external hard drive, then import the Library.itl file that's on the backup DVD (manually copying over the default one created by iTunes).
    Would that work? The big annoyance of this plan, I should add, is that, looking at the files on the backup DVD, i can see that iTunes added a number behind each folder name (ie, "01 Al Green") and behind each album title (ie, "01 Al Green - Greatest Hits"). It seems to me I would have to go through and manually delete all the numerals in both artist and album names in order for the .itl file to point to the right place. That would take hours...
    Plan B: (Really not a great plan, but I'm grasping here...)
    Give up on the backup altogether. Keep adding music and podcasts to my library as is. All my music that is sitting on my far, far away home HDD will get the exclamation point next to it in iTunes. Then, when i try to sync the ipod, if i'm thinking this through right, iTunes will go ahead and add the new stuff to my ipod, but all the old stuff will just not copy over, and then at the end of syncing i'll get the error message to the effect of "itunes didn't copy song x because the file could not be found." This option is far from ideal, as my playlists won't update, but at least i'll still have the playlists.
    Do either of these sound like they would work?
    Any other suggestions?
    Any help would be very much appreciated.

    If you can you connect both external drives to the computer at the same time, it would be easier to use the "Consolidate Library" utility in iTunes to move (actually copy) your media to the new drive.
    1- Open iTunes preferences and select the Advanced tab. Change the location of your iTunes music folder to a location on your new drive. Also select the options "Keep iTunes music folder organized" and "Copy files to iTunes music folder when adding to library". Close the preferences dialog.
    2- On the iTunes menu, select Advanced/Consolidate Library. This will gather all your media and copy it to the new location (the folder you designated in step 1).
    3- After the consolidation is complete, verify that your music still plays, and check "Get Info" on some items to verify that iTunes is looking at the new location.
    4- Optional. Delete the original files on your external drive. Do this only if you are certain that everything copied over to the new drive.
    5- Optional. Close iTunes and locate your "iTunes Library.itl" file. This is typically in your iTunes folder, which may be on your computer's drive and not the external drive. Move this file to somewhere on your new external drive. Next, hold the Shift key as you launch iTunes and you'll be prompted to "Create Library" or "Choose Library". Select "Choose Library" and navigate to where you put the "iTunes Library.itl" file. This is a one-time step that tells iTunes where to boot the library from.

  • Specific Problem with Library Module 1:1 Preview Loading

    Hi everyone.  I've spent hours searching Google & forums for specific tips to try but I've found nothing that solved my problem.  I have a very specific problem loading 1:1 previews in Lightroom 3.3 while zoomed to 1:1.
    When I initially import a shoot (usually 3000 to 6000 images), I always render 1:1 previews during import.  My understanding is that this activity writes full-sized previews to the "Previews" folder, but I also have observed that .DAT files are created in the "Camera Raw Cache" folder.  I have my Lightroom Previews folder and my Adobe Camera Raw Cache folder on the **same** solid-state hard disk, which is dedicated to Lightroom.
    When I browse these newly-imported images in the Library module in Loupe view at 1:1 zoom, it's very zippy and fast to switch between images.  The images load without any message at a lower resolution, and then "snap" to full resolution after 0.25 to 0.5 seconds. No "Loading" message appears.
    However, once the previews have "sat around for a while", even if they are still supposedly available in the Previews folder, loading the image at 1:1 in Loupe as described takes 3-5 seconds.  Shortly after going to an image, the message "Loading..." is displayed (it doesn't say where from), and 3-5 seconds later, the full res image appears.
    This has nothing to do with changes to image settings requiring re-rendering of the preview.  These are images that I've imported but haven't browsed in a while.  I know that the previews are valid, because I can go to "Library > Previews > Render 1:1 Previews", and the task will complete within 20 or 30 seconds without re-rendering any photos after examining them and apparently finding that there are still valid 1:1 previews for all 4000 of them.  After doing this "re-render," the slow loading behavior is the same as before, because the re-render process always completes without actually updating the previews that it found are already there and presumably decided were still valid.  Discarding previews by "Library > Previews > Discard 1:1 Previews" and then trying to re-render them also does nothing, because LR3 apparently doesn't immediately delete the discarded previews, so they are picked back up again As-Is by the re-rendering process.
    If I had to guess at the reason for this behavior based on the symptoms, I would say that it seems like Lightroom is forcing itself to re-render 1:1 previews upon browsing to images that are older than a certain age (very possibly the same "30 days" after which the 1:1 previews are supposed to be discarded).
    Now, I've also observed that deleting the DAT files in the Camera Raw Cache folder has no adverse impact on load speed (which is what I would have expected to see if LR3 was looking for and loading images from this cache instead of the Previews folder).
    What this means to me is that once the image previews reach this "outdated" state, I can't get fast 1:1 browsing performance in Loupe with any reliable procedure other than manually deleting [in Windows Explorer] the entire Preview folder and then re-rendering the 1:1 previews for this shoot.  This is of course terribly inconvenient when there are recent previews that I want to save.
    Note:  I do not have any slowness under any circumstance when browsing at "Zoom to Fit".  This is only a problem when I'm browsing at 1:1 zoom (like when I'm comparing sharpness between a set of photos).
    Note:  For images with the slow behavior described, once the image has been loaded once at 1:1 zoom, it's henceforth snappy again when returning to the image (as if Lightroom was once again accepting the Preview file as valid).
    So, here's a summary:
    Previews (X:\Lightroom Catalog Previews\) and Camera Raw Cache (X:\Lightroom Cache\) are on same, dedicated, fast drive
    1:1 previews from recently-imported files load full-res at 1:1 zoom in less than 1/2 second.
    Older 1:1 previews take 3-5 seconds to load full-res at 1:1 zoom, even though the previews are supposedly being loaded from still-valid 1:1 previews in the Previews folder.
    I'm really tired, so i hope this makes sense.  I don't see how this could be a hardware problem, because I get good performance with recently-imported images.  I'm running LR3.3 on Win 7 Pro x64 with 8 GB of RAM and a 2.4 GHz Intel Core2 Quad CPU.  Never had LR3 beta installed - upgraded to 3.0 from the last 2.X version.  After upgrading, in response to this exact issue, I deleted my entire previews folder and rebuilt, but I continue to have the exact same problem on every shoot that I import.  It's most noticeable on the large shoots, because I end up having to browse at 1:1 zoom to compare a set of similar images.
    Only workaround I've found:  in Windows Explorer, manually delete the Previews folder.  Return to Lightroom and rebuild 1:1 previews.  This forces the previews to be rebuilt for all images.
    Another possible workaround I am going to experiment with: setting the Previews to "Do Not Discard", in case the defualt "Discard after 30 days" that I've used is causing or contributing to the problem.  If Lightroom is actually discarding the images after 30 days but forgetting that it had discarded them when asked to re-render 1:1's, maybe setting to "Do not discard" will bandage that problem by never discarding them to begin with.
    All right, I'm falling asleep at the keyboard.  I'm afraid to add more details as they may become incoherent.  Hope to hear some good news, as fixing this problem would make my LR3 experience so much more pleasant.
    Can anyone assist with this problem?
    - Tyson

    function(){return A.apply(null,[this].concat($A(arguments)))}
    Ian Lyons wrote:
    The behaviour after previews have been around for a while (i.e. previews for unedited images) is not normal. There have been a few other reports of similar behaviour, but no real clues as to why it happens.
    Yes - this is my problem.  Previews should still be valid, and "Library > Previews > Render 1:1 Previews" says the images are still valid, but then Loupe rebuilds them anyways.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Ian Lyons wrote:
    If everything was working correctly, the setting for discard shouldn't have any effect on whether the previews go stale or not. ...
    My understanding is that if everything were working as intended, the "setting for discard" that I was referring to (Edit > Catalog Settings > File Handling > "Automatically Discard 1:1 Previews") should be the sole determinant of whether 1:1 previews must be rebuilt for images with unmodified settings.
    For example, if I import an image and render a 1:1 preview, and if I set the "Auto Discard 1:1" setting to "30 Days", and if I make no changes to the image's settings, then I would expect that the image should render quickly (under 1/2 second) at 1:1 zoom in Loupe view for the next 30 days.  On the 31st day, I would expect the image to take longer to load as a new 1:1 preview was rendered and stored, and then I would expect this new preview to be retained for another 30 days.
    I would furthermore expect that the 30-day counter would be reset every time the image was re-rendered (i.e. if I go into Develop and change something).
    To a certain extent, this is functioning correctly on my system.  When I go to one of these "problem images" that inexplicably load slowly, returning to them subsequently is quick.  I think my problem is just, as Rob suggested, that some part of Lightroom's "brain" has wacky ideas about whether an up-to-date 1:1 preview exists or not.
    If I choose to "Never" automatically discard 1:1 previews (which is what I just switched to), then I should "Never" see unmodified images taking 3-5 seconds to "Load" at 1:1 zoom in Loupe.
    Since I just nuked my Previews folder again last night and re-rendered 1:1's overnight for a 3000 image shoot, it might be a while before I start encountering this bug again.  I will certainly post any further related experiences here and will keep checking for anyone who has further insight.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Ian Lyons wrote:
    ...we know that Lr3.4 RC fixed the manual discard bug, so, if I were you I would focus any further tests on Lr3.4RC.
    Thanks for pointing this out.  I will upgrade to 3.4RC - at least then I will be able to force a rebuild of previews from one shoot without having to manually delete the previews for my entire catalog.  I'll no longer have to throw out all the food in the refrigerator just because something smells funny.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Ian Lyons wrote:
    The DAT files are created at the same time as Library previews. However, they are only used in Develop module.
    Yes, I definitely agree with this (although, the Cache is probably also used while rendering new previews after "Quick Develop" changes in the Library module....).  I posted my observations to this effect just in case someone else wondered the same thing I did.  It is clear that the DAT files get written every time a preview is rendered for RAW file.  Rob, now that I'm thinking with a clearer mind, I think the only thing these Cached files are used for is if you "return" to recently rendered settings in Develop or Quick Develop - then, that particular combination of settings yields a match in the cache, and LR loads the image from the Cache into Previews and onto the screen.  It is logical that the cache wouldn't help us when going to new settings, because the new settings would create a partially or completely different rendering than any other combination of settings.  Adobe may be going to more advanced levels of "reusability" than this, but I'm sure this is the general state of things.
    You may want to open back up write access to that Cache folder...
    Thanks, Rob & Ian!
    So, my question, or bug report, still remains for now - why am I biting into a bag of chips marked "Fresh" and finding them Stale?  And why does it say "Paper Jam" when there is no paper jam?

  • Problems pointing library to external HD iTunes....

    First let me say I'm so sorry if this question has been asked and answered, I really don't have the time right now to search.
    OK, I have two questions actually. The first is I have a 24" iMac that has two users, my husband and myself, on it. We had our entire iTunes library of songs in the Shared users folder. That way we could keep our own separate itunes music.xml and library database files in our own home/music folders. That way we can have our own playlists and own songs. The library has the complete total songs we have, which consists of about 30% of music either he or I have in our list (both not both) and 70% we both have listed. I had a MacBook which Apple just exchanged for a MacBook Pro for me. I'd like to get all of our music on to an external drive so that both the iMac and MacBook Pro (and AppleTV & Sonos) can all access the same library. I spent 8+ hours copying the 80+ GB library on to the external drive (named itunes) into a folder on the primary level called iTunes Music. I then went into my preferences/advanced/general and changed the folder location to reflect the new external location. I pressed ok, and the yes to organize, but the songs in my library do not point to the new location. I then tried to delete the original Shared/iTunes Music library to see if I could 'force' it to find, did it all again, and now all songs have exclamation points. What do I do? I cannot copy the iTunes Library.xml & ITunes Music database files onto the external also because then any differences in any one of the three separate iTunes (2 users on iMac, 1 on MacBook Pro) will not be reflected, they'll all just be exactly the same, which I don't want. I really do not want to click 80+ GBs of songs, one after another, to point each in the right place. Please help me!
    The second question has to do with why I want all the music on an external to begin with. I had one library of music to start with, put it on both my iMac and my MacBook (the one that was returned), and after a year of use, I have a rat's nest of music. There could be the same song on both, but one copy now has lyrics added, the other cover art. So many adds and changes on one or the other and I'm lost. I'd like to merge the two (I used Carbon Copy Cloner to clone my MacBook before it left) libraries, one that WAS on my iMac and now on my external, and the other on another external that is a clone of my MacBook. I've tried using TuneRanger, which is suppose to work, but just got a TON of duplicates. Is there anything out there that can realize by artist name and song title that's it's the same song and merge the changes together to form one library??? It's making me crazy!!

    I'm very sorry you took it that way. Of course I do not think my time is more valuable than anyone else's. I have asked questions and searched this, and others forums, exhaustively in the past before asking anything... I'm even a Global Mod on another forum.
    I maybe should've added that I am in the middle of moving out of the country, so my internet is only intermittent and dependent upon when I can either find a hot spot or pay to connect. I thought all of that would be wasted words compared to my problem, and did not want to offend if the question had been asked a million times before and the answer was obvious.
    But now I guess I'll go somewhere else to find the answer. Thanks so much for your help!

  • Please help meeee!! Problems with library and syncing on new laptop

    Hi I've bought a new laptop and want to start using itunes on the new one, however:
    Problem 1- Even though I've enabled both devices and have clicked on the home sharing, only the songs I have purchased from itunes show in my library and playlists (I managed to import my playlist titles by copying the file and emailing it to myself but it won't show songs other than those purchased from itunes) How can I get the library to show the 500 odd songs I've painstakingly spent importing to itunes on my old, slow laptop? If I have to do them all again I may just have a breakdown!!!
    Problem 2- Have imported a CD into itunes library using my new laptop but it won't show on my ipod after syncing it. I think I have enough space cos the bottom bar says 3.26 GB free!
    I'm really not very techie and don't use itunes much so there may be something glaringly obvious that I'm doing wrong. If anyone can help I'd really appreciate it
    Thanks
    Cheryl

    Home Sharing doesn't really matter, if you plan to stop using the old computer for iTunes.
    Apple has this document
    http://support.apple.com/kb/HT4527
    You should use the method titled External drive. If you use this method, you can ignore the rest of the document.
    The details are in the document, but to summarize this process (so that you have the "big picture" before reading the details)...
    You are copying your iTunes folder from the old laptop to the external drive, and then copying that iTunes folder from the external drive to the new laptop.  When you copy the iTunes folder to the new laptop, you are replacing the existing iTunes folder.  The next time you start up iTunes on the new laptop, it will use the iTunes folder from the old laptop, and it should look like iTunes running on the old laptop. 
    When you read through the document, it may be easier to understand if you keep my "overview" in mind. Please ask any questions you may have about the "details" in the document.
    NOTE:  If you have new songs on the new laptop that are not in your old laptop's iTunes library, you need to keep the existing iTunes folder on the new laptop.  After you have successfully transfered your iTunes folder from the old laptop to the new laptop, and everything is OK when you run iTunes on the new laptop, THEN add the new songs.  This is in the document. 
    You should put Problem 2 aside until the above is completed.

  • Problem :  Native Library already loaded in another classloader

    I created a shared library HaspKeyAPI.dll by using JNI and add path to Java class library. I need to call native functions in my servletAction class to check some information in a key. Sometimes not always, I met �java.lang.UnsatisfiedLinkError: Native Library C:\eclipse\workspace\HaspKey\SharedLib\HaspKeyAPI.dll already loaded in another classloader� problem. I have to restart tomcat server then to restart my web app.
    Does anyone know how to fix it?
    Thank you in advance!
    ////////////////////////////////////my native function class, a singleton class////////////////////////////////
    package haspkey.api;
    import java.util.Collection;
    import java.util.Vector;
    import haspkey.HardwareSecurityKey;
    Public class HaspKeyAPI {
    Public static final int KEYEXIST = 1;
    //A Singleton Class
    private static HaspKeyAPI haspKeyAPI;
    private HaspKeyAPI()
    public static HaspKeyAPI getSingletonObject()
    if ( haspKeyAPI== null)
    haspKeyAPI = new HaspKeyAPI();          
    return haspKeyAPI;
    public Object clone()
         throws CloneNotSupportedException
    throw new CloneNotSupportedException();
    /**********use native functions to call hasp C API***********/
    public native int keyPresent(int password1, int password2);
    public native int getId(int password1, int password2);
    public native void readBlock(int startMemoryLocation, int size,
    byte[] block, int password1, int password2);
    public native void writeBlock(int startMemoryLocation,int size, byte[] block, int password1,
    int password2);
    public native boolean decodeData(int size, byte[] block, int password1,
    int password2);
    public native boolean encodeData(int size, byte[] block, int password1,
    int password2);
    static {
    System.loadLibrary("HaspKeyAPI");
    private int getPrivMachineSpeed(boolean decrypt, int pass1, int pass2, String MLOCRTypeCode){
    byte[] block = new byte[8];
    int privMachineSpeed = 0;
    boolean isNumeric = true;;
    readKeyMemory(40,8,block, decrypt, pass1, pass2);
    if(block.length!=8){
    return -1;
    }else{
    String s = new String(block);
    for(int n=0; n<3; n++){
    if(s.charAt(n)<48 || s.charAt(n)>57){
    isNumeric = false;
    if(isNumeric){
    privMachineSpeed = Integer.parseInt(s.substring(0,3));
    return privMachineSpeed;
    public HardwareSecurityKey getHardwareSecurityKey(boolean decrypt, int pass1, int pass2, String AuthorizationCodes,String MLOCRTypeCode){
    HardwareSecurityKey key = new HardwareSecurityKey();
    if(keyPresent(pass1,pass2)==KEYEXIST){
    key.setPrivKeyID(getId(pass1, pass2));
    key.setPrivMachineSpeed(getPrivMachineSpeed(true, pass1,pass2, MLOCRTypeCode));
    }else{
    return null;
    /////////////////////////////// a class include some static final information to call the native function///////////////
    import com.bowebellhowell.haspkey.api.HaspKeyAPI;
    import com.bowebellhowell.winsort.vo.haspkey.HardwareSecurityKey;
    public class HaspKey{
    public static final String MLOCRTypeCode ="mmmmmmmmmmmmmmm";
    public static final String AuthorizationCodes = "bbbbbbbbbbbbbbbb";
    public static final int p1 = 0;
    public static final int p2 = 0;
    public static HardwareSecurityKey getHardwareSecurityKey(){
    HaspKeyAPI key = HaspKeyAPI.getSingletonObject();
    return key.getHardwareSecurityKey(true,p1,p2,AuthorizationCodes,MLOCRTypeCode);
    /////////////////////////////////// a servlet to call native function///////////////////////////////////
    public class LogonAction extends Action {
         public ActionForward execute(
              ActionMapping mapping,
              ActionForm form,
              HttpServletRequest request,
              HttpServletResponse response)
              throws Exception {
              int n = HaspKey.isKeyPresent();
              if(n!=1){
              if(n==2){
              message = "KeyDriverNotMatch";          
              }else if(n==3){
              message = "KeyOldModel";
              }else if(n==4){
              message = "KeyPasswordNotMatch";
              }else if(n==-1){
              message = "keyNotExist";
              request.getSession().setAttribute("message",message);
    java.lang.UnsatisfiedLinkError: Native Library C:\eclipse\workspace\HaspKey\SharedLib\HaspKeyAPI.dll already loaded in another classloader
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1551)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at haspkey.api.HaspKeyAPI.<clinit>(HaspKeyAPI.java:76)
    at util.HaspKey.isKeyPresent(HaspKey.java:35)
    at LogonAction (LogonAction .java:65)

    Hi EveryBody:
    i working in 2 servlets, these servlets import a login.jar library and login.jar call to Login.dll (a native Library)
    then. when i start second servlet i have this message
    java.lang.UnsatisfiedLinkError: Native Library dllLogin.dll already loaded in another classloader
    i read about class loader and i know about a only one load for native library but i don't know how resolve this exception because both servlets need dllLogin.dll to validate the user
    please anybody knows how or have any idea?
    Kind Regards
    Edson
    --sorry i know. my english is very bad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • .EXP problem with  library .JAR

    Hello,
    I would like to create a javacard library to import it in a new project. Unfortunately I have a problem when I import my library and build in the new project. This is my process:
    1) To create my library I generate a .JAR with my .class files
    2) Seconde step I generate an .EXP file with interface desciption.
    3) in my new project I import my library and I put .EXP file in 'export' directory
    4) I use my library in new servlet
    BUT when I build my new project, i have errors with my .EXP file. Errors are:
    class com.sdk.StringUICC not found in export file sdk.exp.So i have used exp2file to read my .EXP file and this .EXP doesn't decribe all my classes but just my package:
    export file {          // com/sdk
         magic     00FACADE           // in hex
         minor_version     1
         major_version     2
         constant_pool_count     2
         constant_pool {
              Constant_Utf8_info {
                   tag     1
                   length     22
                   bytes     com/sdk
              CONSTANT_Package_info {
                   tag     13
                   flags     0
                   name_index     0          // com/sdk
                   minor_version     0
                   major_version     1
                   aid_length     12
                   aid     0xA0:0x0:0x0:0x0:0x18:0x52:0x1:0x4:0x0:0xFB:0x0:0x41
         this_package     1
         export_class_count     0
         export_classes {
    }So my question is : "What I have to do to generate a correct .EXP file?"
    Thank you :)
    Jérémie

    I didn't use converter command correctly :) it's all right now
    Best regards
    Jérémie

  • Problem with library and vault

    I would like to know how to take all photos out of Aperture and start over.
    When I upgraded to V.3, I think I set things up incorrectly. I had a vault but now there is no vault and I now have folders that appear under Projects & Albums that indicate Aperture Vault, Aperture Vault (1) and Aperture Vault (2). I did not make these folders. There are duplicates of photos in "Aperture Vault and Aperture Vault (1)" folders. I had used an external drive for the vault with V2 and now there is a Aperture Vault on the external drive and also on the internal drive and also an Aperture Library on both the internal and external drives. In the Vault and Vault (1) folders there are folders with the same names but different numbers of photos in the projects. I just would really like to start over and import my photos again; I don't really care about adjustments at this point, only the masters.
    Vault
    Vault(1)

    Linda,
    You did not post the entire screenshot of your Library Inspector, but I suspect I know what's going on.  Is the "Vault" a blue folder, as well as the "Vault(1)"? 
    I also have a top-level folder called "SimpleDrive Vault", which was the name of an Aperture 2 vault which I had to restore. (I had the unfortunately coincidence of a hard drive going bad the day I was intended to install Aperture 3.  I got a new hard drive, installed Ap 3, and then restored the Ap 2 library to start.)  When restoring your vault, Aperture may just create a new top-level folder with your vault name underneath it.  There is nothing wrong with it.  It is not your vault.  It is a folder with your vault name.  You can choose to restructure everything (I.e., drag and drop stuff wherever you want), although you may have duplicates. 
    I imagine that the duplicates are part of the problem you are trying to solve.  However, there is no way around it.  To "start over", as you asked, you will necessary have to send every photo outside of Aperture, duplicates included, and them import them.  I.e., you will have duplicates no matter what.
    To answer your question specifically, the best way to "start over" in your case is probably to "relocate Masters" for every photo in your library to a location of your choosing, trash your library (which would then contain only your project structure, and not any photos), and then create a new library and reimport your photos.  Keep in mind what I stated above, though.  You will just end up with a new library with the same structure as the old library.
    nathan

  • Downgraded to Leopard from Snow, but now have problems with Library files

    I downgraded to Leopard successfully, everything at this point OS wise is working. However, when I go into mail it is asking me to set up a new account. I can see all the info in the mail folder. Same thing goes with Safari. All the bookmarks and everything are in the Library folder, but they will not show up in when loading Safari. It seems as if the files are all there, but the older versions cannot read the data and thinks it is not there. Didn't SL convert the data the first time it was run? Is there a conversion program to take it back to the 10.5.8 version?
    Thanks.

    1. How exactly did you downgrade to Leopard?
    2. Do you have a backup of your data made before you upgraded to Snow Leopard?
    Snow Leopard does convert some data files to a format incompatible with Leopard & Apple does not provide a way to convert it back. This is no problem if you have a backup of the files in their former state (especially a clone of the drive or a Time Machine or similar backup), otherwise it is difficult to impossible, depending on the data type.

  • Problems with library on external HD

    I recently moved my entire itunes library to an external HD. It worked very well for a few weeks but now my mac is not able to recognize the drive. I tried to repair the problem using disk utility but was not able to. I was then prompted to back up and erase the drive and start over. I have two questions. Is there a way for me to back up the drive without use of an additional external HD? (I don't really have the funds to go out and buy another.) If I'm not able to back up the drive before I erase it I would assume that my itunes library will be lost as itunes will not be able to locate the media files. I have my entire library on my ipod. If I were to uninstall itunes totally and then reinstall it is it possible for me to transfer all the media from my ipod back to the new itunes? Thanks in advance for any help.

    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
    Reformatting you external drive may fix the current issues, however I would be worried that it might fail again in the near term. You should look to replace it as soon as possible.
    tt2

  • ITunes problems with library preference

    Hello people,
    I am a Windows user and have all my music stored on a network drive. In I-Tunes I point to the library. However, I-Tunes keeps restoring the original directory: /my documenten/my name/iTunes Music (in stead of network drive/music/iTunes Music.
    Does anybody know of this problem and how to solve it?
    Thanks so much!
    Regards,

    I actually had about 5 on my Mac do the same - also purchased software from the Apple Store.
    I managed to get them recognized properly by deleting them from the iTunes library (but not trashing the files) and then re-importing them in to iTunes, it seems to be related to the update process when 7.1 first loads.

Maybe you are looking for

  • ITunes, App Store and Bing results in Spotlight Search?

    Hi there iOS 8 was supposed to bring new levels of richness to Spotlight search results on iOS, including iTunes, App Store and Bing results (amongst others?). But none of my iOS 8 devices are showing me these results in Spotlight searches. I'm looki

  • How to change displayed font size in calc?

    I've got a user that has the following problem... The fonts inside of certain spreadsheets are too small for her to read easily. I'm looking for a way to set a default magnification value for her in StarOffice. As it stands now, the screen resolution

  • How to provide Hotspot in ALV tree????

    Hi experts, I have provided a double click event in ALV tree display. As of now I am able to open the transactions when I click on some the fields in output. But now I want to have a hotspot on those fields. See plz help me with this. This is my cata

  • Java applet permissions (allow access to ports 1024 )

    Hello everyone, Not sure if this is the place to post this question but this forum has been extremely helpful to me in the past. I'm interested in allowing a java applet to both edit my hosts file and bind to privileged ports (this is for a trusted c

  • APO objets in BW

    Hi, I want to have a APO Object in BW system. The APO Object is 9ALOCNO but i could not see this objects in my BW.Since this being a APO info objects i could not find.Please tell me now to load these infoobject 9* info objects into my BW sytem. Kindl