Standard Export for TestCases fails without error message
Hello fellows,
following "small" problem:
Construction -> Browse TestCases -> Mark 10 TestCases -> Export PDF for 10 testCases -> Export Details
Everything is fine, I get a .zip file, containing 10 PDFs
If I choose for example 25 TestCases, a "Completed with errors" is shown, the .zip is downloadable but contains only 19 pdfs.
If I choose a lot of TestCases, the export failes "Failed", no .zip is generated.
What causes this problem?
Seems to be a memory setting.
greetings georg.
following "small" problem:
Construction -> Browse TestCases -> Mark 10 TestCases -> Export PDF for 10 testCases -> Export Details
Everything is fine, I get a .zip file, containing 10 PDFs
If I choose for example 25 TestCases, a "Completed with errors" is shown, the .zip is downloadable but contains only 19 pdfs.
If I choose a lot of TestCases, the export failes "Failed", no .zip is generated.
What causes this problem?
Seems to be a memory setting.
greetings georg.
3 answers
RQM 4.0.2
Completed with errors - qm.log says
2014-01-16 12:05:57,585 [ WebContainer : 27] WARN com.ibm.rqm.print.service.PrintJobService - a StaleDataException was caught while trying to save changes to the printJob with UUID="_Ik74AH6eEeOGHN1NpbKAhQ". We will retry the save.
2014-01-16 12:05:59,772 [ qm: AsynchronousTaskRunner-3] ERROR rqm.print.service.engine.command.BatchPrintCommand - Test Case (batch).zip [detail] (_Ik74AH6eEeOGHN1NpbKAhQ): failed to add the print job with name="6570 - Verbindungsausfall Backplane (SZ-S7).pdf" to the zip stream. Skipping it.
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:352)
at com.ibm.rqm.print.service.engine.command.BatchPrintCommand.executePrint(BatchPrintCommand.java:89)
at com.ibm.rqm.print.service.engine.command.PrintCommand.run(PrintCommand.java:249)
at com.ibm.rqm.print.service.engine.command.PrintCommandTask.transactionSucceeded(PrintCommandTask.java:85)
at sun.reflect.GeneratedMethodAccessor565.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy1368.transactionSucceeded(Unknown Source)
at com.ibm.team.repository.service.internal.AsynchronousTaskSchedulerService$4.transactionSucceeded(AsynchronousTaskSchedulerService.java:972)
at com.ibm.team.repository.service.internal.AsynchronousTaskSchedulerService$4.executeTask(AsynchronousTaskSchedulerService.java:981)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.runTask(AsynchronousTaskRunner.java:153)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.run(AsynchronousTaskRunner.java:116)
at java.lang.Thread.run(Thread.java:736)
2014-01-16 12:05:59,772 [ qm: AsynchronousTaskRunner-3] ERROR rqm.print.service.engine.command.BatchPrintCommand - Test Case (batch).zip [detail] (_Ik74AH6eEeOGHN1NpbKAhQ): failed to add the print job with name="6861 - 15_LAN am ZCOMS2 wieder stecken.pdf" to the zip stream. Skipping it.
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:352)
at com.ibm.rqm.print.service.engine.command.BatchPrintCommand.executePrint(BatchPrintCommand.java:89)
at com.ibm.rqm.print.service.engine.command.PrintCommand.run(PrintCommand.java:249)
at com.ibm.rqm.print.service.engine.command.PrintCommandTask.transactionSucceeded(PrintCommandTask.java:85)
at sun.reflect.GeneratedMethodAccessor565.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy1368.transactionSucceeded(Unknown Source)
at com.ibm.team.repository.service.internal.AsynchronousTaskSchedulerService$4.transactionSucceeded(AsynchronousTaskSchedulerService.java:972)
at com.ibm.team.repository.service.internal.AsynchronousTaskSchedulerService$4.executeTask(AsynchronousTaskSchedulerService.java:981)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.runTask(AsynchronousTaskRunner.java:153)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.run(AsynchronousTaskRunner.java:116)
at java.lang.Thread.run(Thread.java:736)
Completed with errors - qm.log says
2014-01-16 12:05:57,585 [ WebContainer : 27] WARN com.ibm.rqm.print.service.PrintJobService - a StaleDataException was caught while trying to save changes to the printJob with UUID="_Ik74AH6eEeOGHN1NpbKAhQ". We will retry the save.
2014-01-16 12:05:59,772 [ qm: AsynchronousTaskRunner-3] ERROR rqm.print.service.engine.command.BatchPrintCommand - Test Case (batch).zip [detail] (_Ik74AH6eEeOGHN1NpbKAhQ): failed to add the print job with name="6570 - Verbindungsausfall Backplane (SZ-S7).pdf" to the zip stream. Skipping it.
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:352)
at com.ibm.rqm.print.service.engine.command.BatchPrintCommand.executePrint(BatchPrintCommand.java:89)
at com.ibm.rqm.print.service.engine.command.PrintCommand.run(PrintCommand.java:249)
at com.ibm.rqm.print.service.engine.command.PrintCommandTask.transactionSucceeded(PrintCommandTask.java:85)
at sun.reflect.GeneratedMethodAccessor565.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy1368.transactionSucceeded(Unknown Source)
at com.ibm.team.repository.service.internal.AsynchronousTaskSchedulerService$4.transactionSucceeded(AsynchronousTaskSchedulerService.java:972)
at com.ibm.team.repository.service.internal.AsynchronousTaskSchedulerService$4.executeTask(AsynchronousTaskSchedulerService.java:981)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.runTask(AsynchronousTaskRunner.java:153)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.run(AsynchronousTaskRunner.java:116)
at java.lang.Thread.run(Thread.java:736)
2014-01-16 12:05:59,772 [ qm: AsynchronousTaskRunner-3] ERROR rqm.print.service.engine.command.BatchPrintCommand - Test Case (batch).zip [detail] (_Ik74AH6eEeOGHN1NpbKAhQ): failed to add the print job with name="6861 - 15_LAN am ZCOMS2 wieder stecken.pdf" to the zip stream. Skipping it.
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:352)
at com.ibm.rqm.print.service.engine.command.BatchPrintCommand.executePrint(BatchPrintCommand.java:89)
at com.ibm.rqm.print.service.engine.command.PrintCommand.run(PrintCommand.java:249)
at com.ibm.rqm.print.service.engine.command.PrintCommandTask.transactionSucceeded(PrintCommandTask.java:85)
at sun.reflect.GeneratedMethodAccessor565.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy1368.transactionSucceeded(Unknown Source)
at com.ibm.team.repository.service.internal.AsynchronousTaskSchedulerService$4.transactionSucceeded(AsynchronousTaskSchedulerService.java:972)
at com.ibm.team.repository.service.internal.AsynchronousTaskSchedulerService$4.executeTask(AsynchronousTaskSchedulerService.java:981)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.runTask(AsynchronousTaskRunner.java:153)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.run(AsynchronousTaskRunner.java:116)
at java.lang.Thread.run(Thread.java:736)
Oh, the error message for the "Failed" message is clear:
2014-01-16 12:30:58,978 [ WebContainer : 39] ERROR com.ibm.rqm.print.common.util.PrintUtils - An unexpected error occurred while trying to calculate the progress of the print job with uuid="_Z_d_oH6fEeOGHN1NpbKAhQ".
java.lang.IllegalArgumentException: Item Handle array cannot exceed 2048 elements.
2014-01-16 12:30:58,978 [ WebContainer : 39] ERROR com.ibm.rqm.print.common.util.PrintUtils - An unexpected error occurred while trying to calculate the progress of the print job with uuid="_Z_d_oH6fEeOGHN1NpbKAhQ".
java.lang.IllegalArgumentException: Item Handle array cannot exceed 2048 elements.
I see the following error in the first log snippet you provided :
2014-01-16 12:05:59,772 [ qm: AsynchronousTaskRunner-3] ERROR rqm.print.service.engine.command.BatchPrintCommand - Test Case (batch).zip [detail] (_Ik74AH6eEeOGHN1NpbKAhQ): failed to add the print job with name="6570 - Verbindungsausfall Backplane (SZ-S7).pdf" to the zip stream. Skipping it.
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:352)
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:352)
You are running into defect Multi-select export throw BasicIndexOutOfBoundsException .
It's fixed in 4.0.4.
Comments
Don Yang
Jan 15 '14, 11:29 p.m.