Hello Adam,
What version of Essentials are you using? This issue may have already been resolved?
https://glassfish.dev.java.net/issues/show_bug.cgi?id=557
--Gordon
-----Original Message-----
From: Adam Bien [mailto:abien_at_adam-bien.com]
Sent: Friday, August 04, 2006 3:58 AM
To: persistence_at_glassfish.dev.java.net
Subject: Problem in MetadataHelper
Hello,
I found a problem in the Class MetadataHelper.getAttributeNameFromMethodName
Problem:
java.lang.StringIndexOutOfBoundsException: String index out of range: 3
at java.lang.String.substring(String.java:1765)
at
oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataHelper.getAttributeNameFromMethodName(MetadataHelper.java:99)
The problem was: I named the attribute "id" which is too short. I
renamed the attribute and the it worked.
I would like to fix the problem. Can I contribute my bug fix, if yes, how?
regards,
adam
--
Dipl. Inf. adam bien
BEA Technical Director
Sun Certified Java Programmer
Sun Certified Enterprise Java Architect
Sun Enterprise Java Trainer
Mobile: 0049(0)170 280 3144
eMail: abien_at_adam-bien.com
Homepage: www.adam-bien.com
Weblog:
http://www.adam-bien.com/roller/page/abien
----------
Book author:
Enterprise Architekturen
entwickler.press 2006
ISBN: 393504299X
and Enterprise Java Frameworks,
J2EE Patterns, J2EE HotSpots and Struts.