Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3167 | major | always | 12-12-08 18:54 | 12-14-08 15:10 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in 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) |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|