JSP Exception
Hi All,
I am getting this error in eclipse and tomcat 4.1.36
When I accecss my jsp file
org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:199)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:145)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:139)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2460)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:119)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:157)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)
root cause
The root cause is missing. This is crucial to know, because the .. root cause .. is there. If you're smart enough, just take some time and effort to read and interpret (and google) it yourself and fix your code accordingly.
Similar Messages
-
Unwanted stack trace in weblogic.log for thrown JSP Exceptions
We are throwing a JSP exception within a custom tag when data validation
errors occur; the errorPage for the JSP page is then invoked to show the
appropriate errors. However, in the weblogic.log, a stack trace is shown
indicating the exception (example below). We do not want this stack track
shown unless there is a real "error" in our system vs. invoking the
errorPage to show "application" errors. Is there any way to supress this,
as we are not explicitly causing this to happen. It appears to be a
weblogic feature. This causes us problems in finding true system errors
that might be occurring due to these non-problems showing up in the
weblogic.log.
Thanks for the help.
John Bauer
Wed Dec 20 15:34:49 EST 2000:<E> <ServletContext-General> exception raised
on '/test/test.jsp'
javax.servlet.ServletException: runtime failure in custom tag 'testtag'
at jsp_servlet._test._test._jspService(_test.java:89)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:124)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:
60)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:
07)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager
java:251)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
The design of the data entry pages is such that the error page is the same
page as the data entry page, and a validation JSP tag validates the data and
if it finds a problem, it will set some variables and throw a JSP exception
to redisplay the page. Unfortunately, we are forced to live with this
design. Are you aware of any mechanism to suppress the automatic logging of
thrown JSP exceptions in the weblogic log?
Thanks,
JDB
Cameron Purdy <[email protected]> wrote in message
news:[email protected]...
> Exception handling for custom tags is very poorly handled right now. For
> one thing, WL hides the actual exception.
>
> However, the way that you are doing this seems very odd. The error page
is
> for server errors, not user typos.
>
> Peace,
>
> --
> Cameron Purdy
> Tangosol, Inc.
> http://www.tangosol.com
> +1.617.623.5782
> WebLogic Consulting Available
>
>
> "John Bauer" <[email protected]> wrote in message
> news:[email protected]...
> > We are throwing a JSP exception within a custom tag when data validation
> > errors occur; the errorPage for the JSP page is then invoked to show the
> > appropriate errors. However, in the weblogic.log, a stack trace is
shown
> > indicating the exception (example below). We do not want this stack
track
> > shown unless there is a real "error" in our system vs. invoking the
> > errorPage to show "application" errors. Is there any way to supress
this,
> > as we are not explicitly causing this to happen. It appears to be a
> > weblogic feature. This causes us problems in finding true system errors
> > that might be occurring due to these non-problems showing up in the
> > weblogic.log.
> >
> > Thanks for the help.
> > John Bauer
> >
> > Wed Dec 20 15:34:49 EST 2000:<E> <ServletContext-General> exception
raised
> > on '/test/test.jsp'
> > javax.servlet.ServletException: runtime failure in custom tag 'testtag'
> > at jsp_servlet._test._test._jspService(_test.java:89)
> > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> > at
> >
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> > :124)
> > at
> >
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> > l.java:
> > 60)
> > at
> >
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> > l.java:
> > 07)
> > at
> >
>
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
> > Manager
> > java:251)
> > at
> >
>
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
> > at
> > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
Compiled
> > Code)
> >
> >
>
>
-
Hi,
Users are getting Request URI:/OA_HTML/AppsLocalLogin.jsp Exception java.lang.NoclassDefFoundError error, when they are trying to login to EBS,
They cleared Cache at browser level and Cleared Cache Jinitiator, Do i need to check anything else
EBS version is : 11i.
OS : LinuxSawwan,
We have not made changes .
client denied by server configuration: /u09/dev/comn/java/oracle/jdbc
[Mon Jan 18 14:38:45 2010] [error] client denied by server configuration: /u09/dev/comn/java/oracle/jdbc
[Mon Jan 18 14:41:39 2010] [error] client denied by server configuration: /u09/dev/comn/java/java
[Mon Jan 18 14:41:39 2010] [error] client denied by server configuration: /u09/dev/comn/java/java
[[Mon Jan 18 14:41:42 2010] [error] File does not exist: /u09/dev/comn/java/log4j.xml
[Mon Jan 18 14:41:42 2010] [error] File does not exist: /u09/dev/comn/java/log4j.xml
[Mon Jan 18 14:41:42 2010] [error] File does not exist: /u09/dev/comn/java/log4j.properties
[Mon Jan 18 14:41:42 2010] [error] File does not exist: /u09/dev/comn/java/log4j.properties
Edited by: HumanDBA on Jan 18, 2010 11:48 AM -
When i was trying to forward control to invalidSession page from a JSP
if someone tries to log in without entering password....he must be directed to invalidsession page...
but this is giving exception on line 6...
The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /pages/regError.jsp at line 6
3: <%@page session="true"%>
4: <% if(session.getAttribute("password")==null)
5: {%>
6: <jsp:forward page="/pages/invalidSession.jsp" />
7: <%}
8: %>
9: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
web2.Login.processRequest(Login.java:68)
web2.Login.doPost(Login.java:95)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
org.apache.jasper.JasperException: javax.servlet.ServletException: File "/pages/index.jsp" not found
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
org.apache.jsp.pages.regError_jsp._jspService(regError_jsp.java:60)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
web2.Login.processRequest(Login.java:68)
web2.Login.doPost(Login.java:95)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)From the stack trace it is written:
org.apache.jasper.JasperException:
javax.servlet.ServletException:
File "/pages/index.jsp" not foundYou have to check for path of index.jsp.
Edited by: ngpgeeta on Jan 20, 2009 8:01 AM -
Hello All,
I am unsuccessfully following the "Output to Excel with Oracle9i Report" tutorial found at http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html to create a web-based JSP report that automatically opens in Excel within the browser. I created the template using Excel, saved this as a web page, opened this in Reports Builder, etc. Once I complete the report in Reports Builder and save it as a Reports JSP, I can successfully run this within Reports Builder using the "Run Web Layout" feature. The problem is when I try to run this JSP within my web-application in JDeveloper using the in-line reports server. The browser launches Excel, but then the ReportsTag.doStartTag() method throws a JspException (see below). Anyone seen this problem or been successful achieving this? I have a normal web-based JSP report that is running fine within JDeveloper using the reports in-line server. Also, the only way I could get my web/paper-based report to be generated in PDF format and Paginated HTML was to start a separate reports server and submit my report to the rwservlet of this server. Shouldn't I be able to use the in-line server in JDeveloper? Any help or ideas would be greatly appreciated. Thanks!
Exception I'm getting from Excel Report: javax.servlet.jsp.JspExceptionjavax.servlet.jsp.JspException
at oracle.reports.jsp.ReportTag.doStartTag(ReportTag.java:341)
at jsp.reports._schedule._Excel._jspService(_Excel.java:58)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:684)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)Hi Bill
Let me clarify your doubts. You can use in-process Reports server with report servlet as well as from the jsp engine. The difference here is really on what Reports you can actually run from Reports servlet and jsp engine.
For running from Report servlet:
http://xx.x.xx.xxx:9004/reports/rwservlet?reports=...
You would be using report definition file [rdf/jsp] which have paper layout information included in definition. You can run these paper reports to pdf/html/rtf/delimited/delimitedata format.
Runnig a reports from jsp engine:
http://xx.x.xx.xxx:9004/reports/examples/<reports_name.jsp>?server=...+userid=...
You would be running a report definition [jsp/xml] which have reports jsp tags as part of reports web layout information. Please note these web layout reports which you mention using reports jsp tags, are run under the jspengine using reports tag libraries. The only format you can generate here is html [or excel output].
Reports in-process server is a concept where if user has not started a exclusive Report server, Report servlet, and also reports tag libraries, would start a default reports server to run the particular request. This way it would make things easy for the user and he would need to manage a seperate report server of it own.
Thanks
Rohit -
XML Validation..in JSP (Exception Problem)
Hello all,
Below is a .JSP program, which validates an .XML ("validate.xml") file residing in the same container as the JSP. It throws all the possible exception for all possible errors in an XML file(& prints them in a TextArea), but it terminates as soon as it catches the first one.
HOW CAN I MAKE IT CATCH ALL THE POSSIBLE EXCEPTIONS BEFORE TERMINATING??
Please suggest/help. Any help would be thoroughly appreciated. Thanks!
<%@ page session = "false" %>
<%@ page import = "java.io.*" %>
<%@ page import = "java.net.*" %>
<%@ page import = "java.text.*" %>
<%@ page import = "java.util.*" %>
<%@ page import = "javax.xml.parsers.*" %>
<%@ page import = "org.w3c.dom.*" %>
<%@ page import = "org.xml.sax.*" %>
<%@ page import = "org.xml.sax.helpers.*" %>
<%@ page import = "org.apache.xerces.parsers.DOMParser" %>
<%@ page import = "org.apache.xerces.parsers.SAXParser" %>
<HTML>
<HEAD>
</HEAD>
<%
try{
XMLReader parser = new org.apache.xerces.parsers.SAXParser();
DefaultHandler handler= new ProductParser();
parser.setContentHandler(handler);
parser.setErrorHandler(handler);
parser.setFeature ("http://xml.org/sax/features/validation", true);
StringBuffer requestURL = HttpUtils.getRequestURL(request);
URL jspURL = new URL(requestURL.toString());
URL url = new URL(jspURL, "validate.xml");
InputSource is = new InputSource(url.openStream());
parser.parse(is);
catch (SAXException e) {}
%>
<%!
String warn = "";
String err = "";
String fatal = "";
class ProductParser extends DefaultHandler
public void warning (SAXParseException e) throws SAXException // Warning Event Handler
warn = ("Warning: At Line Number " + e.getLineNumber() + " \nError Reason: " + e.getMessage() + "\n");
public void error (SAXParseException e) throws SAXException // Error Event Handler
err = ("Error: At Line Number " + e.getLineNumber() + " \nError Reason: " + e.getMessage() + "\n");
public void fatalError (SAXParseException e) throws SAXException // Fatal Error Event Handler
fatal = ("Fatal Error: At Line Number " + e.getLineNumber() + " \nError Reason: " + e.getMessage() + "\n");
%>
<Body>
The Errors in your XML file are as beloW: <br>
<%=(warn + err + fatal)%>
</Body>
</HTML>somebody please answer!
-
This is my Programe
<html>
<head>
<title>JSP JavaMail Example </title>
</head>
<body>
<%@ page import="java.util.*" %>
<%@ page import="p1.*" %>
<%@ page import="javax.mail.*" %>
<%@ page import="javax.mail.internet.*" %>
<%@ page import="javax.activation.*" %>
<%
out.println("hello");
String host="smtp.gmail.com";
String to = request.getParameter("to");
String from = request.getParameter("from");
String subject = request.getParameter("subject");
String messageText = request.getParameter("body");
out.println("hello");
boolean sessionDebug = false;
Properties props = System.getProperties();
props.put("mail.host", host);
props.put("mail.smtp.auth", "true");
props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.starttls.enable","true");
Session mailSession = Session.getDefaultInstance(props, "");
mailSession.setDebug(sessionDebug);
Message msg = new MimeMessage(mailSession);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(subject);
msg.setSentDate(new Date());
msg.setText(messageText);
Transport.send(msg);
out.println("Mail was sent to " + to);
out.println(" from " + from);
out.println(" using host " + host + ".");
%>
</body>
</html>
When I Run this It gives following error
Please help me
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Session cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Session cannot be resolved
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Message cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
MimeMessage cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
InternetAddress cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
InternetAddress cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Message.RecipientType.TO cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Transport cannot be resolved
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Session cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Session cannot be resolved
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Message cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
MimeMessage cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
InternetAddress cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
InternetAddress cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Message.RecipientType.TO cannot be resolved to a type
An error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
Transport cannot be resolved
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logsMaybe print out from the exceptions in the conexionBD directly, even do a printStackTrace. Since the exceptions are encapulated it is hard to tell. Your setup for the database looks good. Not sure about class loading this way and how it will pool. I would suggest using the JNDI capability available from the context administration of Tomcat.
-
JSP Exception: connection reset by peer
ervlet.jsp.JspException: Can't write string 'Asset Library' : Connection reset by peer.
at org.apache.struts.taglib.tiles.InsertTag$DirectStringHandler.doEndTag()I(InsertTag.java:1026)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag()I(InsertTag.java:473)
at jsp_servlet._pages._common._layouts.__mainlayout._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__mainlayout.java:325)
at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl.java:322)
at org.apache.struts.action.RequestProcessor.doForward(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(RequestProcessor.java:1069)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(TilesRequestProcessor.java:274)
at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(Ljava.lang.String;ZLjavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)Z(TilesRequestProcessor.java:2
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Lorg.apache.struts.config.ForwardConfig;)V(TilesRequ
at org.apache.struts.action.RequestProcessor.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
When I find the data it's giving result alon with the above exception.
Can any one help?maybe put in abit of effort and tell the forum what you are trying and what is casuing this error, furthermore put in a little bit more effort and read the text behind the Formatting Tips url provided above the textarea you used to paste your stacktrace in.
-
Oracle JSP Exception code too large for try block
My jsp is exceeding the memory limit (64KB for Oracle 10g App server i think its the JVM limit),
so it is throwing exception ,code too large for try block,how to over come this,I cant minimize the use of logic tags because it is business requirement.please help me out.I think you need to give a value to the attribute buffer in the <%@ page%> directive to solve the problem.
There will not be any need of going for pagination then.
buffer="none | 8kb | sizekb"The buffer size in kilobytes used by the out object to handle output sent from the compiled JSP page to the client Web browser. The default value is 8kb. If you specify a buffer size, the output is buffered with at least the size you specified.
check the documentation at
http://java.sun.com/products/jsp/tags/11/syntaxref11.fm7.html
Uday -
I have set up an errorPage handler (ExceptionHandler.jsp) for my JSP page, Main.jsp. If the Main.jsp throws an exception from some of its early code, ExceptionHandler.jsp shows correctly.
But if Main.jsp throws an exception later on in its code, its previous ouput to the client isn't cleared and gets sent to the client along with the ExceptionHandler.jsp output - usually resulting in the user seeing a blank screen.
So how can I make it so that when ExceptionHandler.jsp is called, none of Main.jsp output is sent to the client?
Cheers,
JamesDon't handle business logic in JSPs, but in Servlets. Use JSPs for presentation only. With other words: move all those scriptlets out of the JSP file to a real Java class.
-
JSP Exception after making JAR
Hi,
I'm getting this exception while I package my java class files and properties files as a jar and put it in library. I'm using struts framework which extensively uses tiles. After packaging I dont have any files in the classes directory but all the files are in the library.
while I debug it goes to Action classes and it executes JSPs so it was able to refer classes properly. But failes in some taglibs.
Any help would apprieciated.
ServletException in:/layout/channelpage_enhanced.jsp] null' javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:843) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:776) at org.apache.jsp.layout.channelpage_005fenhanced_jsp._jspService(channelpage_005fenhanced_jsp.java:1373) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:602) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at org.apache.jsp.layout.standard_005ftemplate_jsp._jspService(standard_005ftemplate_jsp.java:867) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) atInstead of building your class files into a jar you might want to consider building the entire web application into a war file for deployment. I do this even for deployment to my local test server just to keep things more similar between my local server and the deployment server.
This is an excerpt from my ant build
<target name="build.war">
<echo message="Building the war file for the web application"/>
<war
destfile="${p.app.jar.dir}/appname/WarFile.war"
webxml="${web.module.web-inf.dir}/web.xml">
<fileset dir="${web.module.resource.dir}">
<include name="*.*"/>
</fileset>
<classes dir="${web.module.classes.dir}"/>
<fileset dir="${p.app.jar.dir}/appname">
<include name="*.jar"/>
</fileset>
<fileset dir="${web.module.web-inf.dir}">
<include name="*.*"/>
</fileset>
<manifest>
<attribute name="Class-Path" value="Service-client.jar"/>
</manifest>
</war>
</target>Just a thought your milage may of course vary.
PS. -
500 Internal Server Error
OracleJSP:
JSP Error:
Request URI:/ForecastVsActualWithProgressBarWebApp/htdocs/forecastvsactualportlet/processing.jsp
Exception:
java.lang.NullPointerException at java.net.URLClassLoader$1.run(URLClassLoader.java:190) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:143) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:143) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:256) at oracle.jsp.parse.JspUtils.loadClass(JspUtils.java:246) at oracle.jsp.parse.JspRTTag.<init>(JspRTTag.java:149) at oracle.jsp.parse.JspParseState.createTagParser(JspParseState.java:575) at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:693) at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:184) at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:154) at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:428) at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:284) at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:483) at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:542) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:305) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
--------------------------------------------------------------------------------Is this related to a download from Oracle website?
You might want to post more information and the "question" here. -
Cannot a get JSP page instance from a page being destroyed
We have a J2EE app, using Struts + Tiles (build 1.1-b3), running on Win2KPro, Ora9ias v9.0.3. The application is roles-based, and different users see different versions of the same page based on their role authorizations. Occasionally, when multiple users in different roles are requesting the same page, the app returns the following exception:
OracleJSP:
JSP Error:
Request URI:/fast/WEB-INF/jsp/tiles/layouts/baseLayout.jsp
Exception:
javax.servlet.ServletException: Cannot a get JSP page instance from a page being destroyed
at oracle.jsp.runtimev2.JspPageInstFacade.getInstance(JspPageInstFacade.java:147)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:303)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at com.gal.fast.portal.web.SessionInitializedFilter.doFilter(SessionInitializedFilter.java:105)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:556)
at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:119)
at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude(TilesUtilStrutsModulesImpl.java:124)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:703)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:818)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:467)
at web2d_inf._jsp._tiles._layouts._baseLayout._jspService(_baseLayout.java:445)
[SRC:/WEB-INF/jsp/tiles/layouts/baseLayout.jsp:149]
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at com.gal.fast.portal.web.SessionInitializedFilter.doFilter(SessionInitializedFilter.java:105)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:556)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1033)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:269)
at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:249)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:303)
at org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at com.gal.fast.portal.web.FastActionServlet.service(FastActionServlet.java:110)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at com.gal.fast.portal.web.SessionInitializedFilter.doFilter(SessionInitializedFilter.java:105)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:556)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:536)
All the code in the two custom classes above ( com.gal.fast.portal.web.SessionInitializedFilter and com.gal.fast.portal.web.FastActionServlet ) has been commented out to the point that they are NOOP stubs.
We only see this with multiple near-simultaneous requests for the same page with differet roles. It smells like a threading issue to me, but I'm no expert (hence this post). Any thoughts?
--mattWe have a J2EE app, using Struts + Tiles (build 1.1-b3), running on Win2KPro, Ora9ias v9.0.3. The application is roles-based, and different users see different versions of the same page based on their role authorizations. Occasionally, when multiple users in different roles are requesting the same page, the app returns the following exception:
OracleJSP:
JSP Error:
Request URI:/fast/WEB-INF/jsp/tiles/layouts/baseLayout.jsp
Exception:
javax.servlet.ServletException: Cannot a get JSP page instance from a page being destroyed
at oracle.jsp.runtimev2.JspPageInstFacade.getInstance(JspPageInstFacade.java:147)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:303)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at com.gal.fast.portal.web.SessionInitializedFilter.doFilter(SessionInitializedFilter.java:105)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:556)
at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:119)
at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude(TilesUtilStrutsModulesImpl.java:124)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:703)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:818)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:467)
at web2d_inf._jsp._tiles._layouts._baseLayout._jspService(_baseLayout.java:445)
[SRC:/WEB-INF/jsp/tiles/layouts/baseLayout.jsp:149]
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at com.gal.fast.portal.web.SessionInitializedFilter.doFilter(SessionInitializedFilter.java:105)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:556)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1033)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:269)
at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:249)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:303)
at org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at com.gal.fast.portal.web.FastActionServlet.service(FastActionServlet.java:110)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at com.gal.fast.portal.web.SessionInitializedFilter.doFilter(SessionInitializedFilter.java:105)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:556)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:536)
All the code in the two custom classes above ( com.gal.fast.portal.web.SessionInitializedFilter and com.gal.fast.portal.web.FastActionServlet ) has been commented out to the point that they are NOOP stubs.
We only see this with multiple near-simultaneous requests for the same page with differet roles. It smells like a threading issue to me, but I'm no expert (hence this post). Any thoughts?
--matt -
Compiler exception - package does not exist?
I am new to NWDS and J2EE. I followed the steps in the tutorial as indicated in the below link:
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/netweaver-application-server/_netweaver-application-server/a-c/Creating%20your%20First%20J2EE%20Application.pdf
I did everything inside up to the last moment after I deployed my EAR and tried to run from the portal but got Application error. I checked the defaultTrace log file from the portal server and notice these errors:
#1.5 #001A6431E0FE0020000000750000155C0004B9B284863A19#1330076285575#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/CalculatorEar#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Guest#0##40C36AF65ECB11E18721000000978DDA#40c36af65ecb11e18721000000978dda-0#40c36af65ecb11e18721000000978dda#SAPEngine_Application_Thread[impl:3]_21##0#0#Error#1#/System/Server/WebRequests#Plain###application [Calculator] Processing HTTP request to servlet [jsp] finished with error.
The error is: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error while executing the compilation process: [G:/usr/sap/EPD/JC00/j2ee/cluster/server0/apps/sap.com/CalculatorEar/servlet_jsp/Calculator/work/jsp_Calculator1330076284538.java:41: package com.sap.examples.calculator.beans does not exist
com.sap.examples.calculator.beans.CalcProxy calc = null;
^
G:/usr/sap/EPD/JC00/j2ee/cluster/server0/apps/sap.com/CalculatorEar/servlet_jsp/Calculator/work/jsp_Calculator1330076284538.java:42: package com.sap.examples.calculator.beans does not exist
calc = (com.sap.examples.calculator.beans.CalcProxy)pageContext.getAttribute("calc", PageContext.SESSION_SCOPE);
^
G:/usr/sap/EPD/JC00/j2ee/cluster/server0/apps/sap.com/CalculatorEar/servlet_jsp/Calculator/work/jsp_Calculator1330076284538.java:48: package com.sap.examples.calculator.beans does not exist
calc = (com.sap.examples.calculator.beans.CalcProxy) Beans.instantiate(getClass().getClassLoader(), "com.sap.examples.calculator.beans.CalcProxy");
^
3 errors
The thing I don't understand is the "comp.sap.examples.calculator.beans" class has already been included inside the EAR (I used my zip tool to check the EAR file and confirmed it's there), why did the compiler still complain that the package does not exist? Any great guys & gals out there can help this poor newbie who spent the past 5 hours searching for Google for answers but couldn't find any??
Thank you.
BrianPerhaps I should give out more information about this problem.
The EAR file contains a WAR file and a JAR file.
The WAR file contains a JSP and it contains codes to refer to a java proxy class of package comp.sap.examples.calculator.beans.CalcProxy.
So it seems the compilation error is triggered when it tries to compile the WAR file.
I checked the structure of the WAR file using a zip tool.
At the base it contains this:
WEB-INF (a folder)
Calculator.jsp (the JSP file)
Inside the WEB-INF folder is these:
classes (a folder)
web-j2ee-engine.xml
web.xml
Inside the classes folder is a tree of subfolders to describe the structure of the CalcProxy class:
classes -> comp -> sap -> examples -> calculator -> beans -> CalcProxy.class
So the java class file and the JSP file is in the same bundle of the WAR file.
Why the compiler is not able to find the class file inside the JSP? -
Test.jsp not able to display the output from the java code.
when i try to invoke http://localhost/papz/test.jsp
I dont see anything. The page is blank. And there are no error messages in any log files. When i click on view source in IE i get to see the entire source code, including the jave code.
<html>
<head>
<title>Test</title>
<body>
<%
out.println("Hello World");
%>
asdfasdfasdf
</body>
</html>
i added in the asdfasdf to see whehter it will be printed or not... It does print that stuff out.
when i try to invoke the login.jsp page, i get the dialog box "save this file to disk"
Any clues whats going on...?
I followed the instructions...over and over again... but it doesnt seem to help.
win nt 4.0
apache 1.3.12
jserv 1.1.1
Pls help. ThanksHi,
Have you solved your problem?
I4m trying to do the same, but I installed portal 30, then portal to go, and when I try to run test.jsp I get the following error:
Request URI:/papz/test.jsp
Exception:
java.lang.NoSuchMethodError: oracle.jsp.util.JspUtil: method
stripTarget(Ljava/lang/String;C)Ljava/lang/String; not found
Thanks
Pablo Lopera
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by NewBie:
when i try to invoke http://localhost/papz/test.jsp
I dont see anything. The page is blank. And there are no error messages in any log files. When i click on view source in IE i get to see the entire source code, including the jave code.
<html>
<head>
<title>Test</title>
<body>
<%
out.println("Hello World");
%>
asdfasdfasdf
</body>
</html>
i added in the asdfasdf to see whehter it will be printed or not... It does print that stuff out.
when i try to invoke the login.jsp page, i get the dialog box "save this file to disk"
Any clues whats going on...?
I followed the instructions...over and over again... but it doesnt seem to help.
win nt 4.0
apache 1.3.12
jserv 1.1.1
Pls help. Thanks<HR></BLOCKQUOTE>
null
Maybe you are looking for
-
Oracle support is taking too long to answer my questions so I hope someone can help. I deleted interfaces from the OCR with oifcfg delif and everything went ok. When I do a oifcfg getif the correct interfaces come back. When I restarted each node in
-
Thunderbolt Display Didn't Show Anything!
I recently got Boxee. I connected to Thunderbolt Display 2nd port, but it's not working! I connected like this: Mac Mini (2011) --> Thunderbolt Display built-in port Boxee --> (HDMI to mini DisplayPort cable) --> Thunderbolt Display 2nd port The Thun
-
Adding file attachments to Accounts - Where do they physically get stored?
If I add an file (word doc, excel etc.) attachment to SoD (say account object) where does the attachment get saved/stored? Does it reside in a file system somewhere in the server and a reference is established in the account record internally or does
-
Basic: Does or can Lightroom replace Bridge
I have been using Lightroom and am switching from Elements 5 to CS2. Can Lightroom replace Bridge? Thanks in advance
-
[SOLVED] Bluetooth adapter not found
Hello all, I'm new to Arch (but a long time Debian user). I managed to get everything working, except for bluetooth (BCM2045B, integrated, worked fine with Debian). lsusb shows the same bus/devices I see in Debian, but the BCM2045B is missing. Gnome-