Mantis Bugtracker
  

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

- Relationships

- Notes
(0003626)
ferg
12-14-08 15:10

php/3h16
 

- Issue History
Date Modified Username Field Change
12-12-08 18:54 koreth New Issue
12-14-08 15:10 ferg Note Added: 0003626
12-14-08 15:10 ferg Assigned To  => ferg
12-14-08 15:10 ferg Status new => closed
12-14-08 15:10 ferg Resolution open => fixed
12-14-08 15:10 ferg Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker