• cnair1.3929332235576116E12
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi All,
 
    I am getting OutOfmemory:JavaHeap Size error on Windows while fetching apex classes and a few custom classe in eclipse.I increased the heap size to 1024m in eclipse.ini but still getting error. 

Thanks,

I am getting a null pointer exception on line 23 column 1  ( highlighed in bold in the below code). I am trying to migrate a visualforce page controller and a test class into production. I am not sure what needs to be fixed. 

@isTest
public class CS_NewQuoteRequestFromRepeater_test{

    static testMethod void quoteRequestCreationTest(){
        Repeater__c testRepeater = new Repeater__c();
        insert testRepeater;
       
        Opportunity opp = new Opportunity();
        opp.Name = 'Test Opportunity';
        opp.StageName = 'Prospect';
        opp.CloseDate = System.today();
        insert opp;
       
        Oracle_Ship_To_Account__c oa = new Oracle_Ship_To_Account__c();
        oa.Customer_Name__c = 'Test Oracle Customer';
//added by ckn to troubleshoot deployment issues
        oa.ADDRESSID_CONTACT_ID__c ='12345';
        insert oa;
       
        ApexPages.Pagereference vfPage = Page.NewQuoteRequestFromRepeater2Step;
        Test.setCurrentPage(vfPage);
        ApexPages.currentPage().getParameters().put('repeaterID', testRepeater.Id);
       
        CS_NewQuoteRequestFromRepeater2StepCC controller = new CS_NewQuoteRequestFromRepeater2StepCC();
        controller.QuoteRequest.Oracle_Ship_To_Account_c__c = oa.Id;

        controller.QuoteRequest.Quote_Name__c = 'Test Quote';
        controller.QuoteRequest.Opportunity__c = opp.Id;
       
        //return url test
        system.assertEquals(controller.getReturnUrl(), '/' + testRepeater.Id);
       
        try{
            ApexPages.Pagereference saveRedirectPage = controller.save();
            system.debug(saveRedirectPage.getUrl());
        }catch(Exception e){
            //system.assert(false);
        }
    }
}
Hi All,
 
    I am getting OutOfmemory:JavaHeap Size error on Windows while fetching apex classes and a few custom classe in eclipse.I increased the heap size to 1024m in eclipse.ini but still getting error. 

Thanks,

I am getting a null pointer exception on line 23 column 1  ( highlighed in bold in the below code). I am trying to migrate a visualforce page controller and a test class into production. I am not sure what needs to be fixed. 

@isTest
public class CS_NewQuoteRequestFromRepeater_test{

    static testMethod void quoteRequestCreationTest(){
        Repeater__c testRepeater = new Repeater__c();
        insert testRepeater;
       
        Opportunity opp = new Opportunity();
        opp.Name = 'Test Opportunity';
        opp.StageName = 'Prospect';
        opp.CloseDate = System.today();
        insert opp;
       
        Oracle_Ship_To_Account__c oa = new Oracle_Ship_To_Account__c();
        oa.Customer_Name__c = 'Test Oracle Customer';
//added by ckn to troubleshoot deployment issues
        oa.ADDRESSID_CONTACT_ID__c ='12345';
        insert oa;
       
        ApexPages.Pagereference vfPage = Page.NewQuoteRequestFromRepeater2Step;
        Test.setCurrentPage(vfPage);
        ApexPages.currentPage().getParameters().put('repeaterID', testRepeater.Id);
       
        CS_NewQuoteRequestFromRepeater2StepCC controller = new CS_NewQuoteRequestFromRepeater2StepCC();
        controller.QuoteRequest.Oracle_Ship_To_Account_c__c = oa.Id;

        controller.QuoteRequest.Quote_Name__c = 'Test Quote';
        controller.QuoteRequest.Opportunity__c = opp.Id;
       
        //return url test
        system.assertEquals(controller.getReturnUrl(), '/' + testRepeater.Id);
       
        try{
            ApexPages.Pagereference saveRedirectPage = controller.save();
            system.debug(saveRedirectPage.getUrl());
        }catch(Exception e){
            //system.assert(false);
        }
    }
}