Torsten,
I got that error to at some point. You have to go through your model and check if you correctly set up all the names, stereotypes and tagged values. For example check if you actually gave names to your action states and transitions. Sometimes the user is tempted to give the names directly on the screen, which only sets a label but not the real name. Make sure you bring up the properties screen for every action state and transition and set the name there. Also, the signals associated with a front ent event must have names.
In an action state, bring up the properties dialogues, look at the relations tab and make sure all the relations are ok, especially you don't have relations with blank start or end point.
I was quite confused when I started to work with AndroMDA, but the team is working to bring in more user friendly error handling. I have realized that, after a little exercise, if I set the model up like documentation says, AndroMDA works fine.
The error is about getForwardPath so I would check the transitions going out of a FrontEndView.
Hope this helps,
Gabriela
Torsten Bergeest <[EMAIL PROTECTED]> wrote:
Hi everybody,
I started with bpm4struts and modeled a very simple Use Case where the
User can enter some data on one page (for an auction in this case) so it
can
be processed later in a Controller-Class. I think I did everything as
required in the bpm4struts-Howto. However the generation stops with the
following exception :
...
[andromda] 21:27:43,735 INFO [MetafacadeMappings] found metafacades -->
'default'
[andromda] 21:27:44,957 ERROR [DefaultAndroMDACartridge] Error
performing DefaultAndroMDACartridge.processWithTemplate with template
'templ
tes/StrutsAction.vsl', template context '{securityEnabled=false,
class=org.andromda.cartridges.bpm4struts.metafacades.StrutsActionLogicImpl
7ed, [EMAIL PROTECTED],
securityRealm=other}' and cartridge 'bpm4struts'
[andromda] org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'getForwardPath' in class org.andromda.cartridges
bpm4struts.metafacades.StrutsActionLogicImpl threw exception class
java.lang.NullPointerException : null
[andromda] at
org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:193)
[andromda] at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
[andromda] at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
[andromda] at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
[andromda] at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
[andromda] at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
[andromda] at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
[andromda] at org.apache.velocity.Template.merge(Template.java:256)
....
In the andromda-bpm4struts.log I found this :
2004-06-09 21:27:44,947 - metaobject stereotype names --> '[FrontEndView]'
2004-06-09 21:27:44,947 - set context as -->
'org.andromda.cartridges.bpm4struts.metafacades.StrutsAction'
2004-06-09 21:27:44,947 - metaobject stereotype names --> '[]'
2004-06-09 21:27:44,947 - set context as -->
'org.andromda.cartridges.bpm4struts.metafacades.StrutsAction'
2004-06-09 21:27:44,947 - metaobject stereotype names -->
'[FrontEndController]'
2004-06-09 21:27:44,947 - set context as -->
'org.andromda.cartridges.bpm4struts.metafacades.StrutsAction'
2004-06-09 21:27:44,947 - Method getForwardPath threw exception for
reference $actionForward in template templates/StrutsAction.vsl at [51,17]
So I guess he is missing a specified ForwardPath to be returned by the
Controller-Class. In this case it is linked (the transition) with the
Final State
of the Activity-Graph. From what i have understood from the Howto that
if the Final State is named like the Use case itself the user will be
forwarded
back to the same page (in my case there is only one). I did that but it
always produces the above exception. Am I missing something , is there
another
way to tell it where to forward the user to ?
Thanks in advance,
greetings Torsten
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger