Overwriting framework error messages of simple types
Hi
Is it possible to overwrite the framework error messages of simple types? For example: Instead of "Enter the value in the format -2,733.34" we prefer something like "Enter the percent value in the format 0.00 to 100." or "Enter a correct percent value.".
Use case: We use for the most input fields for any numbers (telefon, amount, age, ...) the simple type "decimal", this offers following advantages:
- optional use (and framework validation) of fraction digits
- the input field has no default value (integer/long/short writes as default "0" to the input field, that is in most cases - for example post/zip code - not useful)
Otherwise decimal simple types has the disadvantage, that if the user write any letters in the (decimal) input field, the error message is as described above and so not very helpful too.
Thanks in advance
Stefan
Hi Stefan
Unfortunately seems no way to customize the error messages.
1. If the standard numeric simple type does not suit your needs, theoretically you can try to override the Java class of the standard type and add your custom messages/logic. For example, for Integer this is DdTypeInteger & DdTypeInt. Methods you need to override is format(...) and parse(...). After this in controller's code you should create a new attribute and provide your own custom type as input parameter.
I never tried this way
2. You can make the attribute as Calculated. Then in getter/setter you should put your custom formatting/parsing logic.
BR, Siarhei
Similar Messages
-
Error message "unsupported file type"
I know I saw this topic before, but never saw an answer. I am using mpeg streamclip...can convert all .vob files to .dv but cannot do the 1st .vob file and it is part of the home movie! I get the error message "unsupported file type". I don't have a problem with any of the other 4 .vob files.
Another thing to try is renaming it with a .htm or .html extension.
If that doesn't work either, do you have any other files from your old system? In particular, if you have your old places.sqlite file, you could use that to overwrite your new places.sqlite (bookmarks+history) file. -
Changing the APEX framework Error Message
I was wondering if anyone could help me out here. I am faced with a security issue where I need to hide any and all APEX framework error messages. Specifically, I need to hide the error messages on the screen you get when trying to access an application that doesnt exists (the whitescreen with the red "x"). This had been implemented already in the past, however, the 4.2 upgrade knocked it out. To change this in 4.1.1 is just a matter modifying the APEX_040100.WWV_FLOW_ERROR package.
Does anyone have any suggestions here? Any and all would be appreciated!
Thanks in advance,
ShawnWhat is the specific security issue you are facing?
This sounds like a generic penetration test, perhaps something along the lines of "Error messages reveal the underlying technology" or "Error messages can contain information helpful to an attacker". This is because of the ORA- messages. I would push back on this and see if you can argue the point that;
a) The technology can not be hidden, we (for example) have written detection routines for nessus to detect APEX without relying on any error output.
b) Ask for a *specific* example where the framework error message has lessened the security posture of the application/framework.
c) If you cannot then you really do need help to ensure that any changes/patches to the framework do not decrease application stability. What is the risk to the business? Can the business accept this low risk?
d) Just because somebody saw an 'ORA-01403: no data found' message once doesn't instantly mean you are insecure.
Though saying that, it would be a good feature to suggest, certainly a 'turn all errors off' might easily combat these types of over-zealous security reports: https://apex.oracle.com/pls/apex/f?p=55447
regards, -
How do I change the language of ADF framework error messages?
I'm a beginner in ADF and JDeveloper and I tried to run one of the tutorials for ADF (Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces).
While clicking through the application I got errors like this one:
ADF_FACES-60097:Pentru mai multe informaţii, consultaţi jurnalul de erori al serverului, pt. o intrare care începe cu: ADF_FACES-60096:Excepţie server în cursul PPR, nr. 1
My question is how do I set the JDeveloper/WebLogic to show these messages in English (in order to have better chances while searching this forum :) )?
I'm not talking about messages that I define in my application, but about framework error messages.
I already set USER_LANGUAGE=en in <JDEV_HOME>\.product.properties, but no luck.
Note that WebLogic server messages are in English (e.g. <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application HR_EJB_JPA_App is not versioned.>), only ADF messages are presented in Romanian.
Thanks,
BogdanI suspect that these messages are considered "system" ones (e.g. not for the user), so they are not generated in the user's locale but in the JVM's default locale. On Windows machines default JVM locale is taken from Windows Regional Settings. If you do not want to change your Regional Settings, you can try Java system properties "user.language" and "user.country". Try to add the following line to WebLogic domain's <tt>setDomainEnv.cmd</tt> script:
set JAVA_OPTIONS=%JAVA_OPTIONS% -Duser.language=en -Duser.country=USA restrart of the server is required.
In Bulgaria we do not have such problems because ADF Faces messages do not have Bulgarian translation, so they are generated in English regardless of the fact that our Regional Settings are set to Bulgarian.
Dimitar
Edited by: Dimitar Dimitrov on May 3, 2011 7:40 PM -
I get an error message for publication type
I am using itunes producer to load a book. An error message for "publication type" appears when I get to deliver content area. I am unable to fill in that category box when I go back to that particular screen. The drop down box there shows a check mark that will disappears immediately when clicked on. I know that "digital only" or "new release" needs to be put into that box, but am unable to get any other choices for the box and can not download the book due to error message. I did enter a price in the pricing box.
Thanks for any assistance,
DonI'm having the same problem. Have you found the answer?
-
DLT error message Wrong volume type
Hi Everyone,
I have DVD studio Pro 3 with an ATTO UL3D. It seems that
I can copy to my Quantum 8000 (at least no error pops up) but I can't read it back. I get the error:
And would the copy to the tape be good even though I can't
read it - hopefully two seperate problems.
Common reasons that this could happen:
- DLT tape does not contain DDP or CMF format.
- Issues with the DLT drive.
- Unable to write to the target volume.
Error message:
Wrong volume type
Thanks for any help.
Powerbook G4 Mac OS X (10.3.9)Hi, I just wanted to give people an update on my question.
I bought workgroup restrospect backup 6.1 on ebay. (very good price $17.00) I was able to see what the problem was - it was the tape. It had been formatted for a PC (I was told it was a brand new tape). When I used a real brand new DLT tape it worked beautifully. Retrospect is a great piece of software.
It is very helpful to examine a tape if your having problems to narrow down the possibilities.
Powerbook G4 Mac OS X (10.4) -
BPC 7.5NW SP08: "unknown MDX error" message for simple dimension formula
Hi everyone!!
We are facing many different issues concerning dimension formulas and
script logic. Maybe it's something related to SP08. For instance,
consider the following:
- there is a dimension named P_Account, with members Price, SalesCost,
and others
- there is a dimension named P_Product, which consists of a hierarchy,
for instance: Prod1 with two children, Prod1A and Prod1B
We want to set the following dimension formula in P_Product for Prod1 member:
IIF([P_Account].CURRENTMEMBER.PROPERTIES("ID") = "Price", Null, 1)
that is, we wanted to try to be able to avoid summing Price, returning
Null for (Price, Prod1). Later we would try to replace "1" with the
appropriate formula to sum children of Prod1 for all other members of
P_Account. The result is an odd error: "MDX statement error: unknown MDX
error" (or something similar, since I get the error message in portuguese).
We have spent almost two days studying alternatives in SDN Forum, blogs,
google, etc, trying to find a reason for the error but couldn't find it.
Could anyone help on this one?
Thanks!
LuigiHi everyone!
After contacting SAP, we were asked to try to reproduce the error in APSHELL. I did the following:
1) created another application set, copying APSHELL, named it TESTAPPSET;
2) added two members to dimension P_ACCT (ID, ACCTYPE, SCALING, RATETYPE):
(PRICE, INC, Y, END)
(SALESCOST, INC, Y, END)
3) saved to server and processed P_ACCT dimension successfuly
4) added a UD dimension copied from P_Activity, named P_Product
5) deleted all members of P_Product, processed the dimension sucessfuly
6) added FORMULA property to P_Product, with size 200
7) added three members to P_Product (ID, PARENTH1)
(Prod1, "")
(Prod1A, Prod1)
(Prod1B, Prod1)
8) saved to server and processed the dimension successfuly
9) edited P_Product members and added the following as FORMULA for Prod1:
IIF([P_ACCT].CURRENTMEMBER.PROPERTIES("ID") = "PRICE", Null, 1)
Result was sucess!!
10) edit P_Product again and removed the formula, saved to server and processed dimension successfuly;
11) created an Application named SALES, type Financial Report, copied from PLANNING with dimensions
12) edit dimensions, removed P_Activity and added P_Product to the list
13) went back to step (9) and tried to add the formula again, saved to server and processed P_Product dimension. Result was success again!!
So I imagined the issue might be caused by the user I was log in with. I went back to our application set, logged in as BPC_SYSADMIN and tried to set the formula again and it didn't work. User was not the problem.
Since I had tried all the above creating everything with all UPPERCASE, I decided to try the following Formula
IIF([P_ACCOUNT].CURRENTMEMBER.PROPERTIES("ID") = "Price", Null, 1)
that is, P_ACCOUNT instead of P_Account. Result: success in processing dimension!!! And the formula worked as expected when I opened an Input Schedule to test it.
When I check my dimension list in BPC Admin it says P_Account (mixed case), instead of P_ACCOUNT (all uppercase) since it was the way we created it.
So, I spent 1hour to do the whole test, but it worked. I sent two questions/requests for correction or improvement to SAP:
I) which case should be used in formulas? given I see P_Account in Dimension list, how should I know that I should write formulas with P_ACCOUNT, all uppercase?
II) could BPC provide more descriptive error messages when processing dimensions and validating script logic? a simple error message such as "unidentified command or reference at P_Account" or anything similar would have saved us 4,5 days of work! it's a lot!
Thank you guys for your support!! -
I cannot get a dvd to play on my computer. The error message says in iDVD is "media type not supported".
The DVD was produced with a video camera and is in HD format. I think the the format is .m2ts?
Any ideas on how to get this to play?Check out > Mac App Store - Free MTS M2TS Converter
and/or others at > playing .m2ts format in OS X - Google Search -
BPC 5.0.502 BPC Web Error Message: Exxception of Type System out of memory
In the process of updating a web page in the content library, page crashed received an error message of "Exception of type System out of memory. Exception was throw". What does this mean? We are now unable to open this sheet without receiving the prior message. Any remadies would be appreciated.
Hello,
Did you receive this specific error message only managing that web page or for all pages?
Did you try to stop all COM+ components on the application servers(on each if you are using more). It looks to be related to some memory problems.
If the problem is related to a specific web page, the problem can be related to the content of that web page.
Best regards,
Mihaela -
Error message: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidd
Hi All,
My scenario is Proxy to File
So in-order to test the scenario i am sending the Data from RWB using TestMessage
i have given the sender and receiver details.
and the payload i am passing is
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_QAStatusReport xmlns:ns0="http://XXXX.com/xi/SARERP/IF0100_QAStatusReport/100">
<RECORD_STRCUTURE>
<RECORD>
<INSP_LOT>New for EU</INSP_LOT>
<MATNR>00000500418</MATNR>
<SHORT_TEXT> caps SE</SHORT_TEXT>
<PLANT>0082</PLANT>
<BATCH>59756</BATCH>
<VENDOR_BATCH>59756</VENDOR_BATCH>
<INQUAL_INSP>1940</INQUAL_INSP>
<SSQUAL_INSP>0</SSQUAL_INSP>
<VENDOR/>
<DATELOT_CREA>7/20/2011</DATELOT_CREA>
<DAYS_QA>26</DAYS_QA>
<COMMENTS>Pending Import Testing</COMMENTS>
</RECORD>
</RECORD_STRCUTURE>
</ns0:MT_QAStatusReport>
the error i am facing is
Error while sending message: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidden
can any one suggest me how to solve the isssue
Thanks&Regards
SaiI had received similar error , request you to also check following,
1. while sending the message from IE placed in RWB, just check the URL in the Test Message tab, its possible that this PI is installed just now and its settings are not done correctly. In this ask the owner or the BASIS to change it to correct URL.
for example it should look something like - http://sdndevdpi001:50100/sap/xi/engine?type=entry -
Web Serice -error message-Unaccepted content type ????
Hi all,
I created a webservice for Function module and when i am passing values in the Web Service i am getting error message ...
An error has occurred. Maybe the request is not accepted by the server:
<b>Unaccepted content type</b> (text/html;charset=utf-8) !
<b>Request:</b>POST /sap/bc/srt/rfc/sap/ZBAMS_WS_EMPLOYEE_UPDATE?sap-client=200 HTTP/1.1
Host: tybl102028.tyb.kpmgbsc.net:8002
Content-Type: text/xml; charset="UTF-8"
Connection: close
Content-Length: 657
SOAPAction: ""
<?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Header><sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap
/features/session/"><enableSession>true</
enableSession></sapsess:Session></SOAP-ENV:Header><SOAP-ENV:Body><ns1:ZbamsEmployeeUpdate xmlns:ns1='urn:sap-com:document:sap:soap:functions:mc-style'><BigDate>2006-04-01</BigDate><EmpId>00000012</EmpId><EndDate>2006-04-24</EndDate><WbsElement></WbsElement></ns1:ZbamsEmployeeUpdate></SOAP-ENV:Body></SOAP-ENV:Envelope>
<b>Response:</b>
HTTP/1.1 500 Internal Server Error
content-type: text/html;charset=utf-8
content-length: 3130
can any one help me whats wrong?
Thanks for ur time.
Murali.Hi I am testing this using j2ee.
let me explain more information..
I created BAPI and for that bapi I crated Web Service and, and when I test from BAPI it works fine.. so now I am testing this from web service, after passing values in web service I am checking in debug mode, I have a call transaction statement in my BAPI code... once cursor comes into the call transaction statement it skips executing further statement and coming out from the debugging mode(it happens only when I go to debug from passing values in web service, and I tested call transaction giving values A and N modes), if passing values directly in BAPI then it works fine no issues.
please let me know if any ideas.
Thanks for u r time
Murali. -
Why does iTunes not give an error message for wrong type of movie file
I just spent an hour trying to get iTunes to import a movie type which it doesn't understand. Why on earth does it just fail silently instead of giving an error message about incompatible file type ? It was my own stupid fault, but I am so used to getting quirky errors in iTunes that I overlooked the obvious and started going up blind alleys. Is there some preference somewhere that can change this way of working.
Have you tried downloading the apps on your computer and syncing?
The message means what it says. Yu do not see the "artwork" for the app. -
Error Message The OLAP Type Requested counld not be found
After analyzer completely install in Win98 SE (Eng) without any error message. However, when the user connect to Essbase then the message come up as shown in the subject.Any idea to resolve this error message??ThanksLouis
This behavior occurs only If I put a <cfapplication> tag on my cfm page.
When I put the <cfapplication> tag in an explicit file Application.cfm, cfc syntax error messages appears correctly.
Maybe just a problem with my configuration (IIS7), but perhaps an indication... -
Getting error message "Only a type can be imported-" when trying to execute jsp page
I get the error: "Only a type can be imported. com.adobe.cq.TestServiceImpl resolves to a package in adobe day cq5
I have created one bundle and installed in felix console. The status of the bundle is also Active. And also it is available in both service and component console.
Here is my TestServiceImpl class in com.adobe.cq bundle
package com.adobe.cq;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
import org.osgi.framework.BundleContext;
import org.osgi.service.component.ComponentContext;
import javax.jcr.RepositoryException;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.Properties;
//src.component
//declares the class component. This will provide a wrapped ManagedService component in the OSGI container.
//src.service interface="SampleService"
//declares the service we are offering. Actually, the interface attribute is superflous, as by default, all implemented Interfaces are used.
@scr.component
@scr.service interface="testService"
@Component(immediate = true, metatype = true)
@Service
@Properties( {
@Property(name = "service.description", value = "abcd"),
@Property(name = "label", value = "myLabel") })
public class TestServiceImpl implements TestService {
public String sayHello() {
return "Hello World!";
Here is my jsp code
<%@include file="/libs/foundation/global.jsp"%><%
%><%@include file="/apps/mine/includes/functions.jsp"%><%
%><%@ page import="com.adobe.cq.TestServiceImpl,
org.apache.sling.api.SlingHttpServletRequest,
java.util.List"%><%
%><%
SlingHttpServletRequest r = (SlingHttpServletRequest)request;
TestServiceImpl testService = sling.getService(TestServiceImpl.class);
out.println("testService:::"+testService);
%>
<div id="te-nav" style="display:block !important;">
</div>
Is it because of am using annotation in TestServiceImpl class?
Could you please tell me how to fix it?
Regards,
AndersonHi Pawan,
Thanks for your information. It was problem with my pom.xml It started to work after changing my POM.xml
I am not able to get sling service for TestServiceImpl. But I am only able to create TestService which is my interface. I need to get reference for TestServiceImpl class not for TestService interface. Please help me to make it.
i have created TestServiceImpl and TestService class for testing whether my bubdle is crating all the folder structure or not.
But my requirement is like assume class A has some methods like getMenuLink, setMenuLink.. And In class B i am calling some methods in class A and doing some manipulation in createLink method.
Here class B does not have any interface. Not implementing any interface. But I need to get class B refererence via sling.getService.
I know that if we are using maven SCR plugin..we need to have @component, @service. And All java classes are not services. Will it work if I add activate, deactivate method in class B?
Could you please tell me how to proceed next?
Thanks,
Anderson -
Error message FF762 " Condition type MWVS tax code A8 does not extist- MIRO
Dear all,
after support packagesi mplemented , I've the problem with transaction MIRO,
because I cannot released the invoic for the folloqiong error:
FF762 " Condition type MWVS tax code A8 does not extist.
Please, could you help me.
Thanks in advance for your cooperation
GaetanoHi,
Go to FTXP and give the tax code A8.
In the resultant screen, select the condition type MWVS, and link the condition type to an account key.
Make sure all the other tax determination settings are fine
Now, try the transaction it should work fine.
Hope this helps you
Maybe you are looking for
-
How do I get Yahoo to back off?
Finally and unfortunately I have reached the point where I have completely removed Mozilla from my system. It is apparent they have sold their souls to Yahoo. Constant pop-ups and attempts to make a Yahoo a default, it being added to my browser even
-
Hi all. I am following the How To Handle Acknowledgments for IDoc guide. I have posted 3 idocs into a BW system. The three idocs are similar but errors are produced in the system. I made use of the program RBDSTATE and the variant SAP_AUDIT_SEND to s
-
Master-detail with auto-generated primary key(master)
Hello, I have the following master-detail setup: Master - block A primary key is: codeA Detail - block B codeA is genrated only at commit time and is obtained from a sequence. User needs to add detail records. This is easy to do since he has to click
-
How execute a command on the Console from our prgm
can any body let me know how do we execute a command on the Console from our prgm . . on a windows platform .. eg. a simple commant like "dir" or "cls" . . or whatever . . . i heard that it can be done by calling the native methods . . but how is tha
-
Cisco application networking manager license file - unable copy to server
Hi all We tried all the options like ftp,tftp,scp,etc., to copy cisco application networking manager license file from my pc to its server which has CISCO ADE OS .But unable to copy .can anybody know correct method to copy ?? Thanks & Regards Sanjeev