Channel.Call.Failed NetConnection.Call.Failed: HTTP: Status 500 with amfphp php and mysql

I have been scripting a simple database connection to check login credentials and am comming accross these errors:
Channel.Call.Failed
NetConnection.Call.Failed:
HTTP: Status 500
Any PHP code I run that is not connecting to MYSQL runs fine. But if I try to connect to the database thats what I get.
Here is my mxml:
<s:RemoteObject id="LogInService"
                             source="Novus.NovusUser.getLogIn"
                             destination="AMFPHP"
                                                            fault="faultHandler(event)"
                             showBusyCursor="true">
                              <s:method name="getLogIn" result="onResult(event)" fault="faultHandler(event)"/>
</s:RemoteObject>
Which calls this actionscript:
private function btn(event:Event):void
                                             switch(event.target.id)
                                                       case "LogInSubmit":
                                                                      LogInService.getLogIn(UserName.text, PW.text)
              break;
                              private function onResult(result:ResultEvent):void
                                             Alert.show("Result " + result.token.result);
                                             if(result.token.result == true)
                                                            currentState = "Main";
                                             else
                                                       Alert.show(String(result.token.result));
                              private function faultHandler(fault:FaultEvent):void
                                             CursorManager.removeBusyCursor();
        var errorMessage:String = "code:\n" + fault.fault.faultCode + "\n\nMessage:\n" + fault.fault.faultString + "\n\nDetail:\n" + fault.fault.faultDetail;
                                             Alert.show(errorMessage);
and calls this PHP:
If I comment out the database connection it returns a false value to me just fine but with it there it throws an error
<?php
class GetLogIn
               private $_db;
               public function getLogIn($U, $P)
                         //Connect To Database
                         $hostname='127.0.0.1';
                         $username='root';
                         $password='*********';    //not realy ***** blocked it out
                         $dbname='mydatabase';
                         try
                                        mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect to database! Please try again later.');
                                        mysql_select_db($dbname);
                                        $sql = "Select * FROM empusr WHERE UserName = '$U' and Password = '$P'";
                                        mysql_close();
                                        if ($sql)
                                                       return true;
                                        else
                                                       return false;
                         catch
                                        return 'Unable to connect to database! Please try again later.';
?>
I have a crossdomain.xml but I am unsure if I have it placed right.
I also have a services.conf but am unsure if that also needs to be altered to adjust for MySQL.
Any help would be appreciated. 

Found the problum
The connection string had to be placed in the public _constructor function of the class.
<?php
class EmployeeService
          public function __construct()
                    $hostname='127.0.0.1';
                    $username='root';
                    $password='*********';
                    $dbname='myDatabase';
                    mysql_connect($hostname,$username, $password);
                    mysql_select_db($dbname);
          public function logIn($N, $P)
                    $query = "SELECT * FROM EmpUsr WHERE UserName = '$N' AND Password = '$P'";
                    $result = mysql_query($query);
                      if ($result)
                                return true;
                      else
                                return false;
?>

