Win a copy of Rust Web Development this week in the Other Languages forum!

Suhas Mohamedali

+ Follow
since Jun 05, 2012
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Suhas Mohamedali

You mean run configuration?
I can not pass actual arguments there as in the batch file.
I have a batch file in which following parameters are passed

-f .\server_test.cfg -jdbc oracle.jdbc.driver.OracleDriver -exec com.slmsoft.hcs.database.DBSchema init schema.oic.txt schema.common.txt custom.txt -end %1 %2 %3 %4 %5 %6 start

how can I make this parameters in eclipse run configuration.
Please download odbc14.jar (for 1.4 and 1.5) from


Copy it into JBOSS_HOME\server\default\lib.

And try to restart the server again.
I have two tables

master_table : 'BenefitFileHdr ' and child_table: BenefitFileDtl

PK of master table is FK of child table.

One column start_date is getting updated from the GUI and needs to to be updated in DB.

Please check the code below.

when try to save the code i get following exception.

Caused by: java.sql.SQLException: ORA-02291: integrity constraint (SLMTEST.FK_BENEFIT_HDR_DTL) violated - parent key not found

at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.ttc7.TTIoer.processError(
at oracle.jdbc.ttc7.Oall7.receive(
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(
at oracle.jdbc.driver.OracleStatement.executeNonQuery(
at oracle.jdbc.driver.OracleStatement.doExecuteOther(
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(
at org.hibernate.hql.ast.exec.BasicExecutor.execute(

I tried to save the parent first. Still i got error mentioning children are there.

Mapping has been done as

Please suggest a solution for update
Please help to call a stored procedure

get_ubpi(p_policy_short_no in varchar2, p_category_code in varchar2) with 2 in params and no out param.

The code i used to call the proc is

which gave me

15:00:58,989 WARN [JDBCExceptionReporter] SQL Error: 900, SQLState: 42000
15:00:58,989 ERROR [JDBCExceptionReporter] ORA-00900: invalid SQL statement

Please help
I want to prevent selecting another row of JTable if the ' mainAction ' is equal to Actions.CHILDCHANGED OR Actions.MODIFIED
I am able to show the Error Dialog while selecting another row but once the dialog is closed it is selecting the pointed row.
I want to select the edited row once the error dialogue is closed.

Please help.

9 years ago

Please help to make the selected row non editable if the check box in the row is unchecked and editable otherwise.

9 years ago
In simple words

how to display components dynamically at same co-ordinates???
9 years ago
Hi the requirement is
Enter emails separated by comma.
Save the data and Show the emails in a combo box while retrieving (spiting the mails separated by comma).

I made the textbox invisible and made the combo box visible after the search is performed.
But the no component is visible after the search is performed.

Kindly help to solve the issue

9 years ago
Thank you all for your suggestions.

The requirement is,

While starting up the server ( our own TCP \IP server) , the data from some tables are fetched and it will be stored in the list \vector.
It will act as a virtual table thought out the user session. So the application will not hit DB after server initialization.

I know there are better implementation available but we need to use this approach only as the architecture demands (it is a pretty old application) .
We dont have time to re implement this using JBoss and EJB.
It is a java swing application (coded in 2002).

Please help to solve this
Dear Pal,

Thanks for your reply

I tried it already and there is no effect.


My requirement is to improve the iteration time on the result set fetched.
The query fetches 1 million records.
The code snippet

takes less than 1 second to execute.

But the iteration of the result set and converting it to the list of POJOs takes around 90 seconds.
The code snippet is

Please help to reduce the execution time.

Please find my JNLP below located at ROOT folder of apache tomcat.

When I launch the application directly by invoking the JNLP file the application starts perfectly.
But when I tried to launch the application using an HTML file

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en-US">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<h1>Custom Progress Bar Demo in a Java Web Start Application</h1>
<script src=""></script>
var url = "http://localhost:8080/Test.jnlp";
deployJava.createWebStartLaunchButton(url, '1.6.0');
<noscript>JavaScript is required for this page.</noscript>


Is is showing an error message like the client.cfg file is not found at C:\User\Desktop.
Currently the cfg file is located at the ROOT folder.

Please suggest how to resolve this issue.

9 years ago
Dear Michael,

Thanks for your reply.

Yeah we need to open the pop up using double click only as the existing application is so.
In the existing application the following code is used.

Could you please suggest???

column.setCellEditor(new MyEditor(new JTextField()))

9 years ago

Please help me to handle the double click event in cell of JTable.
I added a mouse listener to the table.
The logic is written on mouseclicked method.
But it recognizes only one click. In the second click the cell becomes editable.

My requirement is to enter a code in the cell. If the user knows the code he can enter in the cell or he need to double click on the cell to open a search panel to search and fins the code.

Please help

9 years ago