php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9659 sapi servlet crashes when exceptions thrown in java code
Submitted: 2001-03-09 12:34 UTC Modified: 2002-03-28 00:00 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: alt at gimp dot org Assigned:
Status: No Feedback Package: Java related
PHP Version: 4.0 Latest CVS ( OS: Linux RH 6.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
31 - 26 = ?
Subscribe to this entry?

 
 [2001-03-09 12:34 UTC] alt at gimp dot org
./configure --with-java --with-servlet

Sun JVM (also happens with IBM JVM).
Java version "1.3.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)


sapi_servlet_ub_write() and other native methods should
check for java exceptions when calling java methods.

The call to 
(*jenv)->CallVoidMethod(jenv, servlet, write, arg);

should really be followed by :-

{
 jthrowable exc;
 exc = (*jenv)->ExceptionOccurred(jenv);
 if (exc) { 
	    (*jenv)->ExceptionClear(jenv);
	  } 
}


or similar with reporting capabilities.


(When I applied this patch it seemed to fix the exception problem).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-09 13:34 UTC] sniper@php.net
This info moved to #9658

 [2001-03-09 17:04 UTC] alt at gimp dot org
Please note that 9658 and 9659 are not related. They resulted from two different areas of tests being performed on the servlet sapi.
 [2001-03-09 17:47 UTC] sniper@php.net
Reopened. Sorry, my fingers were quicker than my brain. :) 

--Jani

 [2002-02-24 06:06 UTC] yohgaki@php.net
Please test with  PHP 4.1.1+JDK 1.2 and report the result back Thanks.
 [2002-03-28 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jul 06 16:05:46 2022 UTC