Fornax-Platform
Forum

Couldn't find operation 'isUnnamed()' for uml::Property

View: New views
3 Messages — Rating Filter:   Alert me  

Couldn't find operation 'isUnnamed()' for uml::Property

by mtthwcmpbll :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey folks:

   I've been looking all over for info on this problem, but I haven't found mention of it anywhere else online so I'm hoping someone here can point me in the right direction.  I've got a very simple model built in MagicDraw 15.1 and I am trying to run it through the hibernate cart.  Everything seems to be working fine until I hit the ModelTransformation extension.  Below is a dump of my workflow's output:

INFO - --------------------------------------------------------------------------------------
INFO - openArchitectureWare 4.3.0, Build 20080508-1430PRD
INFO - (c) 2005-2008 openarchitectureware.org and contributors
INFO - --------------------------------------------------------------------------------------
INFO - running workflow: com/syrres/risktracer/oaw/restful/test/GenerateRestfulServices.oaw
INFO -
INFO - TextConfigurationReader: loading global configuration model (text) from hibernateConfig.txt
INFO - XmiReader: file 'src/com/syrres/risktracer/oaw/restful/test/PetStore.uml' => slot 'model'
INFO - DirectoryCleaner(dirCleaner): cleaning directory './src-gen, ./src-gen'
INFO - Cleaning C:\workspaces\Jazz_1.0_beta2_2\RestfulServiceCartridge\.\src-gen
INFO - Cleaning C:\workspaces\Jazz_1.0_beta2_2\RestfulServiceCartridge\.\src-gen
INFO - Generator(generator): generating 'com::syrres::risktracer::oaw::restful::test::Skeleton::Root FOR model' => directory 'null'
WARN - Global variable 'type_header_text' is null. Is it configured?
WARN - Global variable 'type_footer_text' is null. Is it configured?
WARN - Global variable 'interface_operation_implementation_strategy' is null. Is it configured?
INFO - Written 12 files to outlet [default](./src-gen)
INFO - Written 4 files to outlet outletSrcOnceDir(./src-gen-once)
INFO - Workflow: executing workflow org/fornax/cartridges/uml2/hibernate/hibernate.oaw in com/syrres/risktracer/oaw/restful/test/GenerateRestfulServices.oaw:70
INFO - FeatureComponent: executing feature org/fornax/cartridges/uml2/hibernate/hibernate.oaw in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:56
INFO - XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
INFO - --------------------
INFO - Starting Modelmodifications
INFO - Moving Entities to POJO package
INFO - Naming unnamed association-ends
ERROR - Error in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent:
        EvaluationException : Couldn't find operation 'isUnnamed()' for uml::Property.
        org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation.ext[3288,13] on line 91 'p.isUnnamed()'                
        org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation.ext[1974,29] on line 52 'nameUnnamedAssociationEnds(m)'
        nofile[0,26] on line 1 'createDefaultValues(model)'                                                                              

ERROR - Workflow interrupted. Reason: EvaluationException : Couldn't find operation 'isUnnamed()' for uml::Property.
        org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation.ext[3288,13] on line 91 'p.isUnnamed()'
        org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation.ext[1974,29] on line 52 'nameUnnamedAssociationEnds(m)'
        nofile[0,26] on line 1 'createDefaultValues(model)'

ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [p.isUnnamed()]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [Class.isInstance(p.type)&&p.isUnnamed()]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [m.allOwnedElements().typeSelect(uml::Property).select(p|Class.isInstance(p.type)&&p.isUnnamed())]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [m.allOwnedElements().typeSelect(uml::Property).select(p|Class.isInstance(p.type)&&p.isUnnamed()).modifyUnnamedProperty()]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [Void nameUnnamedAssociationEnds(Model m)]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [nameUnnamedAssociationEnds(m)]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [info("--------------------")->info("Starting Modelmodifications")->info("Moving Entities to POJO package")->movingEntities(m)->info("Naming unnamed association-ends")->nameUnnamedAssociationEnds(m)]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [info("--------------------")->info("Starting Modelmodifications")->info("Moving Entities to POJO package")->movingEntities(m)->info("Naming unnamed association-ends")->nameUnnamedAssociationEnds(m)->info("Creating default-keys")]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [info("--------------------")->info("Starting Modelmodifications")->info("Moving Entities to POJO package")->movingEntities(m)->info("Naming unnamed association-ends")->nameUnnamedAssociationEnds(m)->info("Creating default-keys")->allEntities(m).createDefaultKeys()]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [info("--------------------")->info("Starting Modelmodifications")->info("Moving Entities to POJO package")->movingEntities(m)->info("Naming unnamed association-ends")->nameUnnamedAssociationEnds(m)->info("Creating default-keys")->allEntities(m).createDefaultKeys()->info("Set Natural Keys")]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [info("--------------------")->info("Starting Modelmodifications")->info("Moving Entities to POJO package")->movingEntities(m)->info("Naming unnamed association-ends")->nameUnnamedAssociationEnds(m)->info("Creating default-keys")->allEntities(m).createDefaultKeys()->info("Set Natural Keys")->allEntities(m).handleNaturalKeys()]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [info("--------------------")->info("Starting Modelmodifications")->info("Moving Entities to POJO package")->movingEntities(m)->info("Naming unnamed association-ends")->nameUnnamedAssociationEnds(m)->info("Creating default-keys")->allEntities(m).createDefaultKeys()->info("Set Natural Keys")->allEntities(m).handleNaturalKeys()->info("--------------------")]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [info("--------------------")->info("Starting Modelmodifications")->info("Moving Entities to POJO package")->movingEntities(m)->info("Naming unnamed association-ends")->nameUnnamedAssociationEnds(m)->info("Creating default-keys")->allEntities(m).createDefaultKeys()->info("Set Natural Keys")->allEntities(m).handleNaturalKeys()->info("--------------------")->m]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [Void createDefaultValues(Model m)]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'
ERROR - ERROR in Component hibernateCartridge_transformations of type org.openarchitectureware.xtend.XtendComponent
        Couldn't find operation 'isUnnamed()' for uml::Property. [createDefaultValues(model)]  in workflow: XtendComponent(hibernateCartridge_transformations): executing 'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransformation'


As you can see, it looks like there isn't a method isUnnamed() on a uml::Property object.  I've tried writing an extension myself that uses such a method and the autocomplete doesn't include it either.  Looking back a few versions (and in the latest code in trunk as well), I see that method looks about the same, so its not a transient problem that's already been fixed somewhere.  I'm using oAW 4.3, Eclipse 3.3 along with the latest Europa-released UML2 tools plugins.  Thanks so much for your time and any help and info.

Re: Couldn't find operation 'isUnnamed()' for uml::Property

by Darius Jockel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

sorry for my late answer.

mtthwcmpbll wrote:
As you can see, it looks like there isn't a method isUnnamed() on a uml::Property object.
This function is defined in the java basic cartridge. Please be sure that this includet in your build path.
In some cases the autocomplete will not work for Xtensions in jar files. In this case you have to checkout the java basic cartridge and place it next to your project.

mtthwcmpbll wrote:
  I'm using oAW 4.3, Eclipse 3.3 along with the latest Europa-released UML2 tools plugins.  Thanks so much for your time and any help and info.
If the import of the java basic cartridge will not solve your problem,
please try to generate with the ant script and the provided oAW 4.2 jars.
Maybe there is a version conflict. The current version 1.6.0 is only tested with oAW 4.2.

Regards
Darius

Re: Couldn't find operation 'isUnnamed()' for uml::Property

by mtthwcmpbll :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Darius Jockel wrote:
This function is defined in the java basic cartridge.
Ah, I think I've found the problem then.  I was using the JavaBasic 1.3.0 jars downloadable from the Fornax website.  I see that the JavaBasic jar included in the hibernate distribution is labelled as 2.0.2, and including this on my classpath as opposed to the ones I downloaded seems to have fixed the problem.  I don't see any reference to a version 2.0.2 on the website though, and was wondering where the version difference comes from.  Anyways, thanks so much for the help!
LightInTheBox - Buy quality products at wholesale price