Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!

Waez Ali

Ranch Hand
+ Follow
since Jan 24, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Waez Ali

Hello there,

I am supporting a vendor application, recently implemeted a new release but soon started getting the hung threads in sysout logs specially when a critical process is running. The thread remains hung for about 10 to 12 minutes and then getting released on it's own. We have reported this to Vendor but they say it can be ignore since threads are eventually getting completed..and they also mentioned that same application is running in other organization but no one has reported this issue.. It could be the WAS/infrastructure issue..another suggestiong is to increase the thread monitoring time out at WAS level.

I am not quite satisfied, what I understand is that when you have a hung thread it's going to consume system resources which is not good. I would like to know your oponion/advise..

- Can we really ignore hung threads if they get recovered ?
- Is it advisable to change the standard settings in WAS ( monitoring time out ) to avoid seeing this error in logs ?

I would much appriciate your suggestion/comments. - Thank You.

--------------SYSLOGS ---------------------------

[1/5/14 3:12:39:473 GMT] 00000003 ThreadMonitor W WSVR0605W: Thread "MessageListenerThreadPool : 918" (000003df) has been active for 669232 milliseconds and may be hung. There is/are 1 thread(s) in total in the server that may be hung.
at oracle.jdbc.driver.T2CStatement.t2cFetch(Native Method)
at oracle.jdbc.driver.T2CPreparedStatement.fetch(T2CPreparedStatement.java:953)
at oracle.jdbc.driver.OracleResultSetImpl.close_or_fetch_from_next(OracleResultSetImpl.java:314)
at oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:228)
at com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.next(WSJdbcResultSet.java:3120)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:284)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138)
at net.sf.hibernate.loader.Loader.doList(Loader.java:1063)
at net.sf.hibernate.loader.Loader.list(Loader.java:1036)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1554)
at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:49)

[1/5/14 3:30:03:229 GMT] 000003df ThreadMonitor W WSVR0606W: Thread "MessageListenerThreadPool : 918" (000003df) was previously reported to be hung but has completed. It was active for approximately 1712988 milliseconds. There is/are 0 thread(s) in total in the server that still may be hung.
Hello,

I have a program that executes a sql and write the extract into excel sheet, the resulset of sql fetched is about 400k and whole process is taking 3 to 4 hours.

Any suggestions how I can improve the time..?

Thanks
Waez.
10 years ago
Thanks I will try this out... please let me know any other interesting assignments.
Guys,

I have studied threads but I want to develop one small project to really get clear picture of apis and how it works.

If you know any sources/links/ or you would propose any small proj that I can develop in multithreads.. it would be really helpful.

Thank You
Hi,

I have requirment to display lables on my jsp in local language on click of some button or link.

I also have requirement to accept/read the user's input in the local language.

How to input data in local language thu keyboard ? Please guide how should I proceed.

Any links, tips for the above requirements would be much appriciated.

Thanks in advance.
Waez.
13 years ago
JSP
Any input on this one please !! Would be much appriciated.


Regards,
Waez.
14 years ago
Hi,

My aim is to display expected page to user and process his request only once despite double submits.

I am able to detect double submit using Token Synchronization and now my porblem is to handle the duplicat requests after I detect them. Please see the code below.

I tried saving the ServletResponse in session and locking it, when done with the first request other waiting threads would pick up the saved response object and will try to write its content through the response object of last submitted request.

But the successful If condition doesn't work as I thought of working...instead it displays blank page.




Please suggest.

Thanks.
14 years ago
Hi,

I have some doubt about the Date() constructor, the spcification says

Date()

Allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond.

Is it creating Date in UTC format or GMT formate ?

Or does it depend on the current Locale ?

Please explain.

Thanks in Advance.
[ December 18, 2008: Message edited by: Waez Ali ]
14 years ago
Hi,

I have a custom Tag and I want to use C:out in that as given below

<test:input type="text" value="<c:out value=${requestScope.vb.name}" />

But it doesn't work, Can someone help me how I can use C:OUT in my Custom Tag ? Is there any way to do so or its not possible.

Thanks in Advance
14 years ago
JSP
Hi Sagar,

I am using c:out to print that text field on my jsp.

In may post the actuall code got converted to balnk spaces, that is not blank but the symbol used in html to put blank space.
14 years ago
JSP
In the above message the blank space in the code are   which got converted to blank space
14 years ago
JSP
Hi,

At runtime I am suppose to set balnk spaces before some text which is to be displayed on page.

While constructing viewbean I am writing code like as below.


However when I display the text on my jsp it's getting displayed as follows

&nbsp;runtime text
Can someone suggest me how to do this ?
14 years ago
JSP
posted Today 1:50 PM
--------------------------------------------------------------------------------
Hi,

I am opening this again with specific question.

I am reading some data from properties file, & need to sort the map by values.

E.g test.properties

1 = Hi
2 = hello
3 = Bye
4 = Thank You
5 = Thank You
6 = Bye

I tried with following




Problem with this code is it overrides the duplicate values.

Is there any other way I can sort the data, please suggest.

Thanks in advance.
Waez Ali.
[ July 21, 2008: Message edited by: Waez Ali ]
14 years ago
Hi All,

I am reading some data from properties file, & want sort this based on keys and in some cases based on values.

E.g test.properties

1 = Hi
2 = hello
3 = Bye
4 = Thank You
5 = Thank You
6 = Bye



When I load the above data into my properties object data is n more sorted.

Can someone please help me out to sort this data after reading it from properties file ?

Thanks in advance.
Waez Ali.
14 years ago
I got the answer from google,

java.util.math.BegDecimal
14 years ago