• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Properties, Frameworks and App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Properties, Frameworks and App


  • Subject: Re: Properties, Frameworks and App
  • From: James Cicenia <email@hidden>
  • Date: Wed, 11 Jan 2012 08:31:19 -0600

Now I am all confused ( I know, I know).

If I just put the Global DB info in my App properties file, Wonder complains:

IllegalArgumentException: The connection dictionaries for ERAttachment and BlessingsAndToasts have the same URL and username, but the connection dictionaries are not equal. Check your connection dictionaries carefully! This problem is often caused by jdbc2Info not matching between the two.  One fix for this is to set ERAttachment.removeJdbc2Info=true and BlessingsAndToasts.removeJdbc2Info=true in your Properties file. 

So, I do as it says. Same exception.

This is my first application with the Model in a separate framework. All my other apps had the model included so I have never seen this issue.

Thanks
James




On Jan 11, 2012, at 4:02 AM, Amedeo Mantica wrote:

why not in your app properties ?



On 11/gen/2012, at 02:58, James Cicenia wrote:

If I have a model in a Framework, what controls it's connection configuration?

I thought the properties file in the App would, but it looks like it doesn't. It barks
about ERAttachment's configuration vs. the apps. If I put the connection info
in the Model Frameworks's properties file, it runs... sort of. But now I get this
kind of exception on startup:

 setting traceOpenLocks to false
Jan 10 19:53:00 BlessingsApp[6789] DEBUG er.extensions.eof.ERXEC$DefaultFactory  - Setting default delegate on editing context: er.extensions.eof.ERXEC@4a4854f6 allows validation: true
Jan 10 19:53:00 BlessingsApp[6789] DEBUG er.extensions.eof.ERXEC  - setting delegate to er.extensions.eof.ERXDefaultEditingContextDelegate@d054f93
Jan 10 19:53:00 BlessingsApp[6789] DEBUG er.extensions.eof.ERXEC  - 
at er.extensions.eof.ERXEC.setDelegate(ERXEC.java:1469)
at er.extensions.eof.ERXEC$DefaultFactory.setDefaultDelegateOnEditingContext(ERXEC.java:1563)
at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1618)
at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1589)
at er.extensions.eof.ERXEC.newEditingContext(ERXEC.java:1681)
at er.extensions.jdbc.ERXJDBCUtilities.databaseProductName(ERXJDBCUtilities.java:826)
at er.extensions.migration.ERXMigrator._buildDependenciesForModel(ERXMigrator.java:352)
at er.extensions.migration.ERXMigrator._buildDependenciesForModelsNamed(ERXMigrator.java:275)
at er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:184)
at er.extensions.appserver.ERXApplication.finishInitialization(ERXApplication.java:1128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)
at com.webobjects.appserver.WOApplication.run(WOApplication.java:1229)
at er.extensions.appserver.ERXApplication.run(ERXApplication.java:1241)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:548)
at er.extensions.appserver.ERXApplication.main(ERXApplication.java:726)
at com.jimijon.blessings.app.Application.main(Application.java:16)

Jan 10 19:53:00 BlessingsApp[6789] DEBUG er.extensions.eof.ERXEC$DefaultFactory  - setting useSharedEditingContext to false
Jan 10 19:53:00 BlessingsApp[6789] DEBUG er.extensions.eof.ERXEC  - setting useUnlocker to true
Jan 10 19:53:00 BlessingsApp[6789] DEBUG er.extensions.eof.ERXEC  - After pushing: [er.extensions.eof.ERXEC@4a4854f6]
Jan 10 19:53:00 BlessingsApp[6789] DEBUG er.extensions.ERXEC.LockLogger  - locked er.extensions.eof.ERXEC@4a4854f6
Jan 10 19:53:00 BlessingsApp[6789] DEBUG er.extensions.localization.ERXLocalizer  - FrameworkSearchPath: ("app", "ERJars", "ERPrototypes", "ERModernLook", "ERModernDefaultSkin", "ERModernDirectToWeb", "JavaWOExtensions", "Ajax", "ModelBlessings", "ERAttachment", "MySQLPlugIn", "ERDirectToRest", "ExcelGenerator", "ERExcelLook", "ERRest", "WOLips", "JavaDTWGeneration", "JavaDirectToWeb", "JavaFoundation", "JavaXML", "JavaJDBCAdaptor", "JavaWebObjects", "JavaEOAccess", "JavaEOControl", "JavaEOProject", "ERDirectToWeb", "ERExtensions")
Exception
  at er.extensions.eof.ERXEC.lock(ERXEC.java:513)
  at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1620)
  at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1589)
  at er.extensions.eof.ERXEC.newEditingContext(ERXEC.java:1681)
  at er.extensions.jdbc.ERXJDBCUtilities.databaseProductName(ERXJDBCUtilities.java:826)
  at er.extensions.migration.ERXMigrator._buildDependenciesForModel(ERXMigrator.java:352)
  at er.extensions.migration.ERXMigrator._buildDependenciesForModelsNamed(ERXMigrator.java:275)
  at er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:184)
  at er.extensions.appserver.ERXApplication.finishInitialization(ERXApplication.java:1128)


James Cicenia 
cell: 773.398.4649


smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Properties, Frameworks and App
      • From: Philippe Rabier <email@hidden>
    • Re: Properties, Frameworks and App
      • From: John Huss <email@hidden>
References: 
 >Properties, Frameworks and App (From: James Cicenia <email@hidden>)

  • Prev by Date: Properties, Frameworks and App
  • Next by Date: Re: Properties, Frameworks and App
  • Previous by thread: Properties, Frameworks and App
  • Next by thread: Re: Properties, Frameworks and App
  • Index(es):
    • Date
    • Thread