Decision transition - form bean doesn't implement required interface

Description

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:

  1.  

    1.  

      1.  

        1.  

          1.  

            1.  

              1.  

                1.  

                  1.  

                    1.  

                      1.  

                        1.  

                          1.  

                            1. Controller - checkCredentials operation ################

public abstract java.lang.String checkCredentials(ActionMapping mapping, de.objectivepartner.mda.strutshibernate.login.CheckCredentialsForm form, HttpServletRequest request, HttpServletResponse response) throws Exception;

  1.  

    1.  

      1.  

        1.  

          1.  

            1.  

              1.  

                1.  

                  1.  

                    1.  

                      1.  

                        1.  

                          1.  

                            1. 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
{

  1.  

    1.  

      1.  

        1.  

          1.  

            1.  

              1.  

                1.  

                  1.  

                    1.  

                      1.  

                        1.  

                          1.  

                            1. 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");
}

  1.  

    1.  

      1.  

        1.  

          1.  

            1.  

              1.  

                1.  

                  1.  

                    1.  

                      1.  

                        1.  

                          1.  

                            1. 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

Environment

winxp, maven

Status

Assignee

MichaelM

Reporter

Alexander Gordt

Labels

None

Fix versions

Affects versions

3.0-M3

Priority

Blocker
Configure