xuxueli / xxl-job

A distributed task scheduling framework.(分布式任务调度平台XXL-JOB)
http://www.xuxueli.com/xxl-job/
GNU General Public License v3.0
27.45k stars 10.86k forks source link

执行任务回调的时候报StringIndexOutOfBoundsException异常 #11

Closed Lid23 closed 8 years ago

Lid23 commented 8 years ago

java.lang.StringIndexOutOfBoundsException: String index out of range: 64 at java.lang.String.(Unknown Source) at com.xxl.job.core.util.ByteHexConverter.hex2Byte(ByteHexConverter.java:30) at com.xxl.job.core.util.XxlJobNetCommUtil.parseHexJson2Obj(XxlJobNetCommUtil.java:53) at com.xxl.job.core.util.XxlJobNetCommUtil.postHex(XxlJobNetCommUtil.java:113) at com.xxl.job.admin.core.jobbean.RemoteHttpJobBean.failoverTrigger(RemoteHttpJobBean.java:126) at com.xxl.job.admin.core.jobbean.RemoteHttpJobBean.executeInternal(RemoteHttpJobBean.java:61) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:114) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)

// i do not know why responseHex = responseHex.replace("\n", ""); 也需要过滤下 “\r”

xuxueli commented 8 years ago

这个问题已经解决,请拉最新代码确认下。