You need to sign in to do that
Don't have an account?

common.page.PageInterruptException
Hey,
I keep getting this exception in the VF iframe whenever I try to redirect anywhere...
Content cannot be displayed: Exception common.page.PageInterruptException
The code that generates this is:
public PageReference appInit() { if(false) return null; // for now PageReference pageRef = Page.Login; pageRef.setRedirect(true); return pageRef; }
This method is called from here (on the VF page)
<apex:page language="en" StandardController="Account" showHeader="true" standardStylesheets="true" sidebar="false" extensions="StartupExtension,ZoomAccountExtension" action="{!appInit}">
Is I return null I stay on the same page and I do not get this exception but if I try to redirect no matter where I get this exception.
Any ideas? please help!!
-Assaf
It's a SF bug when you try to do redirect from <apex:page actions="someMethod"> which should be fixed soon from what I understood. There are a bunch of other people having this problem:
http://success.salesforce.com/questionDetail?qId=a1X30000000dHxVEAU
So basically the solution for now is basically to use Javascript
Here is a response from SF:
All Answers
Have you been able to fix this error yet? We are getting the same error with a VF page. I just submitted a message on the Visualforce board about it:
http://boards.developerforce.com/t5/Visualforce-Development/Visualforce-page-suddenly-displaying-an-error/td-p/453167
It's a SF bug when you try to do redirect from <apex:page actions="someMethod"> which should be fixed soon from what I understood. There are a bunch of other people having this problem:
http://success.salesforce.com/questionDetail?qId=a1X30000000dHxVEAU
So basically the solution for now is basically to use Javascript
Here is a response from SF:
That's very helpful. Thank you for sharing this information.