Prabu Pidaran

Greenhorn
+ Follow
since Feb 22, 2010
Merit badge: grant badges
For More
Chennai
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 Prabu Pidaran

Kindly try the following when you are selecting two columns in the query.

<p:column width="150">
<f:facet name="header">
<h:outputText value="#{bundle.d_label}"/>
</f:facet>
<h:outputText value="#{static[0]}"/>
</p:column>
<p:column width="150">
<f:facet name="header">
<h:outputText value="#{bundle.d_value}"/>
</f:facet>
<h:outputText value="#{static[1] }"/>
</p:column>
10 years ago
JSF
From the exception, it looks like the "items" is a list of string from which you are trying to get the 'desc' and 'info'.
'items1' should be a list of object which contains 'desc' and 'info'.

Could you please check the values in 'items1'. ??
10 years ago
JSF
Try p:dataTable , p:column with row selection event in Primefaces instead of <table> <tr> <td>
10 years ago
JSF
Try loading the properties file
Properties urProperties = new Properties().load(new FileInputStream(System.getProperty("YOUR PROPERTY FILE PATH");

Then try to get the values

String dbName = (String) urProperties.get("urKeyValue");

10 years ago
JSF
can you explain your problem? if possbile, can you give your code here?
14 years ago
Hello,

try adding the follwoing property in your hibernate mapping xml.

<generator class="increment">
</generator>


I think this would help you.
Hello..

Welcome Mike and Merrick...!!!
Hi Ravi..

I am using Websphere 6.1 and i have created the datasource in the server. But i need to enable the pretest connection property through hibernate.cfg.xml
Hi All...

I am using hibernate 3.0. I have created a datasource.... i want to enable the Pretest connection properties through hibernate.cfg.xml. Is it possbile..?? if yes, can someone help how to enable it..? which property i need to add in hibernate.cfg.xml to enable the pretest connection property?

Thanks in advance.
yes.. I have added the util jar into my workspace from Websphere lib. but still it throws the same error. I think that util.jar doesnt contain the staleconnecitonexcpeption.class
Thanks a lot for assistance Jan Cumps. But if i add

"catch(com.ibm.websphere.ce.cm.StaleConnectionException
sce)
{
//if a StaleConnectionException is caught
// rollback and retry the action
try {
tran.rollback();
} catch (java.lang.Exception e) {
//deal with exception
//in most cases, this can be ignored
}
"


am getting compilation error that "com.ibm.websphere.ce.cm.StaleConnectionException" cannot be resolved
I am using Hibernate 3.0 and SQL Server and Websphere 6.1 in my web applicaiton. often I am getting com.ibm.websphere.ce.cm.StaleConnectionException: . I cudnt catch this exception in my code. It shows compilation error. Any possible solution or any workaround....??? Following is the error stack..

J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adapter for resource jdbc/ASMOracleDB. The exception which was received is com.ibm.websphere.ce.cm.StaleConnectionException: No more data to read from socket:java.sql.SQLException: No more data to read from socket

0000003d AbstractBatch W org.hibernate.jdbc.AbstractBatcher closeQueryStatement exception clearing maxRows/queryTimeout
com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Statement is closed.
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.runtimeXIfNotClosed(WSJdbcStatement.java:1664)
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.getMaxRows(WSJdbcStatement.java:1133)
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:225)
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:162)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1683)
at org.hibernate.loader.Loader.doQuery(Loader.java:662)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2145)
Hi all..

I am having the same problem after i did session.flush() and t.commit(). the code throws no exception and am able to get back the new object after inserting the value. But the vaules are not reflected in the DB. We are using hibernate 3. any help?
Hi.. I am using Websphere 6.1 and am having the same problem. I could not find the jars you specified here. Is there any other solution to avoid staleconnection exception..??? I tried all the possible ways and still facing the same problem
14 years ago