So you are trying to create a new entity in the model?? > method: > > public synchronized static EOEntity > prepareExtraEntityForEntityNamed(EOEditingContext ec, String entityName) { > String newEntityName = EXTRA_ENTITY_NAME_PREFIX+entityName; > EOEntity result = ERXEOAccessUtilities.entityNamed(ec, newEntityName); > if (result==null) { > EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, > entityName); > EOModel model = entity.model(); > java.net.URL modelPath = model.pathURL(); > if(log.isDebugEnabled()) log.debug("extraEntityForEntityNamed: > modelPath="+modelPath); > > try { > java.net.URI entityPath = new > java.net.URI(NSPathUtilities.stringByAppendingPathComponent(modelPath.toString(), > entityName+".plist")); > if(log.isDebugEnabled()) > log.debug("extraEntityForEntityNamed: entityPath="+entityPath); > NSMutableDictionary entityDictionary = > NSPropertyListSerialization.dictionaryForString(ERXFileUtilities.stringFromFile(new > File(entityPath))).mutableClone(); > if(log.isDebugEnabled()) > log.debug("extraEntityForEntityNamed: entityDictionary="+entityDictionary); > > entityDictionary.setObjectForKey(newEntityName, "name"); > entityDictionary.setObjectForKey("EOGenericRecord", > "className"); > > result = new EOEntity(entityDictionary, model); > result.awakeWithPropertyList(entityDictionary); > // result.setClassName(entity.className()); > model.addEntity(result); > } catch (Exception e) { > /* _exception there >>>>_ */ > log.error("prepareExtraEntityForEntityNamed: exception="+e); > } > // create fss > java.util.Enumeration enumerator = > entity.fetchSpecificationNames().objectEnumerator(); > while (enumerator.hasMoreElements()) { > String fsName = (String)enumerator.nextElement(); > EOFetchSpecification fs = > (EOFetchSpecification)entity.fetchSpecificationNamed(fsName).clone(); > fs.setEntityName(newEntityName); > result.addFetchSpecification(fs, fsName); > } > > if(log.isDebugEnabled()) { > log.debug("extraEntityForEntityNamed: > result.fetchSpecificationNames()="+result.fetchSpecificationNames()); > log.debug("extraEntityForEntityNamed: > result.attributes()="+result.attributes()); > log.debug("extraEntityForEntityNamed: > result.relationships()="+result.relationships()); > } > } > return result; > } > > 2012/5/22 Pascal Robert <prob...@macti.ca> > Full strack trace please, DMEOAccessUtilities is not part of Wonder, so we > can't figure out what Wonder or WO method you are calling. > > > hi > > i have some difficuilts with start of app: > > > > ERROR (DMEOAccessUtilities.java:332) - prepareExtraEntityForEntityNamed: > > exception=java.net.URISyntaxException: Illegal character in path at index > > 162: > > file:/C:/Users/ronx/workspace/svn/trunk/Frameworks/ApplicationsFrameworks/LSBL/build/LSBL.framework/Resources/ls.eomodeld\Album.plist > > > > could anyone help? > > > > _______________________________________________ > > Do not post admin requests to the list. They will be ignored. > > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca > > > > This email sent to prob...@macti.ca > >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com