Stacktrace shown on Java Category page

Going to
https://forums.oracle.com/forums/category.jspa?categoryID=285
Gives the following in the Threads/Messages column of Annotation Processing, and then the rest of the category table doesn't get rendered:
305 / 1,329
An error in the system has occurred. Please contact the system administrator if the problem persists.
type: java.lang.NullPointerException
java.lang.NullPointerException
     at category.jspService(_category.java:759)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:436)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
     at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:287)
     at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
     at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
     at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
     at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
     at com.opensymphony.webwork.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:114)
     at com.jivesoftware.base.util.webwork.ServletDispatcherResult.doDefaultExecute(ServletDispatcherResult.java:130)
     at com.jivesoftware.base.util.webwork.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:116)
     at com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:143)
     at com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:313)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:208)
     at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.jivesoftware.base.util.webwork.JiveSecurityInterceptor.intercept(JiveSecurityInterceptor.java:24)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.jivesoftware.base.action.interceptor.FlashInterceptor.intercept(FlashInterceptor.java:40)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:175)
     at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)
     at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.jivesoftware.base.action.interceptor.JiveObjectLoaderInterceptor.intercept(JiveObjectLoaderInterceptor.java:55)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:171)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.jivesoftware.base.action.interceptor.JiveLoginInterceptor.intercept(JiveLoginInterceptor.java:39)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.jivesoftware.forum.action.LocaleInterceptor.intercept(LocaleInterceptor.java:52)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.jivesoftware.forum.action.ForumsInterceptor.intercept(ForumsInterceptor.java:181)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.jivesoftware.base.action.interceptor.AuthInterceptor.intercept(AuthInterceptor.java:44)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:186)
     at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
     at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116)
     at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:225)
     at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)
     at com.jivesoftware.base.action.util.JiveFilterDispatcher.doFilter(JiveFilterDispatcher.java:68)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
     at com.jivesoftware.util.SetResponseCharacterEncodingFilter.doFilter(SetResponseCharacterEncodingFilter.java:61)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
     at com.jivesoftware.base.util.JiveCacheFilter.doFilter(JiveCacheFilter.java:196)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
     at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
     at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
     at com.jivesoftware.base.theme.ThemeFilter.doFilter(ThemeFilter.java:51)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
     at com.jivesoftware.base.util.webwork.JiveActionContextCleanUp.doFilter(JiveActionContextCleanUp.java:41)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
     at com.jivesoftware.base.stats.ReadStatsFilter.doFilter(ReadStatsFilter.java:80)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
     at com.jivesoftware.base.PresenceFilter.doFilter(PresenceFilter.java:75)
     at oracle.jive.sso.actions.SSOPresenceFilter.doFilter(SSOPresenceFilter.java:28)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
     at com.jivesoftware.base.util.JiveCompressionFilter.doFilter(JiveCompressionFilter.java:123)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
     at com.jivesoftware.util.SetRequestCharacterEncodingFilter.doFilter(SetRequestCharacterEncodingFilter.java:72)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
     at com.jivesoftware.base.util.MaintenanceFilter.doFilter(MaintenanceFilter.java:83)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
     at com.jivesoftware.forum.upgrade.UpgradeFilter.doFilter(UpgradeFilter.java:49)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
     at com.jivesoftware.base.plugin.PluginFilter.doFilter(PluginFilter.java:56)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
     at com.jivesoftware.base.util.ApplicationInitializedFilter.doFilter(ApplicationInitializedFilter.java:81)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:436)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
     at com.evermind.server.http.HttpRequestHandler.handleNotFound(HttpRequestHandler.java:1041)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:310)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:198)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)

EJP wrote:
The issue seems to be limited to the JDBC sub-forum.No. Like jverd, I get it on the entire Java category page. After the usual recent problems logging in.Understood.
That's because the JDBC category is a subsset of the general Java category.
An attempt to bring up the entire group is effected by the broken subset.
However, individual lower-level sub-forums can be readily viewed when chosen each in turn.
(... and now, a few hours later, seems to be repaired.)

