Zlib的输入流意外结束
数据都已经转码成功了,可是会报这个错
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.util.zip.GZIPInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at com.hc.socket.Proxy.transcoding1(Proxy.java:51)
at com.hc.socket.Proxy.createproxy(Proxy.java:25)
at com.hc.socket.Proxy.main(Proxy.java:93)
求高手指点
------解决方案--------------------
aucPosBuf y1 CCU_NULL_BYTE y2 return CCU_OK y3
g_stInsideBoardInfo.stGdcInfo[ucSlotId] y4 stAlarmInfo.pucPosParas y6
CCU_MemAlloc(CCU_MEM_INFO, CCU_MEM_PT_NO, DETAIL_DATA_LEN) y5
stAlarmInfo.pucDetailParas y7 g_stInsideBoardInfo.stCardInfo[ucSlotId] y8
CCU_ERR_MPI_MALLOC_FAIL y9 CCU_ERR_MPI_INVALID_PARAMS j1
pstNode->pstSenlist[ucSenNum] j2 pstNode->pstSenlist[ucSensorNum] j3
CHECK_PARA1_NULL(pstNode->pstSenlist) j4 pstNode->pstSenlist[VALVE_FAULT_NUM] j5
pstNode->pstSenlist[i] j6 pstNode->pstSenlist[0] j7 pstNode->enInputTempStatus j8
pstNode->pstSenlist[INPUT_TEMP_SENSOR_INDEX] j9
部件在位状态
UINT32 BSP_GetBoardOnLineStatus(UINT8 ucSlotId, UINT8 *enState)
UINT8 ucStatus = y2; UINT32 ulRet = CCU_ERR;
ulRet = ADP_CPLD_Read(1, 1, &ucStatus);if ( CCU_OK != ulRet ){CCU_Printf;return ulRet;}
*enState = (~(ucStatus >> (2 + ucSlotId)) & 0x01);y3;
获取板类型
INT32 BSP_GetBoardType(UINT8 ucSlotId, UINT8* pucCardType)
{UINT32 ulRet = CCU_ERR;UINT32 uwHardAttribute;UINT16 ucGpNum = 0; CHECK;
/* 输入通道号需是166、183、200、217中的一个 */ucGpNum = PCA9555_READ_NUM + ucSlotId * 17;
ulRet = ADP_GPIO_Read(ucGpNum, &uwHardAttribute);CHECK_RET_OK_RN(ulRet, (INT32)ulRet);
if ( I2C_9555_ERR_RET == uwHardAttribute )
{ return uwHardAttribute;}*pucCardType = (uwHardAttribute >> 4) & 0x07;y3;}
子卡告警上报
UINT32 ReportInsideBoardAlarm(UINT32 ulResId, UINT8 ucFruId, UINT8 ucSdrNum, UINT32 ulAlarmId, UINT8 ucEventDir)
CCU_FAULT_INFO_T stAlarmInfo;UINT8 y1[DETAIL_DATA_LEN] = {0};
UINT8 aucDetailBuf[DETAIL_DATA_LEN] = {0};y1[0] = (UINT8)(ulResId >> 24);y1[1] = (UINT8)(ulResId >> 16);
y1[2] = (UINT8)(ulResId >> 8);y1[3] = (UINT8)ulResId;
y1[4] = ucFruId + 1; /* 网管显示子卡从1开始编号 */y1[5] = ucSdrNum + 1;
y6 = CCU_NULL_PTR;y7 = CCU_NULL_PTR;y6 = y5;
CHECK_PARA1_NULL_RN(y6, y9);CCU_MemCpy(y6, y1, DETAIL_DATA_LEN);