-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Jboss3.2.3 and ArrayIndexOutOfBoundsException
PostPosted: Mon Mar 08, 2004 6:31 am 
Newbie

Joined: Tue Nov 04, 2003 4:48 am
Posts: 12
Location: Iran
I was a fully working application in hibernate/struts/jboss3.2.2 But when i tried to upgrade the jboss to 3.2.3 I get this error message:
3:44:53,497 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection:
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.postgresql.util.PSQLException: Something unusual has occured to cause the driver to fail. Pl
ease report this exception: Exception: java.lang.ArrayIndexOutOfBoundsException: 1
Stack Trace:

java.lang.ArrayIndexOutOfBoundsException: 1
at java.net.Inet6Address.textToNumericFormat(Inet6Address.java:484)
at java.net.InetAddress.getAllByName(InetAddress.java:957)
at java.net.InetAddress.getByName(InetAddress.java:889)
at java.net.InetSocketAddress.<init>(InetSocketAddress.java:114)
at java.net.Socket.<init>(Socket.java:124)
at org.postgresql.core.PGStream.<init>(PGStream.java:47)
at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:197)
at org.postgresql.Driver.connect(Driver.java:138)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:150)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:477)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:213)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:496)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:425)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:318)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:477)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:814)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)
at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:61)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:167)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:627)

I am not sure if it is a hibernate problem, but there is possibilities. Could any one help me?
Ooh nearly forgot, I am using PostgreSQL7.4 as database


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2004 12:47 pm 
Senior
Senior

Joined: Tue Nov 25, 2003 9:35 am
Posts: 194
Location: San Francisco
Post your JBoss MBean jboss-service.xml. Looks like a bad URL for the JDBC connection.


Sherman


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 09, 2004 2:29 am 
Newbie

Joined: Tue Nov 04, 2003 4:48 am
Posts: 12
Location: Iran
I didn't touch the jboss-service.xml It is the original one from jboss! The datasource is coming from a xml file I am depliying, this one actually:
<?xml version="1.0" encoding="UTF-8"?>

<datasources>

<local-tx-datasource>
<jndi-name>shabwareDS</jndi-name>
<connection-url>jdbc:postgresql://:5432/shabware3</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<user-name>postgres</user-name>
<password>postgres</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>30</max-pool-size>
</local-tx-datasource>

</datasources>
But it sounds all right!?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 09, 2004 2:40 am 
Senior
Senior

Joined: Tue Nov 25, 2003 9:35 am
Posts: 194
Location: San Francisco
But did that datasource deploy correctly? Check the logs.

Just looking at it, it looks a little off. Try:

jdbc:postgresql://localhost:5432/shabware3

Sherman


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.