您好我正在使用Restful Web服务从Apache配置单元查询数据,我正在使用glassfish 4.0服务器。它运行良好,但突然它抛出
java.lang.IllegalStateException: Queue full
任何人都可以告诉我这可能是什么原因以及如何清除它?
修改
这是我的java代码
JavaSparkContext ctx = new JavaSparkContext(new SparkConf().setAppName("AppName").setMaster("MasterUrl"));
HiveContext sqlContext = new HiveContext(ctx.sc());
Row result = sqlContext.sql("Select * from Tablename");
for (int i = 0; i < result.length; i++) {
output += "{\"" + "Column1" + "\":\"" + result[i].getString(0) + "\",\"" + "Column2" + "\":\"" + result[i].getString(1) + "\",\"" + "Column3" + "\":\"" + result[i].getString(2) + "\",\"" + "Column4" + "\":\"" + result[i].getString(3) + "\",\"" + "Column5" + "\":\"" + result[i].getInt(4) + "\",\"" + "Column6" + "\":\"" + result[i].getString(5) + "\",\"" + "Column7" + "\":\"" + result[i].getString(6) + "\"}" + "\n";
}