Release notes

Release notes for OptimalJ 3.3.01 SP2


This release includes fixes made in : 3.3.01 SP2, 3.3.01 SP1

Additional Notes

Upgrading to a Maintenance Release

OptimalJ maintenance releases (such as service packs or releases with version number of the pattern #.#.0#) provide updates to generated code and the patterns applied to models. For more information, see the below table.

To take advantage of these changes, you must follow this procedure for each OptimalJ project when upgrading to the maintenance release:

  1. Open the project in the OptimalJ maintenance release, and choose Model > Update All Models.
  2. After Update All Models has completed, choose Model > Generate All > Code.

Version Control Systems

The MCR files used to map generated files to model elements are not stored in version control systems. These MCR files are required when upgrading to a maintenance release. Before upgrading to a maintenance release, you must restore these files by completing steps 1 and 2 in the old version of OptimalJ (Updating all models ensures that all models are synchronized, while generating code creates the MCR files). Then install the maintenance release and follow the procedure described above.


Table of resolved bugs

Bug number Severity Summary Reported version Fix version Description Release notes
23867 1-Critical invocation target  exception during export UML diagrams GA 3.3.01 3.3.01 SP1    
23127 2-Major For BMP models if supertype contains Date field the code for subclass is generated incorrectly. GA 3.3.00 3.3.01 SP1 A BMP bean that has a Date field and sub-type bean will
cause problems. The code in the sub-type bean will not
compile, because it assumes the type of the field to be
Timestamp.
Issue is resolved. java.util.Date is used as a type for
BMP beans.
23233 2-Major notInShortList doesn't work for child classes in domain view GA 3.3.00 SP1 3.3.01 SP1 The notInShortList property for a WEBDataAttribute does
not work when the WEBDataClass is a child class. The
property works for the WEBDataClass that the domain view
is based on.
Templates HeaderCell, TableCell etc. have been modified
to
check for the notInShortList property for attributes
also.
23313 2-Major Property ejbQLQuery of finder method cannot be modified GA 3.3.00 3.3.01 SP1 The finder method findByProfileOnKey loses itīs manually
changed ejbQLQuery property after a model update. This
only manifests itself in situations where primary Domain
Unique Constraints are involved.
This issue is fixed.
23332 2-Major Incorrect code for business method with parameter of domain view class GA 3.2.01 SP3 3.3.01 SP1 The <assembly-descriptor> section of the generic
deployment descriptor contains incorrect code when data
classes are used as parameter types for business methods.
This is true for business methods defined on entity and
session components. The <method-param> entries omit the
suffix UpdateObject in this case.
The issue has been fixed by adding the suffix
UpdateObject.
23599 2-Major Migration sometimes fails because Windows can't handle too long directory names GA 3.3.00 SP1 3.3.01 SP1   The migrator tool has been adapted to handle long
filenames/directorynames better.
23626 2-Major Web modelchecker throws nullpointer exception GA 3.3.01 3.3.01 SP1 Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
    at
com.compuware.alturadev.web.
checkers.WEBFromServiceModelChecker.printTotalReportForKin
d(WEBFromServiceModelChecker.java:147)
...
...
[catch] at
org.openide.util.
RequestProcessor$Processor.run(RequestProcessor.java:670)
Fixed
23666 2-Major domain class diagram becomes read only when using published sub system GA 3.3.00 SP1 3.3.01 SP1   When a diagram created by an older OptimalJ e.g. OptimalJ
3.3.01 without service pack 1, you manually have to make
the diagram "readOnly=false". See Public Workaround for
the "how to".

The fix prevents that the diagram will not stay read only
when used with OptimalJ 3.3.01 + Service pack 1.
in situation where the diagram should become updateable.
23678 2-Major All guarded blocks change into free blocks after editing in JBuilder GA 3.3.00 SP1 3.3.01 SP1 With JBuilderX, saving the file using the Save or Save
All
action would lead to Free/Guard block corruption. This is
not an issue with JBuilder2005.
With JBuilderX, saving the file using the Save or Save
All
action would lead to Free/Guard block corruption. This is
not an issue with JBuilder2005. This is now fixed.
23683 2-Major Change to WebTemplate deletes all files and corrupts template (UI Designer) GA 3.3.00 SP1 3.3.01 SP1 Modify WebTemplate then go to custom WebPage and press
preview page from UIdesigner. All code is deleted,
including action class, form bean, and JSPs.
The WebTemplate is also now corrupted.
Fixed
23694 2-Major Optional StructField of type Date cannot be set to NULL GA 3.2.01 SP3 3.3.01 SP1 At runtime: assigning the NULL value to an optional
StructField of type java.util.Date results in a
nullpointer exception.
This only happens if the structField is mapped onto a
java.sql equivalent type.
 
23829 2-Major indexes causes importing from jdbc very slow against large table and even makes it failed GA 3.3.00 SP1 3.3.01 SP1 Importing a DBMS model from a database that contains many
tables can be very time consuming.
A reason that can cause this is importing Indexes is time
consuming.
By using one or both of the following ide.cfg settings
importing indexes can be disabled:
-J-DJdbc2rlm.NOIMPORTINDEXES=true
-J-DJdbc2rlm.NOIMPORTUNIQUEKEYS=true
23840 2-Major Can only connect to CVS server on default port 2401 GA 3.2.01 SP3 3.3.01 SP2 It is only possible to connect to the CVS server on the
default port 2401. If the server is listening on another
port then it is impossible to connect.
Fixed.
23903 2-Major ASIT - WebSphere deploys, but runtime fails with OS390 DB2 V7 GA 3.2.01 SP3 3.3.01 SP2   We have implemented a fix that can be activated using a
commandline (ide.cfg) option in your OptimalJ environment.
The option to enable generation for OS390 DB2 Version 7:
-J-DOPTIMALJ_DB2_DBVENDOR=DB2UDBOS390_V7

The option (default when omitted) to enable generation for
DB2 Version 8.1:
-J-DOPTIMALJ_DB2_DBVENDOR=DB2UDB_V81
23914 2-Major jsp page with JSTL returns JasperException : attribute key does not accept any expressions GA 3.3.01 3.3.01 SP2 A deployed web component using for TagLib JSTL gives a
HTTP status 500 error page when pressing the Edit button
on the web page :
org.apache.jasper.JasperException:
/crmWeb/CustomerJSTLMaintChange.jsp(355,12)
Fixed.
23923 2-Major Compilation error with enum in DAC set method GA 3.3.00 SP1 3.3.01 SP2 Setting an initial value to an attribute of type Enum is
not properly supported in DAO. Compile error is given in
both cases, when the initial value is in double quotes or
not (CONSTANT:"ACTIVE" and CONSTANT:ACTIVE). The setter
for the attribute always expects EnumType as a parameter.
Fixed, Constant:ACTIVE must be used in the domain model,
not Constant:"ACTIVE" (so do not use quotes).
23973 2-Major Using same Struct names in different Subsystems result in compilation errors in domain svc root action class GA 3.3.00 SP1 3.3.01 SP2 When using same name for two different StructTypes in
different namespace and using them with one
WebDataSchema (A set of associated classes)
compile errors occur in WebComponent Action classes.
The save###Bean now uses fully qualified names, so that
name clashes will no longer occur.
24034 2-Major Persistence changed from CMP to BMP if dbms pattern deleted GA 3.3.00 SP1 3.3.01 SP2 User deletes the DBMSFromClassPattern in the model. When
updating models, the persistence for beans changes from
CMP to BMP.
Fixed.
24049 2-Major NullpointerException meta model model check (AE only) GA 3.3.01 3.3.01 SP2 NullpointerException meta model model check. When a meta
model contains an Error or Warning, check model results in
a null pointer exception:

java.lang.NullPointerException
            at
com.compuware.repository.checker.RepositoryBuilderMofModelChecker.printTotalRepo
rtForKind(RepositoryBuilderMofModelChecker.java:196)
Model checker for the AE edition. The code responsible for
the NullPointer has been removed. The report is printed in
another way.
24170 2-Major Generalization across subsystems between DACS lacks import statements GA 3.3.00 3.3.01 SP2 If you use DAC's that inherit across subsystems the
generated code for the child DAC has missing import
statements.
From superclass we removed code generation that made
specializations available. The constrainthandler does
this
work now, but code was not removed.
In specialization added imports to generalization
24264 2-Major Update all models change element's order  in xcm GA 3.3.01 3.3.01 SP2 1. Update all models cause model elements' order in xcm
changed, since there is diff found even model is
untouched, causing unnecessary problem with cvs check-in.
2. Generate code will generate new pid.
The problem is caused by taking the order of
usedServingAttributes into account when calculating and
assigning the usedServingAttributes of EJServingAttributes.

The fix is to prevent this from happening by refraining
from assigning when the contents of the two collections
are the same.
24315 2-Major Property in JSP dropdown list is null GA 3.3.00 SP1 3.3.01 SP2 inheritance is not taken into account here. Modified the code generating select tag to look at the
extendedFeature list to find the key attributes.
24597 2-Major 'function' property under expert tab for WebPage should be made read-only GA 3.3.00 SP1 3.3.01 SP2 The 'feature' property under the expert tab for a WebPage
is editable.  However, editing it results in undesirable
results - WebPage gets completely deleted from webcomponent.
Property hiden for WebActions and WebPages.
22073 3-Normal Exception is thrown when child class has attribute with same name as parent class GA 3.2.01 SP3 3.3.01 SP1   Model check warnings (in Web Tier) for Domain Model and
for Web Model have been added, to circumvent the user from
modeling this construct.
22573 3-Normal 2 associations causes UI designer generated action class, to fail compilation. GA 3.3.00 3.3.01 SP1 It compiles fine with only 1 association between 2
classes. The code generator doesn't consider more than 1
association.
The data class name was used when composing the update
object name, instead of the reference name. When there
were more than 1 reference to the same data class, a name
clash occured.
This issue has been fixed.
22606 3-Normal Initial Values in WEBStructType are not displayed for input parameter GA 3.3.00 3.3.01 SP1 Next to missing "Constant" (as language) for Initial
value, the Web Invoker formbean init method was never
called. So setting initial values for struct fields (or in
free block) did not give the desired result for Invoker
Input JSPs.
Modified the initial call to PreAction by adding a
requestParameter e.g altura.start to tell it that we're
starting.
Similarly calls to all the deeper levels made via Create
Forwards and not Edit Forwards and include the same or
similar String. Then these preActions simply call init
methods based on this requestParamter, leaving the rest of
the code as it is.
23145 3-Normal EJB import: module of imported KeyClass has not been set GA 3.3.00 3.3.01 SP2 After importing a bean, the module property of its
KeyClass has not been set, resulting in a model check
warning COMM001.
 
23158 3-Normal Usage only module requires a code mount point when not needed GA 3.3.00 3.3.01 SP2 On code generation a Code Mount Point is requested or
automatically created even for Modules for wich no code
will be generated. For instance a usageOnly module that
was the result of an import of Java classes or EJB Beans.
From 3.3.01_SP2 and 4.0.00 on Code Mount Points for
usageOnly Modules are no longer needed.
23293 3-Normal Order in which associations are painted is important for storing foreign key GA 3.3.00 SP1 3.3.01 SP1 If a class has (0..1) associations with more than one
class (e.g. Master (0..1) -- (*) Detail (*) -- (0..1)
DetailCode), the creation of that class (Detail, in the
example above) might fail if both that class and an
associated class (Master and Detail) are created
simultaneously (by a service).

In other words if a service on Master is used to create a
Master and a Detail, and an existing DetailCode is added
(Detail needs it's reference "by value (owned)"), the
store of the entire transaction will not be carried out
completely. In fact, the DetailCode will not be added to
the Detail. This fails silently.

Whether or not the error occurs depends on the order of
the references in the Detail data class.
This issue is resolved
23486 3-Normal AssociationEnd starts with Uppercase causes child element is not stored inxcm file. GA 3.3.00 3.3.01 SP1 When creating new meta model elements, you have to do a
composite between 2 meta classes to create a parent-child
relationships in application/domain models.

When the associationEnd's names are starting with
Uppercase, the child elements are not persisted in the
.xcm file.

The associationEnd's names MUST start with a lowercase to
persist the child elements during modeling in
application/domain models.
Modelcheck added to circumvent this situation.
23560 3-Normal Data object not populated when using BMP with no dbms model GA 3.3.00 3.3.01 SP1   Code fixed, free block comments not updated.
23591 3-Normal 2-tier model compile errors when using BLOB, inheritance and composition GA 3.3.00 SP1 3.3.01 SP2 Compile errors when using document type in a composition
of which the parent class is a subtype.
Fixed.
23748 3-Normal JBuilderX editor misbehaves when tabbing a selected free block GA 3.0.00 3.3.01 SP1 Tabbing selected text in a free block corrupts free/guard
tags when using JBuilderX. This is not an issue with
JBuilder2005.
Tabbing selected text in a free block corrupts free/guard
tags when using JBuilderX. This is not an issue with
JBuilder2005. For JBuilderX based plug-in, this tab event
does nothing. Please use tabbing without selection.
23768 3-Normal The error message is not useful or accurate when importing one wsdl with an error GA 3.3.00 SP1 3.3.01 SP1 The WSDL/XSD importer does not process the closing of the
xml attribute definition with the '</xsd:attribute>'
construct correctly. An error is reported, but the
importer should have imported the document without any
error or warning messages.
 
23779 3-Normal readAllowed property in Domainview is ignored for DomainEnumType GA 3.3.00 SP1 3.3.01 SP2    
23806 3-Normal 2-tier application with composition fails to compile GA 3.3.00 3.3.01 SP2 A 2-tier model from class where the part object of a
composition has a many-many reference to another class
results in uncompilable code.
Example model:

Composite 1 <>-- 0..1 Part 0..* -- 0..* Object
 
23854 3-Normal Error: DAO012 FinderMethod doesn't have a FinderParameter GA 3.3.01 3.3.01 SP2 When you add a finder method to a DAC you get the model
check message: Error: DAO012 FinderMethod .... doesn't
have a FinderParameter

However if you want to have a finder method containing a
search query of your own, the fact that no parameter is
specified is just what you need.
Defining a dummy parameter to avoid the message is a
workaround but is not desireable.
Change model check to do the same as ejb: inform user that
the method without parameters will return all objects.
23933 3-Normal Cannot store data using Domain Services GA 3.3.00 SP1 3.3.01 SP1    
23962 3-Normal Attribute of type DomainEnumType not displayed in included class GA 3.3.00 SP1 3.3.01 SP2    
23966 3-Normal Dbms to Domain copier sets association to composite, while only the keys are compound GA 3.3.00 SP1 3.3.01 SP2 The DBMS Importer sees a model with a compound key and
maps this to the Domain model as a Composite association.
Changed the DBMS to Domain copier to never create
Composite associations because it cannot know if it is a
composite or just a compound key.
24023 3-Normal Property readAllowed is ignored in included up class GA 3.3.00 SP1 3.3.01 SP2    
24129 3-Normal WebLogic deployment will fail with SQL reserved word as column. GA 3.3.00 SP1 3.3.01 SP2 If a database table column has a reserved word as its name
(e.g. timestamp, position) in Oracle database and if one
imports such a database table and then generates entity
ejbs from it by first going to domain model, the
deployment descriptor for weblogic cmp xml file has the
reserved words as quoted strings, e.g. "TIMESTAMP", which
causes deployment problems in weblogic because the ejbc
fails with compiler exec failure.
Fixed.
24290 3-Normal Include panel in webpage of type None creates nested form tags. GA 3.3.00 SP1 3.3.01 SP2   When a WebPage is INCLUDED no <body>, <form> and initPage
code is generated. This allows the customer to also
included pages of for example type "Form".
24508 3-Normal DomainEnumtype used in composition leads to compilation errors GA 3.3.01 3.3.01 SP2 Compilation problems for 'parts' in an composite
association if enumeration is used as (part of) the
primary key (of the 'part' class).
Issue is fixed be generating the missing setter method.
Total number of records: 44



Generated at: Thu Apr 14 17:57:48 CEST 2005