Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001655 [Quercus] minor always 03-26-07 07:37 03-30-07 16:15
Reporter haid View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 3.1.1
Summary 0001655: LRU Hashcode NPE on new install in Tomcat
Description This may be a newbie issue, but I have not found its resolution.

It looks like a LRU cache initialization null pointer.
I have yet to get Quercus to work on even a trival PHP page.

Using JDK 142, with Tomcat 4.1.24
I have the following in my WEB-INF/lib directory:
    jsr223-api.jar
   quercus.jar
   script-10.jar
   mysql-connector-java-5.0.4-bin.jar
   resin-util.jar
   servlet.jar

I tried to force a php-ini value based on the "Getting Started with Quercus" and a random hint from the Glassfish installation effort found at
http://weblogs.java.net/blog/ludo/archive/2007/03/100_java_quercu.html [^]

My web.xml looks like:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd"> [^]

<web-app>
 <servlet>
    <servlet-name>quercus</servlet-name>
    <servlet-class>com.caucho.quercus.servlet.QuercusServlet</servlet-class>
    <init>
      <php-ini>
         <default_mimetype>text/html</default_mimetype>
      </php-ini>
    </init>
  </servlet>
  <servlet-mapping>
    <servlet-name>quercus</servlet-name>
    <url-pattern>*.php</url-pattern>
  </servlet-mapping>
</web-app>
Additional Information java.lang.NullPointerException
    at com.caucho.vfs.Path$PathKey.hashCode(Path.java:1405)
    at com.caucho.util.LruCache.get(LruCache.java:153)
    at com.caucho.vfs.Path.lookup(Path.java:133)
    at com.caucho.vfs.Path.lookup(Path.java:111)
    at com.caucho.quercus.servlet.QuercusServletImpl.getPath(QuercusServletImpl.java:175)
    at com.caucho.quercus.servlet.QuercusServletImpl.service(QuercusServletImpl.java:88)
    at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:298)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
    at java.lang.Thread.run(Thread.java:613)
Attached Files

- Relationships

- Notes
(0001799)
nam
03-30-07 16:15

You are using JDK 1.4. However, Quercus requires JDK 1.5+. I am adding a check for the JDK version so that Quercus will gracefully quit when it encounters JDK 1.4 and below.

Also, I have verified that Quercus runs on Tomcat 6. If you can, please try the newer versions of Tomcat.
 

- Issue History
Date Modified Username Field Change
03-26-07 07:37 haid New Issue
03-26-07 07:46 nam Status new => assigned
03-26-07 07:46 nam Assigned To  => nam
03-26-07 07:51 haid Issue Monitored: haid
03-28-07 11:51 nam Assigned To nam =>
03-30-07 13:47 nam Assigned To  => nam
03-30-07 16:15 nam Status assigned => closed
03-30-07 16:15 nam Note Added: 0001799
03-30-07 16:15 nam Resolution open => fixed
03-30-07 16:15 nam Fixed in Version  => 3.1.1


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