Similar Messages

  • DBMS_OUTPUT.PUT_LINE multi records from PL/SQL procedure to Java web page.

    Hello
    I will explain the scenario:
    In our java web page, we are using three text boxes to enter "Part number,Description and Aircraft type". Every time the user no need to enter all these data. The person can enter any combination of data or only one text box. Actually the output data corresponding to this input entries is from five Oracle table. If we are using a single query to take data from all the five tables, the database will hang. So I written a procedure "SEARCH1",this will accept any combination of values (for empty values we need to pass NULL to this procedure) and output data from all the five tables. When I executing this procedure in SQL editor, the execution is very fast and giving exact result. I used "dbms_output.put_line" clause for outputing multiple records in my procedure. The output variables are "Serial No, part Number, Description, Aircraft type,Part No1,Part No2,Part No3,Part No4". I want to use the same procedure "SEARCH1" for outputing data in java web page.The passing argument I can take from the text box provided in java web page. I am using jdbc thin driver to connect our java web page to Oracle 9i database.
    Note1 : If any combination of search item not available, in procedure itself I am outputing a message like "Part Number not found". Here I am using four words ("Part" is the first word,"Number" is the second,"Not" s the third, and "found" is the fourth) for outputing this message.Is it necessary to equalise number of words I am using here to the record outputing eight variable?
    Our current development work is stopped because of this issue. So any one familier in this field,plese help me to solve our issue by giving the sample code for the same scenario.
    My Email-id is : [email protected]
    I will expect yor early mail.
    With thanks
    Pramod kumar.

    Hello Avi,
    I am trying to solve this issue by using objects. But the following part of code also throwing some warning like "PLS-00302: component must be declared". Plese cross check my code and help me to solve this issue.
    drop type rectab;
    create or replace type rectype as object(PartNo varchar2(30),Description varchar2(150),AIrcraft_type varchar2(15),status_IPC varchar2(30),status_ELOG varchar2(30),status_SUPCAT varchar2(30),status_AIRODWH varchar2(30));
    create or replace type rectab as table of rectype;
    create or replace package ioStructArray as
    procedure testsch2(pno in varchar2,pdes in varchar2,air in varchar2,orec in out rectab);
    end ioStructArray;
    create or replace package body ioStructArray as
    procedure testsch2(pno in varchar2,pdes in varchar2,air in varchar2,orec in out rectab) is
    mdescription varchar2(150);
    mpartnum varchar2(30);
    mpno varchar2(30);
    mdes varchar2(150);
    mair varchar2(15);
    mstat varchar2(1);
    cursor c1 is select partnum,description,aircraft_type from master_catalog where partnum=mpno and aircraft_type=mair and description like ltrim(rtrim(mdes))||'%';
    cursor c2 is select partnum from ipc_master where partnum=mpartnum;
    cursor c3 is select partnum from fedlog_data where partnum=mpartnum;
    cursor c4 is select partnum from superparts where partnum=mpartnum;
    cursor c5 is select part_no from supplier_catalog where part_no=mpartnum;
    mpno1 varchar2(30);
    mpno2 varchar2(30);
    mpno3 varchar2(30);
    mpno4 varchar2(30);
    mpno5 varchar2(30);
    maircraft_type varchar2(15);
    mstat1 varchar2(30);
    mstat2 varchar2(30);
    mstat3 varchar2(30);
    mstat4 varchar2(30);
    begin
    mstat:='N';
    mpno:=pno;
    mdes:=pdes;
    mair:=air;
    if mpno is not null and mdes is not null and mair is not null then
    begin
    mstat:='N';
    mpno:=pno;
    mdes:=pdes;
    mair:=air;
    for i in c1 loop
    mstat:='N';
    mstat1:='N';
    mstat2:='N';
    mstat3:='N';
    mstat4:='N';
    mpno1:=i.partnum;
    mpartnum:=i.partnum;
    mdescription:=i.description;
    maircraft_type:=i.aircraft_type;
    for j in c2 loop
    mpno2:=j.partnum;
    end loop;
    for k in c3 loop
    mpno3:=k.partnum;
    end loop;
    for l in c4 loop
    mpno4:=l.partnum;
    end loop;
    for m in c5 loop
    mpno5:=m.part_no;
    end loop;
    if mpno2=mpartnum then
    mstat1:=mpno2;
    end if;
    if mpno3=mpartnum then
    mstat2:=mpno3;
    end if;
    if mpno4=mpartnum then
    mstat3:=mpno4;
    end if;
    if mpno5=mpartnum then
    mstat4:=mpno5;
    end if;
    if mpno1=mpartnum then
    mstat:='Y';
    orec.PartNo:=mpno1;
    orec.Description:=mdescription;
    orec.AIrcraft_type:=maircraft_type;
    orec.status_IPC:=mstat1;
    orec.status_ELOG:=mstat2;
    orec.status_SUPCAT:=mstat3;
    orec.STATUS_AIRODWH:=status_AIRODWH;
    end if;
    end loop;
    end;
    end if;
    end testsch2;
    end ioStructArray;
    Expecting your early reply.
    With thanks
    Pramod kumar.

  • Code to set and destroy session variables in Java Server Pages(JSP)

    code to set and destroy session variables in Java Server Pages(JSP)
    we have use following statement to set session variable
    session.setAttribute("userClient",id);
    we have use following statement to destroy session variable
    session.setAttribute("userClient","");
    and
    the session.invalidate() is not working
    Plz. solve this probem

    code to set and destroy session variables in Java
    Server Pages(JSP)
    we have use following statement to set session
    variable
    session.setAttribute("userClient",id);
    we have use following statement to destroy session
    variable
    session.setAttribute("userClient","");Perhaps if you tried using
    session.setAttribute("userClient", null);
    or
    session.removeAttribute("userClient");
    and
    the session.invalidate() is not workingNot working how?
    >
    Plz. solve this probem

  • Java Server Page

    Good Day, Gentleman and Ladies
    I need help in Java Server Pages (JSP)
    I using Weblogic 6.1 as Development Environment.
    Developing in Macromedia Dreamweaver 4.
    When I preview using Dreamweaver, It can be display properly.
    But when viewing in Internet Explorer, it give following error
    unreachable statement - out.print("\r\n\t\t\t
    uses or override a deprecated API.
    Following is the statement in JSP Code
    <input name="<%=ParamName%>" type="text" value="" size="8">
                                  <a href = "javascript:show_calendar('parameterInputForm.<%=ParamName%>');"><img src="images/toolbar/calendar.gif" border=0 alt="Click to see calendar" align="abmiddle"></a>
    Could any kind souls please help me in it.
    Thank you very much, your help is deeply appreciated
    Luo_Sha_Zong_Zu

    Hi
    First, dont put msg with subjects like "Java Server Page". Put msg with subject showing the problem, like "unreachable statement - out.print("\r\n\t\t\t uses or override a deprecated API"
    Your problem is with the value of the var "ParamName". It has something with "return" and "tab". Check it

  • Displaying a picture or image in a java server page

    I am using tomcat to load my java server pages. I need to display a picture in the page. Can somebody help?

    The images are not located on my site, or computer, but rather they are located on different websites. This is what the browser recieves when the jsp runs:
    <IMG SRC="http://www.thesite.com/images/theimage.gif"/>
    and the site that is running the JSP is:
    www.mysite.com/jsp/PicPage.jsp
    Is this what you think maybe happening when the browser tries to process the linked image:
    www.mysite.com/images/theimage.gif
    I don't really understand the nuances of HTML, but if I specify a web address completely in the HTML then wouldn't that specified website be queried for the pictures by the web browser?
    Thank you for any help you can provide.
    John

  • How do I set a breakpoint in a Java Server page (.jsp)?

    I have set up an application for remote debugging and am able to connect to it from JDeveloper. When the code execution comes to breakpoints that I have set in java (.java) files they work and the application stops so I can debug etc.
    This also applies to breakpoints set in java code that is called from Java Server pages.
    However if I set breakpoints directly in a java server page whether it is in html code or in java code (such as scriplets) the execution does not stop and the breakpoints are ignored.
    Why? Is there some extra thing I have to do? I have tried in Project Properties/Run/Debug/Profile/Edit/Launch Settings to choose server as Virtual Machine for instance but that does not change anything.
    Comment. I do not know if this is of interest but I am going to add some java server pages to an application and they are defined in a directory like this:
    . . . src\org\yawlfoundation\yawl\resourcing\jsf\jsp
    but when the tomcat deploys the .war file they end up here:
    . . . apache-tomcat-6.0.18\webapps\resourceService
    As I can find no package declaration in a .jsp file this should not matter but I mention it anyway.
    Edited by: user10477024 on Nov 25, 2008 5:32 AM

    Hi user10477024,
    thanks for explaining your background on what you are trying to do and I do understand the approach you are taking. Unlike user10689900's completely random post.
    I've tried to convey why there is no support for JSP debugging in JDev, but again the main reason is that the current frameworks do not code Java directly into a JSP. The JSP is purely used to position the components on the page aiding visual design and real Java classes in tag libs do the rest.
    So the evolution has been:
    Servlets (Java classes writing HTML logic and intermingling presentation and business logic)
    JSP 1.0 JSP (HTML looking) files where you can add scriptlets enclosed in <% ... %> <- you are here
    JSP 1.1 Introduction of Tags and Tag libraries, tag libraries are true java classes and the JSP controls layout and simpler more elegant design.
    Really JSP 1.1 is all about building reusable components together in tag libraries that can be reused across pages and improving design by not mixing presentation and business logic code together.
    If I had inherited something as you have, my advice (if you can) would be to code up some tag libraries because it would be a good learning experience and would be very helpful for moving to more advanced frameworks like JSF.
    regards,
    Brenden

  • Java Server Page Translation Error

    Hello !
    I'm new in JSP pages and i try to launch Hello.jsp on Java Web Server(2.0)
    I get the following error :
    java Server Page Transalation Error
    Error during compilation
    Can't load class : pagecompile.jsp._Hello
    With Hello.jsp :
    <html>
    <head>
    <title>My first JSP page
    </title>
    </head>
    <body>
    <%@ page language="java %>
    <% System.out.println("Hello World"); %>
    </body>
    </html>
    This is put in the directory public_html
    And and call it with http//myhostname:8080/Hello.jsp
    I really don't understand what the matter with that !
    Thanks very much to help me !

    Sorry i found this error.
    But i've another :
    The html page is generated but Hello World is not printed !
    Have you got an idea ?
    Thanks

  • Integration of PL/SQL and JSP (Java Server Pages)

    I need to match a web application developed with PL/SQL with another developed in JSP (Java Server Pages) the problem is that the two apps interact with the same databese, an share de same users, I need to know how to get the user and password loged into pl/sql when the user want to use same of de .jsp pages running on another application server?

    Hi Michael Vstling,
    Did you try the java classes library (SDOAPI) that can be downloaded from OTN?
    It may provide you with a better alternative when manipulating geometries in the Java space. There is an adapter in SDOAPI which can convert a JDBC STRUCT object into Java Geometry object defined in SDOAPI, and vice versa.
    There are at least two ways in mixing PL/SQL and Java. The first one, as you mentioned, is to define your custom function in terms of PL/SQL and call it from within your Java program. With SDOAPI, you have the second option, which is to define your own functions in Java using SDOAPI and deploy them as Java stored procedures in db. You can then call them from within your PL/SQL code. In either way performance depends on a lot of things and generally it requires a "try and improve" approach.
    About JPublisher and sdo_ordinate_array it may not be a spatial related problem. Did you try search the Java-related forums first?
    LJ

  • Java Server Pages Programming Database Access Error Through Tomcat

    Question# 1
    I am trying to access MYSQL Database through JAVA Server Pages programming using Tomcat Server as web server on win xp.
    Whenever I give following url http://localhost:8080/jspBook/ch1/customers.jsp in web browser , I get followin errors.
    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
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    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
    java.lang.NullPointerException
    org.apache.jsp.ch1.customers_jsp._jspService(org.apache.jsp.ch1.customers_jsp:96)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    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.15 logs.
    Apache Tomcat/5.5.15
    I am facing this problem since one month. I tried searching on google, but could not get concrete answer. I have configured mysqlconnector to connect to mysql and also configured other things in Tomcat's webapps folder. But I could not overcome this error.
    Please reply urgently. Thankz for the help and time. ?
    <!-- JSP Directives -->
    <%@ page import="java.sql.*" %>
    <%@ page contentType="text/html" %>
    <html>
    <head>
         <title>Insurance Quoting System</title>
    </head>
    <body>
    <basefont face="Arial">
    <!-- JSP Declarations -->
    <%! ResultSet rs = null;%>
    <!-- JSP Scriptlet -->     
    <%
         try {
              Class.forName("org.gjt.mm.mysql.Driver");
              Connection db = DriverManager.getConnection(
    "jdbc:mysql://localhost:3306/quoting");
              Statement s = db.createStatement();
              rs = s.executeQuery("select * from customer");
         catch (Exception e) {
    // For now, just report the error to the system log
         System.out.println(e.toString());
    %>
    <!-- Template text -->
    <table width="550" border="0" align="center">
    <tr>
    <td bgcolor="#006633">
    <div align="center">
              <font size="6" color="#FFFFFF"><b>Insurance Quoting System</b></font>
         </div>
    </td>
    </tr>
    <tr>
    <td>
    <p> </p>
    <p> </p>
    <p align="center"><b>Customers</b></p>
    <table width="290" border="0" align="center">
    <%
         try {
              while (rs.next()) {
    %>
    <!-- JSP Expressions used within template text -->
         <tr>
              <td width="20"><%= rs.getInt(1) %></td>
              <td width="70"><%= rs.getString(2) %></td>
              <td width="70"><%= rs.getString(3) %></td>
              <td width="40">
                   <a href="custMaint.jsp?id=<%= rs.getString(1) %>&action=edit">edit
    </a>
              </td>
              <td width="40">
                   <a href="custMaint.jsp?id=<%= rs.getString(1) %>&action=delete">delete
    </a>
              </td>
              <td width="40">
                   <a href="custMaint.jsp?id=<%= rs.getString(1) %>&action=newQuote">new quote
    </a>
              </td>
         </tr>
    <%
         catch (SQLException e) {
         // For now, just report the error to the system log
         System.out.println(e.toString());
    %>
    </table>
    </td>
    </tr>
    <tr>
         <td>
              <p> </p>
         <p align="center">New Customer</p>
         </td>
    </tr>
    </table>
    </body>
    </html>
    I have tried all possible configurations of classpath with mysqlconnectorj and Tomcat, but i could not find any solution. Plz help urgently. Thankz a lot.

    Your DB connection is probably failing
    As a result your result set "rs" is null when you get to it later on, causing a null pointer exception.
    Do you need to provide a username/password for your database?
    Have you configured your database to allow connections from localhost?
    If you haven't already figured it out, doing SQL programming in a JSP is bad practice. Put your SQL code into a java bean / class where it belongs.

  • Using Java Beans in Java Server Pages

    Can we not use a method of Java Bean in a Java Server Page ?
    I am trying to retrieve the user email from a java bean method "getUserEmail". I am instantiating the class, but when I try to use that in JSP tags, I am getting an error.
    <jsp:useBean class = "formjavabean.application" id = "applicationId" scope = "session" />
    <%@ page import="java.io.*, java.lang.*" %>
    <%!
    String user = applicationId.getUserEmail() ;
    String f3 = "ftn03" ;
    String f3not = "ftn03 file not uploaded";
    ...........I am failing in debugging that, can anyone help plz ?

    Here is my whole code in parts:
    First the head section:
    <head>
    <title> Fastran </title>
    <jsp:useBean class = "formjavabean.application" id = "applicationId" scope = "session" />
    </head>JSP part in the body section :
    <%@ page import="java.lang.*, java.io.*" %>
    <%!
    private String f3 = "ftn03";
    private String f3not = "ftn03 file not uploaded";
    private String f7 = "ftn07";
    private String f7not = "ftn07 file not uploaded";
    private String f9 = "ftn09";
    private String f9not = "ftn09 file not uploaded";
    public String checkFile3()
        File ch3 = new File("C:\\JBoss\\jboss-4.0.5.GA\\bin\\Fastran\\ftn03") ;
        if (ch3.exists() == true)
            return f3 ;
        else
            return f3not ;
    public String checkFile7()
        File ch7 = new File("C:\\JBoss\\jboss-4.0.5.GA\\bin\\Fastran\\ftn07") ;
        if (ch7.exists() == true)
            return f7 ;
        else
            return f7not ;
    public String checkFile9()
        File ch9 = new File("C:\\JBoss\\jboss-4.0.5.GA\\bin\\Fastran\\ftn09") ;
        if (ch9.exists() == true)
            return f9 ;
        else
            return f9not ;
    %>Java Script in the body section, using methods defined in the JSP part:
    <script type="text/javascript">
            function validate_file ( )
                    var file3 = "<%= checkFile3() %>" ;
                    var file7 = "<%= checkFile7() %>" ;
                    var file9 = "<%= checkFile9() %>" ;
                    if ( file3 != "ftn03" || file7 != "ftn07" || file9 != "ftn09" )
                        alert("Please upload the required file") ;   
                        return ("fastran.jsp") ;
                    else
                        return ("processForm.jsp") ;
            function validate_upload ( )
                    valid = true;
                    if ( document.val_file.filefield.value == "")
                            alert("Please select a file for upload") ;
                            valid = false;
                    return valid;
        </script>Finally the form and button part of the page, in the body section:
    <form name = "val_file" method="post" action="upload.jsp" name="submit" enctype="multipart/form-data" onSubmit = "return validate_upload();">
    Upload Files: <input type="file" name="filefield" >&nbsp&nbsp<input type="submit" name="submit" value="Upload"><br>
    <font color = "Red"><h5>(ftn03,ftn07, and ftn09)</h5></font><br><br><br>
    Files on the server :<br><br>
    <font color = "Green"><h5>
    <%= checkFile3() %><br>
    <%= checkFile7() %><br>
    <%= checkFile9() %><br>
    </h5></font>
    <br><br><br><br><br><br><br><br><br>
    <input type=button onClick="location.href='logintest.jsp'" value='Home'>  <input type=button onClick="location.href=validate_file()" value='Proceed' ><br>
    </form>Now try this:
    Change <%! to <%, or try using bean method as:
    String userEmail = applicationId.getUserEmail() ;..........and that is my problem. I would really appreciate any help, thanks

  • How To Call HTML Page Through Java Swing Page  ???....

    Hi All ;
    Please Can You Tell Me How To Call HTML Page Through Java Swing Page ....
    Regards ;

    Hi,
    you can use HTML fragments on a panel.
    http://java.sun.com/docs/books/tutorial/uiswing/components/html.html
    However, to integrate a browser you need 3rd party software like IceBrowser
    If you Google for: HTML Swing
    then you find many more hints
    Frank

  • How to configure CSWP on Category page to show the Published Catalog-item page on Publishing site in a Cross Site Publishing scenario?

    I have created a Cross Site Publishing Environment in SharePoint Online. After connected
    to my catalog. 2 pages automatically created. But in "Category" page, if i click on an item it will bring me to the original path/item located in Authoring site. How to configure Content Search Web Part on Category page to show the Published Catalog-item
    page on Publishing site?
    Can we do this by changing the property mappings?

    Hi,
    According to my understanding, you want users to be redirected to pages in the current site instead of the source page of the search results in a Content Search Web
    Part.
    By default, the hyperlinks of the search results in a Content Search Web Part will point to the source page where the data comes from, when the hyperlink of each result
    is clicked, user will be redirected to the corresponding source page.
    If the data comes from other sites, what page do you want to display when user clicks a search result in the Content Search Web Part?
    Property Mappings can help to control the content of each part of a display template, however, there seems no such property in the search result can help to redirect
    to the pages of the current site, thus, it might not be able to meet your requirement.
    More information about customizing the Content Search Web Part:
    https://www.martinhatch.com/2013/02/customising-cbswp-part1.html
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Books Java Server Pages. I would like to learn

    I have been using PHP for the last 4 years, but would love to learn Java Server Pages, .jsp Can anyone recommend good books that can teach me the basics of .jsp so that I can start creating webpages with webforms etc....
    I see .jsp as a logical progression.

    Hi,
    You will get lot of books on JSP written by some of the best brains in Java / J2EE. However, there is nothing that substitues exposure / experience.
    I would suggest that you use Google & check out some of the web sites that offer helps for beginners in JSP. You can also download OC4J, develop your JSPs & start playing with it.
    And, if you have any problems, the forums are always there...:)
    Regards,
    Sandeep

  • Java server pages+ database

    res sir,
    I want to ask you a qestion regarding a java server page sir pls. can you tell me the answer of my question. i will be pleased to know about my answer.
    Q1:- Can Java Server Pages help to communicate With Databaseand Can I put any informatin in databse through JSP?

    yes jsp pages can communicate with databases, done with jdbc. people use it all the time, like in a login page, you can connect to a database and check the user and password before allowing the user into your site.

  • AOL and AOl being shown as my home page default.

    After a factory redo and some updates, my laptop, running 32bit Vista, ended up by opening in AOL and AOl being shown as my home page default. I do not want AOL but cant get rid of it HOW do I get rid of it? I keep going to tools and options and changing it to http:\home.suddenlink.net but keeps going to the default.
    TIA, tvksi

    LeeH28 wrote: After a factory redo and some updates, my laptop, running 32bit Vista, ended up by opening in AOL and AOl being shown as my home page default. I do not want AOL but cant get rid of it HOW do I get rid of it? I keep going to tools and options and changing it to http:\home.suddenlink.net but keeps going to the default. TIA, tvksi
    Hello LeeH28, Can you advise the browser you are using? Have you tried to uninstall AOL?
    Just a thought.
    Please click the White Kudos star on the left, to say thanks.
    Please mark Accept As Solution if it solves your problem.

Maybe you are looking for

  • Trouble "syncing" my iPod

    I have an iPod mini. I recently hit over capacity for the first time on it and so I went in and deleted a bunch of playlists from my iTunes to "clean it up" - but now when I try to synch my iPod it tells me that it cannot update it because the playli

  • How do I get Adobe reader to read a PDF book aloud?

    I am trying everythin, it just keeps reading the title of the document.

  • How to print a pdf file from reader?

    We have Reader X1 and cannot print a pdf file. Although it says 'print', it only allows us to save the file

  • F9 no longer working

    I can no longer see my code.  I've tried two different .fla files, one I made and one someone sent me, but no luck.  Clicking on the first frame on the Actions layer, I either press F9 or right-click and choose actions.  The properties panel changes,

  • Use ANY web template for a theme?

    is it possible to use ANY web template (for ex from template monster) and make it a theme in iweb in which everything still stays connected together? Rather than just searching for exact "iweb themes"? cause they all look super generic. Message was e