I am working with lightning. This is first time I am trying it out. I have create a app, apex controller and js controller. I am just trying to get some information form my accounts and want to display it. But I when I try to check the preview the page I am getting error that

URL No Longer Exists

Manage Package name in : focDMO1

My URL looks like this: https://ap2.lightning.force.com/focDMO1/NewLight.app


 <aura:application controller="focDMO1.AccountComponentController">
     <aura:handler name="init" value="{!this}" action="{!c.doInit}" />
     <aura:attribute name="accLst" type="focDMO1.Account[]"/>


doInit : function(component, event, helper) {

apex controller

/*Light new  */
public class AccountComponentController {
   public static List<Account> getAccountInfo() {
       return [SELECT BillingState From Account Limit 20] ;


getAccountInfo : function(component) {
    var action = component.get("c.getAccountInfo");
    var that = this;
    action.setCallback(this,function(a) {

Please help me out what is getting wrong in this.

  • do you have the helper function defined ? Commented Jul 28, 2015 at 10:01
  • @VamsiKrishna I have updated my question, please check.
    – Anu
    Commented Jul 28, 2015 at 10:13
  • u r missing the component parameter in the helper function. Commented Jul 28, 2015 at 10:16
  • @VamsiKrishna yes but after adding parameter component to the helper function getting the same issue.
    – Anu
    Commented Jul 28, 2015 at 10:19
  • @VamsiKrishna I am trying to get preview from developer console. Do I need to use Lightning app Builder with this. Do you think I am missing out anything. Anything which I need to update in profile.
    – Anu
    Commented Jul 28, 2015 at 11:36

1 Answer 1


From Lightning Components Developer Guide; "Mark your resources with access="global" to make the resource usable outside of your own org; for example, if you want the resource to be usable in an installed package or by a Lightning App Builder user or a Community Builder user in another org."

So, please add GLOBAL access modifier to your app like; aura:application access="GLOBAL" controller="focDMO1.AccountComponentController"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .