Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

a bug in InstallAction.java

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
InstallAction.java -> connectionString = connectionString.replace(hostKey, hostKey + portKey);

use replace(char,char) is error!

shoud be change :

InstallAction.java -> connectionString = connectionString.replaceAll(hostKey, hostKey + portKey);



[originally posted on jforum.net by jyhcyd]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think there have a problem at InstallAction.java ->handleDatabasePort(){
if (port == null || port.trim().length() == 0) {
...
} else else if (connectionString.indexOf(portKey) == -1) {
String hostKey = "${database.connection.host}";
connectionString = connectionString.replaceAll(hostKey, hostKey + portKey);
}
}

the error at connectionString.replaceAll(hostKey, hostKey + portKey)

because :

hostKey=${database.connection.host}

hostKey+portKey=${database.connection.host}:${database.connection.port}

connectionString=${database.connection.string_thin}

then do connectionString.replaceAll(hostKey, hostKey + portKey) will throw error ! thinks !



[originally posted on jforum.net by jyhcyd]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

jyhcyd wrote:i think there have a problem at InstallAction.java ->handleDatabasePort(){
if (port == null || port.trim().length() == 0) {
...
} else else if (connectionString.indexOf(portKey) == -1) {
String hostKey = "${database.connection.host}";
connectionString = connectionString.replaceAll(hostKey, hostKey + portKey);
}
}

the error at connectionString.replaceAll(hostKey, hostKey + portKey)

because :

hostKey=${database.connection.host}

hostKey+portKey=${database.connection.host}:${database.connection.port}

connectionString=${database.connection.string_thin}

then do connectionString.replaceAll(hostKey, hostKey + portKey) will throw error ! thinks !




http://www.jforum.net/jira/browse/JF-534
Fixed in CVS
[originally posted on jforum.net by Serge Maslyukov]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thinks!
[originally posted on jforum.net by jyhcyd]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!