Opened 15 years ago

Last modified 11 years ago

#1239 closed defect

On Centos 5.4 x86, Mapguide 2.0.2 Java API crashes Java VM. In debug mode of web throws an exception — at Initial Version

Reported by: rksingh05 Owned by:
Priority: high Milestone: 2.5
Component: General Version: 2.0.2
Severity: blocker Keywords: Java Web Crash
Cc: rajeev@… External ID:

Description

We built Mapguide 2.0.2 (tar downloaded from web site) on Centos Linux 5.5.4 (with some effort - build scripts are available if desired). Non java-web portions works fine (except for a font issue) on sheboygan. However the java web portion casues the Java VM to crash at site.open(). Subsequently we create a small Java application to reproduce and get rid of possible tomcat related issues. The application crashed alongwith a stack trace. We then did debug build of just the web component and the VM does not crash but shows certain exceptions happening in MapGuide/JNI side.

Connecting to the same server from a windows TomCat works fine (except for the aforementioned font issue)

The calls never reach the MgServer. Note that the attached webconfig.ini has 192.168.1.95 as the address for the site server.

Following files are being attached:

TestMg.java - a simple application that does site.open (Please set the path of webconfi.ini to your requirement). Crash/Exception happens at site.open

webconfig.ini - the ini file being used

vmcrashreport.err.txt - the error file generated when VM crashed in non-debug build mode

console.op.txt - the output of console showing the issue. the same is also being copy-pasted here

Script started on Sun 10 Jan 2010 07:44:06 PM IST

javac -classpath .:/usr/local/mapguideopensource/webse erverextensions/www/WEB-INF/lib/MapGuideApi.jar TestgM.java

java -classpath .:/usr/local/mapguideopensource/webser rverextensions/www/WEB-INF/lib/MapGuideApi.jar -Djava.library.path=/usr/local/map pguideopensource/webserverextensions/lib TestMg

configPath:/usr/local/mapguideopensource/webserverextensions/www/webconfig.ini InitDone userInfo Doneorg.osgeo.mapguide.MgUserInformation@de6ced Site doneorg.osgeo.mapguide.MgSite@1fb8ee3 (3076852624) MgSiteManager::Initialize() Exception

(3085924032) MgSiteManager::~MgSiteManager() ]0;root@localhost:~/test_jni[root@localhost test_jni]# exit exit

Script done on Sun 10 Jan 2010 07:44:50 PM IST

Change History (3)

by rksingh05, 15 years ago

Attachment: console.op.txt.bak added

Console o/p showing stack trace and how to compile/run

by rksingh05, 15 years ago

Attachment: TestMg.java added

sample code to replicate the problem

by rksingh05, 15 years ago

Attachment: hs_err_pid4162.log added

error log of java vm when it crashed (web component was then in release mode)

Note: See TracTickets for help on using tickets.