Hello, to cut a long story short,
I changed the Mac OS X default java engine To the latest Java 6 64-bit Engine installed by using the Java Preferences Tool in the Utilites folder and now it works. Strange enough. Maybe I have changed something else alongside during my tests, but ... Thanks for sharing your brain-brawn. Christian Völker Am 17.12.2008 um 05:18 schrieb Kim Shepherd: > Hi Christian, > > The maven build looks OK to me. Looking at another post today made > me think to ask a (possibly obvious) question: have you created a > database owned by the appropriate user on the machine that Eclipse > is on and changed [dspace-source]/dspace/config/dspace.cfg to match > the right settings? No question can be too trivial. I did not mention that. Yes, the database is avai- lable and all the tables get created during ant fresh_install. I also dropped all tables between each run of ant fresh_install. It only breaks while loading registries into the database. I also checked encoding which is UTF8 by default in my postgres instance. The idea was, that until loading the registries all tables are empty and it might indicate some incompatibility of data types when an error appears as soon as I try to write into a table. Postgres Version might also be an issue? [MacBookCV:~] cvoelker% psql Welcome to psql 8.3.4, the PostgreSQL interactive terminal. (...) postgres=# create database dspace owner dspace; CREATE DATABASE postgres=# \l List of databases Name | Owner | Encoding -----------+----------+---------- dspace | dspace | UTF8 postgres | postgres | UTF8 template0 | postgres | UTF8 template1 | postgres | UTF8 (4 rows) I think you are right that there is some- thing wrong on the java side. But I dont know whether there is a log already at this stage. I guess there should be one, but I cant find it. I know only the place where it should be, but not the name. I cam to ask myself this question because shortly before the error, there is this entry in the Eclispe console window pane: [java] 2008-12-15 02:30:52,174 INFO org.dspace.core.ConfigurationManager @ Using default log4j provided log configuration,if uninitended, check your dspace.cfg for (log.init.config) My dspace.cfg has this entry, which was expanded from dspace.dir during instal- lation I guess: log.init.config = /Users/cvoelker/Documents/dspace/config/ log4j.properties # Where to put the logs (used in configuration only) log.dir = /Users/cvoelker/Documents/dspace/log This directory is still empty. The directory was created during ant fresh_install. As thus, I cannot have done anything wrong regarding privileges. It should be writeable to the ant task. It would probably be help- ful to see, what are the first entries in this proposed log file during a run of ant fresh_install. If it starts with an entry regarding loading registries into the database, then it would be a strong hint, that logging is an issue for me. Another requirement for this step could be the availablility of the registry tem- plates. There are three of them in either dspace-source in the eclipse workspace and in the dspace install directory under config/registries, one for bitstreams, one for Dublin Core and one for Sword. I guess that is fine. Specificall, the ant task fails while loading the bitstream formats, which are available. Again, where could I search for more Infor- mation about the error? On the other hand, even a log file would not provide more info than the console window pane did already. this one is particularly clear: [java] 2008-12-15 02:30:52,696 FATAL org.dspace.administer.RegistryLoader @ anonymous::error_loading_registries: [java] java.lang.NullPointerException [java] at org.dspace.storage.rdbms.TableRow.canonicalize(TableRow.java:611) Can this have to do with a problem within the Java Runtime in use? I have MacOS 10.5.5 default, which is: [MacBookCV:~] cvoelker% java -version java version "1.5.0_16" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16- b06-284) Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) >> -----Original Message----- >> From: Christian Voelker [mailto:c.voel...@gmx.net] >> Sent: Tuesday, 16 December 2008 3:15 p.m. >> To: Kim Shepherd >> Subject: Re: [Dspace-tech] TableRow.canonicalize error with postgres >> >> Hello Kim, >> >> thanks for pointing me to that earlier stage of the whole process. >> Unhappily I could not find anything going wrong there already. >> See below for more details, >> >> Thanks, Christian >> >> >> Am 15.12.2008 um 03:25 schrieb Kim Shepherd: >> >>> Hi Christian, >>> >>> Did Maven report anything strange during build? >> >> No, nothing that I noticed. In console window, when it comes to a >> halt, >> you just see these last four or five lines which read essentially >> "Build successful". It was very similar to the example in the wiki >> besides taking much more time, probably because it had to download a >> lot of stuff running the first time. I did actually build twice with >> the same result. >> I followed approach B), separate projects. >> I wonder, why one of the folder decorators looks like a snow flake. >> >> Ok, I ran the dspace clean maven task and the dspace assemble maven >> task and went through the build log. Everything was [Info] except >> three >> lines: >> >> [WARNING] >> >> DEPRECATED: Binding aggregator mojos to lifecycle phases in the POM >> is >> considered dangerous. >> This feature has been deprecated. Please adjust your POM files >> accordingly. >> >> Offending mojo: >> >> org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-1:attached >> >> Project: org.dspace:dspace-lni-client:jar:1.5.2-SNAPSHOT >> POM File: /Users/cvoelker/Documents/workspace/dspace-lni/dspace-lni- >> client/pom.xml >> >> [INFO] [assembly:attached] >> >> (...) >> >> [INFO] Reading assembly descriptor: /Users/cvoelker/Documents/ >> workspace/dspace/src/assemble/assembly.xml >> [INFO] Initializing assembly filters... >> [INFO] Processing DependencySet (output=lib) [WARNING] The following >> patterns were never triggered in this artifact exclusion filter: >> o '*:war:*' >> >> [WARNING] The following patterns were never triggered in this >> artifact >> exclusion filter: >> o 'org.dspace:dspace-xmlui-lang' >> >> >> As my question has to do a lot with not being familiar with >> Eclipse, I >> take the freedom to include two screenshots in a mail to the list: > ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech