java io null异常_大量java.lang.InterruptedException: null异常,数据没有同步

otter运行了一段时间后,就停止了同步,Channel状态也是running的 , 查看日志出现大量的InterruptedException,看不出哪里出了问题

2017-07-14 17:51:08.172 [pipelineId = 3,taskName = transformWorker] ERROR c.a.o.n.e.common.io.download.impl.aria2c.Aria2cRetriever - java.lang.InterruptedException

com.alibaba.otter.node.etl.common.io.download.exception.DataRetrieveException: java.lang.InterruptedException

Caused by: java.lang.InterruptedException: null

at java.lang.Object.wait(Native Method) ~[na:1.7.0_67]

at java.lang.Object.wait(Object.java:503) ~[na:1.7.0_67]

at java.lang.UNIXProcess.waitFor(UNIXProcess.java:263) ~[na:1.7.0_67]

at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:111) ~[shared.common-4.2.14.jar:na]

at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:63) ~[shared.common-4.2.14.jar:na]

at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:49) ~[shared.common-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.io.download.impl.AbstractCommandDownload.download(AbstractCommandDownload.java:70) ~[node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.io.download.impl.AbstractCommandRetriever.doRetrieve(AbstractCommandRetriever.java:62) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.pipe.impl.http.RowDataHttpPipe.getDbBatch(RowDataHttpPipe.java:199) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.pipe.impl.http.RowDataHttpPipe.get(RowDataHttpPipe.java:71) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.pipe.impl.RowDataPipeDelegate.get(RowDataPipeDelegate.java:128) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.transform.TransformTask$1.run(TransformTask.java:76) [node.etl-4.2.14.jar:na]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_67]

at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_67]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_67]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_67]

at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]

2017-07-14 17:51:08.173 [pipelineId = 3,taskName = transformWorker] ERROR c.a.o.n.e.common.io.download.impl.aria2c.Aria2cRetriever - java.lang.InterruptedException

com.alibaba.otter.node.etl.common.io.download.exception.DataRetrieveException: java.lang.InterruptedException

Caused by: java.lang.InterruptedException: null

at java.lang.Object.wait(Native Method) ~[na:1.7.0_67]

at java.lang.Object.wait(Object.java:503) ~[na:1.7.0_67]

at java.lang.UNIXProcess.waitFor(UNIXProcess.java:263) ~[na:1.7.0_67]

at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:111) ~[shared.common-4.2.14.jar:na]

at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:63) ~[shared.common-4.2.14.jar:na]

at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:49) ~[shared.common-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.io.download.impl.AbstractCommandDownload.download(AbstractCommandDownload.java:70) ~[node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.io.download.impl.AbstractCommandRetriever.doRetrieve(AbstractCommandRetriever.java:62) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.pipe.impl.http.RowDataHttpPipe.getDbBatch(RowDataHttpPipe.java:199) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.pipe.impl.http.RowDataHttpPipe.get(RowDataHttpPipe.java:71) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.pipe.impl.RowDataPipeDelegate.get(RowDataPipeDelegate.java:128) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.transform.TransformTask$1.run(TransformTask.java:76) [node.etl-4.2.14.jar:na]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_67]

at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_67]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_67]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_67]

at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]

2017-07-14 17:51:08.173 [pipelineId = 3,taskName = transformWorker] ERROR c.a.o.n.e.common.io.download.impl.aria2c.Aria2cRetriever - java.lang.InterruptedException

com.alibaba.otter.node.etl.common.io.download.exception.DataRetrieveException: java.lang.InterruptedException

Caused by: java.lang.InterruptedException: null

at java.lang.Object.wait(Native Method) ~[na:1.7.0_67]

at java.lang.Object.wait(Object.java:503) ~[na:1.7.0_67]

at java.lang.UNIXProcess.waitFor(UNIXProcess.java:263) ~[na:1.7.0_67]

