AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Programmieren allgemein Linux,Tomcat: unhandled exception in a native code Library
Thema durchsuchen
Ansicht
Themen-Optionen

Linux,Tomcat: unhandled exception in a native code Library

Ein Thema von All772 · begonnen am 12. Mär 2008 · letzter Beitrag vom 13. Mär 2008
Antwort Antwort
All772

Registriert seit: 12. Mär 2008
2 Beiträge
 
#1

Linux,Tomcat: unhandled exception in a native code Library

  Alt 12. Mär 2008, 21:37
Hallo,
please help me...
I recieve an unhandled exception in my native code Library that I wrote at first in Delphi on windows, then migrate it on Lazarus under windows as *.dll and then migrate it on Lazarus (FreePascal) under Linux as *.so module.
I call the library functions (native code) from java using JNI.pas for
Java-->Delphi :
http://home.pacifier.com/~mmead/jni/delphi/

Under Windows it runs good in tomcat 6, but under Linux it runs only in a small test program, but in tomcat I recieve sporadic an "Unhandled Exception: AccessViolationException at Address xy".

The problem, that I have, depends may be on garbadge collector or shared memory (java and native code libraries).
Is it a problem of UTF-8 format, that linux has as default?
Have you any idea or experience with JNI and native libraries on Linux?
Is it the problem of Lazarus or Lazarus compiler setting?
Thanks

You can write in German too...
  Mit Zitat antworten Zitat
Benutzerbild von RWarnecke
RWarnecke

Registriert seit: 31. Dez 2004
Ort: Stuttgart
4.408 Beiträge
 
Delphi XE8 Enterprise
 
#2

Re: Linux,Tomcat: unhandled exception in a native code Libra

  Alt 13. Mär 2008, 07:05
Hello and Welcome to DelphiPraxis,

had you debug the library in Lazarus ? Under windows you can debug DLL, i mean that you can do the same under Lazarus on linux. Or is there a special command only for windows tomcat 6 in the library ?

Edit:
Under this link you find a description to debug a servlet.
Rolf Warnecke
App4Mission
  Mit Zitat antworten Zitat
All772

Registriert seit: 12. Mär 2008
2 Beiträge
 
#3

Re: Linux,Tomcat: unhandled exception in a native code Libra

  Alt 13. Mär 2008, 08:04
Hello,
I don't know how can I debug it in Lazarus, if the library loaded by tomcat and runs with Java virtual machiene.
I've tried allready to put in Lazarus Start-Parameter tomcat start command line, but it didn't worked. Then only java.exe with path, it didn't worked too.

The problem is, that it works 100% under linux in testprogram, but not in tomcat.
May be the garbarge collector make some problem too?!?
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:31 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz