Re: ERAttachment help
Re: ERAttachment help
- Subject: Re: ERAttachment help
- From: Theodore Petrosky <email@hidden>
- Date: Wed, 1 Sep 2010 12:09:08 -0700 (PDT)
Ok I got the inverse relationship issue. now is the real work.
I have currently 5 'upgrades' using migrations (TWTMigration0-4.java)
so I added a sixth using the example.
package com.eltek.migrations;
import er.attachment.migrations.ERAttachmentMigration;
public class TWTMigration5 extends ERAttachmentMigration {
public TWTMigration5() {
super("jobImage", "c_job_image_id", true);
}
}
I am not understanding why this should work. I would have assumed that I was going to 'alter' an existing table.
so now I get the errors below.. :-(
Just when I think I beginning to understand, they pull me back in.
Ted
Sep 01 11:55:17 TheWorkTracker[63781] WARN er.extensions.eof.ERXModelGroup - Clearing previous class descriptions
Sep 01 11:55:18 TheWorkTracker[63781] INFO er.extensions.eof.ERXModelGroup - The connection dictionaries for TheWorkTrackerModel and erprototypes have the same URL and username, but at least one of them is a prototype model, so it shouldn't be a problem.
Sep 01 11:55:18 TheWorkTracker[63781] INFO er.extensions.eof.ERXModelGroup - The connection dictionaries for TheWorkTrackerModel and erprototypes have the same URL and username, but at least one of them is a prototype model, so it shouldn't be a problem.
Sep 01 11:55:18 TheWorkTracker[63781] ERROR er.extensions.appserver.ERXApplication - TheWorkTracker failed to start.
IllegalArgumentException: The connection dictionaries for ERAttachment and TheWorkTrackerModel 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 TheWorkTrackerModel.removeJdbc2Info=true in your Properties file. (ERAttachment={password = "pw"; username = "asacksadmin"; URL = "jdbc:postgresql://localhost/theworktracker?capitalizeTypenames=true&zeroDateTimeBehavior=convertToNull"; }; and TheWorkTrackerModel={plugin = "PostgresqlPlugIn"; username = "asacksadmin"; driver = "org.postgresql.Driver"; password = "pw"; URL = "jdbc:postgresql://localhost/theworktracker?capitalizeTypenames=true&zeroDateTimeBehavior=convertToNull"; }).
--- On Wed, 9/1/10, Mike Schrag <email@hidden> wrote:
> From: Mike Schrag <email@hidden>
> Subject: Re: ERAttachment help
> To: "Theodore Petrosky" <email@hidden>
> Cc: email@hidden
> Date: Wednesday, September 1, 2010, 11:37 AM
> When you added the relationship, you
> probably created the inverse, which you're not supposed to
> do. That dialog is saying that you modified the ERAttachment
> model, giving you the option to say you DO NOT want to save
> it. You want to say "no" to saving, for exactly the reason
> you have there. You also can save yourself some pain next
> time and just uncheck the inverse relationship in the
> relationship wizard.
>
> ms
>
> On Sep 1, 2010, at 11:27 AM, Theodore Petrosky wrote:
>
> > I am going over the 2009 video "Pratical Wonder" and
> trying to get ERAttachment working.
> >
> > I am using Eclipse 352 and current WOLips (and current
> Wonder).
> >
> > In my model, I am creating the relationship but when I
> try to save it, I get a permission error that says:
> >
> > You modified the following additional models in this
> model group: [ERAttachment]. Would you like to save them,
> also?
> >
> > if I click yes I get:
> >
> > java.io.FileNotFoundException:
> /Library/Frameworks/ERAttachment.framework/Resources/ERAttachment.eomodeld/ERDatabaseAttachment.plist
> (Permission denied)
> > at
> java.io.FileOutputStream.open(Native Method)
> > at
> java.io.FileOutputStream.<init>(FileOutputStream.java:179)
> > at
> java.io.FileOutputStream.<init>(FileOutputStream.java:131)
> > at
> org.objectstyle.woenvironment.plist.WOLPropertyListSerialization.propertyListToFile(WOLPropertyListSerialization.java:924)
> > at
> org.objectstyle.wolips.eomodeler.core.model.EOEntity.saveToFile(EOEntity.java:2317)
> > at
> org.objectstyle.wolips.eomodeler.core.model.EOModel.saveToFolder(EOModel.java:1159)
> > at
> org.objectstyle.wolips.eomodeler.core.model.EOModel.save(EOModel.java:1122)
> > at
> org.objectstyle.wolips.eomodeler.editors.EOModelEditor.doSave(EOModelEditor.java:664)
> > at
> org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:151)
> > at
> org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:274)
> > at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
> > at
> org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
> > at
> org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
> > at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> > at
> org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
> > at
> org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2579)
> > at
> org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:282)
> > at
> org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:261)
> > at
> org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:156)
> > at
> org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1357)
> > at
> org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:3328)
> > at
> org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3341)
> > at
> org.eclipse.ui.internal.SaveAction.run(SaveAction.java:76)
> > at
> org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
> > at
> org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
> > at
> org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
> > at
> org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
> > at
> org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
> > at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)
> > at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:824)
> > at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:880)
> > at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:569)
> > at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)
> > at
> org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:125)
> > at
> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> > at
> org.eclipse.swt.widgets.Display.filterEvent(Display.java:1131)
> > at
> org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1597)
> > at
> org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1622)
> > at
> org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1607)
> > at
> org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1659)
> > at
> org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1654)
> > at
> org.eclipse.swt.widgets.Control.kEventUnicodeKeyPressed(Control.java:2304)
> > at
> org.eclipse.swt.widgets.Composite.kEventUnicodeKeyPressed(Composite.java:605)
> > at
> org.eclipse.swt.widgets.Table.kEventUnicodeKeyPressed(Table.java:2336)
> > at
> org.eclipse.swt.widgets.Control.kEventTextInputUnicodeForKeyEvent(Control.java:2266)
> > at
> org.eclipse.swt.widgets.Widget.textInputProc(Widget.java:2054)
> > at
> org.eclipse.swt.widgets.Display.textInputProc(Display.java:3972)
> > at
> org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native
> Method)
> > at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3051)
> > at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
> > at
> org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
> > at
> org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
> > at
> org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> > at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> > at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
> > at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> > at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
> > at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
> > at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> > at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> > at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
> > at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> > 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
> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
> > at
> org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> > at
> org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> >
> > It look like it is trying to save to the
> /Library/Frameworks/ area
> >
> > Is there a more complete example out there that I
> could use to learn this?
> >
> > Ted
> >
> >
> >
> >
> >
> > _______________________________________________
> > 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