SQLDB状态码500

时间:2015-05-15 19:00:32

标签: ibm-cloud

我收到了FAILED服务器错误,状态码:500,错误代码:10001, 消息:public void fireAlarm() { ALARM_MANAGER = (AlarmManager) context.getSystemService(ALARM_SERVICE); for(int i = 0; i < 2; ++i) { OCalendar ocalendar = new OCalendar(); ocalendar.vCalendar = Calendar.getInstance(); ocalendar.vCalendar.setTimeInMillis(System.currentTimeMillis()); ocalendar.vCalendar.set(Calendar.HOUR_OF_DAY, 21); ocalendar.vCalendar.set(Calendar.MINUTE, 42); ocalendar.vRepeatAfter= 1000; ocalendar.vStopAfter = 3; ocalendar.vMessage ="Dont Forget To Take Your Medicines"; ARY_CALNEDARS.add(ocalendar); } for (int i = 0 ; i< ARY_CALNEDARS.size() ; i++) { Intent intent = new Intent(context, AlarmReceiver.class); OCalendar clndr = ARY_CALNEDARS.get(i); // Loop counter `i` is used as a `requestCode` intent.putExtra("id", i); // id of the alarm. intent.putExtra("AlarmMsg", clndr.vMessage.toString() ); PendingIntent pendingIntent = PendingIntent.getBroadcast(context, i, intent, 0); ALARM_MANAGER.setRepeating( AlarmManager.ELAPSED_REALTIME_WAKEUP , ARY_CALNEDARS.get(i).vCalendar.getTimeInMillis() , clndr.vRepeatAfter, pendingIntent); ARY_PENDING_INTENTS.add(pendingIntent); } 消息,在尝试创建新的SQLDB服务实例时。

问题是什么?

1 个答案:

答案 0 :(得分:2)

我之前确认“免费”计划存在一个简短问题,但此后该问题已得到解决。

我能够从CF命令行成功创建服务:

$ cf create-service sqldb sqldb_free randalstTestSQLDB515
Creating service randalstTestSQLDB515 in org johndoe@myemail.com / 
space dev as johndoe@myemail.com...
OK

尝试使用以下语法从命令行创建服务:

$ cf create-service sqldb sqldb_small mySQLDB

,其中

第一个属性 sqldb 服务名称 第二个属性是计划 sqldb_small sqldb_free sqldb_premium
最后一个属性 mySQLDB 是您为此服务实例提供的唯一名称