BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ejb generated code does not compil !!!???

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise
View previous topic :: View next topic  
Author Message
Frédéric Dal
Guest





PostPosted: Fri Aug 29, 2003 2:17 pm    Post subject: Ejb generated code does not compil !!!??? Reply with quote



i made a EAR module and then a EJB module inside...
I create my CMP 2.0 from my schema and then i use the dto/facade wizard
which generate all the stuff !
But !!
When i try to 'make' my ejb module, i got a full list of errors ....
here is the code generated:
****************************************************************************
******
public interface UtilisateurSessionFacade extends javax.ejb.EJBObject

public void createUtilisateur(UtilisateurDto utilisateurDto) throws
RemoteException;
public void removeUtilisateur(BigDecimal idUser) throws RemoteException;
public void updateUtilisateur(UtilisateurDto utilisateurDto) throws
RemoteException;
public void updateUtilisateurs(UtilisateurDto[] utilisateurDtos) throws
RemoteException;
public UtilisateurDto utilisateurFindByPrimaryKey(BigDecimal idUser)
throws RemoteException;{





}
****************************************************************************
******

and here are, of course, the first errors :
a.. "UtilisateurSessionFacade.java": '{' expected at line 8, column 70
b.. "UtilisateurSessionFacade.java": illegal start of type at line 14,
column 95
c.. "UtilisateurSessionFacade.java": expected at line 20, column 2
d.. "UtilisateurSessionFacadeLocal.java": Package C:Documents and
SettingsfdaljbprojectagapesrccomsteriaagapeservicesseslocalUtilis
ateurSessionFacadeLocal.java stated in source com.steria.agape.service.sses
does not match directory C:Documents and
Settings....servicesseslocalUtilisateurSessionFacadeLocal.java. at line
1, column 34
e.. "UtilisateurSessionFacadeLocalHome.java": Package C:Documents and
SettingsfdaljbprojectagapesrccomsteriaagapeservicesseslocalUtilis
ateurSessionFacadeLocalHome.java stated in source
com.steria.agape.service.sses does not match directory C:Documents and
Settings....servicesseslocalUtilisateurSessionFacadeLocalHome.java. at
line 1, column 34
f.. "UtilisateurSessionFacadeBean.java": cannot resolve symbol: class
UtilisateurHome in package local at line 5, column 37
g.. "UtilisateurSessionFacadeBean.java": cannot resolve symbol: class
Utilisateur in package local at line 16, column 37
h.. etc...
Is there a upgrade (different from upgrade 002 that i installed) or a patch
that has to be applied ? Is my procedure ok ?
Help !!!




Back to top
Lori M Olson (TeamB)
Guest





PostPosted: Fri Aug 29, 2003 4:09 pm    Post subject: Re: Ejb generated code does not compil !!!??? Reply with quote



Frédéric Dal wrote:
Quote:
i made a EAR module and then a EJB module inside...
I create my CMP 2.0 from my schema and then i use the dto/facade wizard
which generate all the stuff !
But !!
When i try to 'make' my ejb module, i got a full list of errors ....
here is the code generated:
****************************************************************************
******
public interface UtilisateurSessionFacade extends javax.ejb.EJBObject

public void createUtilisateur(UtilisateurDto utilisateurDto) throws
RemoteException;
public void removeUtilisateur(BigDecimal idUser) throws RemoteException;
public void updateUtilisateur(UtilisateurDto utilisateurDto) throws
RemoteException;
public void updateUtilisateurs(UtilisateurDto[] utilisateurDtos) throws
RemoteException;
public UtilisateurDto utilisateurFindByPrimaryKey(BigDecimal idUser)
throws RemoteException;{





}
****************************************************************************
******

Is that the whole file? Are you not using packages at all?

--

Regards,

Lori Olson (TeamB)

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html


Back to top
Kevin Dean
Guest





PostPosted: Fri Aug 29, 2003 6:10 pm    Post subject: Re: Ejb generated code does not compil !!!??? Reply with quote



It's a bug in the code generator for EJB's; I personally see it most often
in home interfaces for entity beans. I haven't been able to produce a
reliable test case, so I haven't submitted it to Borland.

The problem is that JBuilder is removing the opening brace in the interface
declaration and moving it to the end of one of the method declarations.
Moving the brace back by hand solves the problem, but doesn't prevent it
from happening again.

--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Frédéric Dal" <frederic.dal (AT) steria (DOT) com> wrote

Quote:
i made a EAR module and then a EJB module inside...
I create my CMP 2.0 from my schema and then i use the dto/facade wizard
which generate all the stuff !
But !!
When i try to 'make' my ejb module, i got a full list of errors ....
here is the code generated:

****************************************************************************
******
public interface UtilisateurSessionFacade extends javax.ejb.EJBObject

public void createUtilisateur(UtilisateurDto utilisateurDto) throws
RemoteException;
public void removeUtilisateur(BigDecimal idUser) throws RemoteException;
public void updateUtilisateur(UtilisateurDto utilisateurDto) throws
RemoteException;
public void updateUtilisateurs(UtilisateurDto[] utilisateurDtos) throws
RemoteException;
public UtilisateurDto utilisateurFindByPrimaryKey(BigDecimal idUser)
throws RemoteException;{





}