Similar Messages

  • Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500

    I get the following error when trying to connect to my BlazeDS Java server from Flex application. Flex application is on localhost:80, blazeDS on tomcat localhost:8080. Please help!
    createUser();faultHandler():(mx.messaging.messages::ErrorMessage)#0
      body = (Object)#1
      clientId = (null)
      correlationId = "9FFDEBE8-EAD0-F3D9-8E9B-E3D7D7F5AE79"
      destination = ""
      extendedData = (null)
      faultCode = "Client.Error.MessageSend"
      faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500: url: 'http://77.93.202.150:8080/QuizDS/messagebroker/amf'"
      faultString = "Send failed"
      headers = (Object)#2
      messageId = "98F54E19-7B0D-DCB9-4B86-E3D7D84E484F"
      rootCause = (mx.messaging.events::ChannelFaultEvent)#3
        bubbles = false
        cancelable = false
        channel = (mx.messaging.channels::AMFChannel)#4
          authenticated = false
          channelSets = (Array)#5
          connected = false
          connectTimeout = -1
          enableSmallMessages = true
          endpoint = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          failoverURIs = (Array)#6
          id = (null)
          mpiEnabled = false
          netConnection = (flash.net::NetConnection)#7
            client = (mx.messaging.channels::AMFChannel)#4
            connected = false
            maxPeerConnections = 8
            objectEncoding = 3
            proxyType = "none"
            uri = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          piggybackingEnabled = false
          polling = false
          pollingEnabled = true
          pollingInterval = 3000
          protocol = "http"
          reconnecting = false
          recordMessageSizes = false
          recordMessageTimes = false
          requestTimeout = -1
          uri = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          url = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          useSmallMessages = false
        channelId = (null)
        connected = false
        currentTarget = (mx.messaging.channels::AMFChannel)#4
        eventPhase = 2
        faultCode = "Channel.Connect.Failed"
        faultDetail = "NetConnection.Call.Failed: HTTP: Status 500: url: 'http://77.93.202.150:8080/QuizDS/messagebroker/amf'"
        faultString = "error"
        reconnecting = false
        rejected = false
        rootCause = (Object)#8
          code = "NetConnection.Call.Failed"
          description = "HTTP: Status 500"
          details = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          level = "error"
        target = (mx.messaging.channels::AMFChannel)#4
        type = "channelFault"
      timestamp = 0
      timeToLive = 0

    halodev:
    I made a CF/Flex site based on the Flexstore sample app,
    using a database instead of XML as the data source; in case you
    want to see it:
    http://www.timos.com/dg/flex/DilemmaGames.html
    At first I had troubles similar to what you describe;
    initially, part of the problem was that my hosting company had not
    yet upgraded to CF 7.02. One other thing I had to correct: when you
    upload to your server, upload the entire ‘bin’ (or
    whatever your output folder is) minus the debug SWF.
    If it would help with other issues, contact me and I will be
    glad to make my project code available to you. Good luck.
    Carlos
    [email protected]

  • Login to LMS4 failed with HTTP Status 500

    Hello,
    I've done an upgrade from LMS 3.1 to LMS 4.01. I installed all updates and I changed the logon security to https.
    Evrything was working fine until the last deviceupdate and restart of the deamon manager.
    Now I can insert usernam and password and then I get an HTTP Status error 500:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1758)
         com.cisco.nm.uii.UIIController.processActionForward(UIIController.java:380)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         com.cisco.nm.cmf.util.AjaxAccessFilter.doFilter(AjaxAccessFilter.java:189)
         com.cisco.nm.cmf.util.AccessLogFilter.doFilter(AccessLogFilter.java:128)
    root cause
    java.lang.NoClassDefFoundError: Could not initialize class com.cisco.nm.gs.ui.helper.GSHelper
         com.cisco.nm.gs.ui.actions.GSInterceptor.perform(GSInterceptor.java:112)
         org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1758)
         com.cisco.nm.uii.UIIController.processActionForward(UIIController.java:380)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         com.cisco.nm.cmf.util.AjaxAccessFilter.doFilter(AjaxAccessFilter.java:189)
         com.cisco.nm.cmf.util.AccessLogFilter.doFilter(AccessLogFilter.java:128)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.29 logs.
    What can I do to solve the problem?
    Kind regards
    Ludwig

    Hi Afroj,
    it didn't work.
    Error HTTP status 500
    But the error text is shorter:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         com.cisco.nm.cmf.util.AjaxAccessFilter.doFilter(AjaxAccessFilter.java:189)
         com.cisco.nm.cmf.util.AccessLogFilter.doFilter(AccessLogFilter.java:128)
    root cause
    java.lang.NoClassDefFoundError: Could not initialize class com.cisco.nm.xms.psu.conf.Conf
         com.cisco.nm.xms.psu.util.PsuLibrary.getCurrentVersion(PsuLibrary.java:513)
         com.cisco.nm.cmf.home.util.CSHPUtil.getCSVersion(CSHPUtil.java:534)
         com.cisco.nm.cmf.home.uii.action.CSHPAction.perform(CSHPAction.java:63)
         org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         com.cisco.nm.cmf.util.AjaxAccessFilter.doFilter(AjaxAccessFilter.java:189)
         com.cisco.nm.cmf.util.AccessLogFilter.doFilter(AccessLogFilter.java:128)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.29 logs.
    Apache Tomcat/5.5.29
    Kind regards Ludwig

  • Fail to view pages and encounter http status 500

    Hi,
    I am student of some university in malaysia. I encounter final year project in this semester. So i intend to use JSP to develop my project. Today after my lecturer brief about JSP, so i come back and try JSP in my PC immediately. What tools I had installed into my PC are:
    JDK/JRE 1.6.0
    Tomcat 5.5.9
    Netbean 1.6
    The JSP page contain such coding:
    <%
    String name = request.getParameter("nm");
    String age = request.getParameter("age");
    int int_age = Integer.parseInt(age);
    int_age = int_age * 3;
    %>
    Thank you for submitting the data <br>
    <%=name%>, your new age is <%=int_age%>
    This pages can view in my lecturer's computer, but when i copy back and view in my computer, it encounter http status 500. What is the problem? any solutions?
    I am JSP newbie, and start to learn JSP from beginner, thank you for everyone who can help me in this.

    Nanikawa wrote:
    it encounter http status 500.This generally indicates an uncatched exception in the code. Read the application server logs, find the exception, read the stacktrace and fix your code accordingly.

  • Flash Remoting HTTP Status 500

    Kindly help me with getting Flash Remoting started. I am
    using CF8 and my Flex client connect to the Flash Remoting.
    Fault Detail:
    Channel.Connect.Failed error NetConnection.Call.Failed: HTTP:
    Status 500: url: '
    http://localhost/flex2gateway/cfamfpolling'
    Kindly provide your inputs.
    Best
    Sam

    Can you try the following to see if the error goes away:
    -- Stop the daemon manager
    -- Go to the directory NMSROOT/MDC/tomcat/work/Standalone/localhost
    and delete everything in under here, files and folders. You should see something like this under here:
    campus CSCOnm_servlet ipm rme
    campus_servlet CVng JSP_CAMPUS
    cmapps cwhp JSP_cmf_security
    You can delete all of these and once they are removed restart the
    daemons
    Note -- NMSROOT is the install path LMS
    ex) Solaris /opt/CSCOpx
    Windows c:\progra~1\CSCOpx
    Give it about 15 minutes to get everything restarted and rebuild the
    servlets we just cleared.
    Now let's go into the GUI and try to access the link that was giving the
    server error.
    Does it give the same error?

  • Tomcat - HTTP Status 500 - System Unavailable. Please try again later.

    HI,
    I installed ORACLE XE + TOMCAT 7 + ORACLE XE on windows XP.
    All seems to work under debug session but on normal session I found the following message only when I put a specific parameter on my query.
    The same query with the same parameter runs in the sqldev client whitout errors
    Here below the massages:
    HTTP Status 500 - System Unavailable. Please try again later.
    type Status report
    message System Unavailable. Please try again later.
    description The server encountered an internal error (System Unavailable. Please try again later.) that prevented it from fulfilling this request.
    Apache Tomcat/7.0.2
    and in the log file:
    2011-02-23 18:04:19 Commons Daemon procrun stdout initialized
    APEX Listener version : 1.0.2.238.15.24
    APEX Listener server info: Apache Tomcat/7.0.2
    Using Config file:C:\Programmi\Apache Software Foundation\Tomcat 7.0\temp\apex\apex-config.xml
    -- listing properties --
    PropertyCheckInterval=60
    ValidateConnection=true
    MinLimit=1
    MaxLimit=10
    InitialLimit=3
    AbandonedConnectionTimeout=900
    MaxStatementsLimit=10
    InactivityTimeout=1800
    MaxConnectionReuseCount=50000
    ***********ERROR***********
    init: # headers=46
    declare nm owa.vc_arr := ?;
         vl owa.vc_arr := ?;
    begin
    owa.init_cgi_env( ?, nm, vl );
    htp.init; htp.HTBUF_LEN := 63;
    ? := sys_context('USERENV','SID');
    end;
    SID:18
    CALL:
    begin
    f(p=>?);
    commit;
    end;
    BINDS
    p:106:3:4503262208013405:::::PAGE CALL:
    declare
    nlns number := 999999;
    l_clob CLOB;
    lines htp.htbuf_arr;
    l_buff varchar2(32767);
    l_clob_init boolean:= false;
    l_file varchar2(5);
    begin
    OWA.GET_PAGE(lines, nlns);
    if (nlns > 1) then
    for i in 1..nlns loop
    if ( length(lines(i)) > 0 ) then
    if ( ( lengthb(l_buff) + lengthb(lines(i))) > 32767) then
                   if (NOT l_clob_init) then
                        dbms_lob.createtemporary(l_clob, TRUE);
                        dbms_lob.open(l_clob, dbms_lob.lob_readwrite);
                        l_clob_init:=true;
                   end if;
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := lines(i);
    else
    l_buff := l_buff || lines(i);
    end if;
    end if;
    end loop;
    end if;
    if (l_clob_init) then
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := '';
    end if;
    ? := l_clob;
    ? := l_buff;
    if (wpg_docload.is_file_download) then l_file:='TRUE'; else l_file := 'FALSE'; end if; ? := l_file;
    end;
    get_page FAILED:ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
    ORA-06512: a line 32
    ^^^^^^^^^^^^ERROR^^^^^^^^
    ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
    ORA-06512: a line 32
    ***********ERROR***********
    init: # headers=46
    declare nm owa.vc_arr := ?;
         vl owa.vc_arr := ?;
    begin
    owa.init_cgi_env( ?, nm, vl );
    htp.init; htp.HTBUF_LEN := 63;
    ? := sys_context('USERENV','SID');
    end;
    SID:18
    CALL:
    begin
    f(p=>?);
    commit;
    end;
    BINDS
    p:106:3:3777982020408238:::::PAGE CALL:
    declare
    nlns number := 999999;
    l_clob CLOB;
    lines htp.htbuf_arr;
    l_buff varchar2(32767);
    l_clob_init boolean:= false;
    l_file varchar2(5);
    begin
    OWA.GET_PAGE(lines, nlns);
    if (nlns > 1) then
    for i in 1..nlns loop
    if ( length(lines(i)) > 0 ) then
    if ( ( lengthb(l_buff) + lengthb(lines(i))) > 32767) then
                   if (NOT l_clob_init) then
                        dbms_lob.createtemporary(l_clob, TRUE);
                        dbms_lob.open(l_clob, dbms_lob.lob_readwrite);
                        l_clob_init:=true;
                   end if;
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := lines(i);
    else
    l_buff := l_buff || lines(i);
    end if;
    end if;
    end loop;
    end if;
    if (l_clob_init) then
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := '';
    end if;
    ? := l_clob;
    ? := l_buff;
    if (wpg_docload.is_file_download) then l_file:='TRUE'; else l_file := 'FALSE'; end if; ? := l_file;
    end;
    get_page FAILED:ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
    ORA-06512: a line 32
    ^^^^^^^^^^^^ERROR^^^^^^^^
    ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
    ORA-06512: a line 32
    Could you kindly help me.
    Thanks in advance for your help
    Best Regards

    Hi Paolo,
    which APEX version do you use?
    There are only a few reasons that might lead to the behaviour you describe. These are
    - configured header size for Tomcat Connector is too small
    - configured character encoding for Tomcat Connector doesn't fit for APEX (you need UTF-8)
    - you don't have the required version of OWA_UTIL in your XE if you upgraded to a more recent APEX release (e.g. APEX 4.0)
    Have you configured the Tomcat's HTTP Connector to use the appropriate header size and character encoding?
    (see {thread:id=2174509})
    If you've upgraded your XEs APEX, e.g. to 4.0, you also have to update the OWA_UTIL in your XE. APEX versions from 3.0 onwards require at least 10.1.2.0.6, which is the version provided in the installation package. You may just update to that version by changing to the subdirectory owa of your APEX installation package and running
    @owainst.sqlas sys (just like in the steps before).
    You can check if you have the appropriate version of OWA_UTIL installed by running
    select owa_util.get_version from dual;In addition you may also want to check if you performed all steps of this small [url http://www.oracle.com/technetwork/developer-tools/apex/upgrade-apex-for-xe-154969.html]HowTo for the upgrade of APEX in XE databases.
    -Udo

  • HTTP Status 500 - System Unavailable Error

    Hi all,
    I am facing a problem while accessing Oracle Apex. While i am working with application in apex suddenly it starts popping the error message "HTTP Status 500 - System Unavailable. Please try again later."
    After getting this error my application becomes inaccessible. I need to refresh the entire db to run it again.
    Can somebody please tell me why is this error coming again and again? Is there some problem with installation or some other problem.
    Please reply me as soon as possible.
    Thanks in advance,
    Anjali.

    Hi,
    I'm working on APEX 4.0, Oracle XE 10g on Windows 7, Access via ApexListener, actual version, installed into Tomcat 6.0.26.
    I'm experiencing the same error. I was able to work out two scenarios which lead to this error:
    1. Every now and then the error pops up when using the Application Builder. Catalina.log says:
    <pre>
    ***********ERROR***********
    init: # headers=45
    declare nm owa.vc_arr := ?;
         vl owa.vc_arr := ?;
    begin
    owa.init_cgi_env( ?, nm, vl );
    htp.init; htp.HTBUF_LEN := 63;
    ? := sys_context('USERENV','SID');
    end;
    SID:20
    CALL:
    begin
    f(p=>?,
    success_msg=>?);
    commit;
    end;
    BINDS
    p:4000:4050:3884752980922490::NO:::
    success_msg:Action processed.Action processed./1F544BBDB12EC89A7CC66B768B6446C7/PAGE CALL:
    declare
    nlns number := 999999;
    l_clob CLOB;
    lines htp.htbuf_arr;
    l_buff varchar2(32676);
    l_clob_init boolean:= false;
    l_file varchar2(5);
    begin
    OWA.GET_PAGE(lines, nlns);
    if (nlns > 1) then
    for i in 1..nlns loop
    if ( length(lines(i)) > 0 ) then
    if ( ( lengthb(l_buff) + lengthb(lines(i))) > 32676) then
                   if (NOT l_clob_init) then
                        dbms_lob.createtemporary(l_clob, TRUE);
                        dbms_lob.open(l_clob, dbms_lob.lob_readwrite);
                        l_clob_init:=true;
                   end if;
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := lines(i);
    else
    l_buff := l_buff || lines(i);
    end if;
    end if;
    end loop;
    end if;
    if (l_clob_init) then
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := '';
    end if;
    ? := l_clob;
    ? := l_buff;
    if (wpg_docload.is_file_download) then l_file:='TRUE'; else l_file := 'FALSE'; end if; ? := l_file;
    ? := sys_context('USERENV','SID');
    end;
    get_page FAILED:ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 32
    ^^^^^^^^^^^^ERROR^^^^^^^^
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 32
    </pre>
    2. I'm using JQuery.dataTables. When I branch to a page that renders a table with that extension and click on a tab (apex.submit()), this error is shown in Catalina.log:
    <pre>
    init: # headers=47
    declare nm owa.vc_arr := ?;
         vl owa.vc_arr := ?;
    begin
    owa.init_cgi_env( ?, nm, vl );
    htp.init; htp.HTBUF_LEN := 63;
    ? := sys_context('USERENV','SID');
    end;
    SID:20
    CALL:
    begin
    wwv_flow.accept(p_page_submission_id=>?,
    p_flow_id=>?,
    R3984050879052451_length=>?,
    p_flow_step_id=>?,
    p_arg_values=>?,
    p_request=>?,
    p_instance=>?,
    p_t03=>?,
    p_t02=>?,
    p_t01=>?,
    p_md5_checksum=>?,
    p_arg_names=>?);
    commit;
    end;
    BINDS
    p_page_submission_id:1778791093984791
    p_flow_id:101
    R3984050879052451_length:10
    p_flow_step_id:300
    p_arg_values: {F649821837B56200BDC0DEA81D682D1255137C7CE39BC71EA178625107B6988E}
    p_request:T_STATISTIKEN
    p_instance:3452696935674912
    p_t03:389
    p_t02:'Verweildauer gesamt abgelaufenes Jahr'
    p_t01:15
    p_md5_checksum:
    p_arg_names: {327865687985686539141271640403183871035117271840}
    p_page_submission_id:1778791093984791
    p_flow_id:101
    R3984050879052451_length:10
    p_flow_step_id:300
    p_arg_values: {F649821837B56200BDC0DEA81D682D1255137C7CE39BC71EA178625107B6988E}
    p_request:T_STATISTIKEN
    p_instance:3452696935674912
    p_t03:389
    p_t02:'Verweildauer gesamt abgelaufenes Jahr'
    p_t01:15
    p_md5_checksum:
    p_arg_names: {327865687985686539141271640403183871035117271840}
    EXEC FAILED:ORA-06550: Zeile 2, Spalte 2:
    PLS-00306: Falsche Anzahl oder Typen von Argumenten in Aufruf von 'ACCEPT'
    ORA-06550: Zeile 2, Spalte 2:
    PL/SQL: Statement ignored
    ORA-06550: Zeile 2, Spalte 2:
    PLS-00306: Falsche Anzahl oder Typen von Argumenten in Aufruf von 'ACCEPT'
    ORA-06550: Zeile 2, Spalte 2:
    PL/SQL: Statement ignored
    </pre>
    I can reproduce this error. To me, p_arg_names and p_arg_values look a bit funny, but I'm not sure.
    Did anybody encounter similar problems?
    Best regards,
    Jürgen

  • HTTP Status 500 message when attempting to open Financial Report.

    In a new 9.3.1 installation (BI, Essbase, HFM, Planning) I am unable to run Financial Reports in Workspace. As a test, I have created a simple report, using Studio, which has only boilerplate text - no grids or anything else that requires a DB connection. The report previews fine from the Studio client but when I attempt an HTML preview or when I attempt to run the report from within Workspace, I receive an HTTP Status 500 error in the right panel in Workspace. Below is the text of the error. I am using IIS 6 with Tomcat. My troubleshooting effort have been around IIS and BI configuration. I am able to open Web Analysis documents without any trouble. Any suggestions you may have would be appreciated.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         com.hyperion.reporting.webviewer.HRLocaleFilter.doFilter(Unknown Source)
    root cause
    Compile failed; see the compiler error output for details.
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         com.hyperion.reporting.webviewer.HRLocaleFilter.doFilter(Unknown Source)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
    I have re-registed with HSS repeatedly as well as scrubbed the logs.

    Hi again Ramana,
    Did you try any of the following:
    1.) Delete Tomcat cache with the following steps
    Stop Tomcat.
    Remove the folders from <Tomcat\work\Catalina\localhost> directory.
    Start Tomcat. (it will delay a few minutes)
    The cache will be recreated automatically.
    2.) Redeploy Explorer application with wdeploy tool (Location: <install_dir>\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\wdeploy)
    Syntax
    wdeploy <WEB_APP_SERVER> [-D<PROPERTY>=<value>] <ACTION>
    Example
    -- Undeploy
    wdeploy tomcat7 -DAPP=explorer undeploy
    -- Deploy
    wdeploy tomcat7 -DAPP=explorer deploy
    Regards,
    Ilias

  • What can I do about http status 500 error report?

    I have Windows and want to log in to a bank website. I click the Log In button and get this message:
    "Http status 500" and that "The server encountered an internal error () that prevented it from fulfilling this request." and "Path webClient.passmark.login does not start with a "/" character" and "he full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs."
    I have tried the "secure Connection failed" troubleshooting without luck. What can I do?

    Does a direct link to the login page work?
    *https://secure.ally.com/allyWebClient/login.do
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • HTTP Status 500 - Exception report

    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.Exception: findByKey failed: Index: 0, Size: 0
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:472)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:415)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
    com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
    org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
    org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
    org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
    root cause
    java.lang.Exception: findByKey failed: Index: 0, Size: 0
    com.ncr.enterprisereporting.service.ConfigurationService.findByKey(ConfigurationService.java:103)
    com.ncr.enterprisereporting.domain.SessionData.addStandardPageFeatures(SessionData.java:183)
    com.ncr.enterprisereporting.controller.AdminController.dashboard(AdminController.java:161)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:428)
    org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:366)
    org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857)
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:460)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:415)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
    com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
    org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
    org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
    org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
    please help me out, i have a release to QA today

    findbykey method failed because it tried to access 0'th element of the array/list with size 0?
    maybe acegi filters out elements to be returned so it returns empty collection and some logic knows that there should be elements returned so tries to access first element on array/list but there is nothing since acegi has filtered data out?

  • HTTP status 500 error using OpenSSO, policy agent 3 and glassfish

    Hello,
    I have created a simple secure web app following the agentsample app. When I first start up the server that opensso is deployed on, I can log in to the app and everything works fine. Then when I log into again I get a HTTP status 500 error. I have to restart the server to make it work again. Everything about it is very unpredictable - sometimes it works, sometimes it doesn't.
    I found this in the server logs:
    Exception starting filter Agent
    java.lang.ClassNotFoundException: com.sun.identity.agents.filter.AmAgentFilter
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1498)
         at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:235)
         at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:369)
         at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103)
         at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4389)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:5189)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
         at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
         at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
         at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
         at java.util.concurrent.FutureTask.run(FutureTask.java:123)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Thanks
    AT

    Set the log level to mesaage and look into the amFilter logs

  • Mac OSX 10.9.4 coldfusion 11 standalone server ERROR: HTTP Status 500 - java.lang.NullPointerException

    Hi all.
    I have installed the cold fusion server.
    at first with mac server, apache..... but after install cold fusion and want to go to the admin page:
    HTTP Status 500 - java.lang.NullPointerException
    I deinstalled the server from mac and cold fusion..
    after a fresh install of coldfusion 11 and use the build in server..
    the same error..
    does anybody knows the problems?
    I Use Java 7 Update 67
    A friend of me have installed it .. it runs
    greetings thorsten

    Hi this is my cold fusion Error LOG
    java.lang.NullPointerException
      at coldfusion.CfmServlet.init(CfmServlet.java:97)
      at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
      at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
      at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:864)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:134)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:104 0)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
    Sep 16, 2014 8:30:59 AM org.apache.catalina.core.ApplicationContext log
    INFO: failed to load: coldfusion.CfmServlet
    Sep 16, 2014 8:30:59 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Allocate exception for servlet CfmServlet
    java.lang.NullPointerException
      at coldfusion.CfmServlet.init(CfmServlet.java:97)
      at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
      at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
      at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:864)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:134)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:104 0)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

  • The server encountered an internal error () - HTTP status 500

    Hi
    I am working with the Tomcat 5.5 on Eclipse, and is getting the error when my servlet calls the jsp using request dispatcher, the error is:
    HTTP status 500
    The server encountered an internal error () that prevented it from fulfilling this request.
    and the log of the exception is:
    Oct 27, 2008 9:41:15 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet Controller threw exception
    java.lang.NullPointerException
    at Controller.doGet(Controller.java:46)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:627)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:729)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:172)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:174)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:875)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Unknown Source)
    and when I go to the line in the controller.java which is giving me the exception, I do not find anything wrong with it, this is the line:
    RequestDispatcher dispatcher = getServletConfig().getServletContext().getRequestD ispatcher("/view.jsp");
    dispatcher.forward(request, response);
    Any clarifications highly appreciated.
    When I debug my code, I find that the config is null just before the RequestDispatcher line. What does that mean ?
    thanks.

    Looks like you have a space in "D ispatcher"?
    RequestDispatcher dispatcher = getServletConfig().getServletContext().getRequestD ispatcher("/view.jsp");If that's not the solution than going by your error you need to check your variable because somehow you're pointing to nothing:
    java.lang.NullPointerException

  • Connection - HTTP Status 500 error

    Hi, getting the following error??
    HTTP Status 500 -
    type Exception report
    message
    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
    PWC6197: An error occurred at line: 43 in the jsp file: /index.jsp
    PWC6199: Generated servlet error:
    string:///index_jsp.java:104: ')' expected
    PWC6197: An error occurred at line: 43 in the jsp file: /index.jsp
    PWC6199: Generated servlet error:
    string:///index_jsp.java:104: not a statement
    PWC6197: An error occurred at line: 43 in the jsp file: /index.jsp
    PWC6199: Generated servlet error:
    string:///index_jsp.java:104: ';' expected
    PWC6199: Generated servlet error:
    string:///index_jsp.java:122: 'catch' without 'try'
    PWC6199: Generated servlet error:
    string:///index_jsp.java:122: ')' expected
    PWC6199: Generated servlet error:
    string:///index_jsp.java:122: not a statement
    PWC6199: Generated servlet error:
    string:///index_jsp.java:122: ';' expected
    PWC6199: Generated servlet error:
    string:///index_jsp.java:130: 'finally' without 'try'
    PWC6199: Generated servlet error:
    string:///index_jsp.java:33: 'try' without 'catch' or 'finally'
    PWC6199: Generated servlet error:
    string:///index_jsp.java:134: reached end of file while parsing
    The code below+
    +*>>>*+
    <%--
    Document : index
    Created on : Mar 9, 2010, 3:26:07 PM
    Author : Administrator
    --%>
    <%@ page language="java" import="java.sql.*" %>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <% Class.forName("oracle.jdbc.OracleDriver"); %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <HTML>
    <HEAD>
    <TITLE>Fetching Data From a Database</TITLE>
    </HEAD>
    <BODY>
    <H1>Database Lookup</H1>
    <FORM ACTION="index.jsp" METHOD="POST">
    Please enter the ID of the publisher you want to find:
    <BR>
    <INPUT TYPE="TEXT" NAME="id">
    <BR>
    <INPUT TYPE="SUBMIT" value="Submit">
    </FORM>
    <H1>Fetching Data From a Database</H1>
    <%
    Connection connection = DriverManager.getConnection(
    "jdbc:oracle:thin:@localhost:1521:orcl","test","test");
    Statement statement = connection.createStatement();
    String id = request.getParameter("id");
    ResultSet resultset =
    statement.executeQuery("select * from tableName where id = '" id "'") ;
    if(!resultset.next()) {
    out.println("Sorry,could not find that publisher. Please <A HREF='tryAgain.html'>try again</A>.");
    } else {
    %>
    </BODY>
    </HTML>

    The braces seemed to have sorted out??
    The Oracle driver is called oracle.jdbc.OracleDriver is throwing up an error??
    Should it have the path and jar name??
    HTTP Status 500 -
    type Exception report
    message
    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
    root cause
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

  • HTTP Status 500 Apache/Tomcat error

    Hi !
    I'm having trouble getting my Java Plumtree Portal (5.02) to work correctly due to Apache/Tomcat HTTP Status 500 errors that come up when I try to perform certain actions on Content Server objects (PCS v 5.0.2).
    E.g., when I try to preview the 'Main Page' content item from a Content Server Portlet based on a Communauty Directory Portlet Template in Content Server Explorer, I get the following statement :
    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:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536)
    root cause
    javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536) at org.apache.jsp.navigate_jsp._jspService(navigate_jsp.java:226) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536)
    Apache Tomcat/4.1.27-LE-jdk14
    And when I try to "Create a folder" on the front part of a Communauty Directory Content Portlet I have added to a communauty page, I get the following :
    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: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error: [javac] Compiling 1 source file
    The system is out of resources.Consult the following stack trace for details.java.lang.OutOfMemoryError
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.j
    ava:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.j
    ava:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.j
    ava:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.j
    ava:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.j
    ava:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.j
    ava:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.jav
    a:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536)
    I understand the problem seems to come from Jasper, the jsp engine used by Tomcat and that some jsp files seem to never be found...
    I know that two jar files might be the source of this problem (not existing in a particular directory, or not being refered in a classpath) : "jasper-compiler.jar" and "jasper-runtime.jar"
    I've tried to add these to the CLASSPATH environment variable but it didn't work.
    I've tried to resolve by copying jasper-runtime.jar and jasper-compile to \jakarta-tomcat-4.1.27-LE-j2sdk1.4.1_05\j2sdk1.4.1_05\lib directory but didn't work either.
    Moreover I don't understand because some errors seem to never come up again after having uninstalled the Tomcat Service (we created a special Tomcat Service installation script to launch Tomcat with an added -Djava.endorsed.dirs option to enable the XML Source Portlet to run correctly) and reinstalled another one with the default installation script (the same script but without the -Djava.endorsed.dirs option) This might be because the process calling the jsp files and compiling them to java files, which are then compiled to class files, only happens when the portal needs to request a particular jsp. So it might be that some files would have allready been compiled with Tomcat (based on the original installation script) running and it is only when the portal tries to reach class files that would never have been compiled because never been requested that the error statement comes up...
    Thanks for those who couragesly read this entire Topic.
    I deeply thank those who would have encoutered a similar problem or would know a possible solution and could give me a clue. I'm statring to get desperate...
    Sebastien, Groupe i3m, France.

    The exception is throwing when u r trying to convert null value into integer/float or double..
    Check for this

Maybe you are looking for