• 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: Pau Yu <email@hidden>
  • Date: Wed, 11 Jan 2012 10:19:55 -0500

James

You may want to remove or comment out the connection dictionaries from everywhere other than the place you want it, i.e. in your application Properties or your Properties.james file.

Paul


-- 
Pau Yu
Sent with Sparrow

On Wednesday, January 11, 2012 at 10:12 AM, John Huss wrote:

Try printing out both dictionaries and look to see how they are different.

On Wed, Jan 11, 2012 at 8:31 AM, James Cicenia <email@hidden> wrote:
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



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)

This email sent to email@hidden



 _______________________________________________
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



 _______________________________________________
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: James Cicenia <email@hidden>
References: 
 >Properties, Frameworks and App (From: James Cicenia <email@hidden>)
 >Re: Properties, Frameworks and App (From: James Cicenia <email@hidden>)
 >Re: Properties, Frameworks and App (From: John Huss <email@hidden>)

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