Bug generating project on CRUD using primitive types
----------------------------------------------------
Key: ANDROMDAPP-43
URL: http://jira.andromda.org/browse/ANDROMDAPP-43
Project: AndroMDApp Project Generator
Type: Bug
Environment: Windows XP, apache tomcat 5.5, JBoss 4.0.5-GA, Java1.6.0_07,
Maven 2.0.9, MagicDraw 15.5 Community Edition, andromda 3.4-snapshot
Reporter: Marco Tulio Cicero de M. Porto
Assigned to: Chad Brandon
Hi,
I'm not sure if this is the best place to post this, if it's not I apologise.
But if you could take a look on this, it would be cool.
When creating a class (<<entity>> <<Manageable>> to make it a CRUD), and
including atributes float [datatype] and making an association with this class
with one with an atribute of type int, I get this error when running "maven
install".
The most common error I get here is this : " incomparable types: float and
<nulltype> "
I was able to get a successful build when changing the types to Float and
Integer, but then the application didn't work (returning an error 500 like this:
exception
javax.servlet.ServletException:
/com/fatec/tcc/aquiles/dominio/crud/curso-crud.xhtml @22,169
value="#{manageCursoForm.searchForm.cHoraria}": Bean:
com.fatec.tcc.aquiles.dominio.crud.CursoSearchForm, property: cHoraria
Bellow follows an excerpt of the build failure. I hope it helps.
Cheers,
Marco Tulio
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\DebitoController.java:[291,53] incomparable types: float and <nulltype>
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\DebitoController.java:[356,126] read(float,java.lang.Long) in com.fatec.tcc.aqu
iles.dominio.crud.DebitoManageableService cannot be applied to (<nulltype>,java.
lang.Long)
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\NotaController.java:[311,46] incomparable types: float and <nulltype>
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\NotaController.java:[384,124] read(java.util.Date,float,java.lang.Long,java.lan
g.Long,java.lang.Long) in com.fatec.tcc.aquiles.dominio.crud.NotaManageableServi
ce cannot be applied to (<nulltype>,<nulltype>,java.lang.Long,<nulltype>,<nullty
pe>)
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\MensalidadeController.java:[325,51] incomparable types: float and <nulltype>
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\MensalidadeController.java:[326,52] incomparable types: float and <nulltype>
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\MensalidadeController.java:[405,131] read(java.util.Date,float,float,java.lang.
String,java.lang.Long,java.lang.Long,java.lang.Long,java.lang.Long) in com.fatec
.tcc.aquiles.dominio.crud.MensalidadeManageableService cannot be applied to (<nu
lltype>,<nulltype>,<nulltype>,<nulltype>,java.lang.Long,<nulltype>,<nulltype>,<n
ulltype>)
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\MovimentacaoController.java:[296,52] incomparable types: float and <nulltype>
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\MovimentacaoController.java:[362,132] read(java.util.Date,float,java.lang.Long)
in com.fatec.tcc.aquiles.dominio.crud.MovimentacaoManageableService cannot be a
pplied to (<nulltype>,<nulltype>,java.lang.Long)
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\CreditoController.java:[291,54] incomparable types: float and <nulltype>
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\CreditoController.java:[356,127] read(float,java.lang.Long) in com.fatec.tcc.aq
uiles.dominio.crud.CreditoManageableService cannot be applied to (<nulltype>,jav
a.lang.Long)
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\DisciplinaController.java:[305,50] incomparable types: int and <nulltype>
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\DisciplinaController.java:[375,130] read(java.lang.String,int,java.lang.Long,ja
va.lang.Long) in com.fatec.tcc.aquiles.dominio.crud.DisciplinaManageableService
cannot be applied to (<nulltype>,<nulltype>,java.lang.Long,<nulltype>)
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\TurmaController.java:[296,50] incomparable types: int and <nulltype>
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\TurmaController.java:[362,125] read(java.lang.String,int,java.lang.Long) in com
.fatec.tcc.aquiles.dominio.crud.TurmaManageableService cannot be applied to (<nu
lltype>,<nulltype>,java.lang.Long)
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\CursoController.java:[305,50] incomparable types: int and <nulltype>
E:\mdastuff\aquiles\aquilespro\web\target\src\com\fatec\tcc\aquiles\dominio\crud
\CursoController.java:[375,125] read(java.lang.String,int,java.lang.Long,java.la
ng.Long[]) in com.fatec.tcc.aquiles.dominio.crud.CursoManageableService cannot b
e applied to (<nulltype>,<nulltype>,java.lang.Long,<nulltype>)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/