监控系统需求

1:xx自动报警系统 

服务器   【<eth1:ip><eth0:ip><lo:127.0.0.1>】
模  板【0026level1_beauty】
方  法【TopicData.getProductTasteRankList】
作  用【需要获取不同分类的美容产品的心得 根据排行榜位次获取产品】
错误信息【Cannot access Hessian remote service at [http://service.new_product.xx.com/service/product]; nested exception is com.caucho.hessian.io.HessianProtocolException: 504: java.io.IOException: Server returned HTTP response code: 504 for URL: http://service.new_product.xxcom/service/product】

 

设置 outdate 了,反正都刷新不了的,说明没人关注

 

2:最近发布经常出现挂的现象,编辑基本上都打不开系统。

 

3:

 服务器【<eth1:ip><eth0:ip><lo:127.0.0.1>】
模  板【0026level1_beauty】
方  法【TopicData.getProductTasteRankList】
作  用【需要获取不同分类的美容产品的心得 根据排行榜位次获取产品】
错误信息【Cannot access Hessian remote service at [http://service.new_product.xx.com/service/product]; nested exception is com.caucho.hessian.io.HessianProtocolException: 504: java.io.IOException: Server returned HTTP response code: 504 for URL: http://service.new_product.xx.com/service/product】

 

4:

if (!StringUtil.isFine(from)) {
			return super.msg("发送人的yy帐号不能为空.");
		}
		if (!StringUtil.isFine(to)) {
			return super.msg("接收人的yy帐号不能为空.");
		}

		if (!StringUtil.isFine(msg)) {
			return super.msg("消息内容不能为空.");
		}
		encode = true;
		int iFlag = 0;
		String bm = "1";
		String issafe = "true";
		if (encode) {
			bm = "2";
			msg = (new sun.misc.BASE64Encoder()).encode(msg.getBytes());
		}
		//String url1 = "http://msg.yy.xx.com:1630/cgi-bin/ppmsgpost.fcgi";
		//		String url = "http://ip/yy/ppmsgpost.fcgi";

		String url = "http://ip:8180/i/PostMsg";

		try {
			URL postURL = new URL(url);
			HttpURLConnection con = (HttpURLConnection) postURL
					.openConnection();
			// Set properties for the HTTP connection
			con.setUseCaches(false); // do not use cache
			con.setDoOutput(true); // use for output
			con.setDoInput(true); // use for Input
			con.setRequestMethod("POST"); // use the POST method to submit the form
			// Get the outputStream so we can send the query
			PrintWriter out = new PrintWriter(con.getOutputStream());

			// Create the query string string

			// Add the hidden form fields. These values are always constant

			StringBuffer sb = new StringBuffer();

			// ?fr="+from+"&to="+to+"&bm="+bm+"&cr=0&ut=1&co="+msg;
			sb.append("fr=" + URLEncoder.encode(from, "GBK"));
			sb.append("&" + "to=" + URLEncoder.encode(to, "GBK"));
			sb.append("&" + "bm=" + URLEncoder.encode(bm, "GBK"));
			sb.append("&" + "cr=" + URLEncoder.encode("0", "GBK"));
			//			sb.append("&" + "ut=" + URLEncoder.encode("1", "GBK"));

			sb.append("&" + "issafe=" + URLEncoder.encode(issafe, "GBK"));
			sb.append("&" + "msg=" + URLEncoder.encode(msg, "GBK"));
			// POST the query string to the server
			System.out.println(url + "?" + sb.toString());
			out.println(sb.toString()); // send to server
			out.close(); // close outputstream

			BufferedReader in = new BufferedReader(new InputStreamReader(con
					.getInputStream()));
			String inputLine = ""; // Stores the line of text returned by the server
			String resultsPage = ""; // Stores the complete HTML results page

			while ((inputLine = in.readLine()) != null) {
				resultsPage += inputLine;
			}
			in.close();
			if (resultsPage == null || resultsPage.equals("")) {
				iFlag = -1;
			}
			else {
				iFlag = Integer.parseInt(resultsPage);
			}

		}
		catch (Exception e) {
			e.printStackTrace();
			return super.msg(e.getMessage());
		}
		if (iFlag != 0) {
			return super.msg(iFlag, "发送错误.");
		}
		return super.msg(0);
 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值