UnsatisfiedLinkError upon System.load() of library even though the load is in the init() function of the servlet.

All,
Any help on this would be appreciated. We have a servlet that calls a native method
and we load the native library in the servlet's 'init()' method so the servlet
gets loaded only once. However, periodically, I get the following error:
java.lang.UnsatisfiedLinkError : Native Library /opt/shared2/weblogic/myserver/servletclasses/twtc/servlet/toc/toclib.so
already loaded in another classloader
It seems to bring down weblogic when this happens.
Why does this happen?
Is there a way around this?
As a test, I called System.load() 10 times outside of the init function with the
same library and it did not fail once but it does periodically in the init() function
of my servlet, which implies that the init function is being called more than
once.

Like what the error message says, you can only load a native library once per ClassLoader per VM.
You can test this by constructing two ClassLoaders and loading the same library.
The reason why a servlet will be constructed by different classloaders with a VM session is if:
1) the servlet is reloaded (hot-deployed)
2) the servlet belongs in more than one ear, since each ear has its own classloader.
Gene
"Michael" <[email protected]> wrote in message news:[email protected]..
>
All,
Any help on this would be appreciated. We have a servlet that calls a native method
and we load the native library in the servlet's 'init()' method so the servlet
gets loaded only once. However, periodically, I get the following error:
java.lang.UnsatisfiedLinkError : Native Library/opt/shared2/weblogic/myserver/servletclasses/twtc/servlet/toc/toclib.so
already loaded in another classloader
It seems to bring down weblogic when this happens.
Why does this happen?
Is there a way around this?
As a test, I called System.load() 10 times outside of the init function with the
same library and it did not fail once but it does periodically in the init() function
of my servlet, which implies that the init function is being called more than
once.

