+ Start a Discussion
danlatdanlat 

All Test failing in Force.com IDE

 

Hi All,

 

Suddenly, all my tests are failing when I do Force.com > Run Tests.

 

They are throwing an ApexPagesGenericException but I do not know why.

 

I have not made any changes and all tests ran fine yesterday? Tests are even failing on a class I have not worked on for ages?


I can save filles however so I do not think it is a Security Token problem, and the tests run fine from my Sandbox. please see log below:(chopped down a lot but does show exception thrown) 

 

 

Debug Log:



15:09:16.671|CUMULATIVE_LIMIT_USAGE_END

15:09:16.671|CODE_UNIT_FINISHED
15:09:16.671|EXECUTION_FINISHED
15:09:16.673|EXECUTION_STARTED
15:09:16.673|CODE_UNIT_STARTED|[EXTERNAL]L4LControllerExtensionOppTestMethods.testGenerateAndAttachCoverLetters
15:09:16.674|DML_BEGIN|[95,9]|Op:Insert|Type:Opportunity|Rows:1
15:09:16.721|CODE_UNIT_STARTED|[EXTERNAL]Validation:Opportunity:null
15:09:16.721|VALIDATION_RULE|Legal_Services_Step_3_ENG_and_SCO
15:09:16.721|VALIDATION_FORMULA|AND(( Possession_order__c )=false , OR(ISPICKVAL(Service__c , "Tenant eviction-step 3"), ISPICKVAL(Service__c , "Scotland eviction step 3")) )|Possession_order__c=0 , Service__c=null
15:09:16.721|VALIDATION_PASS
15:09:16.721|CODE_UNIT_FINISHED
15:09:16.848|CODE_UNIT_STARTED|[EXTERNAL]Workflow:Opportunity
15:09:16.997|WF_RULE_EVAL_BEGIN|Assignment
15:09:16.997|WF_RULE_EVAL_BEGIN|Response
15:09:16.997|WF_RULE_EVAL_BEGIN|Workflow
15:09:16.997|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Landlord Grants|01Q200000006XXo|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.053|WF_RULE_FILTER|[Opportunity : Type equals Landlords Grants]
15:09:17.053|WF_RULE_EVAL_VALUE|null
15:09:17.053|WF_CRITERIA_END|false
15:09:17.053|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Debt Management|01Q200000006XXL|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.053|WF_RULE_FILTER|[Opportunity : Type equals Debt Management]
15:09:17.053|WF_RULE_EVAL_VALUE|null
15:09:17.053|WF_CRITERIA_END|false
15:09:17.053|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Guarantees|01Q200000006cWO|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.053|WF_RULE_FILTER|[Opportunity : Type equals Guarantees]
15:09:17.053|WF_RULE_EVAL_VALUE|null
15:09:17.053|WF_CRITERIA_END|false
15:09:17.053|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Commercial|01Q200000006XXZ|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.053|WF_RULE_FILTER|[Opportunity : Type equals Commercial Evictions]
15:09:17.053|WF_RULE_EVAL_VALUE|null
15:09:17.053|WF_CRITERIA_END|false
15:09:17.053|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Tenants Contents Insurance|01Q200000006XXt|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.053|WF_RULE_FILTER|[Opportunity : Type equals Tenants Contents Insurance]
15:09:17.053|WF_RULE_EVAL_VALUE|null
15:09:17.053|WF_CRITERIA_END|false
15:09:17.053|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Tenant referencing Basic Opp|01Q20000000LP1m|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.054|WF_RULE_FILTER|[Opportunity : Type equals Tenant Referencing Basic]
15:09:17.054|WF_RULE_EVAL_VALUE|null
15:09:17.054|WF_CRITERIA_END|false
15:09:17.054|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Basic|01Q200000006XXP|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.054|WF_RULE_FILTER|[Opportunity : Type equals Basic Layout]
15:09:17.054|WF_RULE_EVAL_VALUE|null
15:09:17.054|WF_CRITERIA_END|false
15:09:17.054|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Tenant Referencing|01Q200000006XXp|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.054|WF_RULE_FILTER|[Opportunity : Type equals Tenant referencing]
15:09:17.054|WF_RULE_EVAL_VALUE|null
15:09:17.054|WF_CRITERIA_END|false
15:09:17.054|WF_SPOOL_ACTION_BEGIN|Workflow
15:09:17.054|WF_ACTION|: None
15:09:17.054|WF_RULE_EVAL_BEGIN|Escalation
15:09:17.054|WF_RULE_EVAL_END
15:09:17.054|WF_TIME_TRIGGERS_BEGIN
15:09:17.058|WF_ACTIONS_END| None
15:09:17.058|CODE_UNIT_FINISHED
15:09:17.058|DML_END|[95,9]|
15:09:17.058|SOQL_EXECUTE_BEGIN|[96,27]|Aggregations:0|SELECT Name FROM Opportunity WHERE Id = :o.Id
15:09:17.069|SOQL_EXECUTE_END|[96,27]|Rows:1|Duration:11
15:09:17.217|EXCEPTION_THROWN|[271,18]|System.VisualforceException: core.apexpages.exceptions.ApexPagesGenericException:
15:09:17.217|FATAL_ERROR|System.VisualforceException: core.apexpages.exceptions.ApexPagesGenericException:

Class.L4LControllerExtensionOpp.attachCoverLettersToOpp: line 271, column 18
Class.L4LControllerExtensionOppTestMethods.testGenerateAndAttachCoverLetters: line 99, column 9
External entry point
15:09:17.217|CUMULATIVE_LIMIT_USAGE
15:09:17.217|LIMIT_USAGE_FOR_NS|(default)|
Number of SOQL queries: 1 out of 100
Number of query rows: 1 out of 500
Number of SOSL queries: 0 out of 20
Number of DML statements: 1 out of 100
Number of DML rows: 1 out of 500
Number of script statements: 37 out of 200000
Maximum heap size: 0 out of 1000000
Number of callouts: 0 out of 10
Number of Email Invocations: 0 out of 10
Number of fields describes: 0 out of 10
Number of record type describes: 0 out of 10
Number of child relationships describes: 0 out of 10
Number of picklist describes: 0 out of 10
Number of future calls: 0 out of 10
Number of find similar calls: 0 out of 10
Number of System.runAs() invocations: 0 out of 20

15:09:17.217|CUMULATIVE_LIMIT_USAGE_END

 

 

Thanks for any help.

Message Edited by danlat on 01-25-2010 07:19 AM
Message Edited by danlat on 01-25-2010 07:21 AM
danlatdanlat

Hi,

 

Just an update on the above.

 

The "Deploy To Server" option works fine so could this be a bug?

 

Thanks