Anonymous | Login | Signup for a new account | 12-17-2024 10:54 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003167 | [Quercus] | major | always | 12-12-08 18:54 | 12-14-08 15:10 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.0 | ||||||
Summary | 0003167: NPE when calling Java class | ||||||||
Description |
WEB-INF/classes/test/MyClass.java: package test; public class MyClass { public String hi(String who) { return "hello " + who; } } (document root)/myclass.php: <?php import test.MyClass; $x = new MyClass(); print $x->hi('there'); This runs fine in interpreted mode. In compiled mode, it throws NPE: [18:51:28.110] {http--8080-6} java.lang.NullPointerException [18:51:28.110] {http--8080-6} at _quercus._html._test._myclass__php.execute(_myclass__php.java:40) [18:51:28.110] {http--8080-6} at com.caucho.quercus.page.QuercusPage.executeTop(QuercusPage.java:119) [18:51:28.110] {http--8080-6} at com.caucho.quercus.servlet.ResinQuercusServlet.service(ResinQuercusServlet.java:152) [18:51:28.110] {http--8080-6} at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:407) |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |