R Patel

Greenhorn
+ Follow
since May 24, 2010
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 R Patel



Thanks for this post and code snippets ,,, it really helped me a lot,,, and m sure will show the way to many others.....

Thanks
Ronak.
11 years ago
Hi Ravish,

Thanks for your reply, I agree that i need to increase the heap by Xms and Xmx arguments.

But I am wondering that, even Node manager script execution is not getting start. even if its memory related issue then it should display the error messages on screen when execution starts, but instead it stick at blank screen, not even printing any info/error/warn messages. and this situation is for both startNodeManager.sh and startWeblogic.sh , please note its UNIX environment.

Please let me know if any suggestions.

Thanks,
Ronak.
12 years ago
Hi All,

Since last 2 days in one of my environment, I am not able to start my weblogic server. Sometimes when similar situation occur. i used to kill the process id of WL server (if i found process id by lsof). and then same way restarting of node manager. and it works. But this time something happening strange.

when i try to execute startNodeManager.sh or startWeblogic.sh , it doesnt even start executing. just it stands as blank after hitting enter.

Here is some logs which i found before this situation happened. As it shows heap size issue, is there any way to clear up heap? As i dont think i need to increase heap as this is working environment since long time.

main problem is I am not able to startNodeManager.sh and startWeblogic.sh,,

Any help/hint will helpout me a lot.

Environment Info

Weblogic 10
OS : Unix

Thanks in advance !!!
-Ronak


Exception in thread "[ACTIVE] ExecuteThread: '266' for queue: 'weblogic.kernel.Default (self-tuning)'" Exception in thread "[ACTIVE] ExecuteThread: '264' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: Java heap space
Exception in thread "[ACTIVE] ExecuteThread: '265' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
<Mar 26, 2011 4:02:05 AM UTC> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.OutOfMemoryError: Java heap space.
java.lang.OutOfMemoryError: Java heap space
>
Exception in thread "ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'" java.lang.OutOfMemoryError: Java heap space
Exception in thread "[ACTIVE] ExecuteThread: '260' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: Java heap space
Exception in thread "DynamicListenThread[Default]" java.lang.OutOfMemoryError: Java heap space
<Mar 29, 2011 1:56:51 PM UTC> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.OutOfMemoryError: Java heap space.
java.lang.OutOfMemoryError: Java heap space
>
Exception in thread "[ACTIVE] ExecuteThread: '234' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: Java heap space
<Mar 29, 2011 2:27:04 PM UTC> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.OutOfMemoryError: Java heap space.
java.lang.OutOfMemoryError: Java heap space
>
<Mar 29, 2011 2:28:14 PM UTC> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.OutOfMemoryError: Java heap space.
java.lang.OutOfMemoryError: Java heap space
>
Exception in thread "[ACTIVE] ExecuteThread: '250' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: Java heap space
Exception in thread "[ACTIVE] ExecuteThread: '235' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: Java heap space
<Mar 29, 2011 2:34:39 PM UTC> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.OutOfMemoryError: Java heap space.
java.lang.OutOfMemoryError: Java heap space
>
Exception in thread "[ACTIVE] ExecuteThread: '244' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: Java heap space
<Mar 29, 2011 2:42:23 PM UTC> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.OutOfMemoryError: Java heap space.
java.lang.OutOfMemoryError: Java heap space
>
Exception in thread "[ACTIVE] ExecuteThread: '237' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: Java heap space
<Mar 30, 2011 11:10:40 AM UTC> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.OutOfMemoryError: Java heap space.
java.lang.OutOfMemoryError: Java heap space
>
Exception in thread "[ACTIVE] ExecuteThread: '242' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: Java heap space
Killed
12 years ago
Hi Dave,

If you came acroos any solution for this issue, then can you please give me any hint?, I know its long time for you as well, but any guidance will help out me for the solution for this issue.

I have almost same scenario, as you mentioned in your post.

Thanks in advance !!!

Ragards,
Ronak.
13 years ago
Hi,

I can see one issue is, your "t1" field is disabled. so whenever your form is getting submit, that field value will not get submit. So i suggest you can take that value under hidden variable. and can change the below line to new as i have mentioned.

existing line:


replace above line with below lines.



Regards,
Ronak.
Hi All,

In my application a dropdown has been implemented using AJAX component s:inputSuggestAjax

Its working fine but i face one issue, the drop down is getting inactive when i try 3-4 times.

(e.g. when i press any character it shows me results based on it, when i delete it and again enter other character it shows me results based on it in drop down list, but when i do the same for 3-4 times then its getting inactive and doesnt work at all and finally i have to refresh the page to make it active. )

My environment is :

myfaces-api-1.1.6
myfaces-impl-1.1.6
tomahawk-1.1.6
tomahawk-sandbox-1.1.6
ajax4jsf-1.1

Find below code snippet



Thanks in advance for your valuable time and reply.
13 years ago
JSF
I got it. I am new for HTML 5, so i was expecting too much from it. I was thinking it will have kind of plugin/scripting so it can interact with back-end classes.

Now i am clear, its same as HTML but having some more extra tags. And we can develope it with JSP/JSF or any other technology, which finally generate HTML 5 text. which browser display as UI.

So I can use same way JSP/JSF and can generate the UI in HTML 5, I may need to find some more on JSF tag library and all, which supports HTML 5 tags.

One more help, if you have any idea about any documentation for generating HTML 5 using JSP/JSF technology then can you please suggest me? or any other documentation which can guide me.

Thanks again for your valueable feedback.

-Ronak
Hi Dittmer,

Thanks for your reply.

I got the scenario as per your reply. Is there any framework support HTML5. I mean when we talk in terms of web-application created using JSP/JSF or with Normal Servlet/JSP, finally at client side it gets converted in HTML.

So is it possible same way web-application created with JSF/JSP generate(or converted) finally in HTML 5 ? Is there any other framework like JSF (or JSF itself) provide any such feature which can support new HTML5 tags ?

As per my knowledge only HTML can not interact with back-end Java class. It has to implemented with JSP/Servlet or AJAX technology (Not sure for HTML 5).

hope I have described properly.

Thanks again.

-Ronak
Hi All,

I have a question, how to use HTML5 to create new web application?. I have created JSP/JSF and also simple Servlet/JSP based web applications.

Can anyone please guide me if i want to create web application with HTML5 and Java as my back-end (service layer), then how should i proceed?

What i am guessing is HTML5 has some more extra HTML tags, but can it direct interact with Java class (like in JSF -- front-end JSP interact with Controller class)?

If anyone has worked on this, then please guide me.

Thanks in advance for your valueable time and help.

Regards,
Ronak.
Hi Hongli,

I got the solution, I found that transaction is getting intialize/starting under CustService and CustDAO classes only, as these two classes are managed by Spring. So its doing Rollback for RuntimeException under these two classes. So its doing Rollback as per my expectation. , ( and @Transactional is required to any one of these two classes as per one's requirement not required to put in CustDAO if @Transactional is there on CustService class or any of method under this class )

But it will not do Rollback under CustUtilities class as it is not managed by Spring. And @Transactional is useless for this class and any method under this class.

One question regarding your suggestion. Can you please show me way?

As per my knowledge we need to instiate spring container by following way,

So if i will inject custService under CustUtilities then i need to create <bean name="custUtil"> under applicationContext-jdbc2.xml for CustUtilities class first as mentioned below. (correct me if i am wrong)



and after that i need to get that custUtil bean like following way instead of creating new CustUtilities(), correct me if i am worng.


Or is there any way to instanitate Spring container without using above code?

Thanks again for your help.

Regards,
Ronak.
13 years ago
Hi Hongli,

Thanks for your time and suggestions.

As per your suggestion I have modified, and I found that Transaction is not getting initilize/starting. As in my scenarion i may need to use the DataSource credentials from Context.xml or some property file. But for time being as per your suggestion i have defined in applicationContext-jdbc2.xml

And it seems that Transaction is not getting start. Please find below the code and logs as well.

applicationContext-jdbc2.xml



CustUtilities.java



CustService.java



CustDAO.java



call from jsp/servlet



output logs:



I think somewhere i am missing configuration, and transaction is not getting initilize, in the bove scenario its updating the back-end table successfully, while actully it should roll-back the changes.

Thanks,
Ronak.
13 years ago
Hi Hongli,

Thanks for your time and suggestion.

I tried by removing read-only condition, but still i am facing the same issue. And I have a situation where i cant create dataSource under application code or applicationContext-jdbc2.xml. I have to use context.xml, so I am doing jndi lookup.

Onething i am guessing is if i put defaultAutoCommit="false" then i need to commit the transaction through my code, or Spring can do transaction commit after successful execution of method?

is there any property like after successful execution of method "commit" to database else do "rollback".

Please guide me.

Thank You.
13 years ago
Hi,

Thanks in advance for your inputs/suggestions.

Since last two days i am facing the issue with Spring transaction rollback. i am using Tomcat 5.5.28 and Spring. Basically i want to handle transaction with spring, in Tomcat environment. I am using Sybase ASE 12.5 as my back-end database.

I have defined database connection under Tomcat_Home/conf/context.xml.

Everything seems working fine, but I am facing the issue on property 'defaultAutoCommit' under Tomcat_Home/conf/context.xml

Please find below scenarios.

1. if defaultAutoCommit="false" ---> then on successfull execution also its not saving data into backend table.

2. if defaultAutoCommit="true" ---> then on RunTimeException also its not doing RollBack. and updating back-end table.

Anyone please guide me how should i handle the situation,

Please find below code.

Tomcat_Home/conf/context.xml



Java class - CustUtilities.java



applicationContext-jdbc2.xml



JSP/Servlet class from where i call the testSpring() method.



Please provide me your suggestions.

Thanks,
Ronak.
13 years ago