Getting an error while validating with the help of domain

This is strange. I am validating an email address column in employees table by creating a domain and then associating it with the email column in the table. This is the code
    protected void validate() {
        //  ### Implement custom domain validation logic here. ###
        int atpos = mData.indexOf('@');
        int dotpos = mData.lastIndexOf('.');
        if (atpos > -1 || dotpos > -1) {
            throw new DataCreationException(null, "Invalid Email Address", null);
    }But while committing records, I am receiving the following error:
Cannot convert testmailid of type class java.lang.String to class model.common.DomainEmail
Can anyone help me?
Oh yes, I am using JDev 11.1.2.3

I suspect that you are using an <af:inputText> with no converter for entering the email on the page. The purpose of a converter would be to convert the String value entered by the user in the field to another datatype (e.g. to model.common.DomainEmail type) which is expected by the model layer (e.g. by the target VO attribute). If there is no such converter, JSF does not perform any datatype conversion and it tries to assign the java.lang.String value to the VO attribute (which is of model.common.DomainEmail datatype), so a type casting error occurs. If that is the case, then you should implement and attach a proper JSF converter to the <af:inputText> component.
Dimitar

Similar Messages

  • Error while communicating with the server

    Hi Experts,
    I'm having the following issue, when I try to send data using an input schedule the server says that there was an error while communicating with the server and don't send the data, I took a look at the log file and it says the following,
    ==============[BPC Logging]==============
    [Message Type] : ERROR
    [Job Name]     : OSoft.Services.Application.FileAccessService.FileAccessServiceProxy
    [DateTime]     : 4/6/2011 8:42:44 AM
    [UserId]       : CAMESAP\BPC_SYSADMIN
    [Message]       : UJF_EXCEPTION E018     Cannot find document/directory 0
    ==============[BPC Logging End ]==============
    Also i went to take a look at the default script logic, because i remember that this error happened to me when i wrongly program an script logic in the default.lgf  but it shows me the following error when I open it,
    System.InvalidCastExeption: Specified cast is not valid
    at System.data.DataColumnCollection.get_Item(String name)
    at System.data.DataRow.get_Item(String columnName)
    at Osoft.Consumers.Admin.AdminLogicClient50.LogicMain.GetLogic()
    If I compile the file, the error stop appearing, put with all new logic files it happens at first, I think that these two errors are very deep related, if anyone can help me will be very appreciated,
    Thanks in advanced

    Hi,
    I have faced the similar kind of problem in BPC NW 7.5 SP5.
    The main reason is when you are trying to send any data via input schedule, you will get this web server communication issue.
    1) Check if any thing you are calling script logic under default.LGF. Exclude the logic out from default and test it.
    2) Process all the dimensions in application
    3) Perform Lite optimization and check are there any errors.
    4) Finally check BPC COM+ services  and check if any service stopped and also check osoft send governer service in microsoft services.
    5) Diagnoise usign server manager.
    6) Try input some thing in apshell and check if u face the same web server communication error?

  • Getting all types of files with the help of get_file_name function

    hi all,
    i am using Forms [32 Bit] Version 6.0.8.24.1 (Production).
    i have used get_file_name function to the file name of all type of files
    but i am able to get only the folders when i tried like below
    :FILE_NAME := GET_FILE_NAME(NULL,NULL,NULL,'Choose a Directory',OPEN_FILE,FALSE);my requirement to get all types of files on the window(user will selects whichever way he wants)
    Can i acheive it through get_file_name or i have to go for any alternative to get the file list, so that user can select by browsing the folders.
    Please help.
    Thanks..

    hi,
    in my code the select file was set to false(so showing only the directories) now i have set it to 'true'. its showing the files now.
    with the help of my above shown code i can get the full path of the file.
    is there any way to get only the file name?(other than the last occurance of '/' logic or that is only the way?)
    Please help.
    Thanks..

  • Error while connectng with the database

    hi,
    I am working with the oracle load testing for web application and now it is using the default database 10g.Then i have installed 11g database in my desktop And also by using oracle application testing suite database configuration i have connected with 11g database also both system are in same network.
    while connecting with the database the following error has occured
    Error opening database '11g'
    Error connecting to the database.
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Driver's SQLSetConnectAttr failed
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    solution needed

    hi asif,
    i have configured the tnsnames and listener file with the following
    tnsnames.ora
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    XE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    orcl =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.103)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    OTM_CONNECTION_DATA_1 =
    (DESCRIPTION =
         (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xx)(PORT = 1521))
              (CONNECT_DATA =
              (SERVER = DEDICATED)
         (SERVICE_NAME = orcl)
    and listener.ora contains
    # lISTENER.ORA Network Configuration File: /u01/app/oracle1/product/11.1.0/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xx)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle1/product/11.1/db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = orcl.localdomain)
    (ORACLE_HOME =/u01/app/oracle1/product/11.1/db_1)
    (SID_NAME = orcl)
    )

  • Error while connecting with the url using odata...please help

    hi All,
    I was trying to do one basic ODATA example which i got from the threads.
    <!DOCTYPE html>
    <html><head>
      <meta http-equiv='X-UA-Compatible' content='IE=edge' />
      <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
      <title>Table with OData Binding</title>
         <script id='sap-ui-bootstrap' type='text/javascript'
            src='https://sapui5.hana.ondemand.com/resources/sap-ui-core.js'
            data-sap-ui-libs="sap.m,sap.ui.commons,sap.ui.table"
      data-sap-ui-theme="sap_bluecrystal"></script>
      <script>
      // the root URL of the OData service - prefixed with a local URL to a proxy which forwards the request,
    circumventing cross-domain restrictions
      // IMPORTANT: this proxy must be available for the code example to run!
      var url = "http://services.odata.org/Northwind/Northwind.svc";
    // create an ODataModel from URL
      var oModel = new sap.ui.model.odata.ODataModel(url, true);
      var oTable = new sap.ui.table.Table("sampleTable");
      oModel.read("/Customers",null,null,null,function(){
      var metadata = oModel.getServiceMetadata();
      var entityCustomerRef = metadata.dataServices.schema[0].entityType[2];
      var listOfProperties = entityCustomerRef.property;
      for ( var i = 0; i < listOfProperties.length; i++) {
      oTable.addColumn(new sap.ui.table.Column().setLabel(
      new sap.ui.commons.Label({
      text : listOfProperties[i].name,
      })).setTemplate(
      new sap.ui.commons.TextField().bindProperty("value",
      listOfProperties[i].name))) }
      oTable.setModel(oModel); // set model to Table
      oTable.bindRows("/Customers");
      oTable.placeAt("content"); // place model onto UI
      </script>
      </head>
      <body class='sapUiBody'>
      <div id='content'></div>
      </body>
    </html>
    but when i try to execute the same it is not loading any data and showing the error as :
    2014-07-21 16:04:05 (default) : https://sapui5.hana.ondemand.com/resources/ - sap.ui.ModuleSystem sap-ui-core.js:80 
    2Failed to load resource: the server responded with a status of 501 (Not Implemented) http://services.odata.org/Northwind/Northwind.svc/$metadata
    XMLHttpRequest cannot load http://services.odata.org/Northwind/Northwind.svc/$metadata. Invalid HTTP status code 501 odata.html:1
    2014-07-21 16:04:16 The following problem occurred: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://services.odata.org/Northwind/Northwind.svc/$metadata'. -  sap-ui-core.js:80
    Failed to load resource: the server responded with a status of 501 (Not Implemented) http://services.odata.org/Northwind/Northwind.svc/CustomersXMLHttpRequest cannot load http://services.odata.org/Northwind/Northwind.svc/Customers. Invalid HTTP status code 501 odata.html:1
    2014-07-21 16:04:17 The following problem occurred: HTTP request failed0,, -  sap-ui-core.js:80;;
    But i can launch the url with metadata through browser..kindly help???

    Hi Arun,
    replace the following line in your code:
    var url = "http/services.odata.org/Northwind/Northwind.svc";
    with the following:
    var url = "proxy/http/services.odata.org/Northwind/Northwind.svc";
    It will either work fine or this error will be skipped.

  • I am getting an error encountered problem with the display driver for my Photoshop CS5 extended

    I have Windows 7 and have used CS5 extended with no problems for quite a while now.
    Last week I started up CS5 and received the error:
    "Photoshop has encountered a problem with the display driver and has temporarily disabled GPU enhancements. Check the video card manufacturers website for the latest software. GPU enhancements can be enabled in the Performance panel of Preferences."
    "Please close program and uninstall and re-install if problem persists"
    I was able to edit, however when I went to save my work it would not do so. The following error came up.
    "Could not complete the command because the extension could not be loaded"
    "Could not save a copy as .....because of a program error"
    I checked to make sure I have the latest driver, I also uninstalled and re-installed the program and I am still getting the errors.
    Can anyone help with this?

    Error 1402 | Error 1406 | Acrobat, Reader

  • Getting an error while importing/exporting the universe from my BO Designer

    Hi,
       I am facing a issue while importing/exporting the universe from my BO Designer to the Server.The error is mentioned below.
       'File Repository Server Input is down'
       Once I click the OK button on this error message, it displays  the message
       'Could not import the Universe'.
      I tried the check the status of the File Repository Server (Ouput and Input) and also the of the Root Directory on the  Physical Server and also my machine.They all have read-write access.
    Installed Version of the Universe Designer Client: Business Object XI Release 2 SP3
    Installed Version of the BO Enterprise Server: Business Object XI Release 2 SP2
      Can you please help me to resolve the issue

    Hi,
       The step you have mentioned may not be applicable to my issue as one of my colleagues can import/export the universe from the same server
    The second thing is that a DB2 Client v9 is installed on both mine and my colleagues system.The Designer software can recognise the DB2 drivers on his system but it cannot recognise the same drivers on my system.I even checked the versions of the BO software installed on his and my system and they are same.
    The only difference is that his machine is a Windows XP Machine and mine is a Network Desktop.
    Will any of the above two things will affect the operation of the BO Designer.
    Thanks
    Prabhakar Korada

  • Getting Login error while working with User Management

    Hi,
    I am new to EBS and learning to work with 'User Management'.
    I have EBS 11i installed on XP.
    I face following error message when try to open any screen in 'User Management' responsibility...
    *'This type of function cant be performed without logging into E-Business Suite Home Page'....*
    This error is strange for me because i login with SYSADMIN and then choose 'User Management' responsibility.
    Thanks in advance for any helpful hint.
    Regards,
    Sohail.

    Hi,
    I face following error message when try to open any screen in 'User Management' responsibility...
    *'This type of function cant be performed without logging into E-Business Suite Home Page'....*Please mention the navigation path to reproduce the issue.
    Also, please check Apache log files for any errors.
    This error is strange for me because i login with SYSADMIN and then choose 'User Management' responsibility.Please see (How to to Define an Application User That Has All The Priviledges in User Management Responsibility options As SYSADMIN User [ID 378262.1]).
    Thanks,
    Hussein

  • Error in debatching with the help of envelope schema

    Hi, I have following orchestration :
    I am getting the following error after deploying my project :
    xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'Interplx.EmployeeExpenseToIDOC(5a39c530-92f1-87fd-a074-b64bc295058c)'.
    The service instance will remain suspended until administratively resumed or terminated. 
    If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
    InstanceId: ceec1c30-3196-4b09-9094-1c37f9f13c13
    Shape name: CallPipeline
    ShapeId: 19fd46ea-99f6-4a31-bf70-c6490b94d72e
    Exception thrown from: segment 1, progress 14
    Inner exception: There was a failure executing pipeline "Interplx.ReceivePipeline2". Error details: "Finding the document specification by message type "IdocData" failed. Verify the schema deployed properly. ".
    Exception type: XLANGPipelineManagerException
    Source: Microsoft.XLANGs.Pipeline
    Target Site: Microsoft.XLANGs.Pipeline.ReceivePipelineOutputMessages ExecutePipeline(Microsoft.BizTalk.PipelineOM.ReceivePipeline, Microsoft.XLANGs.BaseTypes.XLANGMessage)
    The following is a stack trace that identifies the location where the exception occured
       at Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecutePipeline(ReceivePipeline p, XLANGMessage inMsg)
       at Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteReceivePipeline(Type receivePipelineType, XLANGMessage inMsg)
       at Interplx.EmployeeExpenseToIDOC.segment1(StopConditions stopOn)
       at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
    Additional error information:
            Finding the document specification by message type "IdocData" failed. Verify the schema deployed properly. 
    Exception type: COMException
    Source: XML disassembler
    Target Site: Microsoft.BizTalk.Component.NodeProcessor CreateProcessor(System.String)
    The following is a stack trace that identifies the location where the exception occured
       at Microsoft.BizTalk.Component.XmlDasmReader.CreateProcessor(String docType)
       at Microsoft.BizTalk.Component.XmlDasmReader.ShiftState(Boolean readState)
       at Microsoft.BizTalk.Component.XmlDasmReader.Read()
       at Microsoft.BizTalk.Component.XmlDasmComp.Disassemble2(IPipelineContext pc, IBaseMessage inMsg)
       at Microsoft.BizTalk.Component.XmlDasmComp.Disassemble(IPipelineContext pc, IBaseMessage inMsg)
       at Microsoft.BizTalk.Internal.ComponentWrapper.Disassemble(IPipelineContext pc, IBaseMessage inmsg)
       at Microsoft.BizTalk.PipelineOM.DisassemblerComponent.Disassemble(IPipelineContext pipelineContext, IBaseMessage message)
       at Microsoft.BizTalk.PipelineOM.DisassemblingParserStage.Disassemble(IBTMPipelineContext pc, IBaseMessage inMsg, Int32 dasmStageIndex)
       at Microsoft.BizTalk.PipelineOM.ReceivePipeline.Execute(IBaseMessage msgIn)
       at Microsoft.BizTalk.PipelineOM.PipelineManager.ExecuteReceivePipeline(ReceivePipeline receivePipeline, IBaseMessage message, Object interceptor, Stream perInstanceCofigStrm, Object transaction, IPipelineContext pBTMPipeCtx)
       at Microsoft.BizTalk.PipelineOM.PipelineManager.ExecuteReceivePipeline(ReceivePipeline receivePipeline, IBaseMessage msg, IResourceTracker& rt)
       at Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecutePipeline(ReceivePipeline p, XLANGMessage inMsg)
    In call Pipeline expression shape I am using the following code :
    InputPipeline =Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteReceivePipeline(typeof(Interplx.ReceivePipeline2),IDOCMessage);
    I made IDOCMessage to envelope schema which is using Destination Schema as a Message Type.
    the structure of  my Destination schema is as follows:
    I set the Envelope property of schema to Yes.Body Xpath of send node is as follows:
    /*[local-name()='Send' and namespace-uri()='http://Interplx.DestinationSchema']
    I just take a ReceivePipeiline named ReceivePipeline2and not set its any property.
    I am confuse whether is the mistake has been done by me ?
    Please help.
    Prakash

    ok also check the "build
    Action" is set to "BtsCompile"
    for the schema properties .
    And make sure you restart host instances (this may not be the reason, but just make sure)
    "Finding the document specification by message
    type "IdocData" failed. Verify the schema deployed properly. ".
    the above error occurs in few cases like below,
    1. you deployed the schema but did not restart the host instances
    2. you deployed the schema, but the schema message type you deployed and the message type your application
    is expecting is not present in database.
    Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • SharePoint 2013 - getting an error while clicking on the ellipsis of a document in a Document Library

    I have a standard out-of-the-box Document Library. versioning/checkin/out is enabled. There are a few extra columns added to the library. There is this a weird random behavior when clicking on the ellipsis (...) button on a document. Sometimes it will display
    the context menu and sometimes it will give me this error:
    TypeError: Unable to get property 'FileLeafRef' of undefined or null referenceTypeError: Unable to get property 'ItemType' of undefined or null referenceTypeError: Unable to get property 'ID' of undefined or null reference
    Sometimes a refresh will fix it. Sometimes it won't. It's all pretty random.
    Anyone have this issue or have any ideas on how to solve it?

    Hi
    "TypeError: Unable to get property 'FileLeafRef' of undefined or null reference"
    You can find some alternatives here (none of which have I tried or am I recommending):
    http://alternativeto.net/software/hotspot-shield/
    I'd still suggest ensuring you are running the latest version and contacting the vendor
    "TypeError: Unable to get property 'ItemType' of undefined or null reference"
    please try to test the site using IE Compatibility View, compare the result.
    Also, try to reset IE , compare the result.
    Here is a similar posts for your reference:
    http://social.technet.microsoft.com/Forums/en-US/6efe0564-7df9-4812-b08b-a9d36e3c257b/typeerror?forum=w8itprogeneral
    TypeError: Unable to get property 'ID' of undefined or null reference
    http://community.microstrategy.com/t5/Web/TN204030-TypeError-Unable-to-get-property-id-of-undefined-or/ta-p/204030
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • How to get BU, Company, Group details with the help of Employee number

    Hi Friends,
    How to get information related with Employee like Business unit, Company, Business Group and other details.
    Pravin

    Yes Arul.
    I want to get these information in a custom Java webdynpro application but if you can guide me how to get these values in SAP-Hr. Can you just give me details of tables. I have Employee number(pernr) with me and want to fetch Group, Company, Business Unit.
    With rgds,
    Pravin

  • Is it possible to get intermediate info while running with the Ipod Nano 6th gen?

    In the store I was told that the Ipod Nano 6th gen would keep me informed every 500m or every km about my distance, average speed etc.
    The Ipod only tells me AFTER the run what my average speed etc was. Not during my run. Is there a possibility to get this info during my run? The store does not know the answer.

    Do you have the Spoken Feedback setting set to On under Settings -> Fitness on the iPod?
    B-rock

  • An error occurred while communicating with the BI server.

    Hi Expert,
    A error occured when I finish updating the new patch of the Addon, When I finish updating it, it works okay , but when I reboot the system, it disconnet our server and give the following exception :
    An error occurred while communicating with the BI server.
    System exception thrown while marshaling .NET type System.Byte[] to RFCTYPE_BYTE.
    Are there anyone met such issues?
    Please help
    Len

    Hi,
    Are you getting this error while connecting to the Backend through BEx Tools.
    Is that system available or System down while connecting.
    Rgds,
    Murali

  • Getting multiple error while refreshing or scheduling WebI report

    Hi BO Admin Experts ,
    Feacing  multiple errors  while refreshing or scheduling webi reports in BI4.0 CMC ,
    Please find the below errors :
    1)report schedule status failed
    2)Parameters : xxxcorp-franklinee; ATOu supply unv
    Error Message : An internal error occured while calling 'ProcessDPcmndsEx' API (Error:ERR_WIS_30270)
    3 ) Format : WebI
    Parameters : 10000000000159270
    Error Message :CORBA error while communicating with the SL service
    Could you please help me on the abive 3 issues for the WebI schedule reports
    Cheers ,
    Pradeep Gorpadu

    Hi,
    While refreshing the WEBI Reports would recommend you check the WEBI PROCESSING Server's last changed date from CMC--> Servers.
    Check when you are refreshing the reports, do you see the time stamp changed of WEBI PROCESSING servers?
    Do you keep getting this error messages for all WEBI reports? Can you re-produce this with simple e-fashion reports as well?
    After that go to the node where WEBI PROCESSING servers installed and check on the event viewer details if you see any relevant error messages.
    Regards,
    Upendra

  • Error while generation of the Authorization object (

    Hi Gurus,
    I have created a Authorization object Z_CCTR3 for 0costcenter authorization.
    but getting following error while generation of the Authorization object (type is Flat authorization)
    "Error occurred when reading the data from DataStore object Z_CCTR3"
    Any inputs will helpful...
    Sonal.....

    Hello everybody,
                             my problem is solved.For the UDConnect, whatever DATA SOURCES you create gets registered in a FUNCTION MODULE which has a capacity of only 99 enties, so to increase it implement the SAP NOTE 876340 - UDC Error available on SERVICE MARKET PLACE.
    This problem occurs with BW version 3.5 level 17 or below.
    Regards,
    Priyanka
    Edited by: Priyanka Joshi on Jun 10, 2008 11:03 AM

Maybe you are looking for

  • Function module to fetch account details

    Hi Experts, Is there any function module to get the account details for the given account name(name_org1) as input Thanks, Saru

  • I really need help i am so ****** :(

    Well so my sister yesterday updated her ipod touch to version 4.0 and everything went perfectly , I tried to do it after her but i had an error ( i will show later ) Then i tried today still no luck same error and that happened 5 times already and st

  • [iOS] Advice on when to close events

    hi all just looking for some advice on when to close some events .. my problem is i am working on a iOS app that loads two large swf files and plays them both at the same time. i am loading in the video files on the first frame and adding them to the

  • After editing in PS I've lost my original in LR4?

    Hello I was under the impression that editing in PS from LR4 meant my original in LR4 was safe (ie: that after editing in PS, both the PS editied photo and the LR4 original would be side by side when LR4 was opened up) However, my first foray into PS

  • Is there any difference in developing OSB project by OEPE or OSB console?

    As there are 2 ways to develop OSB project, OEPE or Console. What's the difference? Is there anything need to consider between these 2 ways? Thanks.