logo       
Google Custom Search
    AddThis Social Bookmark Button

ChibaServlet: Java 1.4 compatibility and error-forward: msg#00018

Subject: ChibaServlet: Java 1.4 compatibility and error-forward
Hi!

The current CVS version of ChibaServlet has a Java 1.4 incompatibility since
revision 1.12 in line 417:

manager  =
(XFormsSessionManager)clazz.getMethod("getInstance").invoke(clazz,(Object[])null);

The getMethod method uses a Java 5 Vararg Class..., so it should be invoked with

clazz.getMethod("getInstance", new Class[0])



The other problem is, that in case of an internal error (exception in doGet
method), the user is forwarded to null

http://localhost:8080/chiba-web-cvs/null

instead of displaying an error page.


Fabio

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>