pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
please help
6+ messages / 6 participants
[nested] [flat]

* please help
@ 2002-03-13 15:30  saadna <saadna@bcm.opt.mr>
  0 siblings, 1 reply; 6+ messages in thread

From: saadna @ 2002-03-13 15:30 UTC (permalink / raw)
  To: pgsql-jdbc



I have postgresql 7.2 on a mandrake server and jdbc2 side client.

 jdbc is used for data input. the brows IE6 is used on workstations for query the database using perl interface (Pg).

my problem now is :

in my database there is a table  with bytea field used to store images .

iwan to know how to perl Pg interfac-jdbc@e to display image from bytea field?

thank you very much.

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: please help
@ 2002-03-13 18:16  Paulo Delgado <pdelgado@pasaportevip.com>
  parent: saadna <saadna@bcm.opt.mr>
  0 siblings, 0 replies; 6+ messages in thread

From: Paulo Delgado @ 2002-03-13 18:16 UTC (permalink / raw)
  To: saadna <saadna@bcm.opt.mr>; +Cc: pgsql-jdbc


Check out 

http://developer.postgresql.org/docs/postgres/jdbc-binary-data.html

I havent used it as a bytea, I used it as an OID data type, and it worked.

On Wed, 13 Mar 2002 15:30:11 -0000
"saadna" <saadna@bcm.opt.mr> wrote:

> 
> 
> I have postgresql 7.2 on a mandrake server and jdbc2 side client.
> 
>  jdbc is used for data input. the brows IE6 is used on workstations for query the database using perl interface (Pg).
> 
> my problem now is :
> 
> in my database there is a table  with bytea field used to store images .
> 
> iwan to know how to perl Pg interfac-jdbc@e to display image from bytea field?
> 
> thank you very much.
> 



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* please help
@ 2006-07-23 04:08  java unix <javaunix123@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: java unix @ 2006-07-23 04:08 UTC (permalink / raw)
  To: pgsql-jdbc

hello can any one tell me how to unsubscribe from this form
please help
thank you in advance!!!

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: please help
@ 2006-07-23 07:30  Markus Schaber <schabi@logix-tt.com>
  parent: java unix <javaunix123@gmail.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Markus Schaber @ 2006-07-23 07:30 UTC (permalink / raw)
  To: java unix <javaunix123@gmail.com>; +Cc: pgsql-jdbc

Hi, "Java Unix",

java unix wrote:
> hello can any one tell me how to unsubscribe from this form
> please help
> thank you in advance!!!

Every mail you get from the list contains the following informational
headers:

List-Archive: <http://archives.postgresql.org/pgsql-jdbc;
List-Help: <mailto:majordomo@postgresql.org?body=help>
List-ID: <pgsql-jdbc.postgresql.org>
List-Owner: <mailto:pgsql-jdbc-owner@postgresql.org>
List-Post: <mailto:pgsql-jdbc@postgresql.org>
List-Subscribe: <mailto:majordomo@postgresql.org?body=sub%20pgsql-jdbc>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

(how to see those ehaders depends on your mail client.)

So you send a mail with only the words "unsub psql-jdbc" in the body of
your mail to the address "majordomo@postgresql.org".

Alternatively, you should be able to unsubscribe using the web interface
http://mail.postgresql.org/mj/mj_wwwusr/domain=postgresql.org?user=&passw=&func=show


HTH,
Markus



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* please help
@ 2009-02-19 03:27  abdi indra <shafa_3@yahoo.com>
  0 siblings, 1 reply; 6+ messages in thread

From: abdi indra @ 2009-02-19 03:27 UTC (permalink / raw)
  To: pgsql-jdbc

I
got following error, goggling hundreds of material and still no clue. Please help. 


best regards,
abdi indra

 
#
$OPENNMS_HOME/bin/install -dis
==============================================================================
OpenNMS
Installer Version $Id: Installer.java 11800 2009-01-11 23:04:48Z dhustace $
==============================================================================
 
Configures
PostgreSQL tables, users, and other miscellaneous settings.
 
-
searching for jicmp:
  - trying to load /usr/lib/libjicmp.so: OK
