Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367714 - The clean up job fails.
Summary: The clean up job fails.
Status: CLOSED FIXED
Alias: None
Product: Jubula
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: Juno M5   Edit
Assignee: Zeb Ford-Reitz CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 11:31 EST by Marc Steffens CLA
Modified: 2012-01-31 08:04 EST (History)
2 users (show)

See Also:


Attachments
This patch will handle the null value correctly (5.04 KB, patch)
2012-01-02 11:31 EST, Marc Steffens CLA
zeb.ford-reitz: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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