How can I Fetch the error message from a OAF page
Hi,
A confirmation message is coming on the page,I want to catch the error message and depending on its value want to add some validation.
Is that possible to fetch the error message from the page?
is it a confirmation message or an error message ?
Code in the OAF page would be raising an OAException with a message name defined in message dictionary.
you would need to look at the code to understand where this is thrown from and add your validation there.
Tapash
Similar Messages
-
How can i get the error message from the thrown/raised exception?
DB version:10gR2
Examples for this thread taken from
Want Stored Procs to get exectuted regardless of preceeding SPs Success or
I have a package with several functions and procedures inside.I created a caller procedure called callProcs, which will execute various procedures within the package in the appropriate order.
In the below example i cannot get the error message thrown from line 20
create or replace package body mypackage
is
variable_proc1 number;
variable_proc2 number;
variable_proc3 number;
v_result number;
my_exception exception;
procedure proc1
is
begin
select 8/0 into variable_proc1 from dual;
exception
when others
then raise my_exception; ----line 20
end;
procedure proc2
is
begin
select 1 into variable_proc2 from dual;
exception
when others
then
null;
end;
procedure proc3
is
begin
select 3 into variable_proc3 from dual;
exception
when others
then
null;
end;
Procedure caller_proc
is
begin
proc1;
proc2;
proc3;
v_result:=variable_proc2+variable_proc3;
dbms_output.put_line('The output is '||v_result);
exception
when my_exception
then
dbms_output.put_line('Heyyyyy the error is '||SQLERRM); -- exception caught at line 64 of caller proc
end;
end mypackage;
When i try executing the caller proc, i don't get the error. Instead i get the text User-Defined Exception as shown below
set serveroutput on
exec mypackage.caller_proc;
Heyyyyy the error is User-Defined Exception
PL/SQL procedure successfully completed.Edited by: user10633418 on Mar 10, 2009 11:30 PMThank you justin.
Sorry my earlier post was a bit ambiguous.
I wanted the error generated at proc1 to be captured at caller proc's Exception handling section (line 64) so that i could log the error to an ERR_LOG table.
I can actually log this error at proc1 itself like
exception
when others
THEN
error_message :='My custom message for the particular proc '||SQLERRM;
dbms_output.put_line(error_message);
logerror(error_message); --an autonomous error logging proc
raise;But there is a RAISE statement in proc1's exception handling, so the exception gets propogated to caller proc's exception handling section {color:#ff0000}*and another redundant row will be created at ERR_LOG table for the same error because there is a*{color}
logerror(error_message);--an autonomous error logging proc
in the WHEN OTHERS section of exception handling section of the caller proc
I want to avoid the creation of this redundant row in ERR_LOG table. -
How can i dispaly an Error Message from Server Side To form
Hi All,
How can i dispaly an Error Message from Server Side To form side .
i try several ways nothing succed.
i put the error in stack and after call the procedure from form i added
Qms$Trans_Errors.Display_Messages;
and because it is an error not informantional error the error screen displayed and enter
in infinite loop acts like flashing .
can any one help me please i use C/S Headstart6i and Designer 6i
thanks alot
radihi,
thanks alot lauri.
yr code work only using information message but in error message its still the same .
the error window still flash and enter in infinite loop of executeing the same triggers.
thanks again
radi -
How can i see the error message?
hi, i have written a procedure in the database 10g, with my own error, and it works. but, when my exception occurs, i want to see my ora-20000-message in the footer of the isql-screen in the same way like normal ora-errors do it. because, now the code handles the exeption, but i can not se any message.
thx.
(zahl1 in number, zahl2 in number)
as
maxvertrag number;
ergebnis number;
myerror exception;
pragma exception_init(myerror, -20000);
begin
select max(vertragsnr) into maxvertrag from robertl.tblugovor;
ergebnis := zahl1+zahl2+maxvertrag;
if ergebnis>104
then
RAISE_APPLICATION_ERROR (-20000, 'Result is > 104!');
end if;
exception when myerror then
ergebnis:=0;
end;This is answered in how can i se the error message?.
As a side note, you generally don't need to cross-post in these two fora, as many of us frequent both.
Cheers, APC -
How can we view the error message numbers in the web ui?
Dear all,
How can we view the error message numbers in the web ui? It gives the error but no number. It is possible to debug in web UI so how can we accomplish this?
Thanks,
FKHi Fakhan,
You can absolutely do that.
Check the class: CL_BSP_MESSAGES
Also if you want to find out the exact Message Class and Message Number, go to table T100, type text in field TEXT, you will get Message Class and Message number in fields ARBGB and MSGNR respectively.
I hope this helps.
THanks
Vishal -
How can i fetch the city name from database according the state name
If you have any example of Dyamic List box.
How can i fetch the city name from database according the state name when i select the state name in a dynamic list box.
ThanksWhen i run the this code it is giving the an exception
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.mypackage.MyBean'.. class com.mypackage.MyBean : java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.mypackage.MyBean'.. class com.mypackage.MyBean : java.lang.NullPointerException
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.test_jsp._jspService(test_jsp.java:95)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
root cause
javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.mypackage.MyBean'.. class com.mypackage.MyBean : java.lang.NullPointerException
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
com.sun.faces.taglib.html_basic.SelectOneMenuTag.doStartTag(SelectOneMenuTag.java:487)
org.apache.jsp.test_jsp._jspx_meth_h_005fselectOneMenu_005f0(test_jsp.java:259)
org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGroup_005f0(test_jsp.java:219)
org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGrid_005f0(test_jsp.java:189)
org.apache.jsp.test_jsp._jspx_meth_h_005fform_005f0(test_jsp.java:160)
org.apache.jsp.test_jsp._jspx_meth_f_005fview_005f0(test_jsp.java:127)
org.apache.jsp.test_jsp._jspService(test_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
root cause
javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.mypackage.MyBean'.. class com.mypackage.MyBean : java.lang.NullPointerException
com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:292)
com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
com.sun.faces.taglib.html_basic.SelectOneMenuTag.doStartTag(SelectOneMenuTag.java:487)
org.apache.jsp.test_jsp._jspx_meth_h_005fselectOneMenu_005f0(test_jsp.java:259)
org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGroup_005f0(test_jsp.java:219)
org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGrid_005f0(test_jsp.java:189)
org.apache.jsp.test_jsp._jspx_meth_h_005fform_005f0(test_jsp.java:160)
org.apache.jsp.test_jsp._jspx_meth_f_005fview_005f0(test_jsp.java:127)
org.apache.jsp.test_jsp._jspService(test_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
root cause
javax.faces.FacesException: Can't instantiate class: 'com.mypackage.MyBean'.. class com.mypackage.MyBean : java.lang.NullPointerException
com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:229)
com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
com.sun.faces.taglib.html_basic.SelectOneMenuTag.doStartTag(SelectOneMenuTag.java:487)
org.apache.jsp.test_jsp._jspx_meth_h_005fselectOneMenu_005f0(test_jsp.java:259)
org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGroup_005f0(test_jsp.java:219)
org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGrid_005f0(test_jsp.java:189)
org.apache.jsp.test_jsp._jspx_meth_h_005fform_005f0(test_jsp.java:160)
org.apache.jsp.test_jsp._jspx_meth_f_005fview_005f0(test_jsp.java:127)
org.apache.jsp.test_jsp._jspService(test_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
root cause
java.lang.ClassNotFoundException: class com.mypackage.MyBean : java.lang.NullPointerException
java.beans.Beans.instantiate(Unknown Source)
java.beans.Beans.instantiate(Unknown Source)
com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:223)
com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
com.sun.faces.taglib.html_basic.SelectOneMenuTag.doStartTag(SelectOneMenuTag.java:487)
org.apache.jsp.test_jsp._jspx_meth_h_005fselectOneMenu_005f0(test_jsp.java:259)
org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGroup_005f0(test_jsp.java:219)
org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGrid_005f0(test_jsp.java:189)
org.apache.jsp.test_jsp._jspx_meth_h_005fform_005f0(test_jsp.java:160)
org.apache.jsp.test_jsp._jspx_meth_f_005fview_005f0(test_jsp.java:127)
org.apache.jsp.test_jsp._jspService(test_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
root cause
java.lang.NullPointerException
javax.faces.model.SelectItem.setValue(SelectItem.java:254)
javax.faces.model.SelectItem.<init>(SelectItem.java:138)
javax.faces.model.SelectItem.<init>(SelectItem.java:96)
com.mypackage.MyBean.fillCountryItems(MyBean.java:80)
com.mypackage.MyBean.<init>(MyBean.java:28)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
java.beans.Beans.instantiate(Unknown Source)
java.beans.Beans.instantiate(Unknown Source)
com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:223)
com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
com.sun.faces.taglib.html_basic.SelectOneMenuTag.doStartTag(SelectOneMenuTag.java:487)
org.apache.jsp.test_jsp._jspx_meth_h_005fselectOneMenu_005f0(test_jsp.java:259)
org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGroup_005f0(test_jsp.java:219)
org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGrid_005f0(test_jsp.java:189)
org.apache.jsp.test_jsp._jspx_meth_h_005fform_005f0(test_jsp.java:160)
org.apache.jsp.test_jsp._jspx_meth_f_005fview_005f0(test_jsp.java:127)
org.apache.jsp.test_jsp._jspService(test_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277) -
I need help!!how can i resolve the error message?
Security.addProvider(new com.sun.crypto.provider.SunJCE());
KeyGenerator kg = KeyGenerator.getInstance("DES");
Key key = kg.generateKey();
Cipher cipher = Cipher.getInstance("DES");
byte[] data = "Hello World!".getBytes();
out.println("Original data : " + new String(data));
cipher.init(Cipher.ENCRYPT_MODE, key);
byte[] result = cipher.doFinal(data);
out.println("Encrypted data: " + new String(result));
String temp=new String(result); //error occure here!
cipher.init(Cipher.DECRYPT_MODE, key);
byte[] original = cipher.doFinal(temp.getBytes()); //if replace temp.getBytes() to result,that's ok��
out.println("Decrypted data: " + new String(original));
error message��
javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA6275)
at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA6275)
at javax.crypto.Cipher.doFinal(DashoA6275)
and how can i post the key and Encrypted data to columns whose type is varchar in a table in my database,and next time to get the values from my database and translate to key to Decrypte the Encrypted data ?
thanks!!I presume the no-padding error is happening when you attempt to do the decryption. This means, that in some way, you've modified the encrypted data, and the size of the data is not what the cipher object expects. You don't show all your code here, but most likely, you tried to put result into a string (temp?) and when you do your temp.getBytes(), the array of bytes you're getting back is not the same as the array called result in your post.
Steve -
How can SMO retrieve the SQL messages from ExecuteNonQuery(SQLFile)
I have a vb.net app that uses SMO to execute SQL files with the ExecuteNonQuery(SQLFile). The ExecuteNonQuery(SQLFile) is in a TRY CATCH and I catch SQLException, SMOException, and general Exception. When my SQL file has an error, such as a table name that
does not exists, it throws a general Exception and the message is "An exception occurred while executing a Transact-SQL statement or batch." I want the message that would be shown on the Messages pane in SSMS "Msg 2812, Level 16, State 62, Line
2. Could not find stored procedure 'ifs_RunHistoryInsertv2x'."
How can I get the Msg from SQL returned to SMO so that I can show is in a messagebox?How could I do something like this in Powershell?
I've tried something like this:
[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMO') | out-null
# Create SMO Server Object
$Server = New-Object ('Microsoft.SQLServer.Management.Smo.Server') "SD-KP-DEVSUP01\KP"
#AddHandler $Server.ConnectionContext.InfoMessage, New SqlInfoMessageEventHandler(AddressOf OnInfoMessage)
$db = $Server.Databases["master"]
try {
$db.ExecuteWithResults("SELECT name from sys.databases2").Tables[0]
catch [Exception] {
$_.Exception|fl -Force
#[SqlException]$se=$_.Exception.InnerException
and I get this Error:
SmoExceptionType : FailedOperationException
Operation : Execute with results
FailedObject : [master]
Message : Execute with results failed for Database 'master'.
HelpLink : http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=12.0.2000.8+((SQL14_RTM).140220-1752)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Exec
ute+with+results+Database&LinkId=20476
Data : {HelpLink.ProdName, HelpLink.BaseHelpUrl, HelpLink.LinkId, HelpLink.ProdVer...}
InnerException : Microsoft.SqlServer.Management.Common.ExecutionFailureException: An exception occurred while executing a Transact-SQL statement or batch. ---> System.Data.SqlClient.SqlException: Invalid object name
'sys.databases2'.
at Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction action, Object execObject, DataSet fillDataSet, Boolean catchException)
at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteWithResults(String sqlCommand)
--- End of inner exception stack trace ---
at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteWithResults(String sqlCommand)
at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteWithResults(StringCollection sqlCommands)
at Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteWithResults(StringCollection query)
at Microsoft.SqlServer.Management.Smo.Database.ExecuteWithResults(StringCollection sqlCommands)
TargetSite : System.Data.DataSet ExecuteWithResults(System.Collections.Specialized.StringCollection)
StackTrace : at Microsoft.SqlServer.Management.Smo.Database.ExecuteWithResults(StringCollection sqlCommands)
at CallSite.Target(Closure , CallSite , Object , String )
Source : Microsoft.SqlServer.Smo
HResult : -2146233088
I've looked at all the items in $_ and $Error[0] but can't find any reference to what actual script line failed.
I really want to do output something like this to get more details where the error happened in a big script file.
Console.WriteLine("Msg {0}, Level {1}, State {2}, Line {3}", e.Number, e.Class, e.State, e.LineNumber) -
How can we restart the Error Messages
Hi,
I have a Secnario like JDBC- To - RFC(R/3) .. here my Receiver(R/3 system was down in particular time.. so, the messages was not processed successfully..
but after the R/3 server was up .. the remaing messages are processed normally.. except the those messages are failured in that particular time server was down..
if I saw in SXMB_MONI.. the message was showing (system error-- System Error - Restart is not possible... ) so, how can we solve this issue..
How can we restrt the messages from SXMB_MONI..
Regards
jainHi Jain,
You cant restart the synchronous messages nor u can restart it............Hence the messages regarding synchronous issues cant be solvable.....The only way you have is to Resend the same data by again posting it in the Outbound Folder (Outbound side or sender side).........So once the sychrouns message failed means then it is unslovable ......So just follow the above mentioned way of resending the data by posting in the Out folder......................
Reward with points if helpful
Regards
Sai -
Web services. How can I get the error message?
Hello.
I am trying to run a report using XmlViewService. If any report has an error then executeXMLQuery returns empty result set (<rowset xmlns="urn:schemas-microsoft-com:xml-analysis:rowset"></rowset>), not the error message. How can i know if a report fails with error or it exactly return empty result set.HI,
Open the C:\OracleBI\web\msgdb\messages\resultviewtemplates.xml file modify the
kuiNoResultsViewEditor webmessage as per your requirement...
mark if helpful/correct...
thanks,
prassu -
How can I customize the error message UIX STRUTS ADF
Hi dear forum:
I need to customize the error message?
Error
Id - JBO-27014: Attribute Id in AppModule.BackupsView1 is required
Fecha - JBO-27014: Attribute Fecha in AppModule.BackupsView1 is required
AplId - JBO-27014: Attribute AplId in AppModule.BackupsView1 is requiredRepost:
I need to customize the error message when I insert a new row with wrong values in ADF STRUTS UIX, where can I changue the default values for the message? -
How can i pass the same parameter from 1 jsp page to many jsp page?
hello.....
how can i actually pass a parameter from 1 jsp file to many other jsp files? pls help......
thanxHi
Save the information which u want to pass to various JSP's inside Session Object.
There is an Object called HttpSession and u can store information inside which other jsp pages within the same domain and same browser instance can use it.
commands which are for ur interests are
<Session Object>.setAttribute("<object name>", <value>);
Example
HttpSession objsession =request.getSession(true); String strName="NEED_HELP":
objSession.setAttribute("Name", strName);
And then u can retreive that information in your n pages.
Read any JSP/Servlet Books and u will know about them
Bye. -
How can i save the error message?
In the execution of the integration process, and i get
the mapping error as follow:
RuntimeException in Message-Mapping transformation: Exception:[java.lang.IllegalArgumentException: Cannot cast to float. ] in class com.sap.aii.mappingtool.flib3.Stat method sum[com.sap.aii.mappingtool.flib3.Plainer@dddd08]
<b>Now what i want is to save this message.</b>
<b>How can i save this message?</b>
Thank you for your advise and readingHi,
An exception name is just any string, like, "timeout"
You usually have a control step, which waits for somethime (say a minute) and then transfers the control to exception handler, who handles the exception.
<i>but i dont know from where i get the exception?</i>
It not required for us to know from where the exception is raised as long as you have created an exception handler.
The integration process, will search for the required exception handler and execute it. Make sure, that the exception handler is in one of the branches of the block.
Hope this helps.
Regards,
Smitha. -
I am unable to clear 1 message in my email inbox showing on the icon. I have tried clearning out all messages in my inbox and it still shows 1 message remaining unread. I erased messages 5 days ago and since then it has been showing 1 message remaining. How can I clear this from the icon? Thanks
Ouit Mail app. (Remove from MultiTasking bar).
Double tap the home button to bring up the multitasking dock. Tap and hold an app. A red badge with a minus symbol will appear on the icons. Tap the minus symbol of Mail app to quit. -
How can i se the error message?
hi, i have written a procedure in the database 10g, with my own error, and it works. but, when my exception occurs, i want to see my ora-20000-message in the footer of the isql-screen in the same way like normal ora-errors do it. because, now the code handles the exeption, but i can not se any message.
thx.
(zahl1 in number, zahl2 in number)
as
maxvertrag number;
ergebnis number;
myerror exception;
pragma exception_init(myerror, -20000);
begin
select max(vertragsnr) into maxvertrag from robertl.tblugovor;
ergebnis := zahl1+zahl2+maxvertrag;
if ergebnis>104
then
RAISE_APPLICATION_ERROR (-20000, 'Result is > 104!');
end if;
exception when myerror then
ergebnis:=0;
end;Hello
The problem is that you are catching the exception with:
exception when myerror then
ergebnis:=0; But then that's it, you aren't doing anything more with the error. As far as oracle is concerned, you've explicitly handled the exception, so it doesn't need to worry anymore. If you want the error propagated up to the calling applicaiton, you need to either re-throw the exception by doing :
exception when myerror then
ergebnis:=0;
RAISE; --this will re-throw the exceptionOr, you need to ignore the exception at this level and let the next level up handle it. It all depends on your exception handling strategy really:
DECLARE
my_Exception EXCEPTION;
PRAGMA EXCEPTION_INIT(my_exception, -20001);
BEGIN
BEGIN
RAISE_APPLICATION_ERROR(-20001,'The sky is falling down');
EXCEPTION
WHEN my_exception THEN
NULL;
dbms_output.put_line('My exception was trapped and nothing else was done');
END;
dbms_output.put_line('Just before the 2nd call to raise application error');
RAISE_APPLICATION_ERROR(-20001,'The sky is still falling down, do something');
dbms_output.put_line('This line wont be output because the exception has been raised');
EXCEPTION
WHEN my_exception THEN
dbms_output.put_line('This line will be output just before the exception is displayed');
RAISE;
END;
Maybe you are looking for
-
No more Facebook contacts after update
Hi, As I was experiencing Facebook connection issues the last week, I updated Skype to the 7.5.64.101 version. After I'm asked to sign in on Facebook on Skype Start I get this message: Facebook friends on Skype To chat with friends on Facebook, simpl
-
Can i use usa itunes store in the other countries if i have an account without credit card number
I'm inside the States and using US iTunes store on my iphone 4s (contract free). However I have an account without credit card number. I wonder if I am able to use US iTunes store connected with this account outside the States (say in Russia or Armen
-
Audio cuts out at times for a few seconds with VOD
While watching VOD the audio will cut out at times when the program is playing. I have reset the boxes, and router with no change. I have read on a post that someone had pixilation issues and the Verizon techs hooked up a cat5e from the ONT directl
-
DVD Studio burning problem error message: "remove the VIDEO_TS folder from the Build Location"; where is build location?
-
Indesign CS5.5 hang on loss of focus when opening files
I know there's going to be no quick fix but I'm going to throw this out. InDesign CS5.5 / 7.5.2 running on WindowsXP SP3 seems to hang when the program looses focus when a file is opened. The program will ocassionally lose focus if you click on the "