How to display ECID in an error page
Hello everyone,
I have a very simple servlet-based application that I am deploying to Oracle Fusion Middleware (version 11.1.1.4). I also have an error page directive in my web.xml that displays a user-friendly page (i.e. "call the helpdesk") when my servlet sends HTTP 400/500 responses (which I do intentionally on certain error conditions).
In order to help in diagnosis of the problems, I'd like to include something in the error page that the user could quote to the help desk to assist them in finding the specific log messages (which my servlet has duly logged) related to the request. The obvious thing to use would be the ECID of the request. However, I cannot, after looking through lots of documentation, figure out how to display the ECID in the error page. As my request is going through WebCache, I've tried turning on the diagnostics from the webcache (which the docs seem to say will cause the information to be included in either the response headers or the HTML body), but this doesn't seem to work.
I appreciate any pointers, especially pointers to the docs!
Thanks,
John
Looks like another option might be to make an API call like this in your JSP or Java code:
<%= weblogic.diagnostics.context.DiagnosticContextHelper.getContextId() %>In order for this to work, I had to have a WLDF System Module targeted at the Server AND the Instrumentation checkbox had to be enabled.
It returns null if you don't have WLDF configured or instrumentation enabled and gives a value like this if you have it enabled:
7673164398dde610:249290ac:13091aea873:-7fff-000000000000000dFound it here:
http://download.oracle.com/docs/cd/E21764_01/web.1111/e13714/config_prog_intro.htm#i1072698
Similar Messages
-
How to display all data on one page in web app
Hello.
So I have web app JSF (IceFaces framework) + JBoss all Crystal Report working perfectly. So I have page with Crystal Report tags (e.g.
<bocrv:reportPageViewer reportSource="#{crystalReport.reportPath}" ...
in this report I have table with some data (data from DB) and I want to display this data on one page. Unfortunately now this data are moving to the next page and unfortunately I even donu2019t know how switch to the next page (I see only info e.g. 1with 2).
So how to display this data on one page if its impossible how to torn on pagination.So I canu2019t do this, I canu2019t display all data on one page (until Iu2019m using JSF tags)?
In JSF tags Iu2019m setting only path to file. In my bean Iu2019m using u201CReportClientDocumentu201D object itu2019s easy way to load report file (u201Copenu201D method) and set parameters (u201CgetDataDefController().getParameterFieldController()u201D method) and also connect to data base (u201Clogonu201D method) but I havenu2019t this property u201CsetSeparatePages(boolean)u201D.
Maybe Iu2019m doing this wrong and there is a simpler way maybe I can use somehow u201CCrystalReportVieweru201D please give my any advice. -
How can i set a global error page for all error cod
how can i set a global error page for all error code?
i don't want to leave a long list in the web.xml file.could any one help me?
thanksIf u have a common Error JSP named as ErrorPage.jsp
You need to have the following piece of code in the JSP as :
<%@ page isErrorPage ="true"%>
This makes it as the Common Error Page for the Application. Now all you need to do is from other JSP's throw the Exception to teh container. The container will redirect to this Page and process accordingly.
Thanks and regards,
Pazhanikanthan. P -
How to display query result in seperated page.
How to display query result in seperated page, if the results are very big (more than 5000 records) and there are so many concurrent users (about 500 - 1000 users).
Are there any solutions or frameworks?
Plese help me .........
thanks,
--bhasinHi,
How to display query result in seperated page?I think RowSet will be the better technology to use in this
situation.For more information on this please visit http://developer.java.sun.com/developer/Books/JDBCTutorial/chapter5.html
which explains in detail about RowSets.
Hope this helps.
Good Luck.
Gayam.Srinivasa Reddy
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support/ -
How to display flash file in adf pages
how to display flash file in adf pages need help
Thanks all,
It is resolved.
the code i am using to display a flash is below.
<f:verbatim>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version
=10,0,0,0" width="300" height="300" id="11gR1_aniH_grey" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="wmode" value="transparent" />
<param name="movie" value="mx2004demo.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#4d5c64" />
<embed src="../Images/mx2004demo.swf" quality="high" width="300" height="300" name="mx2004demo.swf" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false"
type="application/x-shockwave-flash" wmode="transparent"
pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</f:verbatim> -
Any suggestions how to display iframe of sharepoint 2013 page in 2010 page?
Any suggestions how to display iframe of sharepoint 2013 page in 2010 page?
keren tsurSharePoint by default includes the HTML header X-Frame-Options:SAMEORIGIN which only allows content within iFrames from the same page host.
You can add
<WebPartPages:AllowFraming runat="server"
/>
to the SharePoint 2013 page to allow it to be used in an iFrame.
Paul.
Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times. -
Display well formatted html error page; how to
I'm using Django for my backend and mostly getting XML responses to my HttpService requests. However when I get an error on the backend, The message in the fault event is relatively useless. To debug I have to copy the request string from the alert window and post it in a separate browser window to see the error traceback.
I'm using Django on the backend which gives a very nicely formatted error page but I cannot see that from Flex. I would like to detect the error and open a new browser window/tab and display the "pretty" info. Below is a snippet of what i'm doing now:
public function AssessmentActionServiceFaultHandler(event:FaultEvent):void {
Alert.show("FAULT "+event.message);
and I see something like this:
getUser failed (mx.messaging.messages::ErrorMessage)#0
body = ""
clientId = "DirectHTTPChannel0"
correlationId = "4451F459-39AD-F687-87A6-FCBD2AD9BC11"
destination = ""
extendedData = (null)
faultCode = "Server.Error.Request"
faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:37813/django/mds30/app/getuser/?hostport=localhost:7777&https=N&id=4451F4 59-39AD-F687-87A6-FCBD2AD9BC11"]. URL: http://localhost:7777/django/mds30/app/getuser/"
faultString = "HTTP request error"
headers = (Object)#1
DSStatusCode = 0
messageId = "F6075BBF-2CAE-0FCC-BDB7-FCBD32C34E2B"
rootCause = (flash.events::IOErrorEvent)#2
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#3
bytesLoaded = 0
bytesTotal = 0
data = ""
dataFormat = "text"
eventPhase = 2
target = (flash.net::URLLoader)#3
text = "Error #2032: Stream Error. URL: http://localhost:37813/django/mds30/app/getuser/?hostport=localhost:7777&https=N&id=4451F4 59-39AD-F687-87A6-FCBD2AD9BC11"
type = "ioError"
timestamp = 0
timeToLive = 0
------------------while a normal web page displays something like this----------------------------------------------
instance at /django/mds30/app/getuser/
Deprecated String Exception: 'error demo'
Request Method:
GET
Request URL:
http://localhost:7777/django/mds30/app/getuser/
Django Version:
1.2.1
Exception Type:
instance
Exception Value:
Deprecated String Exception: 'error demo'
Exception Location:
C:\all\projects\AccMDS30Server\mds30\app\views.py in getuser, line 87
Python Executable:
c:\alltools\python\python.exe
Python Version:
2.4.0
Python Path:
['C:\\all\\projects\\AccMDS30Server\\mds30', 'c:\\alltools\\python\\lib\\site-packages\\mysql_python-1.2.2-py2.4-win32.egg', 'c:\\alltools\\python\\lib\\site-packages\\fdfgen-0.9.1-py2.4.egg', 'C:\\all\\projects\\AccMDS30Server', 'C:\\all\\projects\\AccMDS30Server\\mds30', 'c:\\alltools\\python', 'c:\\alltools\\python\\DLLs', 'c:\\alltools\\python\\lib', 'c:\\alltools\\python\\lib\\lib-tk', 'c:\\alltools\\python\\lib\\plat-win', 'c:\\alltools\\python\\lib\\site-packages', 'C:\\Windows\\system32\\python24.zip', 'C:\\alltools\\eclipse with PyDev']
Server time:
Fri, 10 Sep 2010 13:44:06 -0400
Traceback Switch to copy-and-paste view
c:\alltools\python\Lib\site-packages\django\core\handlers\base.py in get_response
# Apply view middleware
for middleware_method in self._view_middleware:
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
return response
try:
response = callback(request, *callback_args, **callback_kwargs) ...
except Exception, e:
# If the view raised an exception, run it through exception
# middleware, and if the exception middleware returns a
# response, use that. Otherwise, reraise the exception.
for middleware_method in self._exception_middleware:
response = middleware_method(request, e)
▶ Local vars
Variable Value
callback
<function getuser at 0x033C69F0>
callback_args
callback_kwargs
exc_info
('error demo', None, <traceback object at 0x033C0918>)
exceptions
<module 'django.core.exceptions' from 'c:\alltools\python\lib\site-packages\django\core\exceptions.pyc'>
middleware_method
<bound method MessageMiddleware.process_request of <django.contrib.messages.middleware.MessageMiddleware object at 0x031ED210>>
receivers
[(<function _rollback_on_exception at 0x028EFB70>, None)]
request
<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': '352717811d57a59ad433e3d1e5f4f1d6'}, META:{'ALLUSERSPROFILE': 'C:\\ProgramData', 'APPDATA': 'C:\\Users\\frsells.ADVENTISTCARE\\AppData\\Roaming', 'COMMONPROGRAMFILES': 'C:\\Program Files (x86)\\Common Files', 'COMMONPROGRAMFILES(X86)': 'C:\\Program Files (x86)\\Common Files', 'COMMONPROGRAMW6432': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 'NB-FRSELLS', 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'CVSROOT': ':pserver:[email protected]:/cvs', 'DJANGO_SETTINGS_MODULE': 'mds30.settings', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Users\\frsells.ADVENTISTCARE', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=352717811d57a59ad433e3d1e5f4f1d6', 'HTTP_HOST': 'localhost:7777', 'HTTP_KEEP_ALIVE': '115', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6', 'JAVA_HOME': 'c:\\alltools\\jdk5', 'LOCALAPPDATA': 'C:\\Users\\frsells.ADVENTISTCARE\\AppData\\Local', 'LOGONSERVER': '\\\\ACCVDC03', 'NUMBER_OF_PROCESSORS': '4', 'OS': 'Windows_NT', 'PATH': 'c:/alltools/jdk5/bin/../jre/bin/client;c:/alltools/jdk5/bin/../jre/bin;C:\\Program Files (x86)\\NetworkSimplicity\\ssh;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wb em;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\DMIX;C:\\Program Files (x86)\\NTRU Cryptosystems\\NTRU TCG Software Stack\\bin\\;C:\\Program Files\\NTRU Cryptosystems\\NTRU TCG Software Stack\\bin\\;C:\\Program Files\\Wave Systems Corp\\Gemalto\\Access Client\\v5\\;C:\\Program Files (x86)\\Common Files\\Roxio Shared\\DLLShared\\;C:\\Program Files (x86)\\Common Files\\Roxio Shared\\10.0\\DLLShared\\;c:\\alltools\\jdk5\\bin;c:\\alltools\\python;c:\\alltools\\pyth on\\scripts;c:\\alltools\\ant;c:\\alltools\\bin;C:\\Program Files\\MySQL\\MySQL Server 5.0\\bin;C:\\all\\scripts;C:\\alltools\\ant\\bin', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC', 'PATH_INFO': u'/django/mds30/app/getuser/', 'PROCESSOR_ARCHITECTURE': 'x86', 'PROCESSOR_ARCHITEW6432': 'AMD64', 'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 23 Stepping 10, GenuineIntel', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '170a', 'PROGRAMDATA': 'C:\\ProgramData', 'PROGRAMFILES': 'C:\\Program Files (x86)', 'PROGRAMFILES(X86)': 'C:\\Program Files (x86)', 'PROGRAMW6432': 'C:\\Program Files', 'PROMPT': '$P$G', 'PSMODULEPATH': 'C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\', 'PUBLIC': 'C:\\Users\\Public', 'PYDEV_COMPLETER_PYTHONPATH': 'C:\\alltools\\eclipse with PyDev\\plugins\\org.python.pydev_1.6.1.2010080312\\PySrc', 'PYDEV_CONSOLE_ENCODING': 'Cp1252', 'PYTHONIOENCODING': 'Cp1252', 'PYTHONPATH': 'C:\\alltools\\eclipse with PyDev\\plugins\\org.python.pydev_1.6.1.2010080312\\PySrc\\pydev_sitecustomize;C:\\all\\pr ojects\\AccMDS30Server;C:\\all\\projects\\AccMDS30Server\\mds30;c:\\alltools\\python;c:\\a lltools\\python\\DLLs;c:\\alltools\\python\\lib;c:\\alltools\\python\\lib\\lib-tk;c:\\allt ools\\python\\lib\\plat-win;c:\\alltools\\python\\lib\\site-packages', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'ROXIOCENTRAL': 'C:\\Program Files (x86)\\Common Files\\Roxio Shared\\10.0\\Roxio Central36\\', 'RUN_MAIN': 'true', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'NB-FRSELLS.adventistcare.net', 'SERVER_PORT': '7777', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\Windows', 'TEMP': 'C:\\Users\\FRSELL~1.ADV\\AppData\\Local\\Temp', 'TMP': 'C:\\Users\\FRSELL~1.ADV\\AppData\\Local\\Temp', 'USERDNSDOMAIN': 'ADVENTISTCARE.NET', 'USERDOMAIN': 'ADVENTISTCARE', 'USERNAME': 'frsells', 'USERPROFILE': 'C:\\Users\\frsells.ADVENTISTCARE', 'VS100COMNTOOLS': 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\Tools\\', 'WINDIR': 'C:\\Windows', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0037E0B0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x02A8ECE0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
resolver
<RegexURLResolver mds30.urls (None:None) ^/>
response
None
self
<django.core.handlers.wsgi.WSGIHandler object at 0x028C7590>
settings
<django.conf.LazySettings object at 0x024F6710>
urlconf
'mds30.urls'
urlresolvers
<module 'django.core.urlresolvers' from 'c:\alltools\python\lib\site-packages\django\core\urlresolvers.pyc'>
C:\all\projects\AccMDS30Server\mds30\app\views.py in getuser
temp += '<p>GET.META["REMOTE_ADDR"]=' + str(request.META['REMOTE_ADDR'])
#temp += '<p>GET.META["USERNAME"]=' + str(request.META['USERNAME'])
#temp += '<p>GET.META["SESSIONNAME"]=' + str(request.META['SESSIONNAME'])
temp += '<p>GET.META=' + str(request.META)
return HttpResponse("Hello, You are using the MDS 3.0 web service from %s" % temp)
def getuser(request, *args, **kwargs):
raise 'error demo' ...
sessionid = getACCSessionId(request)
user = security.getUser(sessionid)
if user==None:
values = {'Error':sessionid, 'user':str(user)}
else:
values = user.__dict__.copy()
▶ Local vars
Variable Value
args
kwargs
request
<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': '352717811d57a59ad433e3d1e5f4f1d6'}, META:{'ALLUSERSPROFILE': 'C:\\ProgramData', 'APPDATA': 'C:\\Users\\frsells.ADVENTISTCARE\\AppData\\Roaming', 'COMMONPROGRAMFILES': 'C:\\Program Files (x86)\\Common Files', 'COMMONPROGRAMFILES(X86)': 'C:\\Program Files (x86)\\Common Files', 'COMMONPROGRAMW6432': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 'NB-FRSELLS', 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'CVSROOT': ':pserver:[email protected]:/cvs', 'DJANGO_SETTINGS_MODULE': 'mds30.settings', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Users\\frsells.ADVENTISTCARE', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=352717811d57a59ad433e3d1e5f4f1d6', 'HTTP_HOST': 'localhost:7777', 'HTTP_KEEP_ALIVE': '115', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6', 'JAVA_HOME': 'c:\\alltools\\jdk5', 'LOCALAPPDATA': 'C:\\Users\\frsells.ADVENTISTCARE\\AppData\\Local', 'LOGONSERVER': '\\\\ACCVDC03', 'NUMBER_OF_PROCESSORS': '4', 'OS': 'Windows_NT', 'PATH': 'c:/alltools/jdk5/bin/../jre/bin/client;c:/alltools/jdk5/bin/../jre/bin;C:\\Program Files (x86)\\NetworkSimplicity\\ssh;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wb em;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\DMIX;C:\\Program Files (x86)\\NTRU Cryptosystems\\NTRU TCG Software Stack\\bin\\;C:\\Program Files\\NTRU Cryptosystems\\NTRU TCG Software Stack\\bin\\;C:\\Program Files\\Wave Systems Corp\\Gemalto\\Access Client\\v5\\;C:\\Program Files (x86)\\Common Files\\Roxio Shared\\DLLShared\\;C:\\Program Files (x86)\\Common Files\\Roxio Shared\\10.0\\DLLShared\\;c:\\alltools\\jdk5\\bin;c:\\alltools\\python;c:\\alltools\\pyth on\\scripts;c:\\alltools\\ant;c:\\alltools\\bin;C:\\Program Files\\MySQL\\MySQL Server 5.0\\bin;C:\\all\\scripts;C:\\alltools\\ant\\bin', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC', 'PATH_INFO': u'/django/mds30/app/getuser/', 'PROCESSOR_ARCHITECTURE': 'x86', 'PROCESSOR_ARCHITEW6432': 'AMD64', 'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 23 Stepping 10, GenuineIntel', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '170a', 'PROGRAMDATA': 'C:\\ProgramData', 'PROGRAMFILES': 'C:\\Program Files (x86)', 'PROGRAMFILES(X86)': 'C:\\Program Files (x86)', 'PROGRAMW6432': 'C:\\Program Files', 'PROMPT': '$P$G', 'PSMODULEPATH': 'C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\', 'PUBLIC': 'C:\\Users\\Public', 'PYDEV_COMPLETER_PYTHONPATH': 'C:\\alltools\\eclipse with PyDev\\plugins\\org.python.pydev_1.6.1.2010080312\\PySrc', 'PYDEV_CONSOLE_ENCODING': 'Cp1252', 'PYTHONIOENCODING': 'Cp1252', 'PYTHONPATH': 'C:\\alltools\\eclipse with PyDev\\plugins\\org.python.pydev_1.6.1.2010080312\\PySrc\\pydev_sitecustomize;C:\\all\\pr ojects\\AccMDS30Server;C:\\all\\projects\\AccMDS30Server\\mds30;c:\\alltools\\python;c:\\a lltools\\python\\DLLs;c:\\alltools\\python\\lib;c:\\alltools\\python\\lib\\lib-tk;c:\\allt ools\\python\\lib\\plat-win;c:\\alltools\\python\\lib\\site-packages', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'ROXIOCENTRAL': 'C:\\Program Files (x86)\\Common Files\\Roxio Shared\\10.0\\Roxio Central36\\', 'RUN_MAIN': 'true', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'NB-FRSELLS.adventistcare.net', 'SERVER_PORT': '7777', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\Windows', 'TEMP': 'C:\\Users\\FRSELL~1.ADV\\AppData\\Local\\Temp', 'TMP': 'C:\\Users\\FRSELL~1.ADV\\AppData\\Local\\Temp', 'USERDNSDOMAIN': 'ADVENTISTCARE.NET', 'USERDOMAIN': 'ADVENTISTCARE', 'USERNAME': 'frsells', 'USERPROFILE': 'C:\\Users\\frsells.ADVENTISTCARE', 'VS100COMNTOOLS': 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\Tools\\', 'WINDIR': 'C:\\Windows', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0037E0B0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x02A8ECE0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
Environment: Request Method: GET Request URL: http://localhost:7777/django/mds30/app/getuser/ Django Version: 1.2.1 Python Version: 2.4.0 Installed Applications: ['django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'mds30.app'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "c:\alltools\python\Lib\site-packages\django\core\handlers\base.py" in get_response 100. response = callback(request, *callback_args, **callback_kwargs) File "C:\all\projects\AccMDS30Server\mds30\app\views.py" in getuser 87. raise 'error demo' Exception Type: instance at /django/mds30/app/getuser/ Exception Value: Deprecated String Exception: 'error demo'
Request information
GET
No GET data
POST
No POST data
FILES
No FILES data
COOKIES
Variable Value
sessionid
'352717811d57a59ad433e3d1e5f4f1d6'
METAI came up with an ugly solution. I save the last url and then resend it if a fault is detected. probably not a good thing in production, but I'm still developing. here's the code
public function AssessmentActionServiceFaultHandler(event:FaultEvent):void {
Globals.log("command FAILED "+event.message);
Globals.hideBusyDialog();
//Alert.show("FAULT "+event.message);
navigateToURL(new URLRequest( LastURL), "_blank" ); -
How do I create custom HTTP Error Pages for a Weblogic Server
I need to be able to display custom HTTP error pages such as a 404 from my Weblogic
Server when my web application is not deployed.
Is this possible?
I have seen some suggestions about putting something like:
<error-page>
<error-code>404</error-code>
<location>Error404.jsp</location>
</error-page>
in the web.xml for my web application but I can't see how that would work since
the web application would not be deployed. I need to set these messages at the
server level.
Any help would be appreciated!
thanksYour CategoryAxis id="ha_ccm" uses categoryField="period", and this is the label for the your series (i.e. "Quarter 4/2010"). You cannot have multiple categoryFields for the CategoryAxis; it can only use one data field for the labels. You can use data tips and/or label functions to show the individual series' values on the columns.
Also:
Your labelField in the ColumnSeries are set to a ColumnSet name instead of a field name in your dataprovider.
Font must be embedded if you set ColumnChart.showLabelVertically="true". -
Handle exception on server side and display a customized jsp error page
Hi,
I am developing a java/j2EE web application using servlet, jsp, ejb3 with JBOSS and ECLIPSE.
Two cases can occur on the server side :
1) either I have not an expected result in a method and in this case I want to display an error page (a JSP page I suppose) with a personnalized error message
2) or I have an exception thrown and I want to display the exception message in the former JSP page
I don't know how to cope with this problem of personnalized error message (or the message of a thrown exception) with a JSP page.
Does anybody can help me ? Thank you
Edited by: xflamant on Jun 20, 2009 10:51 AMFor the case of an unknown Error, simply use a default error page.
The redirection to this page can be accomplished by inserting folowing code into your web.xml:
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/WEB-INF/jsp/error.jsp</location>
</error-page>Known exception can be caught via a try-catch block.
Then simply dispatch to the page you want displayed an add an attribute containing the error message to the response object.
This attribute can then be used in the target page to diplay the error. -
How to display uploaded image in jsp page.
Hello,
I am using struts 1.2.9 and and have uploaded image on the server. Now what I want to do display the image in jsp page after clicking on one link in jsp. I have tried many thing to display image in jsp page. But I am getting an error during displaying image in jsp. I have displayed absolute path in servlet. and used InputStream and outputstream to display image in jsp page.
Can any one help.
Thanks in advance
Manveer SinghFollow this. This topic is very popular recently on the forum.
-
How to display pdf in Web Dynpro Page
Hi Experts,
I need to display the pdf file in web dynpro page. I am using Web dynpro 7.1(CE), in that no ui element like Iframe. With Iframe we can display the pdf file in web Dynpro page in 7.0.
But My problem is how display pdf with out using Iframe.
Please any one tell how to display with any other UI elements.
Regards,
Sunil.Hi sunil..
chk this link..
<u><b>Pdf</b></u>
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59
<u><b>Adobe</b></u>
/people/achim.hauck/blog/2005/02/04/my-struggles-with-the-adobe-document-services-in-was640
<u><b>Configuration</b></u>
http://help.sap.com/saphelp_nw70/helpdata/en/43/8a1a8ece230c8ce10000000a11466f/content.htm
<u><b>Adobe Document services</b></u>
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e4e9afb-0701-0010-f8a8-b8cd093662c2
<u><b>Configuring Guided procedure of Interactive Forms</b></u>
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9ea34c2-0701-0010-e2a2-d8e9cd6d85dc
<u><b>Forum Discussions abt Adobe Document Services</b></u>
Re: Configuring the Destination URL for the Adobe Document Services
Hop will this helpful for u..
Regards,
GS -
How to customize the "Invalid URL" error page?
If you type in an invalid page name in the URL you'll get a page with an error message like this:
Error: Not a valid URL. (WWC-50014)
Object not found. (WWC-50003)
Copyright) 2001, Oracle Corporation. All Rights Reserved
We need to be able to customize this error page!!
Can't find any documentation on how to do that. Also searched these forums without any luck.
Any ideas?Hello,
Customize the template it's not complicated.
You can create a copy of 0BROADCASTING_TEMPLATE70 (e.g. ZBROADCASTING_TEMPLATE70), make some modifications (with BEx Web Application Designer) and assign this template on Broadcasting field of transaction
RSCUSTV27.
Even if you are using Broadcast 7.0, this template is 3.x. So, you have to open with Web Application Designer 3.x
If you want to remove the E-mail field, I think this is ONLY possible via ABAP tables.
Check the table RSRD_DISTTYPE (se16 transaction).
There you can suppress the MAIL distribution type.
Good luck.
Edward John -
How to disable HP Support Assistant error page in Internet Explorer
I'm trying to see the actual cause for an error in Internet Explorer. I know that you can uncheck "Show friendly HTTP messages" to remove the Microsoft "simple" error pages, but that doesn't seem to remove the HP Support Assistant error page. How can I disable this "help"?
Hi Patrick,
I've created that example a couple of times and I've never seen this error.
Have you checked the service marketplace for any notes regarding your SP-level?
Other than that you should check the created layout in your view again. Check that you don't have a action defined in the handler "onEnter" in the input fields. According to the tutorial you should only have a action for the button UI element.
Maybe try to create the view from scratch.
Regards,
Alex -
How to display values of DFF on page.
I have created an item on the page of the type flex.But it does not displays the DFF values on page.
I have checked that the values are properly inserted into the VO instance used by flex item.
What else i need to do to display the DFF segments on page? Am I missing something here?
I have set the flex properties as follow :
View Instance - <View Object name> (I checked that the values are being set correctly in this VO)
Rendered - True
application short name - <application short name>
name - <name of the DFF >
type - descriptive
Read only - false
Display context field - true
Thanks in Advance,
TanveerHi all , I found this posting by Jon
---Jon text bellow
I had the same problem a couple of weeks back in that we couldn't get context sensitive flex fields (Req Line) from displaying on the non-cat request page. The standard FlexField item does not render anything but Global segments. After raising a TAR the response was to disable the standard DFF page item and create a new FlexField item as follows.
1) Login into iProcurement ( enable the profiles related to do Personalization )
Goto the Page where you would like to display this DFF . You need to make sure that this region is based on
View Object : PoRequisitionLinesVO .
Click on the Personalization link and create a item with below values :
Item Style = Flex
ID = Procurement_Card
Appl Short Name = PO
Display Context Field = True
name = PO_REQUISITION_LINES
Prompt = Procurement Card --- you need to make sure that this matches to your Prompt in
Context Field above .
Read Only = False
Rendered = True
Type = Descriptive
View Instance = PoRequisitionLinesVO
This worked however we soon found that there was a major flaw in that the DFF's were only rendered when there were items in the shopping cart. That is that the VO was instantiated.
After much reluctance Oracle raised a bug for this: 5169570 which we have been told to monitor.
Very frustrating that this has not been implemented correctly!!!
Jon.
it was really helpfull but my DFF still dont dispalyed on non-catalog request form . how I can verify what view instance Region is using
View Instance = PoRequisitionLinesVO
sorry question might seems stupit but I am very new to OAF and iProcurement
Thanks Artur
Message was edited by:
user555312 -
How do I remove a bing error page on my localhost
I have this error page now on my mac and hate it and want to get rid of it. Can anyone help as to how?
Assuming Safari, empty the cache, quit, and relaunch.
Maybe you are looking for
-
i have an Airport Extreme wireless router, HP Folio laptop (company supplied) and a Canon PIXMA MX882 wireless printer,copier, scanner and fax. when i am VPN's in thru CISCO VPN to my company Intranet site I cannot print wirelessly. i have to turn of
-
Installation of Photos app in OS X 10.10.3
In the new Photos app, "Preparing Library" has read 20% for more than an hour. I do have a lot of photos, but shouldn't the % be increasing? If the preparation has stalled, can I back out and restart the process? How?
-
Cost Elements (Data Migration)
Dear Experts, I am new to data migration. I would like to check whether do we need to migrate controlling documents relating to cost elements (Primary and Secondary) to the new system. If yes, where can I find the information Thank you in advance.
-
Dear All, we want transport ABAP Queries from one SAP instance to another..these ABAP Queries under Global area (cross client). please suggest me how to create a transport request to transport these old queries , one more thing is all standard area
-
From my index.php file I created a Template with 2 editable regions. Opened a new file from the Template and made some changes. Closed the file and went back to Template; the contents had changed to match the Child! Went to look at my original index.