• 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: FrontBase and javaeoutil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FrontBase and javaeoutil


  • Subject: Re: FrontBase and javaeoutil
  • From: David Holt <email@hidden>
  • Date: Tue, 20 Jun 2006 14:25:36 -0700

That solves that one, now on to the next!

I added the following lines to the MacOSClassPath.txt file:

# adding additional items to the classpath for use with FrontBase
/Library/Frameworks/FrontBasePlugIn.framework/Versions/A/Resources/ Java/frontbaseplugin.jar
/Library/Java/Extensions/frontbasejdbc.jar


The dump now gives me an integrity constraint violation. I shouldn't need to use schemaCreate given that the database and tables have already been created, so how do I turn off the foreign key constraint checks in javaeoutil during import? Thanks,

Exception running dump:
com.webobjects.jdbcadaptor.JDBCAdaptorException: Exception condition 361. Integrity constraint violation (FOREIGN KEY, POST._C0000000195 (TOPIC_ID=2)).
at com.webobjects.jdbcadaptor.JDBCContext.commitTransaction (JDBCContext.java:420)
at EODumper._insertRowsForEntityForce(EODumper.java:168)
at EODumper.dumpRowSetToDatabaseForce(EODumper.java:492)
at Application.dumpDatabase(Application.java:514)
at Application.old_main(Application.java:131)
at Application.applicationDidFinishLaunching (Application.java:109)
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:324)
at com.webobjects.foundation.NSSelector._safeInvokeMethod (NSSelector.java:120)
at com.webobjects.foundation.NSNotificationCenter $_Entry.invokeMethod(NSNotificationCenter.java:601)
at com.webobjects.foundation.NSNotificationCenter.postNotification (NSNotificationCenter.java:545)
at com.webobjects.foundation.NSNotificationCenter.postNotification (NSNotificationCenter.java:559)
at com.webobjects.appserver.WOApplication.run (WOApplication.java:895)
at com.webobjects.appserver.WOApplication.main (WOApplication.java:324)
at Application.main(Application.java:87)
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:324)
at com.webobjects._bootstrap.WOBootstrap.main (WOBootstrap.java:71)



On 20 Jun 2006, at 1:17 PM, Chuck Hill wrote:

It all comes down to the classpath. The easiest is probably to add it to
/System/Library/WebObjects/JavaApplications/javaeoutil.woa/Contents/ MacOS/MacOSClassPath.txt




On Jun 20, 2006, at 12:36 PM, David Holt wrote:

Hi everyone,

I am exporting data from MySQL to FrontBase using javaeoutil.woa and following the script in Practical WebObjects (pg. 269). I set up a test database and run into the following error when trying to import into FrontBase from the dumped plist. I have confirmed that the plist will repopulate the MySQL database with no problem. Is there a way to specify the FrontBase plugin for javaeoutil, or am I missing something?? Thanks,

David

Exception running dump:
com.webobjects.jdbcadaptor.JDBCAdaptorException: No suitable driver
at com.webobjects.jdbcadaptor.JDBCContext.connect (JDBCContext.java:244)
at com.webobjects.jdbcadaptor.JDBCContext._tryConnect (JDBCContext.java:331)
at com.webobjects.jdbcadaptor.JDBCContext._channelWillOpen (JDBCContext.java:468)
at com.webobjects.jdbcadaptor.JDBCChannel.openChannel (JDBCChannel.java:81)
at EODumper._openAdaptorChannel(EODumper.java:202)
at EODumper.dumpRowSetToDatabaseForce(EODumper.java:478)
at Application.dumpDatabase(Application.java:514)
at Application.old_main(Application.java:131)
at Application.applicationDidFinishLaunching (Application.java:109)
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:324)
at com.webobjects.foundation.NSSelector._safeInvokeMethod (NSSelector.java:120)
at com.webobjects.foundation.NSNotificationCenter $_Entry.invokeMethod(NSNotificationCenter.java:601)
at com.webobjects.foundation.NSNotificationCenter.postNotification (NSNotificationCenter.java:545)
at com.webobjects.foundation.NSNotificationCenter.postNotification (NSNotificationCenter.java:559)
at com.webobjects.appserver.WOApplication.run (WOApplication.java:895)
at com.webobjects.appserver.WOApplication.main (WOApplication.java:324)
at Application.main(Application.java:87)
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:324)
at com.webobjects._bootstrap.WOBootstrap.main (WOBootstrap.java:71)




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


This email sent to email@hidden

--
Coming in late 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/ practical_webobjects





_______________________________________________ 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: FrontBase and javaeoutil
      • From: Guido Neitzer <email@hidden>
References: 
 >FrontBase and javaeoutil (From: David Holt <email@hidden>)
 >Re: FrontBase and javaeoutil (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: FrontBase and javaeoutil
  • Next by Date: Shared Editing Context Error
  • Previous by thread: Re: FrontBase and javaeoutil
  • Next by thread: Re: FrontBase and javaeoutil
  • Index(es):
    • Date
    • Thread