4 Replies Latest reply on Mar 29, 2008 9:21 AM by shapeworks

    adt error 301

    shapeworks Level 1
      Hi,

      am new in this AIR thing nad I have following problem:
      ip-89-103-132-47:~/Documents/projectAIR/AIRHelloWorld goddard$ adt -package -storetype pkcs12 -keystore src/air.pfx -keypass password -tsa none AIRHelloWorld.air src/HelloWorld.xml src/AIRHelloWorld.html src/AIRAliases.js
      password: password
      /Users/goddard/Documents/projectAIR/AIRHelloWorld/src/HelloWorld.xml: error 301: Application descriptor missing/cannot be opened

      Based on this, I changed rights on app descriptor:
      ip-89-103-132-47:~/Documents/projectAIR/AIRHelloWorld goddard$ ls -latr src
      total 48
      -r--r--r-- 1 goddard goddard 9710 Feb 9 01:16 AIRAliases.js
      -rw-r--r-- 1 goddard goddard 278 Mar 22 17:44 AIRHelloWorld.html
      -rw-r--r-- 1 goddard goddard 1714 Mar 29 01:26 air.pfx
      -rwxrwxrwx 1 goddard goddard 368 Mar 29 02:15 HelloWorld.xml
      drwxr-xr-x 6 goddard goddard 204 Mar 29 02:54 .
      drwxr-xr-x 3 goddard goddard 102 Mar 29 02:56 ..

      But nothing changed so far. My system is Mac OS X 10.4.11
      Has anyone similar experience?
        • 1. Re: adt error 301
          Tones411 Level 1
          The only thing I can think of is to make doubly sure that the "HelloWorld.xml" file is really called "HelloWorld.xml" and that it is really in that directory.
          • 2. Re: adt error 301
            shapeworks Level 1
            It's there and it's named like it should. ADL can launch the application:
            ip-89-103-132-47:~/Documents/projectAIR/AIRHelloWorld goddard$ adl src/HelloWorld.xml
            Hello World
            (displays an app window)

            And that REALLY makes me wonder why one tool can read it, and another cannot. Anyone from Adobe can explain it?
            • 3. Re: adt error 301
              Oliver Goldman Adobe Employee
              Two other things that might impact this are:

              1) The version of Java you're using, since adt is implemented in Java. A bug or misconfiguration in the Java XML parser might cause this error. Does this problem happen just with this one application, or with all applications you've tried?

              2) A subtle problem in the application descriptor file that trips up ADT but not ADL. Can you post your descriptor file?

              Oliver Goldman | Adobe AIR Engineering

              • 4. Re: adt error 301
                shapeworks Level 1
                Hi,

                thanks for reply. I checked the app descriptor and found out this:
                ip-89-103-132-47:~/Documents/projectAIR/AIRHelloWorld/src goddard$ more HelloWorld.xml
                <?xml version="1.0" encoding="UF-8"?>
                <application xmlns=" http://ns.adobe.com/air/application/1.0">
                <id>AIRHelloWorld.AIRHelloWorld</id>
                <version>1.0</version>
                <filename>AIRHelloWorld</filename>
                <initialWindow>
                <content>AIRHelloWorld.html</content>
                <visible>true</visible>
                <width>500</width>
                <height>500</height>
                </initialWindow>
                </application>

                So first, there are two mistakes:
                1. The charset is misspelled: UF-8 instead of UTF-8.

                I fixed that and then I've got next error message:
                ip-89-103-132-47:~/Documents/projectAIR/AIRHelloWorld goddard$ adt -package -storetype pkcs12 -keystore src/air.pfx -keypass password -tsa none AIRHelloWorld.air src/HelloWorld.xml src/AIRHelloWorld.html src/AIRAliases.js
                password: password
                /Users/goddard/Documents/projectAIR/AIRHelloWorld/src/HelloWorld.xml(7): error 302: Root content AIRHelloWorld.html is missing from package

                2. That was easy to fix. I just changed the content tag in app descriptor from
                <content>AIRHelloWorld.html</content>
                to

                <content>src/AIRHelloWorld.html</content>

                because I have all the source file in that dir.
                Thank you very much for suggestions :) One more question - now when it's clear that ADL treats XML in different way (more tolerant) than ADT, can you explain us how it is possible or when it will be actually fixed?

                Thanks, Jiri