Max Titov IV @ TechSplice

The most beautiful music of all is the music of what happens.
  • Home
  • About

Archive for the ‘Flex’ Category

You are currently browsing the archives for the Flex category.

23 Jun 2008

Adobe Flex Builder 3 short dump [JVM terminated. Exit code=1...]

I was using Adobe Flex Builder 3 [AF3] for a few weeks now. I like what has been done with the application, the new functionality is very useful and there is a ton of new options that can be configured while designing your applications.

Unforchunately similarly to it’s predecessor there are major bugs in AF3. A week ago for no apparent reason the application stopped working. Every time ran the application it threw a short dump before initializing the EDI.

Adobe Flex Builder 3 short dump.

I’ve tried reinstalling the application and even removed the old versions of JRE references. Nothing helped and just as before I had to rely to googling and looking at configuration files.

The problem lied in the small FlexBuilder.ini file located in the root installation directory. The contents of the file included the following settings:

-vmargs
-Xms128m
-Xmx512m
-XX:MaxPermSize=256m
-XX:PermSize=64m
-Djava.net.preferIPv4Stack=true

I’ve modified the contents to exclude the last lines and vuala, the application went back to it’s usual state [sure I lost all my projects but its nice to have a working EDI once again].

23 June, 2008 at 9:18 by maxtmax

Tags: builder, development, error, fix, Flex, problem, short dump, solution, workaround
Posted in Flex | 5 Comments »

9 Dec 2007

Cyrilic integration of Flex and PHP

A recent project involved integration between a PHP content management tool like Joomla and Adobe Flex 2. I wrote a PHP script that parsed a MySQL database creating an XML structure that was then picked up by a HTTPService in a Flex application.

The information in the database was stored in Cyrillic format, hence when ever I was loading the data in to the SWF compiled file the end result was a collection of garbage data.  Setting the actuall HTML to Windows-1251 encoding did not help the situation.

My following approach was to locate a native functionality within the Flex architecture to mediate the situation.  Unforchunately I wasn’t successful in aquiring sattisfying examples to solve the problem.  For that matter it became sadly obvious that I haven’t seen any flash pages using non/english alphabet [either I haven't been checking international sites that much or Adobe Flex isn't widely used overseas] .

My third approach was to look at the actual php code that was generating the XML structure.  I’ve discovered a useful function mb_convert_encoding that eventually solved my problems.  Using a simple snippet of code:

mb_convert_encoding($string_to_convert,'UTF-8','Windows-1251');

I was able to convert the data from UTF-8 in to Windows-1251 which allowed me to display the desired Cyrillic characters.

9 December, 2007 at 19:57 by maxtmax

Tags: code, development, flash, Flex, php, sql
Posted in Flex, Web Development | 2 Comments »

20 Jul 2007

Flex Builder 2 Crash

Don’t you hate it when you try to get back to the project that you just been working on and all of a sudden the main application doesn’t start? In this case I am talking about the Adobe Flex Builder 2 which crashed on me about ten minutes ago.

Similar event occurred a while back, I came home attempted to open Adobe Flex Builder and witnessed a crash before the program started.

The message: “Error: An error has occurred. See error log for more details.” flashed before my screen four times followed by a convenient reference to the log file: An error has occurred. See the log file ../../My Documents/Flex Builder 2/.metadata/.log.

Typically after examining the log file and discovering a long list of Java java.lang.NullPointerException error messages

!ENTRY org.eclipse.osgi 2007-07-20 10:55:52.296
!MESSAGE Bundle update@plugins/com.adobe.flexbuilder.debug.e32_2.0.155577/ [70] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2007-07-20 10:55:52.296
!MESSAGE Missing required bundle org.eclipse.debug.ui_[3.2.0,99.0.0).

I did the next best thing and Googled for more information. Sadly the search engine results did not come in handy and I fixed the problem by simply reinstalling the application.

Unfortunately as mentioned above a similar incident occured about fifteen minutes ago. This time around I didn’t feel like uninstalling the program and decided to fiddle with the application my self. Here are my findings:

Sollution:

1) Quick and dirty:

Go to the .metadata/.plugin directory and rename it to something different. This action will remove the metadata settings that eclipse stored but you will be able to run the application freely again. To get your data back simply perform an import operation for each project that you had in your Workspace.

2) More detail:

Go to the .metadata\.plugins\org.eclipse.core.runtime directory. Open the com.adobe.flexbuilder.standalone.prefs file and modify the line flexbuilder.afterFirstLaunch=true. The end result contents of the file should look like this:

#Sat Jan 10 00:12:04 PDT 2005
flexbuilder.afterFirstLaunch=false
eclipse.preferences.version=1

Save the file and try opening the application again. This should fix the problem and get you back on your feet. I hope this helps those of you who run in to this problem.

20 July, 2007 at 8:24 by maxtmax

Posted in Flex | 2 Comments »

Newer Entries »
  • Subscribe using FeedBurner
  • Cloud Data

    abap adobe animation basic beautiful builder camera code configuration contribution design development digital engineering fix flash Flex function images interesting lesson new paypal Photography php problem problems program programmer programming review sap SAP/ABAP sdk setup soap software solution story system tables transaction transports user video

    WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

  • My Links

    • Cooking
    • Gallery
    • Resume
  • Online Tools

    • Airline Ticket Search
    • Estimate Shipping Cost [from US]
    • Link your Blog
  • Software Engineering Blogs

    • Adam Goucher
    • Joel on Software
    • The Third Bit
    • Wide Awake Developers
  • Categories

    • Everyday stuff
    • Flex
    • Photography
    • SAP/ABAP
    • Short Stories
    • Software Engineering
    • Web Development
  • Gallery

    Roy Tanck's Flickr Widget requires Flash Player 9 or better.

Max Titov IV @ TechSplice is proudly powered by WordPress
Design & code by Jonk
Entries (RSS) and Comments (RSS).
Podcast powered by podPress v8.8.10.13