Hi Wouter,

your hint that ClassCastExceptions usually means forgotten or espcially
*misspelled* stereotypes was exactly the clue I needed.
The generation works fine now!

Thanks and regards
Stefan

P.S.: Are there already some documents available on how your are planing to
support model validation in AndroMDA. I think this is a crucial feature for
MDA tools...




|--------+------------------------>
|        |          [EMAIL PROTECTED]|
|        |          tscape.net    |
|        |                        |
|        |          11.06.2004    |
|        |          14:12         |
|        |                        |
|--------+------------------------>
  
>------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                    |
  |       An:     [EMAIL PROTECTED], [EMAIL PROTECTED]                                 
 |
  |       Kopie:                                                                       
                                    |
  |       Thema:  RE: [Andromda-user] bpm4struts: Best Practices on finding modelling 
errors?                              |
  
>------------------------------------------------------------------------------------------------------------------------|




hi Stefan,

a classcast exception typically means you forgot to add a stereotype, see
my email of yesterday explaining which steps to verify in order to be able
to generate

-- Wouter

>Hello,
>
>I'm trying to work with the bpm4struts cartridge and have modelled a quite
>simple activity graph.
>When starting the MDA-Task of AndroMDA 3.0M1it result in the following
>output:
>
> [andromda] 13:15:21,933 INFO  [CartridgeFinder] found cartridge -->
>'bpm4struts'
> [andromda] 13:15:21,983 INFO  [CartridgeFinder] found cartridge --> 'ejb'
> [andromda] 13:15:22,023 INFO  [CartridgeFinder] found cartridge -->
'java'
> [andromda] 13:15:28,032 INFO  [andromda] Input model -->
>'file:D:/Projekte/mdd/andromda/andropalace/mda/src/uml/andropalace_02_md.xml'

> [andromda] 13:15:38,938 INFO  [MetafacadeMappings] found metafacades -->
>'bpm4struts'
> [andromda] 13:15:39,028 INFO  [MetafacadeMappings] found metafacades -->
>'ejb'
> [andromda] 13:15:39,268 INFO  [MetafacadeMappings] found metafacades -->
>'default'
> [andromda] 13:15:40,790 ERROR [DefaultAndroMDACartridge] Error performing
>DefaultAndroMDACartridge.processWithTemplate with template
>'templates/StrutsAction.vsl', template context '{securityEnabled=false,
>[EMAIL PROTECTED],

>
>[EMAIL PROTECTED],
>securityRealm=other}' and cartridge 'bpm4struts'
> [andromda] org.apache.velocity.exception.MethodInvocationException:
>Invocation of method 'getInput' in  class
>org.andromda.cartridges.bpm4struts.metafacades.StrutsActionLogicImpl threw
>exception class java.lang.ClassCastException : null
> [andromda]     at
>org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:193)

>...
>
>I'm quite sure that I've made a mistake in the UML modell but unfortuntly
>don't have any idear where... And unfortunatly the exeption text didn't do
>a lot to help me get a clue.
>I know the andromda team is working on features to validate a model before
>the generating process starts, but in the meantime can anyone give me some
>best practices on how to handle such kind of situations?
>
>Any hints would be very welcome!
>
>Regards
>Stefan
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
>one installation-authoring solution that does it all. Learn more and
>evaluate today! http://www.installshield.com/Dev2Dev/0504
>_______________________________________________
>Andromda-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/andromda-user
>

__________________________________________________________________
Introducing the New Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp






-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to