Wednesday, June 3, 2015

JVM error: Could not find Java Virtual Machine

If you are receiving the error, "Could not find a valid Java virtual machine to load. You may need to re-install a supported Java virtual Machine" most probably you haven't set the environment variables.

To set the Environment Variable and Path:
  1. Edit the file run.bat and set JAVA_OPTS. This file is located at $JBOSS_HOME\bin folder.
  2. In the Environment Variables window, go to User Variables pane and select New.
  3. Enter JAVA_HOME in the Variable Name field.
    • Enter C:\Program Files\Java\jdk1.6.x (as per the example) in the Variable Value field.
    • Click OK.
  4. Right click on Computer and select Properties. System window appears.
  5. Select Advanced System Settings link from the Control Panel Home pane. System Properties window appears.
  6. Select Environment Variables.
  7. Select Path from User Variables and click Edit.
    • Add C:\Program Files\Java\jdk1.6.x\bin(as per the example) in the Variable Value field.
    • Click OK.

Monday, August 11, 2014

Does KONY support Universal App concept.......

....... yet?

I believe not. Not yet!

Here is what is suggested.

Option One:

You can choose to build an app as an iPhone app and design the forms and the code as required for both iPhone and iPad and wire them conditionally based on the platform (iPad / iPhone). This is very similar to how you do the universal apps natively.

For skins and Images – design different skins for iPhone, iPad in the same app and apply them programmatically depending on the platform.

The result is - one binary for both iPhone, iPad

Option Two:

Build it as iPhone app and have only iPhone related forms, skins, images. Use porting tool to port it to iPad and then include the iPad specific resources and changes as required. This will result in individual binaries for iPhone and iPad

However, they will be less bulky (in terms of size) and optimal for the device.

Here is what Apple has to say regarding Universal Apps: Introduction to Universal Apps

Sunday, July 27, 2014

Where does the service definition file go? KONY Installation

When you publish the service definition file, the XML file is stored at this location:

<KONY install folder> \ install \ middleware \ middleware-bootconfig \ appregistry

Tuesday, July 22, 2014

How to fix: "Middleware.war deployment failed" / KONY Server Installation

We had our share of challenges during a recent KONY server installation at our client's. We were installing KONY Server or Windows Server 2008 R2 using JBOSS as the Application server. After we had successfully installed the KONY server and during the post-installation tasks we hit a hurdle while starting the JBOSS instance from the command prompt. The 2 errors that we could see were:

Issue Description:

Firstly, an "Access Denied" issue as below:

C:\KonyServer\jboss-5.1.0.GA\instance1\server\default\tmp\A2151M~1\ADMIN-~1.WAR\images\iconStatusAvailable.gif - Access is denied.
C:\KonyServer\jboss-5.1.0.GA\instance1\server\default\tmp\A2151M~1\ADMIN-~1.WAR\images\iconStatusUnavailable.gif - Access is denied.
C:\KonyServer\jboss-5.1.0.GA\instance1\server\default\tmp\A2151M~1\ADMIN-~1.WAR\images\iconStatusUnknown.gif - Access is denied.

Secondly, "Deployment Failed":

Deployment "vfszip:/C:/KonyServer/install/webapps/middleware.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/C:/KonyServer/jboss-5.1.0.GA/instance1/server/default/tmp/a2151m-jmtsdg-hxuayuqz-1-hxuazmap-9q/middleware.war/ deployment failed


This was an issue due to insufficient permissions to the KONY folder on the file system and its sub folders.


We had to explicitly provide admin privileges to the KONY folder and all its sub-folders. Once full permissions had been provided and inherited to KONY Home as well as its sub folders, we stopped receiving that error and JBOSS instance ran successfully.

Happy installation !!

Friday, July 18, 2014

How to fix: 401 HTTP Error, when you publish a service - KONY Development

You have rightly configured the service and you positively received a service response.

You have correctly configured the #KONY server details / IP Address and the ports for publishing the service.

You have also tried to restart the IDE

But it did no good. The service did not publish as you received "401 Http Error"

401 error code refers to authorization issues.

Check for the following URLs and their response

While publishing the service if you get the prompt to enter your credentials, i.e username and password of the server you must know the right credentials and you must be through.

In most cases you would have not started the Tomcat Server (That's the case been with me)

If the console requests for User name and Password and denying your authentication, most probably you are entering a false value. You can check your user ID and Password from the following location


Sunday, March 23, 2014

How to fix "Cannot find SDK Manager" issue?

I'm using Eclipse IDE with KonyOne Studio Add-in.

While building and launching the emulator, I received an error: Cannot find SDK manager

While there can be many solutions, the one that worked for me which I was missing was, To set the Build Preference under

Windows > Preferences > Kony Dev Studio > Build > Android Home. This should point to your Andriod sdk folder. Refer the screenshot here