02-14-2011 04:27 AM
Hi,
I have been following the "BlackBerry tablet OS SDK for Adobe Air, Getting Started Guide for Windows Developers 0.9.3 Beta. I have Flash Builder 4.5 installed and the tablet simulator boots correctly, but when I try to test my AIRHelloWorld app on the simulator I get the following error:
[Fatal Error] :1:1: Content is not allowed in prolog.
Can anyone offer any help please?
Thanks,
FizzyPixel
02-14-2011 06:10 AM
Looks like an XML parsing error.
I'd take a close look at the blackberry-tablet.xml file (or whatever you called it).
Make sure the first few characters start with <?xml version=1.0" etc.
Rufus.
02-14-2011 05:35 PM - edited 02-14-2011 05:36 PM
Hi Rufus
Thanks for reply, this is the xml I'm using (blackberry-tablet.xml)
<?xml version="1.0" encoding="UTF-8"?>
<qnx>
<initialWindow>
<systemChrome>none</systemChrome>
<transparent>true</transparent>
</initialWindow>
<publisher>Sample Inc.</publisher>
<category>core.internet</category>
<icon>
<image>blackberry-tablet-icon.png</image>
</icon>
</qnx>and the full error I get is:
Error occurred while packaging the application:
[Fatal Error] AIRHelloWorld-app.xml:1:1: Content is not allowed in prolog.
Error: Content is not allowed in prolog.
Any suggestions would be greatly appreicated,
Thanks
02-14-2011 05:51 PM
I dont think you should use the <xml> tag in the blackberry-table.xml file. I think it has to be JUST the <qnx> element.
I just added the icon and splash screen to my app last night and I recall questioning the <xml> tag that FB Burrito placed in there by default when I used the New->Other->Xml right-click menu. I took it out and never had an issue.
Bill
02-15-2011 03:22 AM
Hi Bill,
Thanks for your message, I've tried the xml file with and without the <xml> tag, but I still get the error. Starting to wonder if the problem lies with Burrito itself, not sure what to try next.
FizzyPixel
02-15-2011 09:45 AM
This is the example I used, including the video from Renaun. The file looks right though, except without the beginning <xml> node.
I also ran into an odd problem because I spaced the data out. notice in the example the the values are all in the form of
<node>data</node>?
I had spaced them out to be like
<node>
Data
</node>
and I got some strange error. I don't recall exactly what it was, but see if you've done that in your file. whitespace isn't supposed to matter in XML, but apparently it does.
Bill
03-28-2011 04:48 PM
Hello,
I am getting the same error when running the blackberry-airpackager:
Any thoughts?
Thanks,
netsport
03-28-2011 05:55 PM
Hi netsport
How I got this to work in the end was by downloading an example project that worked PlaybookRCP (http://prsync.com/adobe/working-with-flex-rpc-serv
Hope that helps.
FizzyPixel
03-28-2011 07:51 PM
06-12-2012 03:49 AM
sorry for digging out an old thread like this, but hey, I know how to use the search function! Success! ![]()
for all that are interested and for those running across this error in the future:
I just came across the same error, because I created myself a .bat file with all console commands (changed IDE's, that's why). The reason why you specifically get the error
netsport wrote:
[Fatal Error] appName.swf:1:1: Content is not allowed in prolog.Error: Content is not allowed in prolog.
with the fatal error in the swf, not in the xml, is the order of arguments that airpackager takes. It has to be YourApp-app.xml YourApp.swf blackberry-tablet.xml
Have fun everyone!