Bluemix and Push code not working - ibm-cloud

I am using Android and IBM push service and have created an application as per the BluelistPush but my application is not starting. Each time I click the app in the emulator it shows application has stopped. only on the first time some exception at runtime as soon as I load the application. It was working before when I was using only ibm data and object.

It appears that this issue is happening to you after adding dependencies for IBM push.
Please ensure that you have added the below lines of code in the onCreate() method of your application
IBMPush.initializeService();
and then start using the service as below
IBMPush.getService();
else chances are there that you may encounter a runtime exception while the app gets loaded.

Related

Application throws 503 service error after leaving the app idle

I have made a UI5 application that uses an OData service pointing to SAP Gateway. This works correctly, however, I am noticing that if the app is left idle for a period of time (approx 10 mins), then the app suddenly starts getting the following error when trying to use this service:
"HTTP Status 503 - No application is available to handle this request"
Does anyone know why this could be happening and what I could do to fix this?
This is happening when running the app from the Web IDE.
As you have included "sap-web-ide" tag in your question, I assume this timeout happens during development when you run your app from web ide.
This is the timeout session from SAP Web IDE. Once time runs out, any call to the SAP Cloud Platform (including the one using a destination for your SAP Gateway system) will fail because your must reauthenticate (that can be done by refreshing the page).
If you deploy your app to SAP Cloud Platform or to your SAP Gateway system this short timeout won't happen.

IBM Internet of Things Platform Starter application create fails with BXNUI0005E

I am trying to create an application in IBM Internet of Things Platform Starter and getting following message:
BXNUI0005E: The 'xxxxxx' app wasn't created because a problem occurred contacting Cloud Foundry.
Try again later. If you see this message again, go to the IBM Cloud status page to check whether a service or component has an issue. If the problem continues, go to IBM Cloud Support.
I've had exactly the same problem. It's usually because you've gone over the limit of app / database instances for your account.
In my case, I was using NodeRed. I created one instance successfully, deleted it, but then couldn't create another. It turned out that the first app had created an empty database instance and the second one was trying to do the same. Deleting the database from my dashboard resolved the problem.

Bluemix IoT Foundation Environment Stopped Working

I noticed this afternoon that my Bluemix IoT Application was in the 'Unknown' state. When I mined into the app to see what the problem could be, I got the following pop-up:
App staging failed in the buildpack compile phase
I haven't made any changes to my NodeRED flows in months, and if I spin up a new IOT Foundation app, it starts just fine.
Any ideas on what is going on here?
A recent update to the underlying application stack has caused an incompatibility with older versions of the IoTF boilerplate.
The fix is to edit your application's package.json file and remove the 'mqlight' entry under the dependencies section. New instances of the boilerplate already have this entry removed - hence why they work.
Perhaps check the bluemix server status at https://developer.ibm.com/bluemix/support/#status
There were some issues reported around scheduled maintenance. There are also buildpack updates scheduled.

Your application is staging to create bluemix node-red app

I am a newbie for the bluemix. I would like to start the Node red app. However the app will never be created, instead the screen always show Your application is staging. I have try this a number of times and changed the server location from UK to USA. However it never works.
it is a known issue about a node.js module not building correctly. There is already a fix about the module, we are waiting for the npm repository to be updated. https://github.com/ibmdb/node-ibm_db/pull/44/commits
Try to download the node-red code from the official GitHub then push it to Bluemix. Another thing that you could do is use the node-red inside a Docker and also push it to Bluemix.

Why am getting deadlock upon trying to run a Java AppEngine application?

I made an application Guestbook to learn Google App Engine with Java. However, when I try to run it as a web application, Eclipse stalls on building the application because it is apparently waiting for the workspace to build.
I tried canceling the building of the workspace by clicking on the red box to the right to no avail. I have also tried canceling the entire run and re-running, which produced the same scenario.
Why can't I run the web application?