kumar m

Greenhorn
+ Follow
since Aug 20, 2002
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 kumar m

Hi All,
I'm having problem accessing my home page when calling Stateful session bean. It is throwing the following exception given below.
How to fix this error. Can you help me to solve this problem. It is very urgent!!

javax.ejb.ObjectNotFoundException: No such entity!
at org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:96)
at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.findEntity(JAWSPersistenceManager.java:263)
at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:336)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:301)
at org.jboss.ejb.EntityContainer.find(EntityContainer.java:690)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1119)
at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:207)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)
at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:73)
at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:90)
at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
at org.jboss.ejb.plugins.EntityCreationIntercept
or.invokeHome(EntityCreationInterceptor.java:44)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:111)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:228)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:62)
at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:105)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
at org.jboss.ejb.Container.invoke(Container.java:730)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
at org.jboss.proxy.TransactionInterceptor.invokeTransactionInterceptor.java:77)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy67.findCompanyByHostName(Unknown Source)
at com.seatonCorp.peopleScout.servlet.ServletRequestHelper.
getCompanyByHostName(Unknown Source)
Thank you,
Regards,
mmk
20 years ago
Hi All,
I have a problem, how to change the cursor when moving from one cell to another cell in a JTable.
For example: In my application, for a single column the cursor type should be Hand-Cursor. When I exit from that column it should change to Default cursor.
Bit of code is given below: I have used mouselistener events
public void mouseExited(MouseEvent mouseevent)
{
int columnIndex = issueTable.columnAtPoint (mouseevent.getPoint());

int rowIndex = issueTable.rowAtPoint(mouseevent.getPoint());

if(columnIndex <= 10)
{
this.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
}
if(rowIndex == -1 || columnIndex == -1)
{
this.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
}
}

public void mouseEntered(MouseEvent mouseevent)
{
int columnIndex = issueTable.columnAtPoint(mouseevent.getPoint());

int rowIndex = issueTable.rowAtPoint(mouseevent.getPoint());

if(columnIndex == 11)
{
this.setCursor(new Cursor(Cursor.HAND_CURSOR));
}
else
{
this.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
}
}
But the problem is when i move from cell to cell in a row the cursor symbol is not changing. Only when I move out of table and gets in I can see the cursor symbol change.
Can anyone correct my code or give an alternate solution for this problem. Please help me with a sample code.
Thank you,
Regards
kumar
20 years ago
Hi All,
In my project I have to create a table with 2 columns, 1 column is checkbox and other column is String type. In the same JFrame one textarea and one add button should be there. When we type text in the textarea and click add button, it should add a new row in the table with the checkbox selected and the 2nd column containing the text.
I want to use AbstractTableModel.
Please help me to solve this issue. If you have sample code that will be more helpful.
Thank you,
Regards,
kumar m
21 years ago
Hi,
I'm creating an application using Java Swing. I want to use Model View Controller (MVC) architecture to design by application. I want to use MVC to seperate by business logic functionality from the control and presentation logic that uses this logic.
I need your help to get this done successfully. Please send me a SAMPLE JAVA SWING APPLICATION where they have applied MVC, it will be helpful to me.
Thank you,
Regards
kumarm.
[ February 16, 2003: Message edited by: kumar m ]
21 years ago
hi All,
In my application a template has to be created which should contain field headers and their respective field types - example field header LEVEL and field type COMBO BOX. Purpose is - a table will be created based on the fields in the template. Now I want to save this template as XML file with some predefined extension (like .templ). Later in my application i will retreive the saved template and use it to create table.
How can i save the file as XML with some predefined extension. We are using Swing to create template. Please help me with sample programs to solve this problem.
awaiting for your mail
Thank you
Regards
MKumar
21 years ago
hi,
I have posted my javascript coding to your hotmail id. Please correct me to get unicode values in combo box using javascript
Thank you
kumarm
hi,
How to pass unicode as parameters in a JavaScript method to display values in combobox.
If possible please send the coding
Thank you,
Regards
kumarm
Hi All,
I have a project to transform XML files to HTML files.
I found there are 2 ways to transform using
1) Saxon.exe
2) Xalan-j_2_3_1
In both, xml file, xsl file and html (output file) should be specified in command line.
Saxon can be executed from command prompt.
Both of them can transform 1 file at a time.

How can i pass xml file with path in a loop to get html output.
or
How can i use Xalan to transform from xml to html using front end application
Please give advice and with coding to proceed further.
Is there any other way to convert xml file to html file.
Please suggest me.
Thank you
Regards
kumar m
Hi All,
I have a project to transform XML files to HTML files.
I found there are 2 ways to transform using
1) Saxon.exe
2) Xalan-j_2_3_1
In both, xml file, xsl file and html (output file) should be specified in command line.
Saxon can be executed from command prompt.
Both of them can transform 1 file at a time.

How can i pass xml file with path in a loop to get html output.
or
How can i use Xalan to transform from xml to html using front end application
Please give advice and with coding to proceed further.
Is there any other way to convert xml file to html file.
Please suggest me.
Thank you
Regards
kumar m
Hi All,
I have problem in counting number of rows in a table and giving color to table data in javascript.
I'm able to dynamically add rows to html table, but how to count no. of rows in the table after adding rows.
Please give a solution to me to add row dynamically and also to count the rows.
I'm using insertRow and insertCell methods to add row dynamically in javascript.

waiting for your reply.
Thank you Regards
Hi All,
I have problem in counting number of rows in a table and giving color to table data in javascript.
I'm able to dynamically add rows to html table, but how to count no. of rows in the table after adding rows.
Please give a solution to me to add row dynamically and also to count the rows.
I'm using insertRow and insertCell methods to add row dynamically in javascript.

waiting for your reply.
Thank you Regards
21 years ago
Hi All,
Can you give me a suggession to convert Comma Seperated Value (CSV) text file to XML file. I have to convert the CSV to XML and display the XML file in the front end using XSL.
Using java servlet and xsl.
Please help me with coding.
Thank you
Regards
kumar.
Hi All,
In our project, the calculated tax amount is assigned to a double variable. Using the method format present in DecimalFormat class, total tax amount is rounded to 2 decimal places and assigned to a String variable.
But during execution of the program in JRun3.1 server and JDK1.2 we found JRun goes down when decimal format conversion takes place.
So please suggest any other way to round of the double value to 2 decimal places and store in a string variable.
Thank you
Regards
kumar.
21 years ago