• Scream
  • NEWBIE
  • 25 Points
  • Member since 2010

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

I just completed a pretty good sized project in my sandbox.  I had been running tests individually but I thought I'd try the "Run All Tests" button to see if anything pops up.  5 hours later it has not finished.  This is my second try.  BTW, I have about 700k of code, 35% full.

 

It's not a huge deal, I think everything is good.  It would just be nice to see some confirmation after spending all this time on those required test cases.

 

Anyone else experienced this?

The Winter 12 release notes, and this page (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_gov_limits.htm) describe a new "enhancement"

 

"A new restriction is now enforced on the start method of Batch Apex. Only one batch Apex job's start method can run at a time in an organization"

 

Can anybody explain what that actually means? It sounds like it means that there can only be one batch job active at a time, but the same page also says "Up to five queued or active batch jobs are allowed for Apex.", which seems like a contradiction.

 

Can anybody confirm?

 

Thanks

Kerry

 

 

 

 

  • September 11, 2011
  • Like
  • 0

The Winter 12 release notes, and this page (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_gov_limits.htm) describe a new "enhancement"

 

"A new restriction is now enforced on the start method of Batch Apex. Only one batch Apex job's start method can run at a time in an organization"

 

Can anybody explain what that actually means? It sounds like it means that there can only be one batch job active at a time, but the same page also says "Up to five queued or active batch jobs are allowed for Apex.", which seems like a contradiction.

 

Can anybody confirm?

 

Thanks

Kerry

 

 

 

 

  • September 11, 2011
  • Like
  • 0

I just completed a pretty good sized project in my sandbox.  I had been running tests individually but I thought I'd try the "Run All Tests" button to see if anything pops up.  5 hours later it has not finished.  This is my second try.  BTW, I have about 700k of code, 35% full.

 

It's not a huge deal, I think everything is good.  It would just be nice to see some confirmation after spending all this time on those required test cases.

 

Anyone else experienced this?

Hi All, I have a webservice written in APEX which returns a complex object. This complext object is a List of Object which itself has another list of object. we can say 2D arrays.

 

While i am trying to consume it from a Java client it throws this error: 

 

"Circular Object Graph detected during serialization, you can not have circular object references in an Apex WebService response."

 

My class is: 

 

 

global class SampleService
{
    global class  ObjectFieldInformation
    {
        WebService Integer fieldSerialNumber;
    }
	
    global class  ObjectInformation
    {
        WebService List<ObjectFieldInformation> objectFieldInformationList;
    }
   
    
    global class CallsResponse
    {
        WebService List<ObjectInformation> callList;
        WebService String something;
    }

    WebService static CallsResponse getComplexObjects()
    {
    	FindCallsResponse  response = new FindCallsResponse();
        
        List<ObjectInformation> responseCallList =  new List<ObjectInformation>();
        ObjectFieldInformation objResultFieldInfo;
        ObjectInformation objCallInfo = new ObjectInformation();
        
        for(Integer i=0;i<5;i++)
        {	
               	List<ObjectFieldInformation> callData = new List<ObjectFieldInformation>();
		        for(Integer j=0;j<5;j++)
		        {	
	        		objResultFieldInfo = new ObjectFieldInformation();
		                callData.add(objResultFieldInfo);
		    	}
		    	
	        objCallInfo.objectFieldInformationList = callData;
	        responseCallList.add(objCallInfo);
        }	
    	 response.callList = responseCallList;
    	 return response;
    }
}

Please advise.

/G