Shekar Atmakur

Ranch Hand
+ Follow
since Oct 24, 2003
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 Shekar Atmakur

Hello all,
We are having some trouble in production, where we have deployed our application on wl9.2. We have been encountering "stuck thread" issues and are hoping you can help us resolve this issue.

Basically we have configured the application server to use WL 8.1 thread pooling mechanism, where were can define user defined execute queues. Such thread pooling was replaced in WL9.2 to use work managers. We have set the default_ queue size at 50. During peak hours, all 50 threads on the Defualt execute queue are occupied. Processes running on these threads are taking a little while longer to execute causing the system response to slow down. The server logs are full of stuck threads.

I believe there is a fundamental configuration issue we are missing here or there is potentially a pacth for wl9.2. But i am just not able to place my finger on it. Could somebody please help me out with that.

Appreciate it.

Here are some snippets of the exceptions.

<blockquote>code:
<pre name="code" class="core"> <Jul 16, 2008 1:37:00 PM EDT> <Error> <WebLogicServer> <BEA-000337> <ExecuteThread: '34' for queue: 'default' has been busy for "671" seconds working on the request "weblogic.work.ExecuteRequestAdapter@50931a", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
java.lang.ClassLoader.loadClass(ClassLoader.java:295)
java.lang.ClassLoader.loadClass(ClassLoader.java:299)
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:158)
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:35)
javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:88)
javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:278)
</pre>
</blockquote>

<blockquote>code:
<pre name="code" class="core"> <Jul 16, 2008 1:40:24 PM EDT> <Error> <WebLogicServer> <BEA-000337> <ExecuteThread: '44' for queue: 'default' has been busy for "686" seconds working on the request "weblogic.work.ExecuteRequestAdapter@2e4333", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
weblogic.common.resourcepool.ResourcePoolImpl.reserveResourceInternal(ResourcePoolImpl.java:322)
weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:294)
weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:284)
weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:466)
weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:357)
weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:83)
</pre>
</blockquote>

<blockquote>code:
<pre name="code" class="core"> "ExecuteThread: '37' for queue: 'default'" daemon prio=10 tid=02f17860 nid=412 lwp_id=4622133 waiting for monitor entry [2d372000..2d36f578]
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:168)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
at org.hibernate.impl.SessionFactoryImpl.getImportedClassName(SessionFactoryImpl.java:722)
at org.hibernate.hql.classic.QueryTranslatorImpl.getEntityPersisterUsingImports(QueryTranslatorImpl.java:352)
at org.hibernate.hql.classic.WhereParser.doToken(WhereParser.java:389)
at org.hibernate.hql.classic.WhereParser.token(WhereParser.java:263)
at org.hibernate.hql.classic.ClauseParser.token(ClauseParser.java:86)
</pre>
</blockquote>
12 years ago
Hi, Thank for the reply. I only meant to have a join between two tables.I actually meant the following

Input HQL: SELECT SUM(A.AMOUNT) FROM TABLEA A, TABLEB B WHERE TABLEA.ID=TABLEB.ID AND TABLEB.ID= 123



But my core problem, is when i provide an input query that should give me a simple sum resonse, What is am getting is an ArrayList of all the Objects within the Query.

Once again. appricitate your help.
Hi all ,
I am getting a strange issue in Hibernate and i hope someone can help me resolve it. It may be because i am still new to Hibernate, but i do need a little nudge.
Basically what is happening is that the query that is provide to Hibernate for execution changes automatically. Here is a dummied down example

Input HQL: SELECT SUM(A.AMOUNT) FROM TABLEA A, TABLEB B WHERE TABLEA.ID=TABLEB.ID AND TABLEA.NAME= 'XYZ'

Now what I am expecting out of this query is only a single Object which i can easily typecast into a integer. But what i observed was that the query was being translated into the following by Hibernate.

Output HQL: SELECT A.NAME,A.AMOUNT,A.COL2,B.COL1,B.COL2,BB.COL3 FROM TABLEA A, TABLEB B WHERE TABLEA.ID=TABLEB.ID AND TABLEA.NAME= 'XYZ'

So basically what i getting is the entire row is the result set. when i expecting only the sum.

Hoping somebody can help here.

Gracias,
Shekar
Hi,
You should have a file called config.xml in your domain folder.
shekar
12 years ago
Hello all,
How can i create a JMS destination(queue) in weblogic9.2? In Weblogic8.1SP4 i know i can create queues using the Admin Console which is pretty stright forward. However it does not seem to be as staright forward in WL9.2. Are queues just named differently in WL9.2?

Kindly let me know.

Thank you,
Shekar
12 years ago
Hello all,
Could you please help me out with this? I have an application deployed in Weblogic 9.2.

Initially if i deploy the application as an ear with a single jar and single war within the ear, everything works fine. But if i split the same jar file into multiple jars, and place them all within the ear file, at run time, webloic fails to find any of the files and throws a java.lang.NoClassDefFoundError exception.(The beans are however being deployed correctly.)
I added the entries in the manifest file of the application ear that did not help.
I also added the files in the WEB-INF/lib folder and tried, but that too failed.
Now if i specifically add the same jars in the class path they work fine but this is not an acceptable solution.

The reason i want multiple jars is because i want to differentiate between the framework related files and business related files. Both the Framework related codes as well as the business related code have beans within them, so they need to be deployed in the container.

Can anyone throw some light on this issue? You help is appreciated.

Shekar
12 years ago
Helloa all,
Does any one know of a good example on how to use the Maverick Framework?
thanks,
Shekar
Hello,
Generally, stopping and starting the server from the console should clear your cache. But out experience showed that this is not the case. So we had written shell scripts (or batch scripts iin windows)to start and stop the server and within these scripts, we added commands to clear the cache. I think that is a safe approach to take.

Shekar
12 years ago
Hi,
Please kill all instances of Weblogic processes running on the system and then try starting the server again.
12 years ago
Hi Darrin,
Thank you for the response. I do have the manual, but i was looking for specific commands to execute in HP-UX. I am not too familiar with HP-UX commands.
Let me ask this question. Can i use the same Unix commands (or its variant in HP-UX) to install CVS on HP-UX or are there a different set of commands to be executed for installation on HP-UX.
thanks,
Shekar
13 years ago
Hi,
I have a task to install CVS on HP-UX. Does anyone have any documentation or can anyone direct me to a webpage that has that information. Any help is appreciated.

Thanks in advance.
Shekar
13 years ago
Hello all:
Can some help me find some examples of webservice client who sends data in document-literal encoding format.
I will be deploying the client in weblogic8.1SP4. Will SAAJ1.1 which comes as a part of weblogic8.1SP4 pose an issuse?

I may have not been very clear in my question but that is the state i am in now.
Any help is appreciated.
thanks,
shekar
13 years ago
1>Download and Install weblogic from BEA.
2>Download the weblogic-eclipse plugin.Not sure where i got it from, but try the Eclipse Plugin Central first.
3> Unzip weblogic-eclipse plugin into the eclipse plugin folder
4> Open preferences in Eclipse and you will see a menu for Weblogic.
5> Enter relevant information.
6> Eclipse will also now have Menu items to start and stop weblogic.
Use the menu items to start and stop.


Fire away. Let me know if you have any issues.
13 years ago
Hello All:
does any one know how to define idempotent methods in the weblogic-ejb-jar.xml . What i want to know is where i need to place them, i.e, what is the correct parent element in the XML.
Can anyone forward the 8.1 DTD to me or atleast place the snippet wrt idempotent methods here, i cant open it from the BEA site.

thanks,
shekar
14 years ago