Validate Against Database

I am creating my first real JSF app which allows a user to create an email account. I have a page that has these fields:
<h:inputText required="true" id="emailName" value="#{emailPreferencesController.emailBean.emailName}"  /><h:message for="emailName" />
<h:inputText required="true" id="emailAddress" value="#{emailPreferencesController.emailBean.emailAddress}"  /><h:message for="emailAddress" />
<h:inputText required="true" id="emailPassword" value="#{emailPreferencesController.emailBean.emailPassword}"  /><h:message for="emailPassword" />
<h:commandButton value="#{msg.button_create_email}" action="#{emailPreferencesController.createEmail}"/>And my architecture looks like this:
com\myapp\model\EmailBean.java - Bean containing getters and setters for fields above.
com\myapp\model\EmailHandler - Contains methods for connecting to the database to perform CRUD operations for email accounts.
com\myapp\controller\EmailPreferencesController.java - Contains an "emailBean" property of type "EmailBean" and a getter/setter for this property. This class also contains an action "createEmail" which calls methods from EmailHandler to create the email in the database.
My question is...where do I check if the email already exists in the database? In the method createEmail? If so, how do I get the error message back to the jsf page since the only thing I am passing this method is the instance of EmailBean.
I have thought about writing a validator to check if it exists in the database, but if it does then I'd need to write it to the database in another phase which would take place after (albeit only a split second) but still not really in a transaction.
So when do I check if the values exist in the database and how do I notify user that they do exist?
Thanks,
Jim

Probably.

Similar Messages

  • ERROR: "info.plist does not validate against DTD"

    Hi! I got this error if anyone has it solved Please HELP.
    I am trying to package a WRT widget using Nokia WRT extension for Adobe Dreamweaver. This is the place for info on the extension: http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/Runtimes/Web_Runtime/
    I figure developer from here who use DW to develop mobile content might know the error.
    When come to the step of 'Package Nokia WRT Widget' I got this error: info.plist does not validate against DTD
    and a page of error info shown like this:
    DTD validated at: Wed Jun 17 2009 19:03:00 GMT+0800 (Malay Peninsula Standard Time)
    DTD used for validation: http://www.nokia.com/DTDs/plist-1.0.dtd
    Line
    Column
    Message
    Explanation
    Source
    2
    95
    DTD did not contain element declaration for document type name
    3
    16
    Attribute "version" exists, but can not be used for this element.
    3
    21
    element "plist" undefined. Did you mean "applet" or "strike"?
    4
    7
    element "dict" undefined. Did you mean "strike" or "input"?
    5
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    6
    10
    element "string" undefined. Did you mean "strong" or "strike"?
    7
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    8
    10
    element "string" undefined. Did you mean "strong" or "strike"?
    9
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    10
    10
    element "string" undefined. Did you mean "strong" or "strike"?
    11
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    12
    10
    element "string" undefined. Did you mean "strong" or "strike"?
    13
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    14
    9
    element "true" undefined. Did you mean "textarea" or "tr"?
    Can anyone knows what this means and how i can solve it?
    Please help. Thankyou.
    note: I am new here and knows that keep asking quesion without giving back is not good but I have a deadline here and wanted to finish the job. I will read some other post and try to help in return when I am able to do so.

    Hi pziecina,
    Thanks for your reply,
    I suspect my problem is the installation or setup of my system or software. as the result i tested is not by doing any scripting at all. All I did is following one of their example exactly (http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/Runtimes/Web_Runtime/Dreamweaver_Exte nsion/QuickStart.xhtml) and package strightaway without modifying the code. because I want to make sure i got the extension install correctly. even so by packaging one of their ready make example already yield this error.

  • Plants are needed to validate against company in Component Tab - IW31

    Hi Experts ,
    Module PM , T Code IW31 ,
    Plants are needed to validate against company in Component Tab and need to populate error message in status bar . Thereafter user possible to correct whatever the error and save it .
    Can you please help me to solve this issue.
    Component Data is populated in Data grid (Data Table). These user exits are not fired within a loop( Not repeating with line of components).
    Is there way to read whole table ?
    Already i tried BADI -IW O1_ORDER_BADI and
    exit -
    PRM0003 User field: Maintenance plan
    WO10001 Create a PM sub-order
    WO10002 PM maintenance order: Customer check for order release
    WO10004 Maintenance order: Customer check for order completion
    WO10005 Maintenance order: Cust.-specif. determination of profit ctr
    WO10006 Maint. order: Fcode exclusion through cust. enhancement
    WO10007 Maint.order: Customer enhancement - permits in the order
    WO10008 Cust. enhancement: Determination of tax jurisdiction code
    WO10009 PM Order: Customer Check for 'Save' Event
    WO10010 Maint. order: Cust. enhancement for determining WBS element
    WO10012 Maintenance order: Priority handling on central header
    WO10015 Maintenance order: F4 Help for user fields on operation
    WO10016 PM Order: Cust. enhancement to check operation user fields
    WO10017 Determine external order number by customer logic
    WO10018 Maintenance order: User fields on order header
    WO10020 Maintenance order: Automatically include task list
    WO10021 Automatic task list transfer when creating order from notif.
    WO10022 Determine calendar from user exit
    WO10025 PM/SM order: Finding responsible cost center
    WO10026 User check on setting status 'Do not perform'
    WO10031 Hide personnel number in PM/SM order
    WO20001 PM order: User exit to pass routing to order
    EXIT_SAPLCOMK_004 (Enhancement - CNEX0013)
    COZF0002
    COZF0001
    Thanks,
    Rehan

    Hi,
       I am not completely clear with ur question, i think system will give message if component is selected from other company code, but if ur looking for something specfic ..check the below
    CNEX0037 : Check a newly assigned component.
    CNEX0038: Check a changed component.
    regards
    pushpa

  • Task.toXML() creates xml that does not validate against WorklistTask.xsd

    I am using the worklist API and I am using the toXML() function provided in the Task object to serialize my Task info to XML. It produces XML that looks alot like a "task" Element. But, it does not validate against the WorkflowTask.xsd schema. What is even more odd is that XML looks different than the xml I see when I look at the data in the BPEL Console.
    For example, the first XML document below is from Task.toXML. notice that it's first child element is taskId. According to the xsd, that is not valid. The second xml document in this post is from the console. it appears to be valid.
    Am I doing something wrong or should I just not expect the worklist api to produce valid xml? (correction: should I not expect the worklist api to xml that validates?)
    <task xmlns="http://xmlns.oracle.com/pcbpel/taskservice/task"><taskId>0D7B97F1B138EE21E04017AC2B194357</taskId><title>Payment not posted by payee</title><isGroup>true</isGroup><acquiredBy/><owner>bpeladmin</owner><conclusion/><state>ASSIGNED</state><subState>ASSIGNED</subState><processId>ResearchRequestWorkflow</processId><processName>ResearchRequestWorkflow</processName><versionNumber>1</versionNumber><notm>1</notm><taskGroupId/><taskType>http://blade-11.payveris.com:9700/orabpel/default/ResearchRequestWorkflow/1.0/taskConfigResearchRequest.xml</taskType><identificationKey>PAULA MERRILL, 2069</identificationKey><priority>3</priority><creator>bpeladmin</creator><creationDate>2006-02-23T14:53:08.000-05:00</creationDate><updatedBy>bpeladmin</updatedBy><modifyDate>2006-02-23T14:53:08.000-05:00</modifyDate><flexString1>1140724383057</flexString1><flexString2>PAULA MERRILL</flexString2><flexString3>PAULA MERRILL</flexString3><flexString4>PaymentId3489</flexString4><flexLong1>0</flexLong1><flexLong2>0</flexLong2><flexDouble1>0.0</flexDouble1><flexDouble2>0.0</flexDouble2><processVersion>1.0</processVersion><instanceId>2304</instanceId><domainId>default</domainId><approvers/><hasSubTasks>false</hasSubTasks><processOwner>bpeladmin</processOwner><pattern>SINGLE_APPROVAL</pattern><taskNumber>10240</taskNumber><systemString1/><systemString2/><systemString3/><versionReason>Task Created</versionReason><assigneeGroups>ResearchManager</assigneeGroups><payload confirmation_number="1140724383057" due_date="2006-02-22-05:00" reason="Payment not posted by payee"><requester xmlns="http://www.pp.com/schema"><first>PAULA MERRILL</first><last>PAULA MERRILL</last><tax_id/></requester><payment_type xmlns="http://www.pp.com/schema" number="">insuranceauto</payment_type><record_info xmlns="http://www.pp.com/schema"><creation app="EU" by="282950" date="2006-02-23T14:53:03.056-05:00"/><updation app="EU" by="282950" date="2006-02-23T14:53:03.056-05:00"/></record_info><payment xmlns="http://www.pp.com/schema" id="3489"><bank_info bank_id="2" funds_model="RISK"/><payment_info><confirmation_number>5428</confirmation_number><amount formattedValue="77.00" value="77"/><payment_date>2006-01-06-05:00</payment_date><check_number>5851</check_number><funded>false</funded><merged>false</merged><network id="3" status="ACTIVE" type="C">MOORE</network><alert_on_completion>false</alert_on_completion><alert_number_days_before>0</alert_number_days_before><scheduled_info id="2278"><scheduled_for_date formatted="01/06/2006">2006-01-06-05:00</scheduled_for_date><scheduled_on_date formatted="01/06/2006">2006-01-06-05:00</scheduled_on_date><created_user_id>282950</created_user_id><updated_user_id>0</updated_user_id></scheduled_info></payment_info><payee_info id="24958" relationship_id="6004"><payee_account_number>JUNIT123</payee_account_number><nick_name>blahblah</nick_name><name>complexpayeenameforatest</name><address1>123 main street</address1><address2>c/o anybody</address2><city>Dark Cityrandomizer</city><state>CT</state><zip>06512</zip><network id="3" status="ACTIVE" type="C">MOORE</network></payee_info><customer_info id="2069"><name>PAULA MERRILL</name><customer_account_id>8</customer_account_id><customer_account_number>213</customer_account_number><customer_routing_number>111111111</customer_routing_number><address1>Ernest Hemingway Drive</address1><city>Springfield</city><state>IL</state><zip>62703</zip></customer_info><state_info><failed_reason_code>0</failed_reason_code><money_batch_id>824</money_batch_id><good_funds_batch_id>1817</good_funds_batch_id><network_batch_id>958</network_batch_id><state_date>2006-10-24-05:00</state_date><state formatted="Check Cashed by Payee" id="2">Cleared</state><trace_number>211170100000003</trace_number></state_info><state_history><failed_reason_code>0</failed_reason_code><money_batch_id>0</money_batch_id><good_funds_batch_id>0</good_funds_batch_id><network_batch_id>0</network_batch_id><state_date>2006-01-06-05:00</state_date><state formatted="In Process" id="6">Created</state><record_info><creation app="BPEL" by="0" date="2006-01-06T11:14:33-05:00"/></record_info></state_history><state_history><failed_reason_code>0</failed_reason_code><money_batch_id>0</money_batch_id><good_funds_batch_id>1817</good_funds_batch_id><network_batch_id>0</network_batch_id><state_date>2006-01-06-05:00</state_date><state formatted="In Process" id="6">Created</state><trace_number>211170100000003</trace_number><record_info><creation app="BPEL" by="0" date="2006-01-06T11:14:35-05:00"/></record_info></state_history><state_history><failed_reason_code>0</failed_reason_code><money_batch_id>0</money_batch_id><good_funds_batch_id>1817</good_funds_batch_id><network_batch_id>0</network_batch_id><state_date>2006-01-06-05:00</state_date><state formatted="In Process" id="22">Waiting for Decision</state><trace_number>211170100000003</trace_number><record_info><creation app="BPEL" by="0" date="2006-01-06T11:14:36-05:00"/></record_info></state_history><state_history><failed_reason_code>0</failed_reason_code><money_batch_id>824</money_batch_id><good_funds_batch_id>1817</good_funds_batch_id><network_batch_id>0</network_batch_id><state_date>2006-01-06-05:00</state_date><state formatted="In Process" id="12">Ready for Funding</state><trace_number>211170100000003</trace_number><record_info><creation app="BPEL" by="0" date="2006-01-06T12:40:01-05:00"/></record_info></state_history><state_history><failed_reason_code>0</failed_reason_code><money_batch_id>824</money_batch_id><good_funds_batch_id>1817</good_funds_batch_id><network_batch_id>0</network_batch_id><state_date>2006-01-06-05:00</state_date><state formatted="In Process" id="9">Funded</state><trace_number>211170100000003</trace_number><record_info><creation app="BPEL" by="0" date="2006-01-06T12:40:01-05:00"/></record_info></state_history><state_history><failed_reason_code>0</failed_reason_code><money_batch_id>0</money_batch_id><good_funds_batch_id>1817</good_funds_batch_id><network_batch_id>0</network_batch_id><state_date>2006-01-06-05:00</state_date><state formatted="In Process" id="12">Ready for Funding</state><trace_number>211170100000003</trace_number><record_info><creation app="BPEL" by="0" date="2006-01-06T12:40:03-05:00"/></record_info></state_history><state_history><failed_reason_code>0</failed_reason_code><money_batch_id>824</money_batch_id><good_funds_batch_id>1817</good_funds_batch_id><network_batch_id>958</network_batch_id><state_date>2006-01-06-05:00</state_date><state formatted="In Process" id="9">Funded</state><trace_number>211170100000003</trace_number><record_info><creation app="BPEL" by="0" date="2006-01-06T12:43:56-05:00"/></record_info></state_history><state_history><failed_reason_code>0</failed_reason_code><money_batch_id>824</money_batch_id><good_funds_batch_id>1817</good_funds_batch_id><network_batch_id>958</network_batch_id><state_date>2006-01-06-05:00</state_date><state formatted="Mailed" id="11">Payment Sent</state><trace_number>211170100000003</trace_number><record_info><creation app="BPEL" by="0" date="2006-01-06T12:43:59-05:00"/></record_info></state_history><state_history><failed_reason_code>0</failed_reason_code><money_batch_id>824</money_batch_id><good_funds_batch_id>1817</good_funds_batch_id><network_batch_id>958</network_batch_id><state_date>2006-10-24-05:00</state_date><state formatted="Check Cashed by Payee" id="2">Cleared</state><trace_number>211170100000003</trace_number><record_info><creation app="EU" by="9999999" date="2006-02-03T12:38:08-05:00"/></record_info></state_history><record_info><creation app="BPEL" by="0" date="2006-01-06T11:14:33-05:00"/><updation app="EU" by="9999999" date="2006-02-03T12:38:08-05:00"/></record_info><research_request>false</research_request></payment></payload></task>
    When Im look at the same task in the BPELConsole, the task looks like:
    <task>
    <title>Payment not posted by payee</title>
    <assigneeUsers/>
    <assigneeGroups>ResearchManager</assigneeGroups>
    <acquiredBy/>
    <owner>bpeladmin</owner>
    <payload confirmation_number="1140724383057" due_date="2006-02-22-05:00" reason="Payment not posted by payee" >
    <requester>
    <first>PAULA MERRILL</first>
    <last>PAULA MERRILL</last>
    <tax_id/>
    </requester>
    <payment_type number="" >insuranceauto</payment_type>
    <record_info>
    <creation app="EU" by="282950" date="2006-02-23T14:53:03.056-05:00" />
    <updation app="EU" by="282950" date="2006-02-23T14:53:03.056-05:00" />
    </record_info>
    <payment id="3489" >
    <bank_info bank_id="2" funds_model="RISK" />
    <payment_info>
    <confirmation_number>5428</confirmation_number>
    <amount formattedValue="77.00" value="77" />
    <payment_date>2006-01-06-05:00</payment_date>
    <check_number>5851</check_number>
    <funded>false</funded>
    <merged>false</merged>
    <network id="3" status="ACTIVE" type="C" >MOORE</network>
    <alert_on_completion>false</alert_on_completion>
    <alert_number_days_before>0</alert_number_days_before>
    <scheduled_info id="2278" >
    <scheduled_for_date formatted="01/06/2006" >2006-01-06-05:00</scheduled_for_date>
    <scheduled_on_date formatted="01/06/2006" >2006-01-06-05:00</scheduled_on_date>
    <created_user_id>282950</created_user_id>
    <updated_user_id>0</updated_user_id>
    </scheduled_info>
    </payment_info>
    <payee_info id="24958" relationship_id="6004" >
    <payee_account_number>JUNIT123</payee_account_number>
    <nick_name>blahblah</nick_name>
    <name>complexpayeenameforatest</name>
    <address1>123 main street</address1>
    <address2>c/o anybody</address2>
    <city>Dark Cityrandomizer</city>
    <state>CT</state>
    <zip>06512</zip>
    <network id="3" status="ACTIVE" type="C" >MOORE</network>
    </payee_info>
    <customer_info id="2069" >
    <name>PAULA MERRILL</name>
    <customer_account_id>8</customer_account_id>
    <customer_account_number>213</customer_account_number>
    <customer_routing_number>111111111</customer_routing_number>
    <address1>Ernest Hemingway Drive</address1>
    <city>Springfield</city>
    <state>IL</state>
    <zip>62703</zip>
    </customer_info>
    <state_info>
    <failed_reason_code>0</failed_reason_code>
    <money_batch_id>824</money_batch_id>
    <good_funds_batch_id>1817</good_funds_batch_id>
    <network_batch_id>958</network_batch_id>
    <state_date>2006-10-24-05:00</state_date>
    <state formatted="Check Cashed by Payee" id="2" >Cleared</state>
    <trace_number>211170100000003</trace_number>
    </state_info>
    <state_history>
    <failed_reason_code>0</failed_reason_code>
    <money_batch_id>0</money_batch_id>
    <good_funds_batch_id>0</good_funds_batch_id>
    <network_batch_id>0</network_batch_id>
    <state_date>2006-01-06-05:00</state_date>
    <state formatted="In Process" id="6" >Created</state>
    <record_info>
    <creation app="BPEL" by="0" date="2006-01-06T11:14:33-05:00" />
    </record_info>
    </state_history>
    <state_history>
    <failed_reason_code>0</failed_reason_code>
    <money_batch_id>0</money_batch_id>
    <good_funds_batch_id>1817</good_funds_batch_id>
    <network_batch_id>0</network_batch_id>
    <state_date>2006-01-06-05:00</state_date>
    <state formatted="In Process" id="6" >Created</state>
    <trace_number>211170100000003</trace_number>
    <record_info>
    <creation app="BPEL" by="0" date="2006-01-06T11:14:35-05:00" />
    </record_info>
    </state_history>
    <state_history>
    <failed_reason_code>0</failed_reason_code>
    <money_batch_id>0</money_batch_id>
    <good_funds_batch_id>1817</good_funds_batch_id>
    <network_batch_id>0</network_batch_id>
    <state_date>2006-01-06-05:00</state_date>
    <state formatted="In Process" id="22" >Waiting for Decision</state>
    <trace_number>211170100000003</trace_number>
    <record_info>
    <creation app="BPEL" by="0" date="2006-01-06T11:14:36-05:00" />
    </record_info>
    </state_history>
    <state_history>
    <failed_reason_code>0</failed_reason_code>
    <money_batch_id>824</money_batch_id>
    <good_funds_batch_id>1817</good_funds_batch_id>
    <network_batch_id>0</network_batch_id>
    <state_date>2006-01-06-05:00</state_date>
    <state formatted="In Process" id="12" >Ready for Funding</state>
    <trace_number>211170100000003</trace_number>
    <record_info>
    <creation app="BPEL" by="0" date="2006-01-06T12:40:01-05:00" />
    </record_info>
    </state_history>
    <state_history>
    <failed_reason_code>0</failed_reason_code>
    <money_batch_id>824</money_batch_id>
    <good_funds_batch_id>1817</good_funds_batch_id>
    <network_batch_id>0</network_batch_id>
    <state_date>2006-01-06-05:00</state_date>
    <state formatted="In Process" id="9" >Funded</state>
    <trace_number>211170100000003</trace_number>
    <record_info>
    <creation app="BPEL" by="0" date="2006-01-06T12:40:01-05:00" />
    </record_info>
    </state_history>
    <state_history>
    <failed_reason_code>0</failed_reason_code>
    <money_batch_id>0</money_batch_id>
    <good_funds_batch_id>1817</good_funds_batch_id>
    <network_batch_id>0</network_batch_id>
    <state_date>2006-01-06-05:00</state_date>
    <state formatted="In Process" id="12" >Ready for Funding</state>
    <trace_number>211170100000003</trace_number>
    <record_info>
    <creation app="BPEL" by="0" date="2006-01-06T12:40:03-05:00" />
    </record_info>
    </state_history>
    <state_history>
    <failed_reason_code>0</failed_reason_code>
    <money_batch_id>824</money_batch_id>
    <good_funds_batch_id>1817</good_funds_batch_id>
    <network_batch_id>958</network_batch_id>
    <state_date>2006-01-06-05:00</state_date>
    <state formatted="In Process" id="9" >Funded</state>
    <trace_number>211170100000003</trace_number>
    <record_info>
    <creation app="BPEL" by="0" date="2006-01-06T12:43:56-05:00" />
    </record_info>
    </state_history>
    <state_history>
    <failed_reason_code>0</failed_reason_code>
    <money_batch_id>824</money_batch_id>
    <good_funds_batch_id>1817</good_funds_batch_id>
    <network_batch_id>958</network_batch_id>
    <state_date>2006-01-06-05:00</state_date>
    <state formatted="Mailed" id="11" >Payment Sent</state>
    <trace_number>211170100000003</trace_number>
    <record_info>
    <creation app="BPEL" by="0" date="2006-01-06T12:43:59-05:00" />
    </record_info>
    </state_history>
    <state_history>
    <failed_reason_code>0</failed_reason_code>
    <money_batch_id>824</money_batch_id>
    <good_funds_batch_id>1817</good_funds_batch_id>
    <network_batch_id>958</network_batch_id>
    <state_date>2006-10-24-05:00</state_date>
    <state formatted="Check Cashed by Payee" id="2" >Cleared</state>
    <trace_number>211170100000003</trace_number>
    <record_info>
    <creation app="EU" by="9999999" date="2006-02-03T12:38:08-05:00" />
    </record_info>
    </state_history>
    <record_info>
    <creation app="BPEL" by="0" date="2006-01-06T11:14:33-05:00" />
    <updation app="EU" by="9999999" date="2006-02-03T12:38:08-05:00" />
    </record_info>
    <research_request>false</research_request>
    </payment>
    </payload>
    <conclusion/>
    <state>ASSIGNED</state>
    <subState>ASSIGNED</subState>
    <processId>ResearchRequestWorkflow</processId>
    <processName>ResearchRequestWorkflow</processName>
    <processVersion>1.0</processVersion>
    <instanceId>2304</instanceId>
    <domainId>default</domainId>
    <processOwner>bpeladmin</processOwner>
    <taskId>0D7B97F1B138EE21E04017AC2B194357</taskId>
    <versionReason>Task Created</versionReason>
    <taskGroupId/>
    <taskType>http://blade-11.payveris.com:9700/orabpel/default/ResearchRequestWorkflow/1.0/taskConfigResearchRequest.xml</taskType>
    <identificationKey>PAULA MERRILL, 2069</identificationKey>
    <comments/>
    <priority>3</priority>
    <creator>bpeladmin</creator>
    <updatedBy>bpeladmin</updatedBy>
    <hasSubTasks>false</hasSubTasks>
    <approvers/>
    <pattern>SINGLE_APPROVAL</pattern>
    <flexString1>1140724383057</flexString1>
    <flexString2>PAULA MERRILL</flexString2>
    <flexString3>PAULA MERRILL</flexString3>
    <flexString4>PaymentId3489</flexString4>
    <flexDouble1/>
    <flexDouble2/>
    <flexLong1/>
    <flexLong2/>
    <flexDate1/>
    <flexDate2/>
    <flexDate3/>
    <attachment/>
    <taskNumber>10240</taskNumber>
    <creationDate>2006-02-23T14:53:08.955-05:00</creationDate>
    <modifyDate>2006-02-23T14:53:08.955-05:00</modifyDate>
    <isGroup>true</isGroup>
    <versionNumber>1</versionNumber>
    <notm>1</notm>
    <expirationDate/>
    <expirationDuration/>
    </task>
    Message was edited by:
    gjacobi

    I am using oracle.tip.pc.services.hw.task.impl.Task
    that object has a toXML method.
    To get that object, I am using the RemoteWorklistServiceClient.getWorlistTaskById method.
    A word of caution. Not only am I still having the issue above (I had to hack my own WorkflowTask.xsd to make it validate) but I have noticed that the toXML() method actually returns different results when you think it would not. For example, I have something similar to the following code:
    task.toXML()
    task.toElement()
    task.getPayload()
    task.toXML()
    The first and last toXML methods produce strings that do not match (it adds some empty elements to the end of the document). Weird. Very Weird.
    Greg

  • Do new ODAC 11 feature work against Database 10.2

    Hi,
    Do features new in ODAC 11 work against Database 10.2. I'm mainly interested in "End-to-End Tracing using Action and Module attributes"
    Thanks

    Here's a real quick and dirty knock up using ODAC 2.111.6.20 against a 10.2.0.3 database:
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace Miscellaneous
      class Program
        static void Main(string[] args)
          string constr = "User Id=scott; " +
                          "Password=tiger; " +
                          "Data Source=lt10gr2; " +
                          "Pooling=false; " +
                          "Enlist=false";
          OracleConnection con = new OracleConnection(constr);
          con.Open();
          con.ActionName = "MyAction1";
          con.ModuleName = "MyModule1";
          OracleCommand cmd1 = con.CreateCommand();
          cmd1.CommandText = "select user from dual";
          OracleDataReader dr = cmd1.ExecuteReader();
          while (dr.Read()) ;
          con.ActionName = "MyAction2";
          con.ModuleName = "MyModule2";
          OracleCommand cmd2 = con.CreateCommand();
          cmd2.CommandText = "select sysdate from dual";
          dr = cmd2.ExecuteReader();
          while (dr.Read()) ;
          Console.WriteLine("ENTER to continue...");
          Console.ReadLine();
    }I enabled tracing for the session and here are a couple of snippets from the trace file:
    *** ACTION NAME:(MyAction1) 2008-01-24 21:08:01.033
    *** MODULE NAME:(MyModule1) 2008-01-24 21:08:01.033
    -- snip --
    *** ACTION NAME:(MyAction2) 2008-01-24 21:08:01.049
    *** MODULE NAME:(MyModule2) 2008-01-24 21:08:01.049
    ...Whilst obviously not extensive, I think this is the expected result...
    - Mark
    EDIT:
    Just to be clear... this feature works with previous releases of the database; however, there are other features exposed via ODP.NET (or available to ODP.NET) such as the client side cache which will not work with previous releases. Possibly being pedantic, but thought it might be a good idea to state that anyway.
    - Mark

  • How to autenticate against database using OPS logon

    Hi,
    is there a possibility to authenticate a forms
    application against database using
    operating system (W2K - domain) logon directly,
    without any SSO (SSO and LDAP)?
    What are the requisites i need?
    Thanks in advance,
    Robert
    mailto: [email protected]

    Robert
    as far as I know, for Forms on the Web there isn't yet a way to do this. In the upcoming release Oracle 10G Forms (9.0.4) and Oracle Application Server 10G OID can be used to authenticate against Windows domains. This way you could use SSO for what you want. I am saying this carefully because I didn't tried it but took it from the OID specs.
    Frank

  • Failure to validate the database credentials during install

    Hi all,
    I am trying to install BO SP3 on XP SP3 and installed db2(DB2 v9.1.200.166) successfully but during the installation process of BO when i select the existing CMS db2 ,
    I am getting this error "Failure to validate the database credentials has a potntial to crash the database ata a lter stage. Enter the correct information."
    CMS Database Error: STW00226.
    And plz help what i have to give for server i had given "db2" is this correct? (I had created the database in db2 as CMS and give as server CMS)
    Please help me with solution?
    Regards,
    Neni
    Edited by: swaroop v on Feb 7, 2012 12:35 PM

    I have created the table successfully.
    The  command completed successfully.
    Explanation:
    No errors were encountered during the execution of this
    command. 
    User Response:
    No action required. 
    Please help me where i need to check "default tablespace set in the DB you're connecting to.
    Check if there are any restrictions on the DB and page file."
    I have find the SAP Note for UNIX,but i am installing on XP
    SAP Knowledge Base Article     Printer-Friendly Version | Quick link
          1613486 - Error: "Failure to validate the database credential has a potential to crash the database at a later stage. Enter the correct information. (STU00104)" while installing BOE XI 3.1 on UNIX environment.     
    Regards,
    Neni
    Edited by: swaroop v on Feb 7, 2012 6:42 PM
    Edited by: swaroop v on Feb 7, 2012 6:44 PM

  • Can't get XMLto validate against a schema.

    I can't get an XML file to validate against a schema. I'm not sure if the problem is in my schema, XML file, or Java code.
    Here is the schema:
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:element name="TerraFrame">
         <xs:complexType>
             <xs:element name="connection" minOccurs="1" maxOccurs="unbounded">
              <xs:complexType>
                  <xs:sequence>
                        <xs:element name="label" type="xs:string"/>
                        <xs:element name="type" type="xs:string"/>
                        <xs:element name="address" type="xs:string"/>
                  </xs:sequence>
              </xs:complexType>
             </xs:element>
         </xs:complexType>
        </xs:element>
    </xs:schema>Here is the XML file:
    <?xml version="1.0"?>
    <TerraFrame xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <!-- default connection -->
         <connection>
             <label>default</label>
             <type>JavaProxy</type>
             <address></address>
         </connection>
         <!-- default RMI connection -->
         <connection>
             <label>rmi_default</label>
             <type>RMIProxy</type>
             <address>//localhost/RemoteControllerService</address>
         </connection>
         <!-- default Web Service connection -->
         <connection>
             <label>web_service_default</label>
             <type>WebServiceProxy</type>
             <address>http://localhost/</address>
         </connection>
         <!-- default Java connection -->
         <connection>
             <label>java_default</label>
             <type>JavaProxy</type>
             <address></address>
         </connection>
    </TerraFrame>And finally, here is the code snippit where I'm validating:
    [EDIT:] The constants CONNECTIONS_XML_FILE and CONNECTIONS_SCHEMA_FILE just point to the XML and schema files, respectively. I have verified that these paths are correct and working.
    static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
      static final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
      static final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource";
    public void parse()
       DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        factory.setValidating(true);
        factory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
        factory.setAttribute(JAXP_SCHEMA_SOURCE, new File(CONNECTIONS_SCHEMA_FILE));
        DocumentBuilder builder;
        try
          builder = factory.newDocumentBuilder();
          builder.setErrorHandler(new XMLConnectionsErrorHandler());
          document = builder.parse(new File(CONNECTIONS_XML_FILE));
    }Any clue as to why this is failing with the following error?:
    The content of '#AnonType_TerraFrame' is invalid.  Element 'element' is invalid, misplaced, or occurs too often.Message was edited by:
    sadpanda

    I can't get an XML file to validate against a schema. I'm not sure if the problem is in my schema, XML file, or Java code.
    Here is the schema:
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:element name="TerraFrame">
         <xs:complexType>
             <xs:element name="connection" minOccurs="1" maxOccurs="unbounded">
              <xs:complexType>
                  <xs:sequence>
                        <xs:element name="label" type="xs:string"/>
                        <xs:element name="type" type="xs:string"/>
                        <xs:element name="address" type="xs:string"/>
                  </xs:sequence>
              </xs:complexType>
             </xs:element>
         </xs:complexType>
        </xs:element>
    </xs:schema>Here is the XML file:
    <?xml version="1.0"?>
    <TerraFrame xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <!-- default connection -->
         <connection>
             <label>default</label>
             <type>JavaProxy</type>
             <address></address>
         </connection>
         <!-- default RMI connection -->
         <connection>
             <label>rmi_default</label>
             <type>RMIProxy</type>
             <address>//localhost/RemoteControllerService</address>
         </connection>
         <!-- default Web Service connection -->
         <connection>
             <label>web_service_default</label>
             <type>WebServiceProxy</type>
             <address>http://localhost/</address>
         </connection>
         <!-- default Java connection -->
         <connection>
             <label>java_default</label>
             <type>JavaProxy</type>
             <address></address>
         </connection>
    </TerraFrame>And finally, here is the code snippit where I'm validating:
    [EDIT:] The constants CONNECTIONS_XML_FILE and CONNECTIONS_SCHEMA_FILE just point to the XML and schema files, respectively. I have verified that these paths are correct and working.
    static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
      static final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
      static final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource";
    public void parse()
       DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        factory.setValidating(true);
        factory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
        factory.setAttribute(JAXP_SCHEMA_SOURCE, new File(CONNECTIONS_SCHEMA_FILE));
        DocumentBuilder builder;
        try
          builder = factory.newDocumentBuilder();
          builder.setErrorHandler(new XMLConnectionsErrorHandler());
          document = builder.parse(new File(CONNECTIONS_XML_FILE));
    }Any clue as to why this is failing with the following error?:
    The content of '#AnonType_TerraFrame' is invalid.  Element 'element' is invalid, misplaced, or occurs too often.Message was edited by:
    sadpanda

  • Unable to validate DFM database

    Hi Team,
    I Have a LMS 3.1 on Solaris 10, I have a some problems, from the origin DFM. When I try Backup this say me :
    [Mon Dec 14 12:39:12 2009]  ERROR(969): Fatal error: Could not connect to engine 'dfmFhEng' on 'dfmFhDb' in Bulk mode. Check user id and passwords.
    [Mon Dec 14 12:39:12 2009]  Backup failed: 2009/12/14 12:39:12
    I try Validate the database:
    /opt/CSCOpx/bin/perl ./configureDb.pl action=validate dsn=dfmFh 
    SQL Anywhere Command File Hiding Utility Version 10.0.1.3694
    SQL Anywhere Validation Utility Version 10.0.1.3694
    SQL error (-816) -- Specified database file already in use
    SQL error (-816) -- Specified database file already in use
    ERROR: [StandardDbUpgrade] Validation of dfmFh database failed
    I try the change password or Recreate my Database DFMFH, but I can not make this
    Can some one help me?

    Hi Nael,
    Thanks for your time,
    My problem is because I can not make a Backup, and Faul History is fail. In the log for Backup here a message:
    Starting database engine dfmFhEng
    SQL Anywhere Command File Hiding Utility Version 10.0.1.3694
    Communication error
    ERROR(969): Fatal error: Could not connect to engine 'dfmFhEng' on 'dfmFhDb' in Bulk mode. Check user id and passwords.
    Backup failed: 2009/12/17 19:40:14
    Inclusive when I try down the daemon, here a error:
    /etc/init.d # ./dmgtd stop
    Daemon Management stopping. This may take a few minutes.
    INFO : Stopping DBEngine processes registered to Daemon Manager
    WARNING: Daemon Manager could not stop DBEngine processes.
    WARNING: Please run the command "/opt/CSCOpx/bin/dbstop.pl all"
    WARNING: to stop DBEngine processes manually.
    I try dbstop and this is "successfull" apparently. I say apparently because I try apply a patch for DFM and I can not make this because this say me that Daemon Manager can not stop.
    I apply the command that you say me, and this is tha result:
    uxm910v5:/opt/CSCOpx/bin # ps -ef | grep CSCOpx
    root 13263 29143 0 Dec 17 ? 0:00 /opt/CSCOpx/objects/smarts/bin/system/sm_logerror 133
    root 13283 13281 0 Dec 17 ? 0:00 /opt/CSCOpx/objects/smarts/bin/system/sm_logerror 131
    root 13278 13272 0 Dec 17 ? 0:00 /opt/CSCOpx/objects/smarts/bin/system/sm_logerror 131
    root 13264 29143 0 Dec 17 ? 0:00 /opt/CSCOpx/objects/smarts/bin/system/sm_logerror 133
    root 13272 13270 0 Dec 17 ? 0:00 /opt/CSCOpx/objects/smarts/bin/system/sm_authority
    casuser 2595 29143 0 Dec 17 ? 15:04 /opt/CSCOpx/objects/db/bin64/dbsrv10 -x tcpip{HOST=localhost;DOBROADCAST=NO;Ser
    root 4014 8847 0 11:26:31 pts/10 0:00 grep CSCOpx
    root 13281 13280 0 Dec 17 ? 0:00 /opt/CSCOpx/objects/smarts/bin/system/sm_authority
    I do not know how use PID to kill the process, can you say me how use PID
    The self test: is not for login in to CWLMS, the user and pwd is for dfmFh Database :
    database.pl
    FAIL Self Test Fail to query dfmFh.DbVersion, Error: Invalid user ID or password (DBD: login failed)
    Self Test Fail to query dfmFh.SYSTABLE, Error: Invalid user ID or password (DBD: login failed)
    I try restore the database for dfmFh, but I can not make this can not change the password.
    Thanks
    Mario Cerrillos García
    Internetworking
    NextiraOne Mexico S.A de C.V

  • Find the current sql which is running against database

    Hi,
    How to find out the current sql which is running against database?

    Hi,
    You can use V$SESSION_LONG_OPS and V$SQL to get the long running(6 seconds or above) queries. You need to join these two views to get the SQL text.
    V$SESSION_LONGOPS : Will give you the long running SQL ID.
    V$SQL : Will give you the text of query against the SQL ID.
    Refere the below link for more details:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2092.htm#REFRN30227
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2113.htm#REFRN30246
    Cheers,

  • Domain trying to validate against an incorrect server

    Hi Guys,
    I have a hosted exhcange cluster that has many many many domains all administered by a DC where each domain is an OU under a main OU called Hosting.
    For some reason, a few mailboxes of a certain OU (not all the mailboxes) are tryong to validate against the domain associated with that OU. Meaning that if for example, The people in that OU has a domain called abcd.com and my mailserver is myexchange.com,
    Those specific mailboxes are triying to connect to abcd.com and not to the mail server. I can't think of anything that might cause such a bizzare error. Any ideas?

    Still I think, I need more info/not able to understand the real issue :)
    1. Are you facing the autoconfiguration issue for other mailboxes also?
    2. Do you have Outlook anywhere enabled? If so, do an outlook connectivity test through
    www.testconnectivity.Microsoft.com
    3. if the domain name selection box is grayed out, still you can enter the name like domainname\username and password
    Regards from Visit ExchangeOnline |
    Visit WindowsAdmin
    1) No, only some mailboxes on this specific domain.
    2) The connectivity test passed succesfully
    3) It shoudln't be connecting to a domain to begin with, it lists their domain as the server it tries to connect to! it should be connecting to the exchange server and no the client's FQDN.

  • Validate input value against database

    Is it possible to check the value of an input field (regular input, not cfinput) against a database to check for duplicate values?

    Probably.

  • Query faild against database that is opened in read only mode

    ORA-16000: database open for read-only access
    Hi ,
    I am quering against a database that been opened in read only mode (10g version)
    SQL> select controlfile_type,open_mode,database_role from v$database;
    CONTROLFILE_TYPE OPEN_MODE DATABASE_ROLE
    STANDBY READ ONLY PHYSICAL STANDBY
    Currently when selecting against this database
    i am getting the following error:
    SELECT PS_RF_PROVGRP_VW.SETID, PS_RF_PROVGRP_VW.PROVIDER_GRP_ID, PS_RF_PROVGRP_VW.NAME1,
    PS_RF_PROVGRP_VW.STATUS, PS_RF_PROVGRP_VW.SYNCID, PS_RF_PROVGRP_VW.SYNCDTTM
    FROM PS_RF_PROVGRP_VW
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-16000: database open for read-only access
    The owner of the object is PSSYS and i am running the queries as user INFORMIX.
    select owner,object_name,object_type from dba_objects where object_name ='PS_RF_PROVGRP_VW';
    OWNER OBJECT_NAME OBJECT_TYPE
    INFORMIX PS_RF_PROVGRP_VW SYNONYM
    PSSYS PS_RF_PROVGRP_VW VIEW
    User informix have "SELECT ANY TABLE" privilage
    In the source database (e.g: not the cloning one) the queries results are returning susseccfully ,
    and only in the clonning the database the problem exists.
    Does someone have an idea what the problem could be ?
    Thanks.

    Hi
    Object can become invalid, if the underlying objects are dropped/invalidated.
    So even if you create or validate the underlying objects these objects by themself do not become valid. You have to either make them valid or you should use it atleast one time as select/desc or any other query so that Oracle implicitly make it valid.
    Your source datatabase has valid synonym because after dropping/creating you must have selected that synonym atleast one, but this selection procedure would be after you copied your data to the target database.
    Regards

  • XML Data Source: does not seem to validate against XSD

    I setup XML data source using the example "b-c.xml" and "b-c.xsd"; I changed the
    root element of "b-c.xml" from "<db>" to "<Customers>"; but Liquid Data does not
    seem to care or validate the instance document against the XSD.
    Is this a known bug? It's something very basic and obvious!

    LD does indeed catch and report the mis-match at run-time as shown in the exception
    below.
    It does not valid the XML file against the schema at configuration time, only
    at run-time. Hence Step 8 here - http://edocs/liquiddata/docs81/admin/xml.html#1035818
    But beware - in some (most) cases LD does not do validation against the schema
    for performance reasons. If the schema does not match you will simply get empty
    results.
    - Mike
         java.rmi.RemoteException: Query Execution Error (Run Time) 1-2-3-24: Cannot process
    XML file source XM-BB-C. (com.enosysmarkets.xqdm.translators.XqdmTranslatorException:
    Invalid root element name: 'CUSTOMERS'. Expected: 'db')
    "David Song" <[email protected]> wrote:
    >
    I setup XML data source using the example "b-c.xml" and "b-c.xsd"; I
    changed the
    root element of "b-c.xml" from "<db>" to "<Customers>"; but Liquid Data
    does not
    seem to care or validate the instance document against the XSD.
    Is this a known bug? It's something very basic and obvious!

  • OSB: Dynamic XQuery & Dynamic Validate against resource

    Hi all,
    I've a proxy where I select a dynamic XQuery and I would like to validate the result against a given schema that is different depending on the selected dynamic xquery. The result of the dynamic XQuery is an xml resource that is valid against its own schema but I have different schemas.
    My routing table (a simple xquery resource) contains the dynamic XQuery to select and the schema to be used for validating the result from the xquery.
    I noticed that the validate action doesn't support the dynamic selection of a resource to use in a validate action.
    Before osb 10.3 (alsb 3.0) the dynamic XQuery selection was implemented putting each XQuery execution (along with the related validate action) in a given proxy and then I used the dynamic routing concept. Now I can 'remove' this extra 'proxy wrapping layer' for dynamic XQuery execution but not for the validation part ... having at the end a mixed approach that I don't like ...
    Do you have any suggestion ?
    regards
    ferp

    Another option is to have IF-ELSE conditions in the message flow but this would be very difficult to maintain, however it can be an effective solution if you have very limiited number (say 10-15) of XSD's/WSDL's. For large number of XSD's/WSDL's, java callout is the best option.
    Regards,
    Anuj

Maybe you are looking for

  • To view the report in Web

    Hi, I have created a report in Discoverer Viewer which had been created with the help of Discoverer Plus (Selected Oracle BI Discoverer from the drop-down list box & not OLAP). I wanted that report to be placed in the web so that across Internet anot

  • Need to decrease font in EHS form

    HI Experts, Need your help. We need to reduce font in our EHS WSC report which is being generated from a template. Here we are executing some z-report. That report uses WWI.INI file and then report opens in Microsoft word. I am not getting where to c

  • ITunes log file.. Does one exist?

    To cut a long story short, I want to know if there is a log file that tells you everything iTunes does to your iDevice. For example, when you're syncing and you see messages in the status area of iTunes, are these or a more detailed anything recorded

  • Why do I see code on startup and shut down?

    Hello everybody, I have a new iMac and for some reason when I boot up, or shut down, I can see a screen full of code. It looks like it is all the bootup information that the iMac is going through. I haven't seen this on other macs. Does anybody know

  • Planning login fails

    To all the planning gurus out there: We recently recovered our planning dbs from a backup, and we can login into wkspace, shared services but not into planning. I dropped all the system planning db tables (oracle) but still the issue remains. Any goo