Re: Commons-configuration and EasyMock?

2009-09-11 Thread Jörg Schaible
Hi David,

David Hoffer wrote at Donnerstag, 10. September 2009 18:07:

 We have upgraded commons-configuration to version 1.6 (was 1.1) and
 now I get an this error when we mock something using EasyMock that is
 hard coded to use commons-configuration to read conf data from
 file(s).
 
 java.lang.NoSuchMethodError:

org.apache.commons.configuration.CompositeConfiguration.getListDelimiter()C
 at

org.apache.commons.configuration.CompositeConfiguration.clear(CompositeConfiguration.java:161)
 at

org.apache.commons.configuration.CompositeConfiguration.init(CompositeConfiguration.java:56)
 at

org.apache.commons.configuration.ConfigurationFactory$ConfigurationBuilder.init(ConfigurationFactory.java:733)
 at

org.apache.commons.configuration.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:145)
 
 Any idea why we get this error?
 
 Any idea how I can resolve this?  I just want to make a mock so I
 obviously don't need commons-configuration to do anything.

it looks like the classical problem having still the old version in the
classpath somewhere ... getListDelimiter has been introduced with 1.4.

- Jörg


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



commons.pool 1.5.2 PoolUtils.synchronizedPool question

2009-09-11 Thread Emanuele Gheradini

Watching the source code, it seems to me the implementation of
Generic{Keyed}ObjectPool is thread-safe.

So what is the need of PoolUtils.synchronizedPool ?

Can someone explain me ? I can't find the answer in the docs :(
-- 
View this message in context: 
http://www.nabble.com/commons.pool-1.5.2-PoolUtils.synchronizedPool-question-tp25397061p25397061.html
Sent from the Commons - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: commons.pool 1.5.2 PoolUtils.synchronizedPool question

2009-09-11 Thread Mark Thomas
Emanuele Gheradini wrote:
 Watching the source code, it seems to me the implementation of
 Generic{Keyed}ObjectPool is thread-safe.
 
 So what is the need of PoolUtils.synchronizedPool ?
 
 Can someone explain me ? I can't find the answer in the docs :(

Look at the JavaDocs.

Mark




-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: Commons-configuration and EasyMock?

2009-09-11 Thread David Hoffer
Yeah, I found it...our build guy is trying to figure out why we still have a
non 1.6 compatable override in one of our jars.

Dave
- sent via G1

On Sep 11, 2009 12:24 AM, Jörg Schaible joerg.schai...@gmx.de wrote:

Hi David,

David Hoffer wrote at Donnerstag, 10. September 2009 18:07:

 We have upgraded commons-configuration to version 1.6 (was 1.1) and  now
I get an this error whe...
it looks like the classical problem having still the old version in the
classpath somewhere ... getListDelimiter has been introduced with 1.4.

- Jörg


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org


Debugging dbcp issues?

2009-09-11 Thread daniel steel
all,
 we are running some performance tests and in one of the test script, i am 
tracking the time it takes to check out a connection from the pool.

times in milliseconds:

9, 16, 2, 127, 9, 145

the question is why would it vary so much? and how do i trouble shoot as i why 
it took so much time in few instances ?

few dbcp settings:

initialSize=55
maxActive=-2 

maxIdle=85 
timeBetweenEvictionRunsMillis=180

thanks
dan


  

[dbcp] Re: Debugging dbcp issues?

2009-09-11 Thread Phil Steitz
daniel steel wrote:
 all,
  we are running some performance tests and in one of the test script, i am 
 tracking the time it takes to check out a connection from the pool.
 
 times in milliseconds:
 
 9, 16, 2, 127, 9, 145
 
 the question is why would it vary so much? and how do i trouble shoot as i 
 why it took so much time in few instances ?
 
 few dbcp settings:
 
 initialSize=55
 maxActive=-2 
 
 maxIdle=85 
 timeBetweenEvictionRunsMillis=180
 
 thanks
 dan
 
 

There are lots of things that determine how long it takes to check
out a connection from the pool.  Assuming you have set no other
parameters (i.e. left all but the ones you mention to defaults), the
following is most likely. Since you have no limit on the number of
connections that the pool can create (maxActive negative), when
there are no idle connections in the pool, new ones will be created.
 Creating a connection is much slower than just returning one
sitting idle in the pool, so the long response times are likely
occurring when there are no idle connections in the pool.

You can observe the number of idle connections by inspecting the
numIdle property of the pool.  Doing this too much in performance
tests can skew your results, however, as this method is
synchronized.  If you can monitor the database, it is also
instructive to observe the number of open and active connections in
the database used by the pool as the test is running.

Phil

P.S.: Since this list is shared by all commons components, we ask
that you prepend the component name as I have done above to the
subject line of posts to this list.  Thanks!




   


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Shalat Jum'at yang mengubah sejarah Amerika

2009-09-11 Thread andi justeriah
Dari milis sebelah



Shalat Jum'at yang mengubah sejarah Amerika

INILAH.COM http://inilah.com/, Washington - Amerika Serikat di bawah
Presiden Barack Obama kembali ingin menekankan sikap bersahabatnya dengan
dunia Islam. Bahkan untuk pertama kalinya, halaman Capitol Hill, tempat
Obama dilantik sebagai Presiden AS akan digunakan untuk shalat Jumat.
Akankah ini mengubah sejarah Amerika?

