Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367714

Summary: The clean up job fails.
Product: [Technology] Jubula Reporter: Marc Steffens <Marc.Steffens>
Component: CoreAssignee: Zeb Ford-Reitz <zeb.ford-reitz>
Status: CLOSED FIXED QA Contact: Oliver Goetz <Oliver.Goetz>
Severity: normal    
Priority: P3 CC: alexandra.schladebeck, zeb.ford-reitz
Version: unspecified   
Target Milestone: Juno M5   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
This patch will handle the null value correctly zeb.ford-reitz: iplog+

Description Marc Steffens CLA 2012-01-02 11:31:57 EST
Created attachment 208921 [details]
This patch will handle the null value correctly

The deleting of all test result details via the clean up job fails. 
This is caused by an uncaught null value in the deleteMonitoringReports() method.

!ENTRY org.eclipse.core.jobs 4 2 2011-12-28 19:12:53.124
!MESSAGE An internal error occurred during: "Commandline parsing finished -
performing actions...".
!STACK 0
java.lang.IllegalArgumentException: An instance of a null PK has been
incorrectly provided for this find operation.
    at
org.eclipse.persistence.internal.jpa.EntityManagerImpl.findInternal(EntityManagerImpl.java:709)
    at
org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:653)
    at
org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:532)
    at
org.eclipse.jubula.client.core.persistence.TestResultPM.deleteMonitoringReports(TestResultPM.java:113)
    at
org.eclipse.jubula.client.core.persistence.TestResultPM.deleteTestresultOfSummary(TestResultPM.java:90)
    at
org.eclipse.jubula.client.core.persistence.TestResultPM.deleteAllTestresultDetails(TestResultPM.java:178)
    at
org.eclipse.jubula.app.dbtool.core.DBToolClient.deleteAllProjects(DBToolClient.java:400)
    at
org.eclipse.jubula.app.dbtool.core.DBToolClient.access$2(DBToolClient.java:374)
    at
org.eclipse.jubula.app.dbtool.core.DBToolClient$1.run(DBToolClient.java:170)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Wed Dec 28 19:12:53 CET 2011    Exit:        Code 1
Comment 2 Oliver Goetz CLA 2012-01-31 08:04:56 EST
Fix verified, all test result details are deleted when running "deleteall" in dbtool