Important! A new Community experience launched on September 26, 2017. Read more about it here or continue to Base Camp.
Voting: 
Vote up!
1 Votes
13 Replies

Error building for iPhone SPA

Rolf Schuster on Apr 15, 2015 04:48 EDT

Posted In
Vote up!
0 votes
Vote down!

Hi Rolf,

We can understand that you have followed all the below steps earlier but to narrow down the issue provided below steps again. Request you to please follow below and if still any issues then please let us know along with outcome of below, error screenshot.

1) Please restart eclipse and try building for SPA.

2) If still the same issue then create new workspace and switch eclipse pointing to the new workspace. Create new application with single form and add few widgets to the form like button, label etc.

2) Right click on the application ---> Build ---> Clean and Build ---> select "android" platform under HTML5 SPA as shown in attached screenshot(Build.png)

To test application try below :

1) Once build is successful, open chrome browser or any other browser in your machine ---> Provide android user agent(as we have build for android SPA) or select existing android mobiles(as shown in useragent.png) and hit the below URL.

http://<machine_IP address>:<Jetty_Port>/<AppID>/p

AppID --- Right click on application ---> Properties ---> Application tab ---> ID is the appID.

For ex: http://<IpAddress>:8888/Segmen/p

2) OR open browser in any of your android device and hit the above url to test SPA application. Ensure that device is connected to network.

You can test the same for iPhone spa by building for iPhone SPA and providing iphone user agent in your machine browser.

Thanks.

Replied by: Apr 15, 2015 13:33 EDT
Gold
Vote up!
0 votes
Vote down!

Hi,

 

thanks for the answer. I've taken the steps but unfortunately the result is the same.
Android SPA works fine, also building for Windows Phone 8 SPA, only the build for iOS shows this trouble. Isn't there a more detailed error in some logfile, as to why "Category:SPAAdvCSSGeneration" fails?

Thanks,
Rolf

Replied by: Apr 16, 2015 03:36 EDT
Vote up!
0 votes
Vote down!

Hi Rolf,

Sorry for the inconvenience.

From your statement<<even the simplest app cannot be built (create new App -> add an empty form -> build for iPhone SPA).>>, i can understand that you are facing issue when build for any application.

Can you please try again creating new application in new workspace and check if you are still facing the issue when build for iPhone SPA. Tried with many scenarios but unable to reproduce the issue at our end.

If issue persists even for the simplest app then request you to provide the app to us to test at our end and also provide us the complete screenshot of the error.

Thanks.

Replied by: Apr 16, 2015 08:29 EDT
Gold
Vote up!
0 votes
Vote down!

Hi Rolf,

Thanks for the application. I have imported application into my workspace and build for iPhone SPA using Kony 6.0.3 GA plugins and could not find any issues and build is successful.

Can you please upgrade or install Kony Studio 6.0.3 GA plugins and test the same using Kony 6.0.3. Try restarting you machine and check if it resolves. Sometimes there may be files that got corrupted.

If still any issue then please let us know Or  please raise ticket in support portal as this requires screen sharing session to understand the exact issue.

Thanks for your patience.

Regards.

Replied by: Apr 17, 2015 05:05 EDT
Gold
Vote up!
0 votes
Vote down!

Hi,

the error is still there. I reinstalled Kony 6.0.3, updated Java to 1.7.0_75, restarted Windows.
Building for iPad SPA works though.

I cannot raise a ticket because of:

Missing Kony Cloud Account
Your user account is not associated to an active account on the Kony Cloud, but you do have access to developer.kony.com. If you feel this is in error, please contact Kony Support.
 
My Cloud account worked some weeks ago though.

Isn't there another possibility to find out what exactly happens at SPAAdvCSSAppSkinHandler.java:379?

Caused by: com.kony.tool.exception.CodeGenerationException: Error While Generating CSS Files for SPA Platforms
at com.kony.tool.widget.spacss.SPAAdvCSSAppSkinHandler.renderWidget(SPAAdvCSSAppSkinHandler.java:379)
 
Thanks,
Rolf

Replied by: Apr 17, 2015 08:41 EDT
Kony Answered Certificate
Vote up!
0 votes
Vote down!

Hi,

the issue is solved.

I did some digging and the issue lied in com.kony.tool.widget.spacss.SPAAdvCSSAppSkinHandler method ProcessBaseFontSize(String). There, a floating number was formatted as a String, but the locale was not explicitly specified, so the conversion was made with the PC's locale, which at that time was german. So the String read at a moment "14,06", and that value was later tried to be converted back to Double in SPAAdvCSSStyleHandler, and here a NumberFormatException occured.

Anyway, I changed the locale in Windows to english and iOS SPA is building now.

Best regards,
Rolf

Apr 20, 2015 04:40 EDT
Vote up!
0 votes
Vote down!

Great work Rolf!
@Madhuri: I'm using a pc where I can't change the win locale, how can we fix this problem? Is there something I can do as a workaround?

Thanks,
Marco

Replied by: Apr 23, 2015 08:15 EDT
Vote up!
0 votes
Vote down!

Hi Marco,

until Kony fixes this, as a workaround you can start Eclipse with some JVM options to force it to another locale:
http://www.oracle.com/technetwork/articles/javase/locale-140624.html#using

"Second, on some Java runtime implementations, the application user can override the host's default locale by providing this information on the command line by setting the user.language,user.country, and user.variant system properties."

For example, edit the eclipse.ini file from the Kony_Studio folder and add these lines after "-vmargs" or at the end:
-Duser.language=en
-Duser.country=US

Best regards,
Rolf

Replied by: Apr 23, 2015 08:41 EDT
Vote up!
1 votes
Vote down!

Hi Rolf/Marco,

Thanks for digging the issue and finding the root cause.

We will change windows locale to german or any other and try to build for iPhone SPA to check the errors. Once we are able to replicate the issue at our end, we will debug further and will update you with the details by EOD tomorrow.

Regards.

Replied by: Apr 23, 2015 08:43 EDT
Gold
Vote up!
0 votes
Vote down!

@Rolf:
the "eclipse.ini" workaround works great! thanks for the hint!

@Madhuri
good news, we'll wait for your updates

Thanks,
Marco

Replied by: Apr 23, 2015 09:14 EDT
Vote up!
0 votes
Vote down!

Hi Marco,

Support ticket has been raised for this issue. Team is working on it. We will keep you posted with the updates on this issue.

Thanks.

Replied by: May 11, 2015 03:20 EDT
Gold
Vote up!
0 votes
Vote down!

Hi Rolf,

Above reported issue is fixed in latest Kony 6.0.3.x Plugins. Request you to please update to latest plugins and check. Let us know if still any issues.

Following are the update sites for OS X and Windows (64-bit and 32-bit) operating systems, please update the appropriate link given below in studio to access the plugin

Update site for Kony Studio on OS X:

http://donwload.kony.com/studio/60/hotfixmacsite.xml

Update site for Kony Studio on 64-bit Windows OS:

http://download.kony.com/studio/60/hotfixsite.xml

Update site for Kony Studio on 32-bit Windows OS:

http://download.kony.com/studio/60/hotfixwin32site.xml

Thanks.

Replied by: May 20, 2015 06:31 EDT
Gold
Vote up!
0 votes
Vote down!

Hi,

after a quick test after updating Studio, the bug is fixed!

Best regards,
Rolf
 

Replied by: May 20, 2015 09:47 EDT