Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
02-14-2011 04:27 AM
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?
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.
02-14-2011 05:35 PM - edited 02-14-2011 05:36 PM
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,
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.
02-15-2011 03:22 AM
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.
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
I had spaced them out to be like
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.
03-28-2011 04:48 PM
I am getting the same error when running the blackberry-airpackager:
03-28-2011 05:55 PM
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.
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
[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!