7 Replies Latest reply on Jan 12, 2010 12:53 PM by Joe ... Ward

    Cannot update my application to 1.5.3 namespace..

    milkSplash

      I just tried to update my 1.5.2 application to the new 1.5.3 namespace. It's a complete html/js only application. In order to properly update the application on client PCs, I added the publisherID tag to the application descriptor, just as mentioned in the release notes.

       

      Up from then, I cannot anymore start my application: starting the application from Aptana Studio using a 1.5.3 SDK I receive the following error:

      Error: EncryptedLocalStore may not use publisher IDs passed in from ADL
          at flash.data::EncryptedLocalStore$/processErrorCode()
          at flash.data::EncryptedLocalStore$/getItem()
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at <anonymous>()
          at Array$/_forEach()
          at Array/http://adobe.com/AS3/2006/builtin::forEach()
          at <anonymous>()
          at flash.utils::Timer/_timerDispatch()
          at flash.utils::Timer/tick()

       

      The line where this error is being thrown is:

      return air.EncryptedLocalStore.getItem(key);
      

       

      The error does not occur, when removing the publisherID-element from the application descriptor. However the problem is, that previous installations of my app cannot be updated without the publisherID element, since the publisherID in 1.5.3 would be different and the AIR installer does not detect the already existing installation.

       

      Does anyone have an idea, how to fix this?

       

      The application descriptor:

      <?xml version="1.0" encoding="utf-8" ?>
      <application xmlns="http://ns.adobe.com/air/application/1.5.3">
           <id>de.milksplash.mooter</id>
              <publisherID>20E64697B316A154B3F769FDBBD47E9FAEC70028.1</publisherID>
           <filename>mooter</filename>
           <name>mooter</name>
           <version>0.4.99 Stymphalian Bird</version>
              <copyright>Copyright (C) 2009-2010 milkSplash.de</copyright>
           <initialWindow>
              <content>html/app.html</content>
                <title>mooter</title>
              <systemChrome>none</systemChrome>
                <visible>false</visible>
                <minimizable>true</minimizable>
                <maximizable>false</maximizable>
                <resizable>true</resizable>
                <width>300</width>
                <height>350</height>
                <minSize>290 340</minSize>
           </initialWindow>
           <icon>
                <image16x16>icons/twitter_16.png</image16x16>
                <image32x32>icons/twitter_32.png</image32x32>
                <image48x48>icons/twitter_48.png</image48x48>
                <image128x128>icons/twitter_128.png</image128x128>
           </icon>
           <allowBrowserInvocation>true</allowBrowserInvocation>
      </application>
      
      
        • 1. Re: Cannot update my application to 1.5.3 namespace..
          hongbin.hao

          open Run->Run Configurations..., by default, you will see the tab of "Main" in the right side.

          At the bottom, make sure the section "Publisher ID:" is blank.

          Run your app again, it should be OK.

           

          I attached an image for your convenience.

           

          Hongbin

          1 person found this helpful
          • 2. Re: Cannot update my application to 1.5.3 namespace..
            milkSplash Level 1

            Thank you for your reply. Unfortunately this setting cannot be set in Aptana Studio :/

             

            However, this problem does not only occur when using adl. This issue also prevents my *INSTALLED* application from being run. It cancels with an error on launch.


            I don't have any clue why this isn't working..

            • 3. Re: Cannot update my application to 1.5.3 namespace..
              tedalde2

              Maybe you'll need separate application descriptors for testing your application and running your application; remove the publisherID in your local version of the app descriptor for testing since it seems to give you problems. If you want to update an installed/signed AIR file, then you'll need to follow the signature migration process for AIR 1.5.3... but it looks like you may have done that? Is your certificate still valid? What's the error that the app cancels with?

              • 4. Re: Cannot update my application to 1.5.3 namespace..
                Joe ... Ward Level 4

                I think there are two unrelated issues here. The EncryptedLocalStore error is only thrown when testing. I don't think it is related to the second error.

                 

                I ran into the same problem when first updating from 1.5.2. I uninstalled and reinstalled the runtime and this fixed the problem. We are continuing to investigate. What version of the runtime did you have installed before you updated it to 1.5.3? Did you install AIR 1.5.3 directly or was installed automatically when you installed a 1.5.3 app?

                 

                Thanks,

                Joe

                • 5. Re: Cannot update my application to 1.5.3 namespace..
                  milkSplash Level 1

                  I'm currently at work and don't have access to my test environment for this issue..

                   

                  I think I updated from 1.5.2, but don't know exactly if the runtime update had been caused by an application update. Will check this again as soon as I am at home.

                   

                  But generally there also seems to be a problem in Aptana Studio: having the publisher ID set in the XML won't debug-start my app, so I always have to add the pub id elem before building a release which is quite annoying. But that's another point and is not part of the Adobe forum

                  • 6. Re: Cannot update my application to 1.5.3 namespace..
                    Joe ... Ward Level 4

                    I don't think debug problem is Aptana's fault. Originally, you couldn't use the -pubID argument when debugging when the EncryptedLocalStore is used. It seems that check wasn't properly removed when the <publisherID> tag was added in AIR 1.5.3.

                     

                    As to the app launch issue, we have seen problems running 1.5.3 apps when the 2.0 beta runtime is installed. This is because the beta was released before 1.5.3 and doesn't contain the 1.5.3 changes.

                    • 7. Re: Cannot update my application to 1.5.3 namespace..
                      Joe ... Ward Level 4

                      Milksplash,

                       

                      Where you able to determine which version of the AIR runtime you started with?

                       

                      Thanks,

                      Joe