• jhughey
  • NEWBIE
  • 30 Points
  • Member since 2010

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

I am using the latest version of the Force.com IDE 64-bit for Windows.  Every time I attempt to edit a page the application locks and will not respond.  Here is a dump of the log file.  This is a vanilla install straight from Force.com.

 

!ENTRY com.salesforce.ide.core 0 0 2010-06-16 08:00:39.807!MESSAGE DEBUG [2010-06-16 08:00:39,807] (ComponentFactory.java:getCompositeComponentFromFile:1037) - Loaded ApexPage 'pages/StoreFront.page' [unpackaged] from file 'StoreFront.page'

!ENTRY com.salesforce.ide.core 0 0 2010-06-16 08:00:39.808!MESSAGE DEBUG [2010-06-16 08:00:39,808] (BaseComponentMultiPageEditorPart.java:setInput:118) - Set metadata editor input from source file 'StoreFront.page-meta.xml'

!ENTRY com.salesforce.ide.core 0 0 2010-06-16 08:00:39.809!MESSAGE DEBUG [2010-06-16 08:00:39,808] (BaseComponentMultiPageEditorPart.java:setInput:139) - Opening ApexPage 'pages/StoreFront.page' [unpackaged] from file 'StoreFront.page'

!ENTRY org.eclipse.wst.validation 4 0 2010-06-16 08:00:47.603!MESSAGE IWAE0017E Cannot create validator org.eclipse.wst.common.componentcore.internal.ModuleCoreValidator because a Throwable was caught.
!ENTRY org.eclipse.wst.validation 4 0 2010-06-16 08:00:47.603!MESSAGE Plug-in org.eclipse.wst.common.modulecore was unable to load class org.eclipse.wst.common.componentcore.internal.ModuleCoreValidator.
!ENTRY org.eclipse.ui 4 0 2010-06-16 08:00:48.308!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.core.jobs 4 2 2010-06-16 08:00:49.371!MESSAGE An internal error occurred during: "Processing Dirty Regions".

 

I am using the latest version of the Force.com IDE 64-bit for Windows.  Every time I attempt to edit a page the application locks and will not respond.  Here is a dump of the log file.  This is a vanilla install straight from Force.com.

 

!ENTRY com.salesforce.ide.core 0 0 2010-06-16 08:00:39.807!MESSAGE DEBUG [2010-06-16 08:00:39,807] (ComponentFactory.java:getCompositeComponentFromFile:1037) - Loaded ApexPage 'pages/StoreFront.page' [unpackaged] from file 'StoreFront.page'

!ENTRY com.salesforce.ide.core 0 0 2010-06-16 08:00:39.808!MESSAGE DEBUG [2010-06-16 08:00:39,808] (BaseComponentMultiPageEditorPart.java:setInput:118) - Set metadata editor input from source file 'StoreFront.page-meta.xml'

!ENTRY com.salesforce.ide.core 0 0 2010-06-16 08:00:39.809!MESSAGE DEBUG [2010-06-16 08:00:39,808] (BaseComponentMultiPageEditorPart.java:setInput:139) - Opening ApexPage 'pages/StoreFront.page' [unpackaged] from file 'StoreFront.page'

!ENTRY org.eclipse.wst.validation 4 0 2010-06-16 08:00:47.603!MESSAGE IWAE0017E Cannot create validator org.eclipse.wst.common.componentcore.internal.ModuleCoreValidator because a Throwable was caught.
!ENTRY org.eclipse.wst.validation 4 0 2010-06-16 08:00:47.603!MESSAGE Plug-in org.eclipse.wst.common.modulecore was unable to load class org.eclipse.wst.common.componentcore.internal.ModuleCoreValidator.
!ENTRY org.eclipse.ui 4 0 2010-06-16 08:00:48.308!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.core.jobs 4 2 2010-06-16 08:00:49.371!MESSAGE An internal error occurred during: "Processing Dirty Regions".

 

This is driving me mad. I have a vf "contacts" page in which I have created a very simple validation rule.

 

 

$RecordType.Name = "Oxford University Applicant" && NOT(RIGHT( Email , 9) = ".ox.ac.uk")

 

 I am using the standard controller for the contacts object with an apex controller extension to allow me to add data into other objects in the sf database.

 

My issue is that  the visulaforce does not acknowledge the validation rule on insert and instead of receiving a friendly error message to the vf page "sorry you must enter a correctly formatted email address" I receive an error via email. With the following message: FIELD_CUSTOM_VALIDATION_EXCEPTION.

 

Can I capture this error message? If so how? Looking at the documentation I tried this:

 

Contact.RecordTypeId = contactrecordtypeid; try { insert Contact; } catch (DmlException de){ System.debug('Data exception:'+ de.getMessage());} catch (Exception e) { System.debug('General exception:'+ e.getMessage()); }

 

 Which appears to stop me recieving the error via email but does not stop the execution of the rest of the code or return a error message to the vf tag <apex:pageMessages /> as expected?

 

Or do I have to write some apex code that does exacly the same thing as the validation code in which case how do I check that the last 9 charcters in apex are the same as the email prefix required?

 

Thanks 

 

 

Angus