****************************************************************************
******

and here are, of course, the first errors :
a.. "UtilisateurSessionFacade.java": '{' expected at line 8, column 70
b.. "UtilisateurSessionFacade.java": illegal start of type at line 14,
column 95
c.. "UtilisateurSessionFacade.java": expected at line 20, column 2
d.. "UtilisateurSessionFacadeLocal.java": Package C:Documents and

SettingsfdaljbprojectagapesrccomsteriaagapeservicesseslocalUtilis
ateurSessionFacadeLocal.java stated in source
com.steria.agape.service.sses
does not match directory C:Documents and
Settings....servicesseslocalUtilisateurSessionFacadeLocal.java. at
line
1, column 34
e.. "UtilisateurSessionFacadeLocalHome.java": Package C:Documents and

SettingsfdaljbprojectagapesrccomsteriaagapeservicesseslocalUtilis
ateurSessionFacadeLocalHome.java stated in source
com.steria.agape.service.sses does not match directory C:Documents and
Settings....servicesseslocalUtilisateurSessionFacadeLocalHome.java.
at
line 1, column 34
f.. "UtilisateurSessionFacadeBean.java": cannot resolve symbol: class
UtilisateurHome in package local at line 5, column 37
g.. "UtilisateurSessionFacadeBean.java": cannot resolve symbol: class
Utilisateur in package local at line 16, column 37
h.. etc...
Is there a upgrade (different from upgrade 002 that i installed) or a
patch
that has to be applied ? Is my procedure ok ?
Help !!!







Back to top
Kevin Dean
Guest





PostPosted: Sun Aug 31, 2003 8:47 pm    Post subject: Re: Ejb generated code does not compil !!!??? Reply with quote

It's JBuilder. It happens to me when I'm targeting BES.

--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Jason Bennett" <jbennett (AT) liquent (DOT) com> wrote

Quote:
Kevin Dean wrote:
It's a bug in the code generator for EJB's; I personally see it most
often
in home interfaces for entity beans. I haven't been able to produce a
reliable test case, so I haven't submitted it to Borland.

There are already 2 bugs filed for this error in QualityCentral,
although I'm not sure yet if it's related to JBoss or JBuilder.

jason




Back to top
Phil Shrimpton
Guest





PostPosted: Mon Sep 01, 2003 9:27 am    Post subject: Re: Ejb generated code does not compil !!!??? Reply with quote

In article <3f4f9786 (AT) newsgroups (DOT) borland.com>,
[email]NkOdSePaAnM (AT) datadevelopment (DOT) com[/email] says...

Hi,

Quote:
It's a bug in the code generator for EJB's; I personally see it most often
in home interfaces for entity beans. I haven't been able to produce a
reliable test case, so I haven't submitted it to Borland.

The problem is that JBuilder is removing the opening brace in the interface
declaration and moving it to the end of one of the method declarations.

I also see it all the time, it is currently happening in three of my
EJBs in a current project, but trying to get a small project to recreate
seems impossible.

Phil

Back to top
Horst Thiesen
Guest





PostPosted: Tue Sep 09, 2003 9:56 am    Post subject: Re: Ejb generated code does not compil !!!??? Reply with quote


I had the same problem. It seems to be a "side effect" of the new Option "Tools->IDE Options->EJB Designer->Always regenerate interfaces", which is documented in the Online help:
"When checked, this option automatically regenerates the home/local home and remote/local interfaces for an enterprise bean when you modify the source code of the bean class directly. For example, if you are working in the source code and add a new method, JBuilder regenerates the bean's interfaces automatically to reflect the new method you made."
That sounds to be very comfortable, but in fact it seems not to work the way it should, but causes this code generation error.


"Frédéric Dal" <frederic.dal (AT) steria (DOT) com> wrote:
Quote:
i made a EAR module and then a EJB module inside...
I create my CMP 2.0 from my schema and then i use the dto/facade wizard
which generate all the stuff !
But !!
When i try to 'make' my ejb module, i got a full list of errors ....
here is the code generated:
****************************************************************************
******
public interface UtilisateurSessionFacade extends javax.ejb.EJBObject

public void createUtilisateur(UtilisateurDto utilisateurDto) throws
RemoteException;
public void removeUtilisateur(BigDecimal idUser) throws RemoteException;
public void updateUtilisateur(UtilisateurDto utilisateurDto) throws
RemoteException;
public void updateUtilisateurs(UtilisateurDto[] utilisateurDtos) throws
RemoteException;
public UtilisateurDto utilisateurFindByPrimaryKey(BigDecimal idUser)
throws RemoteException;{





}
****************************************************************************
******

