This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Modern JavaScript for the Impatient and have Cay Horstmann on-line!
See this thread for details.
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!

S Raman

Greenhorn
+ Follow
since Mar 29, 2006
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 S Raman

enter code here was not there First I wanted to enter the code but I did not here is the code



I am able to connect to DBMS Oracle 11 using ODBC but unable to connect to Same using JDBC
I am getting the following error

java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection`enter code here
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:548)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:564)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:251)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:29)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:563)
at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
at JdbcOracleConnection.main(JdbcOracleConnection.java:32)
Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:436)
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:451)
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:897)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:271)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1663)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:385)
... 7 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.base/java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.base/java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.base/java.net.PlainSocketImpl.connect(Unknown Source)
at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
at java.base/java.net.Socket.connect(Unknown Source)
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:146)
at oracle.net.nt.ConnOption.connect(ConnOption.java:130)
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:402)
... 12 more
Hi,

I have Two main threads which collect data and scheduled to do so 1) in every minute 2) in every 10 mts from two source
using Executors.newScheduledThreadPool

Each thread in turn spawns 10 thread using Executors.newFixedThreadPool after the job is completed it keeps on running
after one minute hread one spawns new 10 thread again

I want it to reuse the same 10 threads how to do it or terminate the threads once job is over
Hi,

1)Is there any way to know how many session objects are there on the server side

2) how to make a session ivalid after 30 minutes of inactivity in tomcat

3) how do i call my database to update the user has been invalidated by inactivity (2)
I have a list of user logged in the system the user end is applet.
If the user is inactive for 30 mts the session should expire
If the session expires i need a entry in database for the same


thanks
11 years ago
Hi,
I am having searchservlet which enquires database mysql using JNDI Pooling.
the database query result is cached somewhere and in subsequent query from applet i get previous results also.
I observed that even if i query from different machines i get results of all machines query result.
unless i restart the machine I get previous result in my applet. and again if i make a query results after restart comes

where all caching is possible The caching problem must be in server side since diffeent clients get all clients query result

Tomcat 6, Database mysql,JNDI pooling
Thanks
12 years ago
Hi,


I am actually receiving data from servlet into applet

I found even though the servlet side is sending only new objects
the client side is getting both new and old data
I have set

huc.setUseCaches(false);
huc.setDefaultUseCaches(false);
at applet

so where is the problem
I know this has become a applet servlet issue and i have to post applet servlet section

Thanks
12 years ago
Hi,

The Model stores data as m_vector
clearData calls m_vector.removeAllElements()

I check the size of model after that using m_vector.size and find it =0
yet the the table displays old data???

please help
thanks
12 years ago
Hi,

I am using JTable with MyModel which extends AbstractTableModel.

I am using this for searching Patients
My table contains firstname , lastname, and phoneno.
Data comes from Database.
My problem

Eventhough I clear data in the MyModel JTable shows previouss rows.
for new search.
ie everytime i make a new seach results of old search persist in my jtable and new result is added at the end

How do i clear the old rows.
I am calling MyModel.clearData() before adding the new resultVector to MyModel.

Another question is This I am doing in Search JButton action performed method. should i use SwingUtilities.Invoke method

what is the right way to call

Thanks
12 years ago
I am having applet which calls a LogoutServlet
The logout servlet closes makes entry in database regarding client logout(it does this) and should redirect to login.jsp

how can this be achieved.
or atleast can i close the window in which the applet is present

urgent

thanks
Sridhar Raman
12 years ago
Hi,

I thought we can use xml and xslt technoligy to convert html to xml to database.
besides I would like to have data in xml format for future reference.
Hi,

I have a html file containing Financial Data
I want to convert the html and insert it into Database(Mysql)
I have around 2000 companies file.
For each file the datafield is obvious from file the additional two fields will correspond to company name and the quarter

Please suggest the methodology to follow


the following file I have shown only few rows ie types of expenses income etc



<HTML>
<HEAD>
<TITLE>Raw Materials</TITLE>
<link rel="stylesheet" href="style.css">
</HEAD>
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0">
<table border=0 cellspacing="0" cellpadding="0" width="610">
<tr valign="top">
<td width="2%"> </td>
<td width="96%">
<table border=0 cellspacing="1" cellpadding="0" width="100%" >
<tr valign="top">

<td align=center><font face=arial size=5 color="#014bae">Quarterly Results</font></td>

</tr>
<tr><td> </td></tr>
<tr>
<td align="center"width="40%" bgcolor="#F3CC00" colspan = 2><strong><font face="Arial" size="2">3i Infotech Ltd.</font></strong></td>
</tr>
<tr><td> </td></tr>

<tr><td align=right><font size=2>(Rs in Cr.)</font></td></tr>

</table>
<table width='100%' border='0' cellspacing='1' cellpadding='1' bgcolor = #1863ad>
<tr bgcolor = #73b5ce>
<td class='fnt5' ><b> </b></td>
<td class='fnt5' valign='center' align='center' ><b>Dec '06 </b></td>
<td class='fnt5' valign='center' align='center' ><b>Sep '06 </b></td>
<td class='fnt5' valign='center' align='center' ><b>Jun '06 </b></td>
<td class='fnt5' valign='center' align='center' ><b>Mar '06 </b></td>
<td class='fnt5' valign='center' align='center' ><b>Dec '05 </b></td>
</tr>
<tr>
<td class='fnt6' bgcolor=#FFFFFF > </td>
<td class='fnt6'bgcolor=#FFFFFF > </td>
<td class='fnt6'bgcolor=#FFFFFF > </td>
<td class='fnt6'bgcolor=#FFFFFF > </td>
<td class='fnt6'bgcolor=#FFFFFF > </td>
<td class='fnt6'bgcolor=#FFFFFF > </td>
</tr><td class='fnt6' bgcolor=#FFFFFF>Sales </td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 78.55</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 80.12</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 78.23</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 69.37</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 69.61</td>
</tr><td class='fnt6' bgcolor=#FFFFFF>Other Income </td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 6.93</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 4.05</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 4.08</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 1.44</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 2.09</td>
</tr>
<td class='fnt6' bgcolor=#FFFFFF>Stock Adjustment </td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
</tr>
<td class='fnt6' bgcolor=#FFFFFF>Raw Material </td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td></tr>
<td class='fnt6' bgcolor=#FFFFFF>Power And Fuel </td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
</tr>
<td class='fnt6' bgcolor=#FFFFFF>Employee Expenses </td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 22.50</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
</tr><td class='fnt6' bgcolor=#FFFFFF>Excise </td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
<td class='fnt6'bgcolor=#FFFFFF align='right'> 0.00</td>
</tr>
</table>
</td>
<td width="2%"> </td>
</tr>
</table>
</body>
</html>
<HTML>
<HEAD>
<TITLE>Ashika</TITLE>
</HEAD>
<link rel="stylesheet" href="style.css">
<body>
<table width="778" border="0" cellspacing="0" cellpadding="0">

</table>
</body>
</HTML>
Hi,
Try to find out whether you have multiple XMLParser in your Tomcat Path
Since you have mentioned you dont know which Parser says that

Bye
13 years ago
also classpath should contain paths of jar files not executables directory like bin
13 years ago
JAVA_HOME should not point to bin directory
JDK_HOME ALSO pointing to bin directory
remove bin in the declaration
13 years ago
Hi,
I am using mod_jk the title says mod_jkb that was mistake.

[error] [client 127.0.0.1] File does not exist: D:/www/soft/Tomcat/webapps/Myapp/homeGetCasesTitle.do, referer: https://localhost/Myapp/homep22.htm

the path shown in previous posting stated myapp it is actually Myapp
and Myapp is on webapps/Myapp

Sridhar
13 years ago