Antwort: Re: [xep-support] java vm crashes when using php_java extension

From: Thomas.Braun@infowerk.de
Date: Wed Sep 24 2003 - 03:21:34 PDT

  • Next message: timf@learningtree.com: "[xep-support] problem printing PDF files created by XEP"

    Hi,

    thanks for your answer. but i already tried all your suggestions and
    nothing seems to help...
    i tried different java versions (sun and blackdown, stable and beta)
    i also installed different php versions (4.3.2 and 4.3.3)

    i give up now. i think the best idea would be to install tomcat and write
    a servlet to generate my pdfs...

    greetings
    Thomas

    Thomas,

           Thanks for your message. As your dump indicates, this problem
    is related to interoperability of Java VM with PHP and your local
    operating system, or is an issue with your particular Java VM. Simply
    put, your Java VM crashes in libc and this problem is not related to
    XEP.
           In order to fix this, I suggest that you try the following:

           1) Examine Java VM version requirements of your PHP
           implementation and use stable Java VM version for your platform
           (1.4.2-b28 is a beta version)
           2) If problem persists, try installing latest stable release of
           PHP environment and test with that using simple java
           applications as well as XEP.
           3) Also pay attention to some serious issues with php_java
           module that are described here: http://tjw.org/php_java/

    Sincerely yours,
    Nick Filimonov

    Wednesday, September 24, 2003, 11:34:26 AM, you wrote:

    TBid> Hi,

    TBid> i found out that it's possible to embed java application into php
    with the
    TBid> php_java module. so i coded an application that uses renderx to
    TBid> dynamically render pdfs to the browser or filesystem.

    TBid> all worked fine except some HUGE problems i ran into: the java vm
    TBid> sometimes crashes when running my application. this really just
    happens
    TBid> sometimes. just every 5th run... sometimes more or less often...

    TBid> after adding a lot of debug messages to my scripts and java classes
    i
    TBid> realized that the crash happens while calling
    TBid> "com.renderx.xep.Driver.init()".

    TBid> has anyone any idea?

    TBid> greetings
    TBid> Thomas

    TBid> these are the exceptions i get from java:

    TBid> --------------------------------------------------------------

    TBid> ****************
    TBid> Another exception has been detected while we were handling last
    error.
    TBid> Dumping information about last error:
    TBid> ERROR REPORT FILE = (N/A)
    TBid> PC = 0x405db26b
    TBid> SIGNAL = 11
    TBid> FUNCTION NAME = (N/A)
    TBid> OFFSET = 0xFFFFFFFF
    TBid> LIBRARY NAME = (N/A)
    TBid> Please check ERROR REPORT FILE for further information, if there is
    any.
    TBid> Good bye.
    TBid> pure virtual method called
    TBid> Aborted

    TBid> --------------------------------------------------------------

    TBid> An unexpected exception has been detected in native code outside the
    VM.
    TBid> Unexpected Signal : 11 occurred at PC=0x405DB433
    TBid> Function=(null)+0x405DB433
    TBid> Library=/lib/i686/libc.so.6

    TBid> NOTE: We are unable to locate the function name symbol for the error
    TBid> just occurred. Please refer to release documentation for
    possible
    TBid> reason and solutions.

    TBid> Current Java thread:
    TBid> at com.renderx.util.License.check(License.java:11)
    TBid> at com.renderx.xep.lib.Conf.checks(Conf.java:409)
    TBid> at com.renderx.xep.lib.Conf.init(Conf.java:163)
    TBid> at com.renderx.xep.Driver.init(Driver.java:29)
    TBid> - locked <0x48f6be40> (a java.lang.Class)
    TBid> at xepdriver.XEPDriver.initialize(XEPDriver.java:60)
    TBid> at xepdriver.XEPDriver.generatePDF(XEPDriver.java:80)
    TBid> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    TBid> at
    TBid>
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    TBid> at
    TBid>
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    TBid> at java.lang.reflect.Method.invoke(Method.java:324)
    TBid> at net.php.reflect.Invoke(reflect.java:347)

    TBid> Dynamic libraries:
    TBid> 08048000-081db000 r-xp 00000000 03:03 8503311 /usr/local/bin/php
    TBid> 081db000-0820f000 rw-p 00193000 03:03 8503311 /usr/local/bin/php
    TBid> 40000000-40013000 r-xp 00000000 03:03 2080770 /lib/ld-2.2.5.so
    TBid> 40013000-40014000 rw-p 00013000 03:03 2080770 /lib/ld-2.2.5.so
    TBid> 40014000-40017000 r-xp 00000000 03:03 12861467
    TBid> /usr/local/lib/php/extensions/no-debug-non-zts-20020429/java.so
    TBid> 40017000-40018000 rw-p 00002000 03:03 12861467
    TBid> /usr/local/lib/php/extensions/no-debug-non-zts-20020429/java.so
    TBid> 40018000-4001a000 r--s 00000000 03:03 8159243
    TBid> /usr/local/lib/php/php_java.jar
    TBid> 4001a000-40022000 r-xp 00000000 03:03 2080777 /lib/libcrypt.so.1
    TBid> 40022000-40024000 rw-p 00008000 03:03 2080777 /lib/libcrypt.so.1
    TBid> 4004c000-40157000 r-xp 00000000 03:03 11124750
    /usr/lib/librecode.so.0.0.0
    TBid> 40157000-40185000 rw-p 0010b000 03:03 11124750
    /usr/lib/librecode.so.0.0.0
    TBid> 40185000-401a6000 r-xp 00000000 03:03 11125152
    /usr/lib/libmhash.so.2.0.0
    TBid> 401a6000-401a7000 rw-p 00021000 03:03 11125152
    /usr/lib/libmhash.so.2.0.0
    TBid> 401a7000-401d4000 r-xp 00000000 03:03 11124853
    /usr/lib/libldap.so.2.0.104
    TBid> 401d4000-401d5000 rw-p 0002d000 03:03 11124853
    /usr/lib/libldap.so.2.0.104
    TBid> 401d5000-401e4000 r-xp 00000000 03:03 2080793 /lib/libresolv.so.2
    TBid> 401e4000-401e5000 rw-p 0000e000 03:03 2080793 /lib/libresolv.so.2
    TBid> 401e7000-401f9000 r-xp 00000000 03:03 11124841
    /usr/lib/libsasl.so.7.1.10
    TBid> 401f9000-401fa000 rw-p 00012000 03:03 11124841
    /usr/lib/libsasl.so.7.1.10
    TBid> 401fa000-40201000 r-xp 00000000 03:03 2080823 /lib/libpam.so.0.76
    TBid> 40201000-40202000 rw-p 00006000 03:03 2080823 /lib/libpam.so.0.76
    TBid> 40202000-4020c000 r-xp 00000000 03:03 11124823
    /usr/lib/libgssapi.so.1.2.4
    TBid> 4020c000-4020d000 rw-p 0000a000 03:03 11124823
    /usr/lib/libgssapi.so.1.2.4
    TBid> 4020d000-40241000 r-xp 00000000 03:03 11124831
    /usr/lib/libkrb5.so.17.1.2
    TBid> 40241000-40243000 rw-p 00034000 03:03 11124831
    /usr/lib/libkrb5.so.17.1.2
    TBid> 40245000-40266000 r-xp 00000000 03:03 11124819
    /usr/lib/libasn1.so.5.0.0
    TBid> 40266000-40267000 rw-p 00020000 03:03 11124819
    /usr/lib/libasn1.so.5.0.0
    TBid> 40267000-40278000 r-xp 00000000 03:03 11124835
    /usr/lib/libroken.so.9.5.3
    TBid> 40278000-40279000 rw-p 00010000 03:03 11124835
    /usr/lib/libroken.so.9.5.3
    TBid> 40279000-4031d000 r-xp 00000000 03:03 11124778 /usr/lib/libdb-4.0.so
    TBid> 4031d000-4031f000 rw-p 000a4000 03:03 11124778 /usr/lib/libdb-4.0.so
    TBid> 4031f000-40321000 r-xp 00000000 03:03 11124821
    TBid> /usr/lib/libcom_err.so.1.1.0
    TBid> 40321000-40322000 rw-p 00001000 03:03 11124821
    TBid> /usr/lib/libcom_err.so.1.1.0
    TBid> 40322000-40328000 r-xp 00000000 03:03 11124746
    /usr/lib/libgdbm.so.2.0.0
    TBid> 40328000-40329000 rw-p 00005000 03:03 11124746
    /usr/lib/libgdbm.so.2.0.0
    TBid> 40329000-40356000 r-xp 00000000 03:03 11124814
    /usr/lib/libssl.so.0.9.6
    TBid> 40356000-40359000 rw-p 0002c000 03:03 11124814
    /usr/lib/libssl.so.0.9.6
    TBid> 40359000-40420000 r-xp 00000000 03:03 11124812
    /usr/lib/libcrypto.so.0.9.6
    TBid> 40420000-4042c000 rw-p 000c6000 03:03 11124812
    /usr/lib/libcrypto.so.0.9.6
    TBid> 4042f000-4043a000 r-xp 00000000 03:03 11124851
    /usr/lib/liblber.so.2.0.104
    TBid> 4043a000-4043b000 rw-p 0000a000 03:03 11124851
    /usr/lib/liblber.so.2.0.104
    TBid> 4043c000-4046b000 r-xp 00000000 03:03 11124945
    TBid> /usr/lib/libpng12.so.0.1.2.4
    TBid> 4046b000-4046c000 rw-p 0002f000 03:03 11124945
    TBid> /usr/lib/libpng12.so.0.1.2.4
    TBid> 4046c000-40489000 r-xp 00000000 03:03 11124755
    /usr/lib/libjpeg.so.62.0.0
    TBid> 40489000-4048a000 rw-p 0001d000 03:03 11124755
    /usr/lib/libjpeg.so.62.0.0
    TBid> 4048a000-404ac000 r-xp 00000000 03:03 8110083 /lib/i686/libm.so.6
    TBid> 404ac000-404ad000 rw-p 00021000 03:03 8110083 /lib/i686/libm.so.6
    TBid> 404ad000-404af000 r-xp 00000000 03:03 2080780 /lib/libdl.so.2
    TBid> 404af000-404b0000 rw-p 00001000 03:03 2080780 /lib/libdl.so.2
    TBid> 404b0000-404c2000 r-xp 00000000 03:03 2080783 /lib/libnsl.so.1
    TBid> 404c2000-404c3000 rw-p 00011000 03:03 2080783 /lib/libnsl.so.1
    TBid> 404c5000-40563000 r-xp 00000000 03:03 11124798
    /usr/lib/libxml2.so.2.4.23
    TBid> 40563000-4056c000 rw-p 0009e000 03:03 11124798
    /usr/lib/libxml2.so.2.4.23
    TBid> 4056d000-40681000 r-xp 00000000 03:03 8110082 /lib/i686/libc.so.6
    TBid> 40681000-40687000 rw-p 00113000 03:03 8110082 /lib/i686/libc.so.6
    TBid> 4068c000-40699000 r-xp 00000000 03:03 2080816 /lib/libz.so.1.1.4
    TBid> 40699000-4069b000 rw-p 0000c000 03:03 2080816 /lib/libz.so.1.1.4
    TBid> 4069b000-406c6000 r--p 00000000 03:03 8011779
    TBid> /usr/lib/locale/en_US/LC_CTYPE
    TBid> 406c6000-406cf000 r-xp 00000000 03:03 2080787 /lib/libnss_files.so.2
    TBid> 406cf000-406d0000 rw-p 00008000 03:03 2080787 /lib/libnss_files.so.2
    TBid> 406d0000-406f0000 r-xp 00000000 03:03 5423133
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/i386/libjava.so
    TBid> 406f0000-406f2000 rw-p 0001f000 03:03 5423133
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/i386/libjava.so
    TBid> 406f2000-40c9e000 r-xp 00000000 03:03 7307273
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/i386/server/libjvm.so
    TBid> 40c9e000-40cf8000 rw-p 005ab000 03:03 7307273
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/i386/server/libjvm.so
    TBid> 40d0b000-40d1b000 r-xp 00000000 03:03 5423147
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/i386/libverify.so
    TBid> 40d1b000-40d1d000 rw-p 0000f000 03:03 5423147
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/i386/libverify.so
    TBid> 40d1d000-40d21000 rw-s 00000000 03:03 10436636
    /tmp/hsperfdata_root/20610
    TBid> 40d23000-40d30000 r-xp 00000000 03:03 8110084
    /lib/i686/libpthread.so.0
    TBid> 40d30000-40d37000 rw-p 0000d000 03:03 8110084
    /lib/i686/libpthread.so.0
    TBid> 40d37000-40d3f000 r-xp 00000000 03:03 7208986
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/i386/native_threads/libhpi.so
    TBid> 40d3f000-40d40000 rw-p 00007000 03:03 7208986
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/i386/native_threads/libhpi.so
    TBid> 40d40000-40d54000 r-xp 00000000 03:03 5423148
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/i386/libzip.so
    TBid> 40d54000-40d57000 rw-p 00013000 03:03 5423148
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/i386/libzip.so
    TBid> 40d57000-426e2000 r--s 00000000 03:03 3768355
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/rt.jar
    TBid> 4272c000-42742000 r--s 00000000 03:03 3768354
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/sunrsasign.jar
    TBid> 42742000-4281d000 r--s 00000000 03:03 3768353
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/jsse.jar
    TBid> 4281d000-4282e000 r--s 00000000 03:03 3768345
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/jce.jar
    TBid> 4282e000-42d87000 r--s 00000000 03:03 3768346
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/charsets.jar
    TBid> 4d7b8000-4d7bb000 r--s 00000000 03:03 5242890
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/ext/dnsns.jar
    TBid> 4d7bb000-4d7c8000 r--s 00000000 03:03 5242891
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/ext/ldapsec.jar
    TBid> 4d7c8000-4d7e4000 r--s 00000000 03:03 5242893
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/ext/sunjce_provider.jar
    TBid> 4d7e4000-4d8a0000 r--s 00000000 03:03 5242894
    TBid> /usr/java/j2sdk1.4.2-orig/jre/lib/ext/localedata.jar
    TBid> 4d8a0000-4d8a3000 r--s 00000000 03:03 606257
    TBid> /usr/java/classes/xepdriver.jar
    TBid> 4d8a3000-4d8c6000 r--s 00000000 03:03 10502158
    TBid> /home/www/renderx/lib/cryptix32-pgp.jar
    TBid> 4d8c6000-4d93d000 r--s 00000000 03:03 10502157
    TBid> /home/www/renderx/lib/cryptix32.jar
    TBid> 4d93d000-4d9d6000 r--s 00000000 03:03 10502175
    TBid> /home/www/renderx/lib/saxon.jar
    TBid> 4d9d6000-4dac1000 r--s 00000000 03:03 10502176
    TBid> /home/www/renderx/lib/xep352_developer_stamped.jar
    TBid> 4dac1000-4db16000 r--s 00000000 03:03 10502177
    TBid> /home/www/renderx/lib/xt.jar

    TBid> Heap at VM Abort:
    TBid> Heap
    TBid> def new generation total 576K, used 466K [0x44e30000, 0x44ed0000,

    TBid> 0x45540000)
    TBid> eden space 512K, 78% used [0x44e30000, 0x44e94af0, 0x44eb0000)
    TBid> from space 64K, 100% used [0x44ec0000, 0x44ed0000, 0x44ed0000)
    TBid> to space 64K, 0% used [0x44eb0000, 0x44eb0000, 0x44ec0000)
    TBid> tenured generation total 1408K, used 55K [0x45540000, 0x456a0000,

    TBid> 0x48e30000)
    TBid> the space 1408K, 3% used [0x45540000, 0x4554df90, 0x4554e000,
    TBid> 0x456a0000)
    TBid> compacting perm gen total 16384K, used 1500K [0x48e30000,
    0x49e30000,
    TBid> 0x4ce30000)
    TBid> the space 16384K, 9% used [0x48e30000, 0x48fa7338, 0x48fa7400,
    TBid> 0x49e30000)

    TBid> Local Time = Wed Sep 24 09:14:25 2003
    TBid> Elapsed Time = 0
    TBid> #
    TBid> # The exception above was detected in native code outside the VM
    TBid> #
    TBid> # Java VM: Java HotSpot(TM) Server VM (1.4.2-b28 mixed mode)
    TBid> #
    TBid> # An error report file has been saved as hs_err_pid20610.log.
    TBid> # Please refer to the file for further information.
    TBid> #
    TBid> Aborted

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Wed Sep 24 2003 - 03:19:37 PDT