Bugs and FeaturesThis section describes the bugs and features found on the GlassFish / TopLink / Oracle configuration, when comparing to the JBoss configuration as used in the book.
Exception Description: No conversion value provided for the attribute [BIG_SPENDAH]. Mapping: oracle.toplink.essentials.mappings.DirectToFieldMapping[customerType-->CUSTOMER_TABLE.CUSTOMERTYPE] Descriptor: RelationalDescriptor
Internal Exception: java.sql.SQLException: Ongeldig kolomtype.Error Code: 17004 Call:INSERT INTO CUSTOMER_TABLE (CUST_ID, CUSTOMERTYPE, TIMECREATED, FIRSTNAME, PICTURE, LASTNAME) VALUES (?, ?, ?, ?, ?, ?) bind => [1, BIG_SPENDAH, 21:33:23, Bill, com.titan.domain.JPEG@de299f, Burke] Query:InsertObjectQuery(com.titan.domain.Customer@d51b41)
Exception Description: There should be one non-read-only mapping defined for the primary key field [CUSTOMER.CUSTOMER_LAST_NAME]. Descriptor: RelationalDescriptor
[java] Exception [TOPLINK-7214] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.ValidationException [java] Exception Description: The attribute [expirationDate] from the entity class [class com.titan.domain.CreditCard] does not specify a temporal type. A temporal type must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar. [java] at oracle.toplink.essentials.exceptions.ValidationException.noTemporalTypeSpecified(ValidationException.java:1164)
[java] Exception Description: @OneToMany for attribute name [phoneNumbers] in entity class [class com.titan.domain.Customer] should not have @JoinColumn(s) specified. In the case where the @OneToMany is not mapped by another entity (that is, it is the owning side and is uni-directional), it should specify (optional through defaulting) a @JoinTable. [java] at oracle.toplink.essentials.exceptions.ValidationException.uniDirectionalOneToManyHasJoinColumnAnnotations(ValidationException.java:1172)
[java] Error Code: 904 [java] Call:CREATE TABLE PHONE (ID NUMBER(10) NOT NULL, TYPE NUMBER(3) NULL, NUMBER VARCHAR2(255) NULL, PRIMARY KEY (ID))
com.sun.enterprise.deployment.backend.IASDeploymentException: Deployment Error -- Exception Description: Table per class inheritance is not supported. Entity class [class com.titan.domain.Person]. at oracle.toplink.essentials.exceptions.ValidationException.tablePerClassInheritanceNotSupported(ValidationException.java:1399)
[java] Exception Description: Invalid HAVING expression [COUNT(res) > 1] for query with grouping [GROUP BY cr.name]. The HAVING clause must specify search conditions over the grouping items or aggregate functions that apply to grouping items. [java] at oracle.toplink.essentials.exceptions.EJBQLException.invalidHavingExpression(EJBQLException.java:266) [java] at oracle.toplink.essentials.internal.parsing.HavingNode.validate(HavingNode.java:51)
[java] Exception Description: The primary key read from the row [DatabaseRecord( [java] => 8 [java] => 978-555-5555 [java] PHONE.TYPE => 1)] during the execution of the query was detected to be null. Primary keys must not contain null. [java] Query: ReadAllQuery(com.titan.domain.Phone) [java] at oracle.toplink.essentials.exceptions.QueryException.nullPrimaryKeyInBuildingObject(QueryException.java:807) [java] at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:351)
[java] Exception Description: The primary key read from the row [DatabaseRecord( [java] CRUISE.ID => null [java] CRUISE.NAME => null [java] CRUISE.SHIP_ID => null)] during the execution of the query was detected to be null. Primary keys must not contain null. [java] Query: ResultSetMappingQuery(com.titan.domain.Cruise)
Exception [TOPLINK-0] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.IntegrityException Descriptor Exceptions: ---------------------------------------------------------
Exception [TOPLINK-60] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DescriptorException Exception Description: The method [_toplink_setcreditCard_vh] or [_toplink_getcreditCard_vh] is not defined in the object [com.titan.domain.Customer]. Internal Exception: java.lang.NoSuchMethodException: com.titan.domain.Customer._toplink_getcreditCard_vh() Mapping: oracle.toplink.essentials.mappings.OneToOneMapping[creditCard] Descriptor: RelationalDescriptor(com.titan.domain.Customer --> [DatabaseTable(CUSTOMER)])
Exception [TOPLINK-60] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DescriptorException Exception Description: The method [_toplink_setaddress_vh] or [_toplink_getaddress_vh] is not defined in the object [com.titan.domain.Customer]. Internal Exception: java.lang.NoSuchMethodException: com.titan.domain.Customer._toplink_getaddress_vh() Mapping: oracle.toplink.essentials.mappings.OneToOneMapping[address] Descriptor:
RelationalDescriptor(com.titan.domain.Customer -->
[DatabaseTable(CUSTOMER)])
ORA-12516, TNS:listener could not find available handler with matching protocol stack The Connection descriptor used by the client was:
Exception Description: Error binding to externally managed transaction Internal Exception: java.lang.IllegalStateException: Operation not allowed Back to the index Remarks on the book. UUIDs and information about UUIDs If you have improvements, contact information on the homepage of this host. The uptime of this host |