-
searching for jrrd:
  - trying to load /usr/lib/libjrrd.so: OK
-
checking database version... Exception in thread "main"
java.sql.SQLException: Could not get an administrative connection to the
database.  Is the database running,
listening for TCP connections, and allowing us to connect and authenticate from
localhost?  Tried connecting to database
specified by data source SimpleDataSource[URL='jdbc:postgresql://192.168.110.133:5432/template1',
driver class='org.postgresql.Driver', properties: user='postgres',
password=''].  Original error:
org.postgresql.util.PSQLException: FATAL: missing or erroneous pg_hba.conf file
        at
org.opennms.netmgt.dao.db.InstallerDb.rethrowDatabaseConnectionException(InstallerDb.java:2214)
        at
org.opennms.netmgt.dao.db.InstallerDb.initializeAdminConnection(InstallerDb.java:2191)
        at
org.opennms.netmgt.dao.db.InstallerDb.getAdminConnection(InstallerDb.java:2180)
        at
org.opennms.netmgt.dao.db.InstallerDb.databaseCheckVersion(InstallerDb.java:1526)
        at
org.opennms.install.Installer.install(Installer.java:194)
        at
org.opennms.install.Installer.main(Installer.java:778)
Caused
by: org.postgresql.util.PSQLException: FATAL: missing or erroneous pg_hba.conf
file
        at
org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:275)
        at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:94)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65)
        at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:116)
        at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
        at
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
        at
org.postgresql.Driver.makeConnection(Driver.java:369)
        at
org.postgresql.Driver.connect(Driver.java:245)
        at
java.sql.DriverManager.getConnection(DriverManager.java:582)
        at
java.sql.DriverManager.getConnection(DriverManager.java:154)
        at
org.opennms.netmgt.dao.db.SimpleDataSource.getConnection(SimpleDataSource.java:79)
        at
org.opennms.netmgt.dao.db.InstallerDb.initializeAdminConnection(InstallerDb.java:2189)
        ... 4 more
 
 
 
This
is pg_hba.conf
 
#
TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
 
#
"local" is for Unix domain socket connections only
local   all         all                               ident sameuser
local   all         all         192.168.110.133       trust
#
IPv4 local connections:
host    all         all         127.0.0.1/32          ident sameuser
host    all         all         192.168.110.133/32    trust
#
IPv6 local connections:
host    all         all         ::1/128               ident sameuser
host    all         all        192.168.110.133/255.255.255.255       trust
 
 
this
is postgres.conf
 
listen_addresses
= '*'                  # what IP address(es)
to listen on;
                                        #
comma-separated list of addresses;
                                        #
defaults to 'localhost', '*' = all
port
= 5432
max_connections
= 100


      Get your new Email address!
Grab the Email name you&#39;ve always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: please help
@ 2009-02-19 04:04  Kris Jurka <books@ejurka.com>
  parent: abdi indra <shafa_3@yahoo.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Kris Jurka @ 2009-02-19 04:04 UTC (permalink / raw)
  To: abdi indra <shafa_3@yahoo.com>; +Cc: pgsql-jdbc



On Wed, 18 Feb 2009, abdi indra wrote:

> org.postgresql.util.PSQLException: FATAL: missing or erroneous
> pg_hba.conf

This is not a Java/JDBC problem, but a server configuration problem.

> local   all         all         192.168.110.133       trust

This line is bogus because local means a unix domain socket which doesn't 
have an IP address.

> host    all         all        192.168.110.133/255.255.255.255 
> trust

This isn't a valid line either.  You want the CIDR /32 format, not a 
netmask.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2009-02-19 04:04 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-03-13 15:30 please help saadna <saadna@bcm.opt.mr>
2002-03-13 18:16 ` Paulo Delgado <pdelgado@pasaportevip.com>
2006-07-23 04:08 please help java unix <javaunix123@gmail.com>
2006-07-23 07:30 ` Markus Schaber <schabi@logix-tt.com>
2009-02-19 03:27 please help abdi indra <shafa_3@yahoo.com>
2009-02-19 04:04 ` Kris Jurka <books@ejurka.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox