• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

EXCEPTION_ACCESS_VIOLATION when calling jni method in Weblogic

Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi There

I have inherited a piece of code that calls a DLL via JNI - this DLL in turn calls a proprietory VB DLL.

The code runs in an ejb on weblogic server - and previously worked fine when the jni methods were called from the ejb. If an exception occured in the DLL the exception was thrown correctly back to the ejb and dealt with appropriately.

However, if we needed to unload the DLL from memory for whatever reason - we needed to restart the whole of weblogic, which was not desirable. Because of this problem, my predecessor changed the code to add another layer. The part of the code that calls the DLL via JNI now exposes itself via RMI and the ejb in turn calls this. This allows us to redeploy the ejb and the DLL is unloaded and loaded correctly.

Now - getting around to my problem. In the new configuration - if an exception is thrown in the DLL, I now get an EXCEPTION_ACCESS_VIOLATION - causing the jvm to die and the whole weblogic server follows.

Nothing has changed in the code apart from the RMI split - DLLs and their interfaces to Java are still the same.

Any ideas?

Thanks in advance

ps. Not sure if this belongs in the J2EE forum - I thought it was more related to JNI so put it here.
I'm still in control here. LOOK at this tiny ad!
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic