|
头像上传的时候报错
报错信息如下
- 2017-03-10 14:17:17 excute stream action, params:{process=/SA/OPM/organization/organizationProcess, activity=mainActivity, action=blobUpdateAction, parameters={blobConceptValue=N1HsiVAXMKJ07u4VdsH, blobData=java.io.ByteArrayInputStream@198dff4, blobConcept=SA_OPPerson, limitSize=1m, blobDataModel=/system/data, blobRelation=sPhoto, blobLastModifiedRelation=sPhotoLastModified}}
- java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:497)
- at com.justep.system.action.Engine.invokeActions(Native Method)
- at com.justep.system.action.Engine.invokeActions(Unknown Source)
- at com.justep.business.server.BusinessServer.doAction(Unknown Source)
- at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
- at com.justep.business.server.BusinessServer.excute(Unknown Source)
- at com.justep.business.server.BusinessServer.excute(Unknown Source)
- at com.justep.business.server.BusinessServer.excuteMultipartAction(Unknown Source)
- at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
- at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
- at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
- at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
- at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
- at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
- at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
- at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
- at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
- at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
- at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: update SA_OPPerson c_ set c_.sPhoto = :blobData ,c_.sPhotoLastModified = :blobLastModified where c_=:id
- at com.justep.exception.BusinessException.create(Unknown Source)
- at com.justep.system.data.impl.TableUtilsImplement.ksqlUpdate(Unknown Source)
- at com.justep.system.data.impl.TableUtilsImplement.ksqlExecuteUpdate(Unknown Source)
- at com.justep.system.data.KSQL.executeUpdate(Unknown Source)
- at com.justep.system.data.KSQL.executeUpdate(Unknown Source)
- at com.justep.system.data.KSQL.executeUpdate(Unknown Source)
- at com.justep.system.data.BlobUtils.update(Unknown Source)
- at BlobProcedure.update(BlobProcedure.java:21)
- ... 28 more
- Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150039; 提示: 执行sql: UPDATE SA_OPPerson SET SA_OPPerson.SPHOTO = ? , SA_OPPerson.SPHOTOLASTMODIFIED = ? WHERE SA_OPPerson.sID = ? , binds: [java.io.ByteArrayInputStream@198dff4, 2017-03-10 14:17:17.367, N1HsiVAXMKJ07u4VdsH]出错
- at com.justep.exception.BusinessException.create(Unknown Source)
- at com.justep.system.ksql.KSQLUtils.execSqlUpdate(Unknown Source)
- ... 35 more
- Caused by: java.sql.SQLException: Incorrect string value: '\xFF\xD8\xFF\xE0\x00\x10...' for column 'SPHOTO' at row 1
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:998)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3847)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3783)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2447)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2594)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)
- at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1901)
- at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2113)
- at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2049)
- at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2034)
- at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
- at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
- ... 36 more
复制代码
|
|