-
Bug
-
Resolution: Done
-
Major
-
1.3.0.Alpha1
-
None
some exceptions are not properly implemented to be fully serializable, for instance, certain fields are not serializable, causing the exception serialization to fail.
10:46:18,690 ERROR [org.jberet] (Batch Thread - 3) JBERET000007: Failed to run job restReader, restReader.step1, org.jberet.job.model.Step@595ba4f8: javax.batch.operations.BatchRuntimeException: JBERET000652: Failed to serialize: javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error at org.jberet.runtime.SerializableData.of(SerializableData.java:68) at org.jberet.runtime.AbstractStepExecution.setException(AbstractStepExecution.java:104) at org.jberet.runtime.context.StepContextImpl.setException(StepContextImpl.java:181) at org.jberet.runtime.runner.ChunkRunner.run(ChunkRunner.java:225) at org.jberet.runtime.runner.StepExecutionRunner.runBatchletOrChunk(StepExecutionRunner.java:219) at org.jberet.runtime.runner.StepExecutionRunner.run(StepExecutionRunner.java:140) at org.jberet.runtime.runner.CompositeExecutionRunner.runStep(CompositeExecutionRunner.java:164) at org.jberet.runtime.runner.CompositeExecutionRunner.runFromHeadOrRestartPoint(CompositeExecutionRunner.java:88) at org.jberet.runtime.runner.JobExecutionRunner.run(JobExecutionRunner.java:59) at org.wildfly.extension.batch.jberet.impl.BatchEnvironmentService$WildFlyBatchEnvironment$1.run(BatchEnvironmentService.java:173) at org.jberet.spi.JobExecutor$1.run(JobExecutor.java:99) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at org.jboss.threads.JBossThread.run(JBossThread.java:320) Caused by: java.io.NotSerializableException: org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine$1 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.jberet.util.BatchUtil.objectToBytes(BatchUtil.java:90) at org.jberet.runtime.SerializableData.of(SerializableData.java:66) ... 14 more