Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > HELP!!! JRUN JSP 500 Error

Reply
Thread Tools

HELP!!! JRUN JSP 500 Error

 
 
relipse@gmail.com
Guest
Posts: n/a
 
      07-25-2006
Hello, I am having a problem, when i comment this line of code, it
doesn't get the 500 error.

PictureFileScanner pics = new PictureFileFolderScanner(/*
thisfilefolder + */"/images");

But when I have it, I get the ugly error (I copied from the JRUN logs
below)
the definition is this:
public PictureFileFolderScanner(String scanDirectory) throws
IOException

which calls this
public PictureFileFolderScanner(File scanDirectory) throws
IOException
{
if (scanDirectory.isDirectory()) {
this.scanDirectory = scanDirectory;
}
else {
throw new IOException("Not a directory \"" + scanDirectory +
"\"");
}

filter = new PictureFileFilter();
rescan(); //upon creation of an image
}

and here is the rescan() method....


/**
* This method scans the directory and appends the list of files
* to lastPictureNames, depending on what was passed into the
constructor.
*/
public void rescan()
{
aryPictureList = new ArrayList();

File[] allPictureFiles;
allPictureFiles = scanDirectory.listFiles(filter);
for (int i = 0; i < allPictureFiles.length; ++i) {
try {
aryPictureList.add(new
PictureFile(allPictureFiles[i].toString()));
}
catch (IOException e) {}
}
java.util.Collections.sort(aryPictureList);
}






07/24 17:49:42 error (class:
jrun__blooddrive__temporarytesting__photoalbum__in dex2ejsp31, method:
_jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponseV)
Incompatible object argument for function call
java.lang.VerifyError: (class:
jrun__blooddrive__temporarytesting__photoalbum__in dex2ejsp31, method:
_jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponseV)
Incompatible object argument for function call
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unk nown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at jrun.jsp.JSPEngine.reloadPage(JSPEngine.java:881)
at jrun.jsp.JSPEngine.loadServlet(JSPEngine.java:862)
at jrun.jsp.JSPEngine.getServlet(JSPEngine.java:741)
at jrun.jsp.JSPServlet.service(JSPServlet.java:115)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker. java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvok erChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequ estDispatcher.java:249)
at
jrun.servlet.ServletEngineService.dispatch(Servlet EngineService.java:527)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable( JRunProxyService.java:204)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:457)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[JSP] difference between jsp:forward and jsp:include alexjaquet@gmail.com Java 0 06-02-2006 01:21 PM
JSP would NOT compile on Websphere5.1 but works OK on Tomcat, Resin, and JRun. Vladimir Java 2 08-10-2004 09:38 AM
JRun server error geopelia Computer Support 3 05-20-2004 03:07 AM
jvm or jrun error? Alex Java 1 10-10-2003 03:38 AM
Help with using TCL/JACL with BSF in JSP for CFMX 6.1/JRUN env Phil Powell Java 0 09-17-2003 02:53 PM



Advertisments