Insiden peledakan menara kembar World Trade Center (WTC) pada 11 September
2001 memang telah membuat Muslim AS sering mendapat perlakuan diskriminatif.
Bahkan, mereka sering menerima pelecehan hak sipil atas identitas mereka
sebagai Muslim di era pemerintahan George W Bush.

Namun, situasi itu tampaknya mulai mengalami perubahan. Obama sepertinya
memberi harapan bagi warga Muslim AS untuk kembali menunjukkan harga
dirinya. Bahkan, Presiden AS ke-44 itu seolah memberi angin. Contohnya, 2
September lalu dia telah menggelar acara berbuka puasa bersama para duta
besar negara berpenduduk Muslim di Gedung Putih, Washington, DC.

Dalam acara yang juga dihadiri sejumlah pejabat tinggi AS, seperti Menteri
Pertahanan Robert Gates dan Jaksa Agung Eric Holder itu, Obama menyampaikan
pidato singkat. Intinya menyampaian penghargaan kepada umat Muslim di AS
yang menurutnya banyak memberikan kontribusi kemasyarakatan.

Obama juga mengingatkan bahwa berbagai agama pada intinya sama-sama membawa
kebenaran. Dia menggambarkannya seperti sungai atau danau, yang kesemuanya
sama-sama merupakan tempat yang terdiri dari air.

Kata-kata itu tentu saja menimbulkan rasa sejuk warga Muslim setempat.
Namun, itu belum seberapa. Setelah Ramadhan usai pun, tampaknya warga Muslim
akan mendapati sebuah peristiwa penting. Untuk pertama kalinya, Capitol
Hill, yang selama ini dikenal sebagai gedung parlemen AS akan dipakai
sebagai tempat peribadatan kaum Muslim.

Sekitar 50 ribu warga Muslim diperkirakan akan hadir di acara shalat Jumat
yang akan digelar pada 25 September mendatang alias pekan pertama setelah
Idul Fitri 1430 Hijriyah. Kegiatan itu, seperti dilansir Canada Press,
dirancang jemaah Masjid Darul Islam di Elizabeth.

Ketua jemaah Darul Islam, Hassen Abdellah, berjanji bahwa kegiatan itu tidak
akan melibatkan ceramah yang bersifat politik. Izin telah diperoleh dari
kepolisian Capitol Hill sejak 28 Juli lalu. Jemaah akan diberi akses ke area
barat gedung mulai pukul 04.00-19.00. Walaupun shalat sendiri akan dimulai
pukul 13.00.

Kami juga warga Amerika. Kami perlu mengubah wajah Islam yang selama ini
diidentikkan sebagai orang yang menganggap Amerika sebagai setan. Sebab,
kami mencintai Amerika, papar Abdellah.

Shalat berjamaah itu akan dilakukan di lokasi tempat semua presiden AS
diinagurasi sejak 1981. Abdellah mengatakan, non-Muslim juga diperbolehkan
untuk hadir di ritual itu. Jemaah telah bekerja sejak Juli untuk
mengorganisasi acara ini, baik melalui email, telepon, ataupun kunjungan ke
setiap masjid dan asosiasi pelajar Muslim.

Untuk mempromosikan acara ini pun, penyelenggara telah membuat sebuah situs
bernama islamoncapitolhill.com. Situs itu memiliki logo dua tangan berjabat
tangan dengan latar belakang kata-kata dari pembukaan konstitusi dan satu
halaman teks berbahasa Arab.

Situs itu antara lain berisi informasi akan digelarnya ritual itu serta
kendaraan yang dapat digunakan menuju lokasi. Juga mengajak mencari sponsor
dan bergabung dengan mereka untuk sejumlah fasilitas yang akan diadakan
selama ritual berlangsung. Darul Islam memperkirakan jumlah biaya yang akan
dikeluarkan mencapai lebih dari US$ 200 ribu.

Di antara mereka yang berpartisipasi adalah komunitas Islam Jersey Tengah,
di Brunswick Selatan, yang menyumbangkan dana sebesar US$ 10 ribu. Mereka
akan mengirimkan jemaahnya dalam sebuah bus.

Namun, jemaah belum memutuskan siapa yang akan menjadi imam dan khatib di
acara tersebut. Kemungkinan bukan berasal dari figur besar dalam dunia
Muslim AS. Acara ini tidak menampilkan ketokohan. Sehingga, kami tidak
ingin ada tokoh yang terlibat. Tokoh utama dalam acara ini adalah Nabi
Muhammad SAW, papar Abdellah.

Apakah acara ini akan menandai babak baru hubungan Barat dengan dunia Islam?
Setidaknya, bagi Obama yang sejak dilantik kerap menekankan keharmonisan
dengan dunia Islam, tentu akan mengubah citra AS di mata dunia Islam.

Obama memang ingin lepas dari bayang-bayang pendahulunya, terutama George W
Bush, yang kerap diasosiasikan tidak ramah kepada Islam. Pakar keamanan
National Defense University, Douglas Streusand, sepakat bahwa mengaitkan
terorisme dengan Islam hanya akan mengasingkan Muslim, namun tidak
menyelesaikan masalah terorisme.

Melalui sikap Obama yang ramah terhadap Muslim, maka diharapkan dapat
mendorong terciptanya fase baru kerja sama AS-Muslim. Untuk itu, Obama
harus seperti Uni Eropa yang melarang ungkapan yang menghubungkan Islam
dengan terorisme. Juga ungkapan tak sensitif, seperti Islamofasime, jihadis,
dan Islamis, yang dibuat oleh rezim sebelumnya, paparnya. [P1] ***



Dari milis sebelah