[ http://galaxy.andromda.org:8080/jira/browse/BPM-152?page=history ]
     
Wouter Zoons closed BPM-152:
----------------------------

    Resolution: Fixed

> Decision transition - form bean doesn't implement required interface
> --------------------------------------------------------------------
>
>          Key: BPM-152
>          URL: http://galaxy.andromda.org:8080/jira/browse/BPM-152
>      Project: Bpm4Struts Cartridge
>         Type: Bug
>     Versions: 3.0 M3
>  Environment: winxp, maven
>     Reporter: Alexander Gordt
>     Assignee: Wouter Zoons
>     Priority: Blocker
>      Fix For: 3.0 RC1
>  Attachments: StrutsandHibernateExampleModel.xml.zip
>
> The modeled activity diagram:
> -> Inital Node 
> -> FrontEndView: Show Login Screen 
> -> Transition with call-trigger(named: "check user credentials"), pointing to 
> the controller operation "checkCredentials"; the call-trigger has two 
> parameters for the arguments required by the operation. 
> -> Decision... 
> The controller has an operation "checkCredentials(username:String, password: 
> String): String". 
> Generated source codes: 
> ##############  Controller - checkCredentials operation ################ 
> public abstract java.lang.String checkCredentials(ActionMapping mapping, 
> de.objectivepartner.mda.strutshibernate.login.CheckCredentialsForm form, 
> HttpServletRequest request, HttpServletResponse response) throws Exception; 
> ##############  FormBean with attributes for the parameters, but it doesn't 
> implement the CheckCredentialsForm interface  ################ 
> public class ShowLoginScreenCheckUserCredentialsForm 
>     extends org.apache.struts.validator.ValidatorForm 
>     implements java.io.Serializable 
> { 
> ##############  Action Class  ################ 
> public final class ShowLoginScreenCheckUserCredentials extends Action 
> [...] 
>     private ActionForward checkCredentials(ActionMapping mapping, ActionForm 
> form, HttpServletRequest request, HttpServletResponse response) throws 
> Exception 
>     { 
>         final String value = 
> String.valueOf(LoginControllerFactory.getLoginControllerInstance().checkCredentials(mapping,
>  (ShowLoginScreenCheckUserCredentialsForm)form, request, response)); 
>         if (value.equals("valid credentials")) 
>         { 
>             return mapping.findForward("login.succesful"); 
>         } 
>         if (value.equals("invalid credentials")) 
>         { 
>             return mapping.findForward("login.failed"); 
>         } 
>         // we take the last action in case we have an invalid return value 
> from the controller 
>         return mapping.findForward("login.failed"); 
>     } 
> ##############  Error generating the project...  ################ 
>     [javac] [VERBOSE] Files to be compiled: 
>     
> C:\MDASeminar\Projekte\strutshibernate\web\src\java\de\objectivepartner\mda\strutshibernate\login\LoginControllerImpl.java
>  
>     
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\CheckCredentialsForm.java
>  
>     
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\Login.java
>  
>     
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\LoginController.java
>  
>     
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\LoginControllerFactory.java
>  
>     
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\LoginForm.java
>  
>     
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\ShowLoginScreenCheckUserCredentials.java
>  
>     
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\ShowLoginScreenCheckUserCredentialsForm.java
>  
>     
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\ShowWelcomeScreenRestart.java
>  
>     
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\ShowWelcomeScreenRestartForm.java
>  
>     
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\org\andromda\presentation\bpm4struts\PatternMatchingExceptionHandler.java
>  
>     
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\org\andromda\presentation\bpm4struts\StrutsValidator.java
>  
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\ShowLoginScreenCheckUserCredentials.java:38:
>  
> checkCredentials(org.apache.struts.action.ActionMapping,de.objectivepartner.mda.strutshibernate.login.CheckCredentialsForm,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
>  in de.objectivepartner.mda.strutshibernate.login.LoginController cannot be 
> applied to 
> (org.apache.struts.action.ActionMapping,de.objectivepartner.mda.strutshibernate.login.ShowLoginScreenCheckUserCredentialsForm,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
>  
>         final String value = 
> String.valueOf(LoginControllerFactory.getLoginControllerInstance().checkCredentials(mapping,
>  (ShowLoginScreenCheckUserCredentialsForm)form, request, response)); 
>                                                                               
>                ^ 
> 1 error 
> BUILD FAILED 
> File...... C:\Dokumente und 
> Einstellungen\agordt\.maven\cache\maven-multiproject-plugin-1.3.1\plugin.jelly
>  
> Element... maven:reactor 
> Line...... 217 
> Column.... 9 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://galaxy.andromda.org:8080/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to