Bug 111334

Summary: API of Assert.exists() doesn't allow a useful error message
Product: [Retired] Red Hat Web Application Framework Reporter: Matthew Booth <mbooth>
Component: otherAssignee: ccm-bugs-list
Status: CLOSED WONTFIX QA Contact: Jon Orris <jorris>
Severity: medium Docs Contact:
Priority: medium    
Version: nightly   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-17 22:03:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Booth 2003-12-02 11:31:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5)
Gecko/20031026 Firebird/0.7

Description of problem:
A typo in a DomainObjectTraversal adapters xml file gave me the
following stack trace:

2003-12-02 11:20:22,717 [ main] ERROR util.Assert -
com.arsdigita.persistence.metadata.ObjectType is null
com.arsdigita.util.AssertionError:
com.arsdigita.persistence.metadata.ObjectType is null
        at com.arsdigita.util.Assert.error(Assert.java(Inlined
Compiled Code))
        at com.arsdigita.util.Assert.exists(Assert.java(Compiled Code))
        at
com.arsdigita.domain.DomainObjectTraversal.registerAdapter(DomainObjectTraversal.java:79)
        at
com.arsdigita.domain.DomainObjectTraversal.registerAdapter(DomainObjectTraversal.java:112)


The reason it can't output a useful error message is that there is no
API to Assert.exists() to allow this.

Version-Release number of selected component (if applicable):
Rickshaw