Replacing JBO error messages with Struts error messages
I would like to display Struts error messages on an HTML form instead of the JBO error messages when a user submits a form with data entry error. Has anybody done that? Do I need to extend the DataForwardAction class and write JAVA code to do it or is there a more elegant way?
Could someone please answer this? As I understand, Steve Meunch says: "our prescriptive architecture's best practice is to implement all validation in your entities" but this is talking more about rules, I think, than about error messages that are customized to specific pages and fields.
Thanks,
Jeff
Similar Messages
-
Hi
I want to hide an error message with the code JBO-33035
How can I do this? Hiding the message box does not work because this time the other error messages will not be shown either. Is there a way to only hide the messages we want.
I would be grateful if anyone helpedIn the online Help, go to the Developing Business Components book, click on Reference, and then click on BC4J Error Messages (it may be titled JBO Error Messages depending on which release you have).
-Mario -
JBO Error messages translation
Hi,
how can internationalize the JBO error messages?
thanksIn the online Help, go to the Developing Business Components book, click on Reference, and then click on BC4J Error Messages (it may be titled JBO Error Messages depending on which release you have).
-Mario -
Does anyone know where to find some references to "decode" those JBO Error Numbers?
Thanks.In the online Help, go to the Developing Business Components book, click on Reference, and then click on BC4J Error Messages (it may be titled JBO Error Messages depending on which release you have).
-Mario -
Error when I replaced the DOM parcer with JAXP
I replaced the DOM parcer with JAXP ....
We moved from DOM parcer �import org.apache.xerces.parsers.DOMParser;� to JAXP.
Here is my code:
// Step 1: create a DocumentBuilderFactory and setNamespaceAware
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
// Step 2: create a DocumentBuilder
DocumentBuilder db = dbf.newDocumentBuilder();
// Step 3: parse the input file to get a Document object
Document doc = db.parse(location);
root = doc.getDocumentElement();
root.normalize();
AND when we run stress test after a while we start getting error
java.lang.NullPointerException
at org.apache.xerces.dom.DeepNodeListImpl.nextMatchingElementAfter(Unknown Source)
at org.apache.xerces.dom.DeepNodeListImpl.item(Unknown Source)
at org.apache.xerces.dom.DeepNodeListImpl.getLength(Unknown Source)
at com.xxx.yyy.WfStartTasksXmlDAO.getActionPerformed(Unknown Source)
at com.xxx.yyy.WfStartTasksXmlDAO.getAction(Unknown Source)
- Any idea why we are getting this error. Is this server (Linux) problem? or JAXP?
Message was edited by:
TamerBashaThis is happening because JAXP is not thread safe. need to synchronize bracket or use thread safe parser.
-
UiXML with Struts: Illegal Access Error
I created a project in JDeveloper for the example found in the JDeveloper help documentation, "Using uiXML with Struts". It says I need uix-config.xml in my WEB-INF directory. I created one and copied the xml from the example to it. When I run login.uix from JDeveloper I get:
500 Internal Server Error
java.lang.IllegalAccessError: oracle/cabo/servlet/struts/ui/MessageDataProvider
java.lang.Object oracle.cabo.servlet.struts.ui.DataProviderParserFactory$Parser.getNodeValue(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String, org.xml.sax.Attributes)
void oracle.cabo.share.xml.LeafNodeParser.startElement(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String, org.xml.sax.Attributes)
void oracle.cabo.share.xml.TreeBuilder$Handler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
void oracle.cabo.share.xml.ParserAdapter.startElement(java.lang.String, org.xml.sax.AttributeList)
void oracle.xml.parser.v2.XMLContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
XMLContentHandler.java:166
I notice if I remove that file, I don't get this error, but the struts components do nothing, which seems logical if we do indeed need this configuration information.
I also notice the following error in JDeveloper when I compile login.uix:
Warning(11,44): logon.uix: Parsing error, line 11, column 44: <form> is not an understood element.
This sometimes means the element's namespace (http://xmlns.oracle.com/uix/struts) is set incorrectly. This may also be an issue with the syntax of its parent element.
I'm not sure what that is.
Thanks for your help,
-JamesThat solved the problem! I am relatatively new to
all this as are many of us "seasoned developers"...and learning
fast...well...sort of.
Another observation: I placed the following entry,
oracle.cabo.servlet.struts.StrutsUIExtension, in my web.xml file
(borrowed from a plain ol' jsp struts test I've been working
with). Here's the whole section for the uix servlet:
<servlet>
<servlet-name>uix</servlet-name>
<servlet-class>oracle.cabo.servlet.UIXServlet</servlet-class>
<init-param>
<param-name>oracle.cabo.servlet.pageBroker</param-name>
<param-value>oracle.cabo.servlet.xml.UIXPageBroker</param-value>
</init-param>
<init-param>
<param-name>oracle.cabo.ui.UIExtensions</param-name>
<param-value>oracle.cabo.servlet.struts.StrutsUIExtension,oracle.cabo.data.jbo.ui.JboUIExtension</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
That solved the parsing errors I was receiving from JDeveloper
saying that certain elements were not understood. But
then...when I run logon.uix, the browser displayed this lovely
error:
java.lang.IllegalStateException: ParserFactory already registered at http://xmlns.oracle.com/uix/struts
AAAAAAARGHH! Sooooooo...I removed the uix-config.xml from
the WEB-INF directory, and hooray! I got my form. Whew!
I can also get it to run by leaving my uix-config.xml alone and
removing that entry in web.xml. Weird? Anyway, I'm leaving out
the entry in uix-config.xml or just not including it for now.
I'm sure I'll run in to some other problem with that later :)
The little application doesn't work quite right yet. When I
click the "Log On" button I get a "Page not found". Must be a
typo or something.
Anyway, thanks for your help Adam. I'm sure I'll have more
questions later. I'll try to make them good ones.
-James -
I had a problem with the hard disk on a 13" 2010 macbook pro. Replaced the hard disk with an Hitachi 1TB disk but when I tried to erase and format, it fails with input/output error and at other times saying unable to allocate memory. Any help much appreciated!
Zap the PRAM and Reset the SMC, then try again.
-
Messages has replaced all my text with a load of letter A's in boxes. What is that all about. When I type a new one it is fine until I hit enter then the same thing applies. Has anyone a fix for this?
Picture below, many thanks for your help.
JasonBack up all data before proceeding.
Launch the Font Book application and validate all fonts. You must select the fonts in order to validate them. See the built-in help and this support article for instructions. If Font Book finds any issues, resolve them.
Start up in safe mode to rebuild the font caches. Restart as usual and test.
Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t start in safe mode. In that case, ask for instructions.
If you still have problems, then from the Font Book menu bar, select
File ▹ Restore Standard Fonts...
You'll be prompted to confirm, and then to enter your administrator login password.
Also note that if you deactivate or remove any built-in fonts, for instance by using a third-party font manager, the system may become unstable. -
Error 500, deployment with struts
An application developed in JDeveloper 9.02 with struts 1.1b works fine when running using the local OC4J instance running from JDeveloper. I created a deployment profile with a .war and .ear, deployed to the OC4J standalone instance using the EM website, and all seemed well. Now it sporadically gives the "Internal Server Error" when navigating between pages. I can't find anything in the logs, and ideas?
It's OC4J core install for 9iAS Release 9.02. I've deployed to Solaris since there is a bug that can give this error that is patched for Solaris, but not Windows. The error occurs when navigating pages in a struts app. Sometimes it works fine, then you click on one of the image buttons to go to the next .jsp and this error comes up.
Ruth
What version of OC4J you are testing on ?
Is it OC4J standalone or Oracle9iAS that you are using.
more details would be helpful in diagnosing the problem.
-Prasad -
Displaying mid-tier jbo errors when when overriding report errors method
Hi,
I have a problem with displaying mid-tier jbo errors on my jsps when I overwrite the reportErrors method.
I am using the a base action exactly the same as in the "toy store" application i.e.
protected void reportErrors(DataActionContext ctx)
LOG.info("REPORT ERRORS");
DCBindingContainer bc = ctx.getBindingContainer();
ActionErrors errors = new ActionErrors();
if ( bc == null || errors == null )
return;
ArrayList runtimeErrors = bc.getExceptionsList();
if ( runtimeErrors != null )
boolean hasJboErrors = false;
for ( int i=0; i< runtimeErrors.size(); i++ )
Throwable ex = (Throwable)runtimeErrors.get(i);
if ( ex instanceof JboException)
// These errors occur when the row is locked and being edited by another user
// This could happen when in CIS.
JboException jex = (JboException)ex;
if ("25014".equals(jex.getErrorCode()) || "26030".equals(jex.getErrorCode()) )
hasJboErrors = true;
errors.add("test", new ActionError("error.locked") );
ctx.setActionErrors( errors );
saveErrors( ctx );
if (!hasJboErrors)
super.reportErrors(ctx);
This allows me to use methods to addUserErrors etc which display correctly.
However if there is a message coming from the mid-tier (such as a mandatory column value has not been entered) or there is a general error, all i get is the error header message (i.e validation error) and a bullet point. No message is displayed.
This only happens when I use my extended method. If I return the class to extend DataForwardAction then it displays them fine.
Any ideas how to fix this?Hi,
Does anyone know why this would not be working. It's really irritating! -
How to get JBO error codes in infobus
Hi,
I am creating an Infobus based form. I am able to trap the
errormessages generated by the system using the error manager.
But I could get only the DAC error codes. I want to get the JBO
error codes also, since they give more meaningful messages. How
do I do this using errormanager?
Please Help
Thanks,
Susan
nullPlease see the reply to the thread "About JBO messages and
DacfErrorMessageContext"
- PSW
Susan Philip (guest) wrote:
: Hi,
: I am creating an Infobus based form. I am able to trap the
: errormessages generated by the system using the error manager.
: But I could get only the DAC error codes. I want to get the JBO
: error codes also, since they give more meaningful messages. How
: do I do this using errormanager?
: Please Help
: Thanks,
: Susan
null -
Body of new message replaced by old message
New messages in my mail client are having their bodies replaced by old messages (same handful of messages over and over) from July.
User Mulder suggested running mdimport ~/Library/Mail to someone with a similar problem who was running 10.5. I'm running 10.3 and I don't have mdimport installed. What can I do?I have similar problem for few mail messages the contents, the body of the messages are not displayed at all, some mail messages I can not find using search in the mail.app, but I can find them using spotlight, the same messages are fully displayed when opened in finder. I have tried to rebuild spotlight indexes - with no results. I also tried to remove envelope index form usr/library/mai, started mail.app it began to import mail messages but after few minutes it crashed. Any ideas?
-
While using Oracle Infobus Extensions, and when I try to insert a new record in a table, I get the following error:
JBO Error 01206: ViewDefImpl is read only
Do you know what this error mean, why am I getting it and how can I solve it?
Thank you very much
Regards,
Alberto RodriguezThis error means that you tried to:
yourAppMod.createViewObject('quotepackage.QuoteDetailView')
and the file:
./quotepackage/QuoteDetailView.xml
was not in the runtime CLASSPATH.
You might have meant to do instead:
yourAppMod.findViewObject('QuoteDetailView')
to find an existing view object by name (Note you find a VO in an AM by instance name, not package-qualified full name).
null -
I want to replace the Error 404 and Error 500 pages in weblogic 6.0sp2
I have put the following lines (below) into my war's web.xml file and into a
web.xml file in the DefaultWebApp_myserver/WEB-INF folder but neither seems
to be coming up.
For example when I enter in a browser:
http://servername:7001/
I get the default index.html page fine. Then if I type:
http://servername:7001/nonsense.html
I don't get the 404 error page? Can anyone please help. Is there something
in the documentation (of which I have found very little) that I have missed?
Thanks in advance,
Andoni,
<error-page>
<error-code>500</error-code>
<location>/html/error500.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/html/error404.html</location>
</error-page>
<error-page>
<exception-type>java.io.IOException</exception-type>
<location>/html/IOException.html</location>
</error-page>
[att1.html]
-
How can I replace standart error page?
(when the name of procedure or parameter is wrong)In this directory I found pages for 404 errors ets
But what the file name is for others errors
(If user enter a bad procedure name or parameter name in url)?
null
Maybe you are looking for
-
CSS 11503 - SSl - Unable to clear/delete rsakey
Hi, We have recently configured an ssl redirect service on the CSS11503. This works great. The css was then cleared of all configuration including all ssl cert/key associations inorder to test recovery. The problem we are experiencing is that there i
-
How to use a vector to navigate my database? please help me.. ty
how to use a vector to navigate my database? please help me.. ty
-
Traffic pie chart in WAAS CM GUI
Hi guys, I have a functioning, in-service WAAS system. Traffic is being optimized and accelerated. Unfortunately, the traffic summary in the CM GUI looks like this all the time: It looks the same for the device-level views as well. As far as I can te
-
Security Authorizations in SolMan / ChaRM
Good Day All; I am trying to get a handle on the security settings within Solution Manager / ChaRM. Would some be so kind as to point me in the direction of some documentation on this subject. Regards Don.
-
Hash mismatch when i download OS X mountain Lion.
hello I already has 10.7.4, I purchased the new OS X 10.8 to my iMac! but the downloud stop into 53.25 MB, then show a box with this ( The application could not be downloded. Hash mismatch)!! what can i do!