Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001726 [Quercus] minor always 05-06-07 16:01 05-22-07 10:01
Reporter ybakos View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 3.1.0
Summary 0001726: Quercus does not work with Qcodo
Description When trying a first run of qcodo, Quercus reports a servlet exception:
Additional Information 500 Servlet Exception

com.caucho.quercus.QuercusRuntimeException: QApplicationBase::Unsupported
is an unknown constant
    at com.caucho.quercus.env.QuercusClass.getConstant(
    at com.caucho.quercus.expr.ClassConstExpr.eval(
    at com.caucho.quercus.env.QuercusClass.init(
    at com.caucho.quercus.env.Env.createQuercusClass(
    at com.caucho.quercus.env.Env.createClassImpl(
    at com.caucho.quercus.env.Env.findClass(
    at com.caucho.quercus.env.Env.findClass(
    at com.caucho.quercus.env.Env.createClassImpl(
    at com.caucho.quercus.env.Env.findClass(
    at com.caucho.quercus.env.Env.findClass(
    at com.caucho.quercus.expr.StaticMethodExpr.eval(
    at com.caucho.quercus.program.ReturnStatement.execute(
    at com.caucho.quercus.program.Function.callImpl(
    at com.caucho.quercus.env.OutputBuffer.callCallback(
    at com.caucho.quercus.env.OutputBuffer.close(
    at com.caucho.quercus.env.Env.popOutputBuffer(
    at com.caucho.quercus.env.Env.close(
    at com.caucho.quercus.servlet.ResinQuercusServlet.service(
    at com.caucho.quercus.servlet.QuercusServlet.service(
    at javax.servlet.http.HttpServlet.service(
    at com.caucho.server.dispatch.ServletFilterChain.doFilter(
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(
    at com.caucho.server.dispatch.ServletInvocation.service(
    at com.caucho.server.http.HttpRequest.handleRequest(
    at com.caucho.util.ThreadPool$Item.runTasks(
    at com.caucho.util.ThreadPool$
Attached Files

- Relationships

- Notes
05-08-07 18:58

Apparently this may have to do with using another class's constants to predefine static class variables in another class.

On line 20 of QApplicationBase.class.php, where I have:
protected static $BrowserType = QBrowserType::Unsupported;

When I switch QBrowserType::Unsupported to 2048, the exception is no longer thrown.

But, now all I get is a blank browser window, no html source.
05-08-07 19:06

If it's not too much trouble, can you explain why Resin is rendering a blank screen? No errors in the log either.
05-10-07 07:58

I would like to help debug this further -- but can you suggest a way for me to get better error/debug info?
05-15-07 14:14

Hi nam, I took your suggestion using *dump() methods to find the cause of the error. I'm getting closer, drilling down to the source of the error. So far, I've narrowed it down to QApplication::InitializeDatabaseConnections(). I will keep you posted here.
05-15-07 14:32

Thanks for your help. I have narrowed the problem down to QApplication::$ConnectionStringArray not being set properly inside QApplicationBase::InitializeDatabaseConnections(). It looks like I can get in a fix today.
05-15-07 14:36

It also appears that Exceptions are not being properly thrown. I will get a fix for it today.
05-22-07 10:01

Most of the issues have been fixed. However, our basic SimpleXML implementation needs to be redone in order for qcodo to work. [^]

- Issue History
Date Modified Username Field Change
05-06-07 16:01 ybakos New Issue
05-08-07 18:58 ybakos Note Added: 0001900
05-08-07 19:06 ybakos Note Added: 0001902
05-10-07 07:58 ybakos Note Added: 0001904
05-15-07 13:35 nam Status new => assigned
05-15-07 13:35 nam Assigned To  => nam
05-15-07 14:14 ybakos Note Added: 0001917
05-15-07 14:32 nam Note Added: 0001918
05-15-07 14:36 nam Note Added: 0001919
05-22-07 10:01 nam Status assigned => closed
05-22-07 10:01 nam Note Added: 0001938
05-22-07 10:01 nam Resolution open => fixed
05-22-07 10:01 nam Fixed in Version  => 3.1.1

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