and here are, of course, the first errors :
a.. "UtilisateurSessionFacade.java": '{' expected at line 8, column 70
b.. "UtilisateurSessionFacade.java": illegal start of type at line 14,
column 95
c.. "UtilisateurSessionFacade.java": expected at line 20, column 2
d.. "UtilisateurSessionFacadeLocal.java": Package C:Documents and
SettingsfdaljbprojectagapesrccomsteriaagapeservicesseslocalUtilis
ateurSessionFacadeLocal.java stated in source com.steria.agape.service.sses
does not match directory C:Documents and
Settings....servicesseslocalUtilisateurSessionFacadeLocal.java. at line
1, column 34
e.. "UtilisateurSessionFacadeLocalHome.java": Package C:Documents and
SettingsfdaljbprojectagapesrccomsteriaagapeservicesseslocalUtilis
ateurSessionFacadeLocalHome.java stated in source
com.steria.agape.service.sses does not match directory C:Documents and
Settings....servicesseslocalUtilisateurSessionFacadeLocalHome.java. at
line 1, column 34
f.. "UtilisateurSessionFacadeBean.java": cannot resolve symbol: class
UtilisateurHome in package local at line 5, column 37
g.. "UtilisateurSessionFacadeBean.java": cannot resolve symbol: class
Utilisateur in package local at line 16, column 37
h.. etc...
Is there a upgrade (different from upgrade 002 that i installed) or a patch
that has to be applied ? Is my procedure ok ?
Help !!!






Back to top
Horst Thiesen
Guest





PostPosted: Tue Sep 09, 2003 10:00 am    Post subject: Re: Ejb generated code does not compil !!!??? Reply with quote


... and now in readable form...
I had the same problem. It seems to be a "side effect" of the
new Option "Tools->IDE Options->EJB Designer->Always regenerate
interfaces", which is documented in the Online help:
"When checked, this option automatically regenerates the
home/local home and remote/local interfaces for an enterprise
bean when you modify the source code of the bean class
directly. For example, if you are working in the source code
and add a new method, JBuilder regenerates the bean's
interfaces automatically to reflect the new method you made."
That sounds to be very comfortable, but in fact it seems not to
work the way it should, but causes this code generation error.

"Horst Thiesen" <bdn.10.nitelav (AT) spamgourmet (DOT) com> wrote:
Quote:

I had the same problem. It seems to be a "side effect" of the new Option "Tools->IDE Options->EJB Designer->Always regenerate interfaces", which is documented in the Online help:
"When checked, this option automatically regenerates the home/local home and remote/local interfaces for an enterprise bean when you modify the source code of the bean class directly. For example, if you are working in the source code and add a new method, JBuilder regenerates the bean's interfaces automatically to reflect the new method you made."
That sounds to be very comfortable, but in fact it seems not to work the way it should, but causes this code generation error.


"Frédéric Dal" <frederic.dal (AT) steria (DOT) com> wrote:
i made a EAR module and then a EJB module inside...
I create my CMP 2.0 from my schema and then i use the dto/facade wizard
which generate all the stuff !
But !!
When i try to 'make' my ejb module, i got a full list of errors ....
here is the code generated:
****************************************************************************
******
public interface UtilisateurSessionFacade extends javax.ejb.EJBObject

public void createUtilisateur(UtilisateurDto utilisateurDto) throws
RemoteException;
public void removeUtilisateur(BigDecimal idUser) throws RemoteException;
public void updateUtilisateur(UtilisateurDto utilisateurDto) throws
RemoteException;
public void updateUtilisateurs(UtilisateurDto[] utilisateurDtos) throws
RemoteException;
public UtilisateurDto utilisateurFindByPrimaryKey(BigDecimal idUser)
throws RemoteException;{





}
****************************************************************************
******

and here are, of course, the first errors :
a.. "UtilisateurSessionFacade.java": '{' expected at line 8, column 70
b.. "UtilisateurSessionFacade.java": illegal start of type at line 14,
column 95
c.. "UtilisateurSessionFacade.java": expected at line 20, column 2
d.. "UtilisateurSessionFacadeLocal.java": Package C:Documents and
SettingsfdaljbprojectagapesrccomsteriaagapeservicesseslocalUtilis
ateurSessionFacadeLocal.java stated in source com.steria.agape.service.sses
does not match directory C:Documents and
Settings....servicesseslocalUtilisateurSessionFacadeLocal.java. at line
1, column 34
e.. "UtilisateurSessionFacadeLocalHome.java": Package C:Documents and
SettingsfdaljbprojectagapesrccomsteriaagapeservicesseslocalUtilis
ateurSessionFacadeLocalHome.java stated in source
com.steria.agape.service.sses does not match directory C:Documents and
Settings....servicesseslocalUtilisateurSessionFacadeLocalHome.java. at
line 1, column 34
f.. "UtilisateurSessionFacadeBean.java": cannot resolve symbol: class
UtilisateurHome in package local at line 5, column 37
g.. "UtilisateurSessionFacadeBean.java": cannot resolve symbol: class
Utilisateur in package local at line 16, column 37
h.. etc...
Is there a upgrade (different from upgrade 002 that i installed) or a patch
that has to be applied ? Is my procedure ok ?
Help !!!






Back to top
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group
.