[JSP] Error JSP

HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.NullPointerException
     at org.apache.jsp.server_jsp._jspService(server_jsp.java:94)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Tomcat logs.
Apache Tomcat/5.0.19
What is the problem?
please!

Hi,
You get this exception is thrown when an application attempts to use null in a case where an object is required
Refer http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NullPointerException.html to understand when this exception can be thrown.
Please post your code if you are unable to solve the issue.
-Amol

Similar Messages

  • JSP Error

    Hi,
    I've an application already running perfectly on linux (Apache 1.3.33-Tomcat 5.5.7-mod_jk 1.2.8), however, I want to run the same application on � Windows (Apache 2.0.59-Tomcat 5.5.17-mod_jk 2.0.58).
    Paths:
    Java JDK path : c:\Program Files\Java\jdk1.5.0_08
    Apache path : C:\Program Files\Apache Group\Apache2
    Tomcat path : C:\Program Files\Apache Software Foundation\Tomcat 5
    Application path: C:\Program Files\Apache Software Foundation\Tomcat 5\webapps\qelly
    I've everything (apache, tomcat, mod_jk) running on the windows server, static jsp pages of the same application work fine too, but when I search through it, it gives the following error:
    com.is.metasearch.exception.ApplicationException: Torque Exception
         at com.is.metasearch.utils.MiscUtils.getLocationFromIP(MiscUtils.java:1448)
         at com.is.metasearch.struts.SearchAction.doSearchWeb(SearchAction.java:202)
         at com.is.metasearch.struts.SearchAction.doSearch(SearchAction.java:155)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         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.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:425)
         at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:452)
         at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
         at java.lang.Thread.run(Unknown Source)I'm completely clueless about this error. Is there some setting (paths etc..) I need to change in the application? If so, where and what?
    Any help greatly appreciated.
    � Thanks, Husain

    what kind of reasons we will get standard JSp Error.JSP error is a common error so you need to check the log files for details about the error. It could be related to JVM, resources, locks, database errors, ..etc.
    login page issue
    Thanks,
    Hussein

  • Handle exception on server side and display a customized jsp error page

    Hi,
    I am developing a java/j2EE web application using servlet, jsp, ejb3 with JBOSS and ECLIPSE.
    Two cases can occur on the server side :
    1) either I have not an expected result in a method and in this case I want to display an error page (a JSP page I suppose) with a personnalized error message
    2) or I have an exception thrown and I want to display the exception message in the former JSP page
    I don't know how to cope with this problem of personnalized error message (or the message of a thrown exception) with a JSP page.
    Does anybody can help me ? Thank you
    Edited by: xflamant on Jun 20, 2009 10:51 AM

    For the case of an unknown Error, simply use a default error page.
    The redirection to this page can be accomplished by inserting folowing code into your web.xml:
         <error-page>
            <exception-type>java.lang.Throwable</exception-type>
            <location>/WEB-INF/jsp/error.jsp</location>       
        </error-page>Known exception can be caught via a try-catch block.
    Then simply dispatch to the page you want displayed an add an attribute containing the error message to the response object.
    This attribute can then be used in the target page to diplay the error.

  • File Not found error when calling Form Post Method to a JSP from JSP Portlet

    I have built a set of JSP forms using post method to call other JSPs. Normally, the code looks like
    <form name="MyForm" action="MyJsp.jsp" method="post">
    I migrated the calling form containing this code to a portlet, but not the MyJsp.jsp. When I submit the form, I get a file not found in Jserv.log
    Exception:javax.servlet.ServletException: java.io.FileNotFoundException: D:\servlet\RegisterCompany.jsp (The system cannot find the file specified)
    [14/06/2001 13:59:59:679 PDT] JspServlet: unable to dispatch to requested page: Exception:javax.servlet.ServletException: java.io.FileNotFoundException: d:\oracle\isuites\apache\apache\MyJsp.jsp (The system cannot find the file specified)
    I notice that launching the calling jsp from a portlet, my opriginal context that uses ../Apache/Apache/htdocs is not being searched for the JSp. Why is this? Moreover, I try to set up an Alias in httpd.conf file to the this director and use it with the jsp in the action tag, but still get an error that my jsp servlets/Myjsp can't be found. Why is it insiting on looking at servlets context instead of htdocs.
    I have none of these issues outside of Portal30 using IAS.
    regard

    Initially, I couldn't do this unless I moved tghe jsp's up to the root directory of IAS, i.e ../Apache/Apache. Nomrally, htdocs is my doc directory for IAS. I could not do http:\\myUrl\htdocs\myJsp. If I tgried this, I got an error in Apache error logg that said can't find file ..\htdocs\htdocs\MyJsp.jsp.
    If I just tried the the URL http:\\myUrl\MyJsp.jsp with Jsp file in htdocs, I would get an error in the Jserve log that file d:\oracle\isuites\apache\apache\MyJsp.jsp could not be found. Once I moved the file MyJsp to Apache/Apache directory, it could be found using http:\\myUrl\MyJsp.jsp. Later, I delted these files and kept the ones in htdocs and they continued to work.
    I'm confused why launching pages through portal isn't consistant with Apache Standards. Where is the documentation that tells me how to configure context and aliases for pages launched from portal pages?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sue Vickers ([email protected]):
    David,
    Passing information using Portal is different than just using Apache/Jserv. Does it work in portal if you use the absolute path?
    <form name="MyForm" action="http://host.domain/MyJSP.jsp" method="post">
    Portal will not be on the same relative path as your Apache, so you may need to adjust your action somehow.
    Thanks,
    Sue<HR></BLOCKQUOTE>
    null

  • JSP error page does not displayed on its own, includes in the original JSP

    Problem Description: - Exceptions in a Condition cause pages to fail to render.
    The actual issue is, the JSP error page does not displayed on its own, included in the original JSP Page when exception occurs.
    Problem Cause: As per the JSP specification when jsp content reached the buffer size (default 8KB) the page being flushed (Part of condent displays). The default �autoFlush� value is true.
    When the page buffer value is default size (8KB), and if any exception occurs after flushing the part of the content, instead of redirecting into error page, the error page content included in the original page.
    If i specify autoFlush="false" and with default buffer size, at the runtime if the buffer size is reached, i am getting stackoverflow error.
    To solve the above problem we can make it autoFlush=�false� and buffer=�100KB�. But we can�t predict the actual size of the page.
    I found in one of the weblogic forum as no solution for this issue. Ref.
    http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_clfydoc&answerpage=solution&page=wls/S-10309.htm
    Please provide me any solution to resolve the problem.

    Error-Page tags work best with an error.html pages. If you have an error.jsp page what I would do, and I have, is wrap my classes and jsp pages in a try catch block where you forward to the error jsp page and display anything you want. YOu can also do this with if else statements. I have used the tomcat error pages before but when I've implemented them I used java.lang.Exception as the error to catch not Throwable. I don't know if this would make a difference or have anything to do with your problem.

  • How to display a stack trace in a jsp error mage

    What is the best way to display a stack trace in a JSP error page?
    I use "${pageContext.exception.message}" for the exception message. Is there a comparable JSTL expression for the stack?

    Cool! it totally works.
    Thanks for pointing me to this post.

  • JSP Error: While accessing the 11.5.10.2 Login Page

    Dear All,
    While trying to access the Login Page of 11.5.10.2 version for the first time, after a fresh installation, I am getting the following Error:
    JSP Error:
    Request URI:/OA_HTML/AppsLocalLogin.jsp
    Exception:
    java.lang.NoSuchMethodError: oracle.apps.fnd.sso.Utils.setRequestCharacterEncoding(Ljavax/servlet/http/HttpServletRequest;)V
    Please advice Whether anynthing wrong with the installation
    Thanks..,

    Hi,
    many thanks for the response....
    Please find the log file details as follows:
    $APACHE_TOP/Apache/Jserv/logs
    I could find a file called: mod_jserv.log and below shown is the content of the file:
    [23/03/2008 11:49:34:305] (EMERGENCY) ajp12: can not connect to host 192.168.0.33:17000
    [23/03/2008 11:49:34:328] (EMERGENCY) ajp12: function connection fail
    [23/03/2008 11:49:35:332] (EMERGENCY) ajp12: can not connect to host 192.168.0.33:16000
    [23/03/2008 11:49:35:332] (EMERGENCY) ajp12: function connection fail
    [23/03/2008 11:49:36:336] (EMERGENCY) ajp12: can not connect to host 192.168.0.33:19000
    [23/03/2008 11:49:36:336] (EMERGENCY) ajp12: function connection fail
    $APACHE_TOP/Apache/Jserv/logs/jvm
    File1: OACoreGroup.0.stdout
    ApacheJServ/1.1
    Starting Self-Service Mobile Framework v1.0.8.4 initialization
    Servlet Initialized
    ApacheJServ/1.1.2
    Starting Self-Service Mobile Framework v1.0.8.4 initialization
    0.000: [GC 34944K->1794K(126720K), 0.0622710 secs]
    3.707: [Full GC 16414K->1951K(126720K), 0.1113560 secs]
    Servlet Initialized
    1799.126: [GC 37023K->2432K(126848K), 0.0212320 secs]
    3866.431: [GC 37504K->2449K(126848K), 0.0046790 secs]
    5929.879: [GC 37521K->2449K(126848K), 0.0067740 secs]
    7997.123: [GC 37521K->2449K(126848K), 0.0057680 secs]
    9406.379: [GC 37521K->3421K(126848K), 0.0273190 secs]
    ApacheJServ/1.1.2
    Starting Self-Service Mobile Framework v1.0.8.4 initialization
    0.000: [GC 34944K->1802K(126720K), 0.0434050 secs]
    3.248: [Full GC 13181K->1934K(126720K), 0.1367460 secs]
    Servlet Initialized
    9.498: [Full GC 19627K->2914K(126848K), 0.1657290 secs]
    22.202: [GC 37986K->14162K(126848K), 0.1693410 secs]
    30.267: [Full GC 26205K->15086K(126848K), 0.2766730 secs]
    105.147: [GC 50157K->16481K(126848K), 0.0409380 secs]
    428.416: [GC 51553K->17758K(126848K), 0.0368180 secs]
    868.359: [GC 52830K->18783K(126848K), 0.0543650 secs]
    1036.996: [GC 53853K->20868K(126848K), 0.0410590 secs]
    1680.842: [GC 55940K->21729K(126848K), 0.0395180 secs]
    2225.097: [GC 56801K->22640K(126848K), 0.0286630 secs]
    2226.562: [GC 57712K->22610K(126848K), 0.0344330 secs]
    2230.827: [GC 57682K->23727K(126848K), 0.0224470 secs]
    2233.623: [GC 58799K->25684K(126848K), 0.0639170 secs]
    3002.680: [GC 60756K->29063K(126848K), 0.0522580 secs]
    3533.140: [GC 64129K->30333K(126848K), 0.0582700 secs]
    4078.031: [GC 65405K->30808K(126848K), 0.0151680 secs]
    4101.383: [Full GC[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor9]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor6]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor4]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor3]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor1]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor8]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor5]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor7]
    File2: DiscoGroup.0.stdout
    ApacheJServ/1.1
    Discoverer Model - 4.1.46.08.00
    WARNING: Attempting to use HTTP Firewall Proxy Server
    due to security restrictions: org.omg.CORBA.INTERNAL: Can not find GateKeeper: exception ReqFailure{} minor code: 0 completed: No
    Discoverer Model - 4.1.46.08.00
    WARNING: Attempting to use HTTP Firewall Proxy Server
    due to security restrictions: org.omg.CORBA.INTERNAL: Can not find GateKeeper: exception ReqFailure{} minor code: 0 completed: No
    Discoverer Model - 4.1.46.08.00
    WARNING: Attempting to use HTTP Firewall Proxy Server
    due to security restrictions: org.omg.CORBA.INTERNAL: Can not find GateKeeper: exception ReqFailure{} minor code: 0 completed: No
    Discoverer Model - 4.1.46.08.00
    WARNING: Attempting to use HTTP Firewall Proxy Server
    due to security restrictions: org.omg.CORBA.INTERNAL: Can not find GateKeeper: exception ReqFailure{} minor code: 0 completed: No
    Discoverer Model - 4.1.46.08.00
    WARNING: Attempting to use HTTP Firewall Proxy Server
    due to security restrictions: org.omg.CORBA.INTERNAL: Can not find GateKeeper: exception ReqFailure{} minor code: 0 completed: No
    Discoverer Model - 4.1.46.08.00
    WARNING: Attempting to use HTTP Firewall Proxy Server
    due to security restrictions: org.omg.CORBA.INTERNAL: Can not find GateKeeper: exception ReqFailure{} minor code: 0 completed: No
    ApacheJServ/1.1.2
    0.000: [GC 34944K->605K(126720K), 0.0160370 secs]
    3108.991: [GC 35549K->627K(126720K), 0.0076150 secs]
    6231.719: [GC 35571K->628K(126720K), 0.0097730 secs]
    ApacheJServ/1.1.2
    0.000: [GC 34944K->605K(126720K), 0.0175620 secs]
    ApacheJServ/1.1.2
    0.000: [GC 34944K->605K(126720K), 0.0114060 secs]
    ApacheJServ/1.1.2
    0.000: [GC 34944K->594K(126720K), 0.0099880 secs]
    3104.899: [GC 35538K->616K(126720K), 0.0054030 secs]
    6212.468: [GC 35560K->616K(126720K), 0.0043100 secs]
    9320.398: [GC 35560K->616K(126720K), 0.0043180 secs]
    12431.724: [GC 35560K->616K(126720K), 0.0042310 secs]
    15540.350: [GC 35560K->616K(126720K), 0.0050770 secs]
    18648.742: [GC 35560K->616K(126720K), 0.0049940 secs]
    File 3: XmlSvcsGrp.0.stdout
    ApacheJServ/1.1
    ApacheJServ/1.1.2
    0.000: [GC 34944K->992K(126720K), 0.0222780 secs]
    1331.380: [GC 35936K->1596K(126720K), 0.0252860 secs]
    2978.434: [GC 36540K->1572K(126720K), 0.0155030 secs]
    4561.042: [GC 36509K->2146K(126720K), 0.0124670 secs]
    6159.901: [GC 37090K->1568K(126720K), 0.0162710 secs]
    7801.433: [GC 36488K->1600K(126720K), 0.0096090 secs]
    9361.497: [GC 36532K->2144K(126720K), 0.0111690 secs]
    ApacheJServ/1.1.2
    0.000: [GC 34944K->1516K(126720K), 0.0335350 secs]
    1637.366: [GC 36460K->1617K(126720K), 0.0119330 secs]
    3201.033: [GC 36548K->2141K(126720K), 0.0153640 secs]
    4820.604: [GC 37085K->1567K(126720K), 0.0147900 secs]
    ApacheJServ/1.1.2
    0.000: [GC 34944K->1516K(126720K), 0.0219900 secs]
    1637.286: [GC 36460K->1617K(126720K), 0.0118590 secs]
    3202.661: [GC 36548K->2142K(126720K), 0.0135660 secs]
    ApacheJServ/1.1.2
    0.000: [GC 34944K->923K(126720K), 0.0378160 secs]
    465.724: [GC 35867K->958K(126720K), 0.0107050 secs]
    2049.456: [GC 35881K->1536K(126720K), 0.0106250 secs]
    3632.469: [GC 36480K->991K(126720K), 0.0070540 secs]
    5276.173: [GC 35935K->993K(126720K), 0.0069840 secs]
    6849.801: [GC 35912K->1567K(126720K), 0.0098510 secs]
    8450.902: [GC 36511K->990K(126720K), 0.0112260 secs]
    10089.975: [GC 35909K->990K(126720K), 0.0068660 secs]
    11650.057: [GC 35921K->1566K(126720K), 0.0084910 secs]
    13269.947: [GC 36510K->991K(126720K), 0.0068470 secs]
    14890.263: [GC 35910K->1213K(126720K), 0.0074270 secs]
    16452.170: [GC 36157K->987K(126720K), 0.0068140 secs]
    18094.799: [GC 35931K->993K(126720K), 0.0069330 secs]
    19690.498: [GC 35912K->1468K(126720K), 0.0081220 secs]
    21269.320: [GC 36412K->988K(126720K), 0.0070610 secs]
    22908.334: [GC 35932K->993K(126720K), 0.0068100 secs]
    24490.848: [GC 35910K->1567K(126720K), 0.0083790 secs]
    26082.852: [GC 36511K->989K(126720K), 0.0103980 secs]
    27721.116: [GC 35933K->993K(126720K), 0.0068200 secs]
    ApacheJServ/1.1.2
    ApacheJServ/1.1.2
    0.000: [GC 34944K->937K(126720K), 0.0231740 secs]

  • How to ignore JSP errors in JDeveloper 10g IDE?

    How do I ignore errors in JSPs? I forgot it is in server.xml or some other xml configuration file.

    Thanks for your reply. there is 'deprecation warnings' under Project Properties--> Compiler. These errors are not deprecation errors.
    The below code doesn't help either.
    <jsp-config>
    <jsp-property-group>
    <url-pattern>*.jsp</url-pattern>
    <el-ignored>false</el-ignored>
    </jsp-property-group>
    </jsp-config>

  • Problem in Jsp Error page mechanism

    Hi every body,
    In my Jsp application I do some processing within scriplet tags. I have defined a error page using a page directive and I have defined my Error page separately. When there is an exception in a Jsp page, some times it calls the error page properly and displays it. But curiously in some occasions when there is an exception it doesn't call the error page, instead it includes the content of the Error page at the end of the same page, where the exception occurred. The web server is jakarta-tomcat-3.2.1. Can any one who has a idea about this problem help me. Your help is greatly appreciated.
    Thank you

    Hi there!
    Well I was having the same problem as yours until I realized what was going on: the jsp writer has a small buffer size (by default 8kb) and that is why it flushes some html before displaying the error page. The jsp writer buffer is full before getting the exception, so it flushes the buffer and keeps on writing until the exception is thrown. Then the jsp writer writes the error page code...
    You have to add some new parameters in your page directive: autoFlush(true or false) and buffer="16kb" (as much kbytes as you want). For example,
    <%@page autoFlush="false" buffer="sizekb".... %>
    If autoFlush="false", the jsp writer has not finished and the buffer is full an exception will be thrown.
    If autoFlush="true" and the buffer is full it will flush the buffer and so on.
    In both cases, if the buffer size is big enough the error jsp page will be the only displayed
    Good luck!
    Inaki

  • A JSP Error occured...

    Hi there!
    I have a JSP page that made a Query on a Oracle database. The JSP parse an XSL page whit what it found. If it's a new record, it create a page that will serve to insert a record. If the request found a record, it parse a page that will serve for update...
    When I retrive the query, it work fine. When I do an insert, it work fine.
    But When I UPDATE, it blow up!
    Here is the error message that i've got:
    A Servlet Error Occurred
    An unexpected error occured attempting to run this servlet.
    The most likely explanation is a problem with the servlet code.
    Please check the server log for a detailed message.
    I know that it seem easy to said that the error is in the code but we used that code elsewhere (with a much smaller request) and it worked fine!!!
    We've also run that code before on an other server and it worked fine!!!
    Is it a configuration problem??? We use OSA 4.0.8.1
    Or is it something else???
    I'm mutch despear because we have to get that up very soon!
    This error occur evry time I do an update.
    It cause also the server to "crash"...
    Not realy a crash but the application dont work anymore (the query and insert thing) we have to restart the OAS.
    If I dont restart the OAS, and I try to get to the JSP page I've got this error:
    JSP Error:
    Request URL:/jspmyproject/myproject_Query.jsp
    Exception:
    java.lang. OutOfMemoryError
    Thank to reply !

    Please increase the MAX_HEAP to 128M under JSP Config, Java Enviornmet and try.
    null

  • 500 Internal Server Error OracleJSP: JSP Error: Exception:java.lang.NullPoi

    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.

  • Error on token(jsp error)

    Hi i am writing a code in which i have to call one jsp page from another but as soon as the control gets transferred i get the error msg as:
    Syntax error on token(s), misplaced construct(s)
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    Syntax error, insert "AssignmentOperator Expression" to complete Assignment
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    Syntax error, insert ";" to complete Statement
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    forward cannot be resolved
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    The operator / is undefined for the argument type(s) String, void
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    Syntax error on tokens, delete these tokens
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 22 in the jsp file: /second/process.jsp
    Syntax error, insert "}" to complete Statement
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    23:
    24: <%
    25: else
    An error occurred at line: 31 in the jsp file: /second/process.jsp
    Syntax error, insert "Finally" to complete TryStatement
    28: <jsp:forward page="fail.jsp"/>
    29: <%
    30: }
    31: }
    32: %>
    33: <%catch(Exception e)
    34: {
    An error occurred at line: 32 in the jsp file: /second/process.jsp
    Syntax error, insert "}" to complete Block
    29: <%
    30: }
    31: }
    32: %>
    33: <%catch(Exception e)
    34: {
    35:
    I am using MS-ACCESS AS DATABASE.
    the jsp code is:
    {color:#ff0000}<%@ page contentType="text/html; charset=UTF-8"%>
    <%@ page import="java.io.{color}{color:#ff0000}*"%>*
    *<%@ page import = "java.sql.*"%>
    <%
    String account=request.getParameter("ac");
    String password=request.getParameter("pass");
    String url="Jdbc:Odbc:Namrata";
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection(url);
    Statement stmt=con.createStatement();
    ResultSet rs=stmt.executeQuery("select from database1 where Account="+account+"and Password="+password);
    if(rs.next()==false)
    <jsp:forward page="success.jsp"/>
    %>
    <%
    else
    %>
    <jsp:forward page="fail.jsp"/>
    <%
    %>
    <%catch(Exception e)
    out.println("the exception is:"+e);
    %>{color}

    Namrata.Kakkar wrote:
    but i have google searched and came to know that in jsp whatever java code we have to write we will write in tagsThat was not very good advice. Like I said, get Sun's Java EE tutorial (it's free) and learn how to do it the correct way.

  • Problem accessing exception object in jsp error page - Apache Tomcat 5.0.25

    Hi all,
    I'm thoroughly confused and need some help. I've deployed a very simple web application in Apache Tomcat 5.0.25 to test exception handling - errortest.jsp and error.jsp. errortest.jsp throws a divide by zero exception if executed with default values in text fields.
    When I put the directive IsErrorPage="true" in error.jsp i get a HTTP 500 error when error.jsp is accessed. If I remove it error.jsp is displayed but I cant access the exception object - if I try to I get an exception below:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 5 in the jsp file: /error.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    E:\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\mywebapp\org\apache\jsp\error_jsp.java:46: cannot resolve symbol
    symbol : variable exception
    location: class org.apache.jsp.error_jsp
    out.print(exception.getMessage());
    ^
    1 error
    Below is the code for the two jsp pages:
    errortest.jsp:
    <%@ page errorPage="error.jsp" %>
    <html>
    <head><title>Error test</title></head>
    <body>     
         <form action="errortest.jsp" method="post">
         Enter first number:<input type="text" name="first" value="5"/><br>
         Enter second number:<input type="text" name="second" value="0"/><br>
         <input type="submit"/>
         </form>
         <%
         if (request.getMethod().equals("POST")) {
              int first = Integer.parseInt( request.getParameter( "first" ) );
              int second = Integer.parseInt( request.getParameter( "second" ) );
              int answer = first/second;
         %>
    </body>
    </html>
    NB: I am able to catch and display the exception if I use a try/catch block around the division as shown below.
    try {
    int answer = first/second;
    } catch( Exception e) {
    e.printStackTrace( new PrintWriter(out) );
    error.jsp (first draft)
    NB: HTTP 500 error occurs when directive "isErrorPage" is added:
    <%@ page isErrorPage="true" %>
    <html>
    <head><title>Error Page</title></head>
    <body>
    </body>
    </html>
    error.jsp (second draft)
    NB: directive is removed but exception thrown when implicit exception object is accessed. error.jsp displays if exception object is not accessed:
    <%@ page %>
    <html>
    <head><title>Error Page</title></head>
    <body>
    <%=exception.getMessage()%>
    </body>
    </html>
    Web server specs:
    Apache Tomcat 5.0.25
    Machine specs:
    Windows XP Pro
    Java environments:
    j2sdk1.4.2_03
    J2EE 1.4

    This works for me:
    throwError.jsp
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ page language="java" errorPage="/error.jsp"
    contentType="text/html; charset=utf-8" %>
    <html>
    <head>
         <title>Throw Exception</title>
    </head>
    <body>
    Throwing exception....
    <%
    // throw ArithmeticException
    int badInt = 12/0;
    %>
    </body>
    </html>
    error.jsp
    <%@ page language="java" isErrorPage="true" %>
    <head><title>Doh!</title></head>
    An Error has occurred in this application.
    <% if (exception != null) { %>
    <pre><% exception.printStackTrace(new java.io.PrintWriter(out)); %></pre>
    <% } else { %>
    Please check your log files for further information.
    <% } %>

  • Dbc file and Jsp error

    Dear all,
    I am trying to do multinode installtion on AIX 5.3 HACMP . During post installation i am getting this error.
    Dbc file and Jsp error
    Updating Server Security Authentication
    java.sql.SQLException: Io exception: Invalid number format for port number
    Database connection to jdbc:oracle:thin:@host_name:port_number:database failed
    Updating Server Security Authentication failed with exit code 1
    adgendbc.sh exiting with status 1
    ERRORCODE = 1 ERRORCODE_END
    SQLPLUS Executable : /mglapp/oramgl/mglora/8.0.6/bin/sqlplus
    SP2-0642: SQL*Plus internal error state 2165, context 4294967295:0:0
    Unable to proceed
    ERRORCODE = 1 ERRORCODE_END
    Thanks in advance

    Maybe you have problem with the date format, please ensure that NLS_DATE_FORMAT env variable is set to a valid value.
    Please view SP2-0642: Sql*Plus Internal Error State 2165, Context 4294967295:0:0 Doc ID: Note:396154.1.
    Hope it helps.
    Adith

  • Oracle 9iAS R2 - reports are not working  - JSP Error

    dear All
    We are having issue in our Oracle 9i AS R2, the reports are not working, this thing happend suddenly , while runing any report the following messages are coming
    ==============
    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/repdemo/examples/Tools/test.jsp
    Exception:
    org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 0 completed: No
         at com.inprise.vbroker.ProtocolEngine.PortfolioImpl.getConnector(PortfolioImpl.java:79)
         at com.inprise.vbroker.ProtocolEngine.ManagerImpl.getConnector(ManagerImpl.java:147)
         at com.inprise.vbroker.orb.DelegateImpl._bind(DelegateImpl.java:196)
         at com.inprise.vbroker.orb.DelegateImpl.verifyConnection(DelegateImpl.java:365)
         at com.inprise.vbroker.orb.DelegateImpl.is_local(DelegateImpl.java:493)
         at org.omg.CORBA.portable.ObjectImpl._is_local(ObjectImpl.java:356)
         at oracle.reports.engine._EngineReportStub.doneReport(_EngineReportStub.java:36)
         at oracle.reports.definition.RWJspProxy.doneReport(RWJspProxy.java:261)
         at oracle.reports.definition.RWReport.done(RWReport.java:1087)
         at oracle.reports.jsp.ReportTag.release(ReportTag.java:398)
         at oracle.jsp.runtime.OracleJspRuntime.releaseTagHandler0(OracleJspRuntime.java:1109)
         at oracle.jsp.runtime.OracleJspRuntime.extraHandlePCFinally(OracleJspRuntime.java:1213)
         at examples.tools._test._jspService(_test.java:292)
         [SRC:/examples/Tools/test.jsp]
         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.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         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.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    -=================
    please help to resolve this issue.
    thanks in advance.
    regards

    Dear All
    Just to share the solution of the problem.
    We restarted the XServer which is on the other machine then Oracle 9i AS Middle Tiere and Infra. Once we restarted the XServer machine, and restarted the reports server , every thing back to normal.
    regards

Maybe you are looking for

  • Best software for doing full backups to ext. hard disk to to be used to restore system

    As a new PC owner I wanted to find out what the best software for doing full backups to external hard disk,  to to be used to restore the system if primary primary disk crashes. Im aware that Windows, Acronis and Paragon all have software that doing

  • Quicktime not playing even with recent Codecs

    Hi, I apologize if this is not the correct forum, I wasn't too sure where to post. I had a Promo video done for my business, it's in .mov format and played fine in Quicktime when I first received it. Recently it stopped working, Quicktime opens to a

  • Items on desktop and in windows appear too large

    I recently had to perform a System Restore to remove some malicious software, but when my computer restarted I found that everything seemed over-sized. Right now both the desktop and internet explorer look magnified, and to see a standard size web pa

  • Passing values to a method

    Hello, My program did work for one layer of directories. Now I want it to do multiple layers therefore the code needs changing. public void process(String[] argStrings, File allFiles) // lots more code that does not need to be shown     String dirNam

  • I am not able to access my yahoo mail from my apple mail app. From past 2 days I a

    I am having problems with my yahoo mail with iPhone when ever I try to access it from 3 days I am having trouble. I get an error tht my user or password must be wrong and tht I cannot acces my mail. Even though I type and use the correct password and