Re: [Dspace-tech] Error creating indexes 'invalid multibyte character for locale'
Hi all, We've completed another restore but are still having the same issue. This time we created a new database with the UNICODE encoding as per the installation manual: createdb -U dspace -E UNICODE dspace We then took an export of the current production database: pg_dump dspace > dspace-prod.dump and imported it into the new database: psql -d dspace -f dspace-prod.dump We then upgraded the database to 1.6: psql -U dspace -f /dspace-1.6-2-src-release/dspace/etc/postgres/database_schema_15_16.sql dspace And ran the index-init script: [dspace]/bin/dspace index-init But still the same issue as before. >> dspace index-init -v >> Exception: org.postgresql.util.PSQLException: ERROR: invalid multibyte >> character for locale >> org.dspace.browse.BrowseException: org.postgresql.util.PSQLException: ERROR: >> invalid multibyte character for locale >>at >> org.dspace.browse.BrowseCreateDAOPostgres.insertDistinctRecord(BrowseCreateDAOPostgres.java:691) >>at >> org.dspace.browse.BrowseCreateDAOPostgres.getDistinctID(BrowseCreateDAOPostgres.java:566) >>at org.dspace.browse.IndexBrowse.indexItem(IndexBrowse.java:485) >>at org.dspace.browse.IndexBrowse.createIndex(IndexBrowse.java:1148) >>at org.dspace.browse.IndexBrowse.initBrowse(IndexBrowse.java:1098) >>at org.dspace.browse.IndexBrowse.main(IndexBrowse.java:749) >>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.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:212) Is there anything wrong with the above process? The next step we are going to attempt is checking the actual SQL dump for the bad characters but it is massive (1.5 Gb) thanks, Steve On 26/10/2010, at 10:10 AM, Steve Swinsburg wrote: > Hi Kim, > > We took a *copy* of the database and refreshed it back to dev, so it is > identical to the production one, then upgraded it in dev. So I'll need to > find out if the original database from production was created that way. > > Perhaps we should take a dump of the production database instead, and then > import that into a fresh UTF8 created database? I think the issue is that the > original database was never created as UTF8. > > Thanks, > Steve > > > > > On 26/10/2010, at 9:17 AM, Kim Shepherd wrote: > >> Hi Steve, >> >> Just to check, has your new/dev database been created with UTF8 character >> encoding? (pass -E UNICODE or -E UTF8 to createdb) >> >> Cheers, >> >> Kim >> >> On 25 October 2010 14:57, Steve Swinsburg wrote: >> Hi all, >> >> We are having a problem upgrading an instance of dspace from 1.5.x-1.6.2. We >> built the new 1.6.2 code and took a snapshot of our old production database >> and migrated in back to our dev environment (along with the assets). We then >> ran the db upgrade script. >> >> Now, when running the index-init script we get this: >> >> ./dspace index-init -v >> Exception: org.postgresql.util.PSQLException: ERROR: invalid multibyte >> character for locale >> org.dspace.browse.BrowseException: org.postgresql.util.PSQLException: ERROR: >> invalid multibyte character for locale >>at >> org.dspace.browse.BrowseCreateDAOPostgres.insertDistinctRecord(BrowseCreateDAOPostgres.java:691) >>at >> org.dspace.browse.BrowseCreateDAOPostgres.getDistinctID(BrowseCreateDAOPostgres.java:566) >>at org.dspace.browse.IndexBrowse.indexItem(IndexBrowse.java:485) >>at org.dspace.browse.IndexBrowse.createIndex(IndexBrowse.java:1148) >>at org.dspace.browse.IndexBrowse.initBrowse(IndexBrowse.java:1098) >>at org.dspace.browse.IndexBrowse.main(IndexBrowse.java:749) >>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.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:212) >> >> We are on Postgres: >> PostgreSQL 8.1.21 on x86_64-redhat-linux-gnu, compiled by GCC gcc (GCC) >> 4.1.2 20080704 (Red Hat 4.1.2-48) >> >> Any tips? >> >> thanks, >> Steve >> -- >> Nokia and AT&T present the 2010 Calling All Innovators-North America contest >> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada >> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing >> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store >> http://p.sf.net/sfu/nokia-dev2dev >> __
Re: [Dspace-tech] messages.properties in hindi
You'll need to use a program called native2ascii to convert your properties files back to unencoded utf8. Alternatively, you could use a gui tool such as TongueTied or Eclipse's property file editor to convert the properties file into a text readable format for editing. Hope this helps. Cheers Hayden On 27/10/10 16:59, Hardik Mishra wrote: Hi Everyone I want to use hindi lables for dpsace 1.5.2 I am using win xp i have configured webui.supported.locale and it shows me hindi option in browser. I have created Messages.rtf file with an UTF-8 editor and then save as it as Messages_hi.text as UTF-8 So Now if i open this file with any editor Hindi fonts persists. Then i have created a Messages_hi.properties file with UTF-8 encoding. I am pasting all text from unicode text file to properties file. When i open Messages_hi.properties file with notepad it works fine but with any other editor like wordpad, or dreamweaver. Values for keys gets garbled. So, dspace also displays garbled values. Any help would be appreciated Thanks & Regards Hardik Mishra Software Engineer Webinito Networks Give a man a fish, and you feed him for a day. Teach a man to catch fish and you feed him for a lifetime. -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps& games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Hayden Young Managing Director Wijiti Pty Ltd p. +61 (0) 8 6102 1198 m. +61 (0) 405 520 778 e. haydenyo...@wijiti.com w. www.wijiti.com vcard. www.wijiti.com/vcard/haydenyoung.vcf NOTICE This e-mail and any attachments are intended for the addressee(s) only and may be confidential. They may contain legally privileged or copyright material. You should not read, copy, use or disclose them without authorization. If you are not the intended recipient please contact the sender as soon as possible by return e-mail and then please delete both messages. This notice should not be removed. -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] messages.properties in hindi
Hi Everyone I want to use hindi lables for dpsace 1.5.2 I am using win xp i have configured webui.supported.locale and it shows me hindi option in browser. I have created Messages.rtf file with an UTF-8 editor and then save as it as Messages_hi.text as UTF-8 So Now if i open this file with any editor Hindi fonts persists. Then i have created a Messages_hi.properties file with UTF-8 encoding. I am pasting all text from unicode text file to properties file. When i open Messages_hi.properties file with notepad it works fine but with any other editor like wordpad, or dreamweaver. Values for keys gets garbled. So, dspace also displays garbled values. Any help would be appreciated Thanks & Regards Hardik Mishra Software Engineer Webinito Networks Give a man a fish, and you feed him for a day. Teach a man to catch fish and you feed him for a lifetime. -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] How i install and configure LDAP server in dspace
On Wed, Oct 27, 2010 at 09:38, shashidhar chaturvedi wrote: > I want to install and configure LDAP server in my dspace. > Please any one suggest me how i install and configure LDAP server. Hello Shashidhar, I assume you want to configure DSpace as an LDAP client, i.e. to use an LDAP server to hold user information. You will find the details on that in chapter 5.2.11.6. Configuring LDAP Authentication: http://www.dspace.org/1_6_2Documentation/ch05.html#N12C9B That assumes you have a working LDAP server. Configuring an LDAP _server_ is a more complex issue, out of scope of this mailing list, I'm afraid. Regards, ~~helix84 -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] How i install and configure LDAP server in dspace
http://wiki.lib.sun.ac.za/index.php/SUNScholar/User_Management Hi Shashidhar Try the link above if you used Ubuntu 10.04 server software. See: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Dspace Cheers hg On 27/10/2010 09:38, shashidhar chaturvedi wrote: Hi all, I want to install and configure LDAP server in my dspace. Please any one suggest me how i install and configure LDAP server. My configuration is Dspace 1.6, tomcat 6, jdk 1.6, ant 1.7, maven 2.2.1 and postgres 8.4 Please reply its urgent Thanks in advance Regards Shashidhar chaturvedi -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps& games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Hilton Gibson Systems Administrator JS Gericke Library Room 1053 Stellenbosch University Private Bag X5036 Stellenbosch 7599 South Africa Tel: +27 21 808 4100 | Cell: +27 84 646 4758 -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] How i install and configure LDAP server in dspace
Hi all, I want to install and configure LDAP server in my dspace. Please any one suggest me how i install and configure LDAP server. My configuration is Dspace 1.6, tomcat 6, jdk 1.6, ant 1.7, maven 2.2.1 and postgres 8.4 Please reply its urgent Thanks in advance Regards Shashidhar chaturvedi -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech