ask for help about postgresql

From: 马建霞 <majx(at)lzb(dot)ac(dot)cn>
To: "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: ask for help about postgresql
Date: 2004-08-11 06:42:06
Message-ID: 20050811064224.D310D52EAF@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi,
I'm trying to instal postgresql to support an open-source software named dspace. I have already installed sdk, tomcat5, postgresql8.0.3, but when I install dspace, I met error says [java] Exception:java.net.SocketException: Invalid argument or cannot assign requested address. I think perhaps there some porblem in the install and configure of postgresql. Would you please help me to solve this problem? Thank you.

majx

[root(at)localhost dspace-1.3.1-source]# ant fresh_install
Buildfile: build.xml

compile:

install_code:

build_wars:

init_configs:

setup_database:
[java] 2005-08-11 11:27:31,152 INFO org.dspace.storage.rdbms.InitializeDat abase @ Initializing Database
[java] 2005-08-11 11:27:31,637 FATAL org.dspace.storage.rdbms.InitializeDat abase @ Caught exception:
[java] org.postgresql.util.PSQLException: try to connect unsuccessed
[java] Exception:java.net.SocketException: Invalid argument or cannot assi gn requested address
[java] Stack Trace:
[java] java.net.SocketException: Invalid argument or cannot assign requeste d address
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
[java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav a:171)
[java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
[java] at java.net.Socket.connect(Socket.java:452)
[java] at java.net.Socket.connect(Socket.java:402)
[java] at java.net.Socket.<init>(Socket.java:309)
[java] at java.net.Socket.<init>(Socket.java:124)
[java] at org.postgresql.core.PGStream.<init>(PGStream.java:58)
[java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionIm pl(ConnectionFactoryImpl.java:77)
[java] at org.postgresql.core.ConnectionFactory.openConnection(Connecti onFactory.java:65)
[java] at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJ dbc2Connection.java:117)
[java] at org.postgresql.jdbc2.Jdbc2Connection.<init>(Jdbc2Connection.j ava:24)
[java] at org.postgresql.Driver.connect(Driver.java:235)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:512)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:171)
[java] at org.apache.commons.dbcp.DriverManagerConnectionFactory.create Connection(DriverManagerConnectionFactory.java:48)
[java] at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject( PoolableConnectionFactory.java:290)
[java] at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(G enericObjectPool.java:771)
[java] at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.j ava:175)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:512)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:193)
[java] at org.dspace.storage.rdbms.DatabaseManager.getConnection(Databa seManager.java:446)
[java] at org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseMana ger.java:777)
[java] at org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDa tabase.java:71)
[java] End of Stack Trace

[java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionIm pl(ConnectionFactoryImpl.java:136)
[java] at org.postgresql.core.ConnectionFactory.openConnection(Connecti onFactory.java:65)
[java] at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJ dbc2Connection.java:117)
[java] at org.postgresql.jdbc2.Jdbc2Connection.<init>(Jdbc2Connection.j ava:24)
[java] at org.postgresql.Driver.connect(Driver.java:235)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:512)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:171)
[java] at org.apache.commons.dbcp.DriverManagerConnectionFactory.create Connection(DriverManagerConnectionFactory.java:48)
[java] at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject( PoolableConnectionFactory.java:290)
[java] at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(G enericObjectPool.java:771)
[java] at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.j ava:175)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:512)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:193)
[java] at org.dspace.storage.rdbms.DatabaseManager.getConnection(Databa seManager.java:446)
[java] at org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseMana ger.java:777)
[java] at org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDa tabase.java:71)

BUILD FAILED
/usr/local/dspace-1.3.1-source/build.xml:266: Java returned: 1

Total time: 7 seconds

Attachment Content-Type Size
=?gb2312?B?wu29qM+8LnZjZg==?= text/x-vcard 523 bytes

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2004-08-11 07:02:41 Re: psql: immediately exit after an error?
Previous Message Scott Marlowe 2004-08-11 06:14:37 Re: Losing records when server hang