at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:111) ~[shared.common-4.2.14.jar:na]

at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:63) ~[shared.common-4.2.14.jar:na]

at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:49) ~[shared.common-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.io.download.impl.AbstractCommandDownload.download(AbstractCommandDownload.java:70) ~[node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.io.download.impl.AbstractCommandRetriever.doRetrieve(AbstractCommandRetriever.java:62) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.pipe.impl.http.RowDataHttpPipe.getDbBatch(RowDataHttpPipe.java:199) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.pipe.impl.http.RowDataHttpPipe.get(RowDataHttpPipe.java:71) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.pipe.impl.RowDataPipeDelegate.get(RowDataPipeDelegate.java:128) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.transform.TransformTask$1.run(TransformTask.java:76) [node.etl-4.2.14.jar:na]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_67]

at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_67]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_67]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_67]

at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]

2017-07-14 17:51:08.173 [pipelineId = 3,taskName = transformWorker] ERROR c.a.o.n.e.common.io.download.impl.aria2c.Aria2cRetriever - java.lang.InterruptedException

com.alibaba.otter.node.etl.common.io.download.exception.DataRetrieveException: java.lang.InterruptedException

Caused by: java.lang.InterruptedException: null

at java.lang.Object.wait(Native Method) ~[na:1.7.0_67]

at java.lang.Object.wait(Object.java:503) ~[na:1.7.0_67]

at java.lang.UNIXProcess.waitFor(UNIXProcess.java:263) ~[na:1.7.0_67]

at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:111) ~[shared.common-4.2.14.jar:na]

at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:63) ~[shared.common-4.2.14.jar:na]

at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:49) ~[shared.common-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.io.download.impl.AbstractCommandDownload.download(AbstractCommandDownload.java:70) ~[node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.io.download.impl.AbstractCommandRetriever.doRetrieve(AbstractCommandRetriever.java:62) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.pipe.impl.http.RowDataHttpPipe.getDbBatch(RowDataHttpPipe.java:199) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.pipe.impl.http.RowDataHttpPipe.get(RowDataHttpPipe.java:71) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.common.pipe.impl.RowDataPipeDelegate.get(RowDataPipeDelegate.java:128) [node.etl-4.2.14.jar:na]

at com.alibaba.otter.node.etl.transform.TransformTask$1.run(TransformTask.java:76) [node.etl-4.2.14.jar:na]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_67]

at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_67]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_67]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_67]

at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]

java.lang.InterruptedExceptionJava编程语言中一个常见的异常类,表示线程被中断。该异常通常在多线程编程中使用,用于处理线程间的中断信号。 在一个多线程程序中,一个线程可以通过调用另一个线程的interrupt()方法来请求该线程中断。被中断的线程将会抛出一个InterruptedException异常,以便对该中断信号做出响应。 "java.lang.interruptedexception: null"是指在抛出InterruptedException异常时,异常对象中的message字段的值为null。这可能是因为在抛出异常时未指定异常信息,或者异常信息确实没有设置。 在处理InterruptedException异常时,通常需要捕获该异常,并在异常处理代码块中对线程中断进行处理。常见的处理方式包括恢复线程的中断状态或结束线程的执行。 以下是一个处理InterruptedException异常的简单示例代码: try { // 执行可能会触发中断异常的代码 // ... } catch (InterruptedException e) { // 处理中断异常的代码 e.printStackTrace(); // 恢复线程的中断状态 Thread.currentThread().interrupt(); } 上述代码中,我们使用try-catch语句捕获InterruptedException异常,并在异常处理代码块中打印异常堆栈信息。然后,通过调用Thread.currentThread().interrupt()方法恢复线程的中断状态,以便在后续代码中能够正确检查线程的中断状态。 总之,"java.lang.interruptedexception: null"是一个代表线程中断的异常类和异常信息的描述。在多线程编程中,合理处理InterruptedException异常对于正确处理线程的中断信号非常重要。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值