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

Similar Messages

  • Glassfish and Listener error : HTTP Status 500 - System Unavailable.

    Hello,
    I 've some problem. When i'm working in workspace and develope my application everything fine, but when i try to run it , i have this :
    HTTP Status 500 - System Unavailable. Please try again later.
    type Status report
    messageSystem Unavailable. Please try again later.
    descriptionThe server encountered an internal error (System Unavailable. Please try again later.) that prevented it from fulfilling this request.
    Oracle GlassFish Server 3.1
    After refreshing, page work fine , but every actions in application have this problem. Well, users can't work normaly with my application.
    Please help me with this problem.
    I use Oracle 10g , Apex 4.0 , Glassfish 3.1, redhat 5
    Sorry for my bad english.
    Egor Karmanov.
    Edited by: 843328 on 07.06.2011 1:58

    Hello Egor,
    <ol><li>I see one error that seems to occur often on your server:
    ORA-20867: ORA-12705: invalid or unknown NLS parameter value specified
    ORA-02063: preceding line from WWW
    ORA-06512: at "SYS.DBMS_SESSION", line 153
    ORA-06512: at "APEX_040000.WWV_FLOW_LANG", line 387
    ORA-06512: at "APEX_040000.WWV_FLOW", line 9328
    ORA-06512: at "APEX_040000.F", line 267
    ORA-06512: at "APEX_040000.F", line 294
    ORA-06512: at line 2Probably you have some unsupported language or characterset configured for your application or APEX instance as default, which is not taken when you login to your application builder.
    </li>
    <li>What I see from your log as well: You still use APEX Listener version : 1.1.0.60.10.38, I'd recommend to update to the current 1.1.2 release.
    </li>
    <li>I see some other errors and warnings in your log, e.g.
    WARNING|oracle-glassfish3.1|org.apache.catalina.connector.Request|_ThreadID=20;_ThreadName=Thread-1;|PWC4011: Unable to set request character encoding to UTF-8 from context /apex, because request parameters have already been read, or ServletRequest.getReader() has already been calledand
    SEVERE|oracle-glassfish3.1|org.apache.tomcat.util.digester.Digester|_ThreadID=10;_ThreadName=Thread-1;|Digester.getParser:
    javax.xml.parsers.ParserConfigurationException: The XDK supports only namespace-aware parsers.
    [...]The warning can easily be ignored. I'd recommend to disable it to make keep your log file smaller and clear. See the [url http://wiki.glassfish.java.net/Wiki.jsp?page=FaqWebAppUnableToSetRequestCharEncoding]GlassFish FAQ for that warning.
    The severe error is more interesting. There seems to be a problem concerning the XML parser, probably due to a library conflict. There was a thread on a similar issue concerning Tomcat ({thread:id=2174509}), but possibly such things can happen on GlassFish as well, especially when you have installed some global libraries. As you can see in the Tomcat-Thread, removing xmlparserv2-11.2.0.jar from +\apex\WEB-INF\lib+ solved the problem there.
    </li>
    </ol>
    I hope these points help you to solve your problem. If not, can you post some additional information about your NLS/LC settings in GlassFish/Java/APEX environments?
    -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 - System Unavailable

    Since upgrading to Apex 4 using glassfish the users will intermittently get the error:
    HTTP Status 500 - System Unavailable. Please try again later.
    type Status report
    messageSystem Unavailable. Please try again later.
    descriptionThe server encountered an internal error (System Unavailable. Please try again later.) that prevented it from fulfilling this request.
    GlassFish v3
    using the packaged application bug tracker. When a user reports a problem and I log in as a developer so I can try to determine what the issue is the error will not occur. However if I log in just as the user then sometimes I can repeat the error and sometimes I can't....
    Any Ideas?

    Since upgrading to Apex 4 using glassfish the users will intermittently get the error:
    HTTP Status 500 - System Unavailable. Please try again later.
    type Status report
    messageSystem Unavailable. Please try again later.
    descriptionThe server encountered an internal error (System Unavailable. Please try again later.) that prevented it from fulfilling this request.
    GlassFish v3
    using the packaged application bug tracker. When a user reports a problem and I log in as a developer so I can try to determine what the issue is the error will not occur. However if I log in just as the user then sometimes I can repeat the error and sometimes I can't....
    Any Ideas?

  • Hello , I ordered the iPhone 6plus 128gb a few minutes before 3am est. I received my conformation email at 530am . As of then every time I try to check order status I receive the following message .  We are experiencing system issues, please try again lat

    Hello , I ordered the iPhone 6plus 128gb a few minutes before 3am est on Friday morning. I received my conformation email at 530am . As of then every time I try to check order status I receive the following message .  We are experiencing system issues, please try again later. Is anyone else receiving this message when checking order status?

    Are you seen that message when trying to view your orders from your Verizon account? I have the same issue but if you search your preorder confirmation number and enter you last name here Order Status | Verizon Wireless then it will at least give the vague details like, "your order has been received and is been processed" It will also show the expected delivery date.

  • Error :The catalog selected is currently unavailable:Please try again later

    Hi Experts,
    I am getting an error "The catalog selected is currently unavailable:Please try again later" when select a sold to party. I am not getting this every time. Only sometimes i am getting this error. When i delete the temperorary files from internet explorer sometimes this error is not coming. What might be the reason for this error??
    Thanks a lot in Advance.
    Regards,
    Lakshman.

    Hi
    Please let us know whether the error is thrown for all the sold to parties or for some.
    This error is caused because the catalog cache is flushed out . A quick solution would be to replicate the product catalog from the CRM system to TREX system.

  • Keep having isues trying to download music...Message states we could not complete Itunes Store request. The Itunes store is temporarily unavailable Please try again later. It has now been 3 days. Anybody know what the fix is..Cheers

    Keep having isues trying to download music...Message states we could not complete Itunes Store request. The Itunes store is temporarily unavailable Please try again later. It has now been 3 days. Anybody know what the fix is..Cheers

    Hi, bradley158. 
    Thank you for visiting Apple Support Communities. 
    Here are a the best troubleshooting articles when experiencing issues download content from the iTunes Store. 
    Apple software on Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Cheers,
    Jason H. 

  • TS3899 When trying to set up E-mail, keep getting a message "Yahoo! Server Unavailable" Please try again later. What can I do?

    When trying to set up E-mail, keep getting message "Yahoo! Server Unavailable" Please try again later. What can I do?

    http://ca.answers.yahoo.com/question/index?qid=20080509161003AAyvqpx
    this worked for me with my .ca yahoo account

  • I have the IPhone 4s and it is up-to-date with all upgrades.  Just recently I changed my YAHOO! password however each time I go into settings to update the password I keep getting "YAHOO! Server Unavailable Please try again later."

    I have the IPhone 4s and it is up-to-date with all upgrades.  Just recently I changed my YAHOO! password however each time I go into settings to update the password I keep getting "YAHOO! Server Unavailable Please try again later."  I have lost my YAHOO! email connection, all calendar entries and saved notes.

    A lot of people have been unable to access Yahoo e-mail on their iPhones or iPads. My wife’s iPad was not downloading Yahoo mail, although her iPhone was. Both used IOS 8.2. We tried deleting the account several times and troubleshooting all of the other settings. The problem appears to have been that allowing the IOS to automatically create the account on the iPad resulted in the wrong settings for the incoming server. The following procedure, pieced together from two websites, fixed the problem for us. So far, so good.
    https://portal.smartertools.com/kb/a2659/configure-imap-for-iphone-or-ipad.aspx
    https://help.yahoo.com/kb/mobile-mail/imap-server-settings-sln4075.html
    On the iPhone, tap Settings.
    Tap Mail, Contacts, Calendars.
    Tap your Yahoo account, then delete it.
    Tap Add Account.
    Tap Other.
    Tap Add Mail Account.
    Complete the Name, Address (email address), Password and Description fields.
    Click Next.
    Ensure IMAP is selected.
    Enter the following incoming mail server information:
    Incoming Mail (IMAP) Server - Requires SSL
    Server: imap.mail.yahoo.com
    Port: 993
    Requires SSL: Yes
    Hostname is mail.yahoo.com.
    Username is your full email address
    Password is the same password used to access webmail.
    Enter the following outgoing mail server information:
    Outgoing Mail (SMTP) Server - Requires SSL
    Server: smtp.mail.yahoo.com
    Port: 465 or 587
    Requires SSL: Yes
    Requires authentication: Yes
    Username is your full email address
    Password is the same password used to access webmail. It may have been entered for you.
    Tap Next.
    The iPhone will establish an SSL connection to your IMAP and SMTP servers.
    That’s all!

  • TS3297 i can no longer connect to itunes. a message comes up "we could not complete your itunes request. The itunes store is temporarily unavailable. please try again later. but when i use a different acct. it goes through right away . why did this start

    i can no longer connect to itunes. a message comes up "we could not complete your itunes request. The itunes store is temporarily unavailable. please try again later. but when i use a different acct. it goes through right away . why did this start happening?

    I don't know - but I am having the same problem and have not had any useful help from Apple Support.  Everything they told be to do has been done and it hasn't fixed the problem.

  • I am trying to set up my email on  my ipday, but I keep getting yahoo server is unavailable, please try again later.  What does this mean?

    I am trying to set up my email on  my ipday, but I keep getting yahoo server is unavailable, please try again later.  What does this mean?

    I just discover
     ed that all you need to do is change you yahoo password from your computer and then set it up on your iphone.  That's it

  • How come, when I add myYahoo! email account to MAIL, after verifying, I always get the "server unavailable. please try again later"

    How come, when I add myYahoo! email account to MAIL, after verifying, I always get the "server unavailable. please try again later"

    THANKS! this worked !!!
    I hit "DELETE THIS ACCOUNT" on my iphone (this is the Yahoo I tried to set up by "picking" it from the list that the iphone5 gives you) and then confirmed to delete everything.
    THEN: while in Mail (still in the Settings Section) I tapped on "ADD ACCOUNT..." but this time tapped on "OTHER" and manually put in my yahoo ID and password and I did not even have to go to the   SMTP or IMAP incomming/outgoing stuff at all. But I checked it out under the "ADVANCE" tab and it was already correct for yahoo. (ALMOST SEEMED TOO EASY)
    Went to my home screen and tapped on MAIL and my yahoo email loaded up just right!
    Now, I have no idea if I have any other issues like if I delete mail on the iphone; does it delete properly on my ipad...etc..etc. but one problem at a time is getting fixed. THANKS!

  • I am trying to set up email on new ipad and get msg yahoo!Server Unavailable Please try again later. Any suggestions please?

    I just bought an Ipad 2 and have been trying to set up my yahoo email. I continually get the msg, Yahoo! Server Unavailable Please try again later. I am not real savvy with this stuff so I need an answer I can understand, please...
    Thanks for any help,
    jeannie

    OK this is what I had to do; Not sure why but apple does not support yahoo email on the new ipad 2 so I had to create a gmail account. Deleted my yahoo account on ipad and entered new gmail account on the ipad, and it worked. I can now get email on ipad. Also gamil will import all contacts and mail from yahoo.
    Jeannie

  • HT201320 re-setting up a Yahoo email account, I repeatedly get the message "server unavailable, please try again later", is there something different I don't know about?

    re-setting up a Yahoo email account, I repeatedly get the message "server unavailable, please try again later", is there something different I don't know about?

    If you have two-step verification turned on, turn it off by logging into your Yahoo mail account on a browser.

  • TS1424 I am getting a "your account is temporarily unavailable, please try again later" message when trying to download an app?

    When trying to download a new app, I get a "account temporarily unavailable, please try again later" message. Any ideas?

    Welcome to the Apple community.
    There seems to be rather more of this type of issue being reported currently, than there normally is, there may well be a problem with the servers. I would be inclined to wait a while, then try again later.

Maybe you are looking for

  • How do you delete numerous duplicates at one time?  Can you?

    I have bought a new computer and want to merge my IPod Itunes content and my PC content as I used my Classic IPod more as a hardware place to store everything.  I can get it to display duplicates, but there are so many I wondered if I could just dele

  • Is there anyone who can help me with my question about icloud..

    keeps asking for old password, which I can't get because the email account has been deleted, and I can't delete the icloud account, because 'find my phone is on'.....

  • How to Upgrade from 10.3.9 to 10.5.1

    Hi - I am new to upgrading - my system is a 1.42 GHz PowerP G4 with 512 MB DDR SDRAM. How do I go from 10.3.9 to 10.5.x without losing my documents, downloads and photos? Do I need to buy and older upgrade version of Tiger first? Which version - the

  • Configuring more than one LDAP as data source

    Hi Portal Gurus, We have requiremnt to configure  MS ADS LDAP-> DEEP HIERARCHY  & Sun one LDAP->FLAT HIERRARCHY as PORTAL Datra Source.we have already configured MS ADS LDAP. for  merging these 2 LDAPS as a data source can anybody having experiece ..

  • Cancel excise invoices created for a Depot

    Hi How to cancel excise invoices created for a Depot ? regards N Banu