Hello Wouter,

it's me again. Unfortunatly it took a while until I could test your
suggestion to make ARIS XMI Exports work witth AndroMDA. And unfortunatly i
still have problems.
With the fix you suggested I still got the same exception stack trace, and
with the XMI file you send me I get a different one, starting with

mda:
 [andromda] 09:03:28,318 INFO  [CartridgeFinder] found cartridge -->
'bpm4struts
'
 [andromda] 09:03:28,378 INFO  [CartridgeFinder] found cartridge --> 'ejb'
 [andromda] 09:03:28,398 INFO  [CartridgeFinder] found cartridge --> 'java'
 [andromda] 09:03:33,686 INFO  [andromda] Input model -->
'file:D:/Projekte/mdd/
andromda/helloapp/mda/src/uml/helloapp.xmi'
 [andromda] 09:03:44,141 INFO  [MetafacadeMappings] found metafacades -->
'bpm4s
truts'
 [andromda] 09:03:44,271 INFO  [MetafacadeMappings] found metafacades -->
'ejb'
 [andromda] 09:03:44,521 INFO  [MetafacadeMappings] found metafacades -->
'defau
lt'
 [andromda] 09:03:45,473 INFO  [bpm4struts] Output:
'file:/D:/Projekte/mdd/andro
mda/helloapp/mda/../web/target/src/helloapp/presentation/EmployeeControllerInter
face.java'
 [andromda] 09:03:46,124 ERROR [DefaultAndroMDACartridge] Error performing
Defau
ltAndroMDACartridge.processWithTemplate with template
'templates/StrutsJSP.vsl',
 template context '{securityEnabled=false,
class=org.andromda.cartridges.bpm4str
[EMAIL PROTECTED],
str=org.andromda.core.common.StringUtils
[EMAIL PROTECTED], securityRealm=other}' and cartridge 'bpm4struts'
 [andromda] org.apache.velocity.exception.MethodInvocationException:
Invocation
of method 'getTitleKey' in  class
org.andromda.cartridges.bpm4struts.metafacades
.StrutsJspLogicImpl threw exception class java.lang.NullPointerException :
null

I'll send you the XMI-files and andromda-log-files. Probably you'll have
some ideas to get rid of these issues...

By the way: is there any way to get more info on the import process of the
netbeans mdr?
Or any documentation on how the XMI has to look like?

Regards
Stefan

--



|--------+------------------------>
|        |          [EMAIL PROTECTED]|
|        |          tscape.net    |
|        |                        |
|        |          25.05.2004    |
|        |          12:54         |
|        |                        |
|--------+------------------------>
  
>------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                    |
  |       An:     [EMAIL PROTECTED], [EMAIL PROTECTED]                                 
      |
  |       Kopie:  [EMAIL PROTECTED]                                                    
                  |
  |       Thema:  Re: Re: [Andromda-user] Using AndroMDA with ARIS UML Designer        
                                    |
  
>------------------------------------------------------------------------------------------------------------------------|




hi Stefan,

I think I found the issue: when specifying a context for an activity graph
ARIS uses a 'context' attribute in the UML:ActivityGraph tag (see XMI), JMI
has a problem reading this because it expects a child element instead of an
attribute:

<UML:ActivityGraph ...snip... context="ID.c9----7-----p--">

<UML:ActivityGraph ...snip... >
  <UML:StateMachine.context>
    <UML:ModelElement xmi.idref="ID.c9----7-----p--"/>
  </UML:StateMachine.context>

I tested this solution and this time it seems to generate everything fine.
I have attached the patched version of the XMI to this email. Give it a
try, it should work.

I don't think this is a problem with Aris, but I do think they should use a
child element rather than a simple attribute for JMI compatibility, so you
might consider letting them know. For the rest, they seem to be exporting
quite well, MagicDraw had no problem at all reading the file (even the
controller-graph assignment was interpreted correctly, so the context
attribute was handled as in Aris)

anyway, this problem is now resolved in your XMI ... you have other ones to
fix now, see the docs at http://team.andromda.org for more info, otherwise
post a question on the forums; but at least you can continue now

good luck

-- Wouter

[EMAIL PROTECTED] wrote:

>
>Hello Wouter,
>
>thank you four your quick response. Find enclosed an ARIS 6.2.1 database
>export (ADB-File) and the XMI export of the model. I added some
GIF-Exports
>of the diagrams too.
>
>Regards
>Stefan
>
>P.S.: We have quite good connections to the ARIS UML Designer developer
>team. So if you find any bugs in the way ARIS produces its XMI exports we
>can send this directly to the ARIS developers. And for the upcomming
>release of ARIS they are planing to let the users configure some
parameters
>of the XMI export format. So if we know what's wrong with the XMI format,
>we ca hopefully adjust that quite easily.
>
>--
>
>OPITZ CONSULTING GmbH
>Stefan Scheidt  -  Dipl.-Math.  -   Bereichsleiter
>Telefon: +49 2261 6001-0  Mobil: +49 173 7252423
>http://www.opitz-consulting.de
>
>
>
>|--------+-------------------------------->
>|        |          Wouter Zoons          |
>|        |          <[EMAIL PROTECTED]|
>|        |          forge.net>            |
>|        |                                |
>|        |          23.05.2004 10:16      |
>|        |          Bitte antworten an    |
>|        |          draftdog              |
>|        |                                |
>|--------+-------------------------------->
>  >
------------------------------------------------------------------------------------------------------------------------|

>  |
|
>  |       An:     [EMAIL PROTECTED]
|
>  |       Kopie:  [EMAIL PROTECTED]
|
>  |       Thema:  Re: [Andromda-user] Using AndroMDA with ARIS UML
Designer                                                |
>  >
------------------------------------------------------------------------------------------------------------------------|

>
>
>
>
>send me the model Stefan, I'll take a look at the output XMI to see what
>is going on ...
>
>-- Wouter
>
>[EMAIL PROTECTED] wrote:
>
>>Hello AndroMDA-Users,
>>
>>I'm just evaluating AndroMDA and quite new to that tool, so please
forgive
>>me any stupid questions...
>>
>>I try to use AndroMDA with XMI-Exports of ARIS UML Designer. The XMI
>Export
>>is specified as follows:
>>
>><?xml version="1.0" encoding="UTF-8" ?>
>><XMI xmi.version="1.1" xmlns:UML="//org.omg/UML/1.4">
>>     <XMI.header>
>>          <XMI.documentation>
>>               <XMI.exporter>ARIS UML Designer</XMI.exporter>
>>               <XMI.exporterVersion>2.0</XMI.exporterVersion>
>>          </XMI.documentation>
>>          <XMI.metamodel xmi.name="UML" xmi.version="1.4"/>
>>     </XMI.header>
>>     <XMI.content>
>>          ...
>>     </XMI.content>
>></XMI>
>>
>>I have modelled some enitites, services and front end controllers for
>>bpm4struts, and the generation worked fine. But as soon as I add an
>>activity graph for the contoller class, I get following exception:
>>
>>mda:
>> [andromda] 11:47:02,904 INFO  [CartridgeFinder] found cartridge -->
>>'bpm4struts'
>> [andromda] 11:47:02,954 INFO  [CartridgeFinder] found cartridge -->
'ejb'
>> [andromda] 11:47:02,984 INFO  [CartridgeFinder] found cartridge -->
>'java'
>> [andromda] 11:47:08,372 INFO  [andromda] Input model -->
>>'file:D:/Projekte/mdd/
>>andromda/helloapp/mda/src/uml/helloapp.xmi'
>> [andromda] org.netbeans.lib.jmi.util.DebugException: Cannot set a
>>multi-value to a non-multivalued reference:Reference$Impl  ID:
>>.:0000000000000433  MID: .:000000000000022F  OPCKG: .:00000000000002B5
>> [andromda]     at
>>org.netbeans.lib.jmi.xmi.XmiElement$Instance.setReferenceValu
>>es(XmiElement.java:705)
>>
>>What can I do to get more info on the error? Is it a modelling error or a
>>problem with the XMI export of ARIS? Can anyone help?
>>
>>Regards
>>Stefan
>>
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by: Oracle 10g
>>Get certified on the hottest thing ever to hit the market... Oracle 10g.
>>Take an Oracle 10g class now, and we'll give you the exam FREE.
>>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
>>_______________________________________________
>>Andromda-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/andromda-user
>>
>>
>>
>
>
>
>
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: Oracle 10g
>Get certified on the hottest thing ever to hit the market... Oracle 10g.
>Take an Oracle 10g class now, and we'll give you the exam FREE.
>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
>_______________________________________________
>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: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to