Ticket #59 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

cannot create new issue in issuemgr demo

Reported by: anonymous Assigned to: eitan
Priority: major Component: authentication
Version: Keywords:
Cc:

Description

The following error occurs when right clicking->new on the Issues icon -

java.util.NoSuchElementException?: No more results

at org.hibernate.impl.IteratorImpl?.next(IteratorImpl?.java:117) at com.u2d.persist.HBMSingleSession.fetch(HBMSingleSession.java:116) at com.u2d.field.AssociationField?.resolveSpec(AssociationField?.java:226) at com.u2d.field.AssociationField?.getDefaultValue(AssociationField?.java:201) at com.u2d.field.AssociationField?.checkAndSetDefault(AssociationField?.java:190) at com.u2d.field.AssociationField?.setState(AssociationField?.java:180) at com.u2d.model.AbstractComplexEObject.setState(AbstractComplexEObject.java:186) at com.u2d.model.AbstractComplexEObject.setState(AbstractComplexEObject.java:165) at com.u2d.model.AbstractComplexEObject.setTransientState(AbstractComplexEObject.java:151) at com.u2d.model.ComplexType?.New(ComplexType?.java:537) at sun.reflect.NativeMethodAccessorImpl?.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl?.invoke(NativeMethodAccessorImpl?.java:39) at sun.reflect.DelegatingMethodAccessorImpl?.invoke(DelegatingMethodAccessorImpl?.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.u2d.element.EOCommand.execute(EOCommand.java:84) at com.u2d.element.EOCommand.execute(EOCommand.java:69) at com.u2d.element.OverloadedEOCmd.execute(OverloadedEOCmd.java:48) at com.u2d.view.swing.CommandAdapter?$1.run(CommandAdapter?.java:58)

Change History

12/13/06 17:27:42 changed by eitan

  • status changed from new to closed.
  • resolution set to fixed.
  • component set to authentication.

fixed.

error was due to two things:

1. model-metadata.properties has this default set: Issue.assignedTo.default=from User as user where user.username='eitan'

when no user named 'eitan' exists, that's a problem, if:

2. the defaulting mechanism isn't forgiving.

svn revision 196 make the default mechanism forgiving:

if default is not found, it doesn't blow up anymore.

thanks for pointing this out.