Similar Messages

  • My DVD drive on my IMAC will not allow me to load a disc, even though there is no DVD in the disc slot.

    My IMAC will not allow me to load a DVD, even though the disc drive is empty.  Any ideas as to what I should do to resolve the problem
    Thanks
    Roger

    Sounds like you have a newer iMac than this forum covers. The newer ones have a bar or "fence" that, on detecting the drive has failed. moves the bar to block the slot so no media can be inserted (to avoid damage or loss of a disk).
    You will need a new optical drive--contact an Apple retail Store or an Authorized Apple Service Provider:
    Find an Authorized Service Provider

  • Ichat starts to open, lingers a second, then 'unexpectedly' quits. I'm in Snow Leopard 10.6.8. I can't find the ichat plist in hte library, even though I've custom re-installed (even the hard way) and downloaded the latest upgrade. Que pasa?

    ichat starts to open, lingers a second, then 'unexpectedly' quits. I'm in Snow Leopard 10.6.8. I can't find the ichat plist in the library, even though I've custom re-installed (even the hard way) and downloaded the latest upgrade. Que pasa?

    crash report, not a reply:
    Process:         iChat [611]
    Path:            /Applications/iChat.app/Contents/MacOS/iChat
    Identifier:      com.apple.iChat
    Version:         5.0.3 (745)
    Build Info:      iChat-7450300~8
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [101]
    Date/Time:       2011-12-17 19:23:00.671 -0500
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          387052 sec
    Crashes Since Last Report:           18
    Per-App Interval Since Last Report:  65 sec
    Per-App Crashes Since Last Report:   18
    Anonymous UUID:                      D59E7670-AAAB-498C-AEBF-93B692A2DE09
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000004
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   ...thesis.MacinTalkSynthesizer          0x00000001159e418d MEOWReader::MEOWReader(int, void const*, char) + 35
    1   ...thesis.MacinTalkSynthesizer          0x00000001159b4246 SpeechChannelManager::UseVoice(VoiceSpec*, __CFBundle*) + 430
    2   ...thesis.MacinTalkSynthesizer          0x00000001159daf14 SEUseVoice + 71
    3   ....speech.synthesis.framework          0x00007fff85d42d4a NewSpeechChannel + 617
    4   com.apple.AppKit                        0x00007fff86ebee35 -[NSSpeechSynthesizerVars setSpeechChannelWithVoiceCreator:voiceID:] + 125
    5   com.apple.AppKit                        0x00007fff86ebc56d -[NSSpeechSynthesizerVars setSpeechChannelWithVoiceIdentifier:] + 89
    6   com.apple.AppKit                        0x00007fff86ebce7c -[NSSpeechSynthesizer initWithVoice:] + 336
    7   com.apple.iChat                         0x000000010009da09 0x100000000 + 645641
    8   com.apple.iChat                         0x000000010001b3ae 0x100000000 + 111534
    9   com.apple.IMCore                        0x00007fff865fa14c _IMPersonStatusIsOnline + 34989
    10  com.apple.IMCore                        0x00007fff865f9fee _IMPersonStatusIsOnline + 34639
    11  com.apple.IMCore                        0x00007fff865f1b78 _IMPersonStatusIsOnline + 729
    12  com.apple.iChat                         0x00000001000066ad 0x100000000 + 26285
    13  com.apple.iChat                         0x000000010001ac60 0x100000000 + 109664
    14  com.apple.IMCore                        0x00007fff865ecdaa _IMPersonStatusFromFZPersonStatus + 1525
    15  com.apple.CoreFoundation                0x00007fff8512493c __invoking___ + 140
    16  com.apple.CoreFoundation                0x00007fff8512480d -[NSInvocation invoke] + 141
    17  com.apple.CoreFoundation                0x00007fff851406e1 -[NSInvocation invokeWithTarget:] + 49
    18  com.apple.iChat.IMUtils                 0x00007fff859d82f7 -[IMLocalObject _handleInvocation:] + 182
    19  com.apple.iChat.IMUtils                 0x00007fff859d7e6f _IMRDeliverComponentArray + 138
    20  com.apple.iChat.IMUtils                 0x00007fff859d7dba _XDeliverComponentArray + 119
    21  com.apple.iChat.IMUtils                 0x00007fff859d7d23 IMRemoteObjectsMIG_server + 52
    22  com.apple.iChat.IMUtils                 0x00007fff859d7c55 _IMRServerPortCallback + 120
    23  com.apple.CoreFoundation                0x00007fff8511365e __CFMachPortPerform + 366
    24  com.apple.CoreFoundation                0x00007fff850eb6b1 __CFRunLoopRun + 5201
    25  com.apple.CoreFoundation                0x00007fff850e9d8f CFRunLoopRunSpecific + 575
    26  com.apple.HIToolbox                     0x00007fff87b757ee RunCurrentEventLoopInMode + 333
    27  com.apple.HIToolbox                     0x00007fff87b755f3 ReceiveNextEventCommon + 310
    28  com.apple.HIToolbox                     0x00007fff87b754ac BlockUntilNextEventMatchingListInMode + 59
    29  com.apple.AppKit                        0x00007fff869f2eb2 _DPSNextEvent + 708
    30  com.apple.AppKit                        0x00007fff869f2801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
    31  com.apple.AppKit                        0x00007fff869b868f -[NSApplication run] + 395
    32  com.apple.AppKit                        0x00007fff869b13b0 NSApplicationMain + 364
    33  com.apple.iChat                         0x0000000100002da0 0x100000000 + 11680
    Thread 1:  Dispatch queue: com.apple.libdispatch-manager
    0   libSystem.B.dylib                       0x00007fff82939c0a kevent + 10
    1   libSystem.B.dylib                       0x00007fff8293badd _dispatch_mgr_invoke + 154
    2   libSystem.B.dylib                       0x00007fff8293b7b4 _dispatch_queue_invoke + 185
    3   libSystem.B.dylib                       0x00007fff8293b2de _dispatch_worker_thread2 + 252
    4   libSystem.B.dylib                       0x00007fff8293ac08 _pthread_wqthread + 353
    5   libSystem.B.dylib                       0x00007fff8293aaa5 start_wqthread + 13
    Thread 2:
    0   libSystem.B.dylib                       0x00007fff8293aa2a __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x00007fff8293ae3c _pthread_wqthread + 917
    2   libSystem.B.dylib                       0x00007fff8293aaa5 start_wqthread + 13
    Thread 3:
    0   libSystem.B.dylib                       0x00007fff8293aa2a __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x00007fff8293ae3c _pthread_wqthread + 917
    2   libSystem.B.dylib                       0x00007fff8293aaa5 start_wqthread + 13
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x00000001010f2200  rbx: 0x00000001004c6670  rcx: 0x0000000000000000  rdx: 0x0000000000000000
      rdi: 0x00000001010f2200  rsi: 0x0000000000000000  rbp: 0x00007fff5fbfbf90  rsp: 0x00007fff5fbfbf60
       r8: 0x0000000000000017   r9: 0x00000001010f9a00  r10: 0x0000000000007000  r11: 0x0000000000000001
      r12: 0x00000001010f2200  r13: 0x00000001010f2200  r14: 0x0000000000000000  r15: 0x00000001004c70e0
      rip: 0x00000001159e418d  rfl: 0x0000000000010206  cr2: 0x0000000000000004

  • My CD drive does appear on the desktop even though Finder preferences indicate it should and so do the System preferences. I'm unable to burn a CD-R in iTunes. It tells me the CD burner is being used by another application?

    My CD drive does appear on the desktop even though Finder preferences indicate it should and so do the System preferences.
    I'm unable to burn a CD-R in iTunes. It tells me the CD burner is being used by another application; however, I seem to find out what's using it.
    I'm unable to eject the CD since it not shown on the Desk Top. I have to restart the system to eject the CD?
    Very unclear as to what is happening?

    My CD drive does appear on the desktop even though Finder preferences indicate it should and so do the System preferences.
    I'm unable to burn a CD-R in iTunes. It tells me the CD burner is being used by another application; however, I seem to find out what's using it.
    I'm unable to eject the CD since it not shown on the Desk Top. I have to restart the system to eject the CD?
    Very unclear as to what is happening?

  • HT201272 Some songs off an album I down loaded wont play even though I have down loaded the album again. Anyone know what I can do to retrieve the missing songs?

    Some of the songs of an album I have down loaded wont play even though they appear on the play list, I have re-downloaded the album and yet still they wont play? Can anybody help?

    Try deleting the problematic file (electing to remove original file if/when prompted) and then re-downloading the file from the iTunes store.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option at the bottom of the screen of the iTunes app (or video app) on your iOS device.
    If the problem re-occurs, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History using your computer.

  • TS1363 i canot able to add videos to library even though at iphone.mp4 format...what should i do to add videos

    i canot able to add videos to library even though at iphone.mp4 format...what should i do to add videos?

    Hi there seransaravanan,
    You may find the troubleshooting steps in the article below helpful.
    iTunes: Videos may be unable to sync to iPhone, iPad, or iPod
    http://support.apple.com/kb/ts1497
    -Griff W. 

  • I have a new email and am trying to change it in icloud. but it has locked me out and won't send my email a reset password link for some reason. even though it says its sent, it doesnt come to the email address

    i have a new email so have a new apple ID now and am trying to change it in icloud. but it has locked me out and won't send my email a reset password link for some reason. even though it says its sent, it doesnt come to the email address. help!

    Welcome to the Apple community.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact Apple ID Support, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    You will need to show patience with the procedure and be prepared to demonstrate without question that the account belongs to you. Don’t expect access to be restored immediately and if you aren’t the owner of the Apple ID registered to the device the account won’t be reset.
    This is answer is provided from my own database of boilerplate responses and the content was last reviewed and/or tested on: 2014/12/18

  • Why don't my photos appear as they do in iPhoto on my Apple Computer. Even though I specify to sync all Events, Faces, etc. the iPad 2 is missing Faces categories and the Events are in a different order.

    Why don't my photos appear as they do in iPhoto on my Apple Computer. Even though I specify to sync all Events, Faces, etc. the iPad 2 is missing Faces categories and the Events are in a different order.

    1) The best way to relocate the iTunes library folder is to move the entire iTunes folder with all subfolders to the new path, then press and hold down shift as start iTunes and keep holding until prompted to choose a library, then browse to the relocated folder and open the file iTunes Library.itl inside it.
    If you've done something different then provide some more details about what is where and I should be able to help.
    2) Purchases on the device should automatically transfer to a Purchased on <DeviceName> playlist, but it my depend a bit on whether automatic iCloud downloads are enabled. If there is a cloudy link then the transfer might not happen. You can use File > Devices > Transfer Purchases. In iTunes you should also check out iTunes Store > Quick Links > Purchased > Music > Not on this computer.
    3) Backup the device, then immediately restore it. In some cases you need to add a restore as new device into that equation. Obbviously not to be attempted until you're sure all your media is in your library. See Recover your iTunes library from your iPod or iOS device should it be needed.
    4) I believe there is complimentary 1 incident 90-day support with hardware purchases, but no free software support for iTunes itself. AppleCare gets you a different level of support.
    tt2

  • HT4617 Even though thunderbolt is not hot puggable in Bootcamp, is the use of mini displayport to vga/dvi still hot pluggable under Bootcamp?

    Even though thunderbolt is not hot puggable in Bootcamp, is the use of mini displayport to vga/dvi still hot pluggable under Bootcamp?

    This is Apple support on the subject
    http://support.apple.com/kb/HT4617
    Can I plug and unplug devices into a Thunderbolt peripheral that is already recognized?
    Yes. That is the best way to add and remove devices from the Thunderbolt chain while Windows 7 is running.
    Have you tried?

  • HT203808 Updated my iPad to IOS 8.1.2 and now I am unable to access iCloud, iTunes, etc. with my password even though it works on my MacMini.  I changed the password thinking it would help, but to no avail.  Now what should I do to restore my iPad to acce

    After updating my  iPad to IOS 8.1.2, I am unable to access the Cloud with my password, even though it worked on my Macmini.  I changed the password and it still does not work on the iPad.  What can I do to get iPad to recognize my Apple ID/password account?

    I would be helpful to know what those "basic steps" you have already tried are, but lacking that information:
    Settings app > iTunes & App Stores - sign out of your AppleID
    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.
    Sign back into your AppleID (same location as noted above)

  • I downloaded the Adobe free trial to convert a PDF to Word and it will not open.  Further, even though I have signed in, it reverts back to the sign in page over and over and over again.  How do I to convert?

    I downloaded the Adobe free trial to convert a PDF to Word and it will not open.  Further, even though I have signed in, it reverts back to the sign in page over and over and over again.  How do I convert?

    Moving this discussion to the Adobe CreatePDF forum.

  • When going to a website from the desktop I get the followi ng message. "There was a problem sending the command to the program" Even though I get this messge, it still connects with the website/

    When going from the desktop to a website, I get the following message. "There was a problem sending the command to the program" Even though I get this message, I still connect to the website.

    As reported in earlier replies, the annoyance disappeared after I upgraded to Roboform 7.5.6, from 7.5.4.
    Regards, Steve

  • When I get a message it only vibrates even though all sounds are on and when someone calls the sound works perfectly normal.

    when I get a message my iphone 4s only vibrates even though all sounds are on and when someone calls the sound works perfectly normal.

    Try a reset. To reset the iPhone, press and hold the home and sleep/wake buttons until you see the Apple logo (ignore the slide to power off prompt). If that doesn't work, perform a Restore via iTunes (from backup).

  • I have been using yahoo mails from iPad for several months. Today I am unable to access my mails even though I logged in to yahoo....the signin screen is keep coming when I tried to access mail.....is it due to iPad or yahoo?

    I have been using yahoo mails from iPad for several months. Today I am unable to access my mails even though I logged in to yahoo....the signin screen is keep coming when I tried to access mail.....is it due to iPad or yahoo?

    It sounds like you might need to contact Yahoo! if you aren't able to setup your email account as a new account after deleting it. 
    I found some links on the Yahoo! website that might help:
    http://help.yahoo.com/kb/index?page=content&id=SLN4138&locale=en_US&y=PROD_MOBIL E
    http://help.yahoo.com/kb/index?locale=en_US&y=PROD_MOBILE&page=content&id=SLN261 7

  • TS2755 I'm trying to activate iMessage on my iPad 2 - I keep receiving an error message saying I need to check my connection even though I am already connected through wi-fi and the connection is strong. Please advise.

    I'm trying to activate iMessage on my iPad 2 - I keep receiving an error message saying I need to check my connection even though I am already connected through wi-fi and the connection is strong. Please advise.

    Possibly there's a firewall in the router.  For reasons that I do not understand, that will affect IOS (iPod/iPad) communication but will not affect computers or other devices.
    You will need administrative access to the router.  If a firewall is present, turn it off and test the iPod again.  If it works, turn the firewall back on but weaken it a notch and test the iPod again.  Repeat as required.

Maybe you are looking for

  • Closing Open Purchase order

    Hi All I want to Close all the open PO's For this i m using Mass maintenance I have seleted the Object as purchase order  --Line item details Well i have selected few POs for testing and marked all of them as delivery completed But the Problem is tha

  • Wi-Fi No Longer Working

    I've had my iPod Touch since X-Mas and up until last night I have never had a problem with it. However, last night when I attempted to use the YouTube function I received the message "Cannot connect to YouTube". When I got home from work today and tr

  • FileReferenceList[i]. load(); how to?

    So I am trying to retrieve the image ByteArray after select event fires for individual fileReferences within fileReferenceList and can't seem to get anywhere....no problem with single fileReference. If you call load() on individual postion in array n

  • 364XL Cartridges do not fit my Photosmart 7520 printer

    I recently purchased replacement ink cartridges for my Phtotsmart 7520 printer (all 364 XL).  I used the HP tool to make sure I found the correct cartridges, and according to everything I read (also on the packaging of the cartridge) they should fit

  • Online redolog on standby

    Hello I know that standby redologs are used in standby database, Does oracle also uses online redologs in standby database? I notice that the status of online redologs changed in standby database select group#, bytes, status from v$log; 1 10485760 UN