karthick ryan

Greenhorn
+ Follow
since Jul 17, 2007
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 karthick ryan

Oracle 9i.

Also I did the following steps:
1. Re-started my database when the application is alive
2. Tried to login to the application
3. I got the following exception:
NO MORE DATA TO READ
4. Then i set the Oracle Data Source property DB_VALIDATE_CONNECTION=true
5. But still i get the following error when i log in first time to the application. But not in subsequent attempts. I am able to login to the application except for the first time.
�java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache�.


Please let me know why is this.

Thanks!!
16 years ago
I received the following error �no more data to read from socket�. The problem is that the database was UP But, instead we applied some ASM patch, but it was done like one node at a time, to avoid downtime.


Is the DB_VALIDATE_CONNECTION parameter setting in OracleDataSource, to do anything with this ?
16 years ago
Hi,
Does IBM Java has a HotSpot component in it?
Because, I have a jboss 4.0.5 running and it looks for HOTSPOT information in the java 1.5.0 and it does not find the HOTSPOT information in it.

Can anyone let me know whether IBM provides it. I know SUN provides such versions.

Any response is appreciated..
Thanks!!
16 years ago
sorry abt that..
But in the above case, what if i have maintained window.navigator.child value? Are they global ?
Hi Ranchers,
I have a complex issue to solve. I am working on vignette portal. Where so many modules will be listed down. Now, I am opening a new window from one of modules's hyperlink. I am passing the window object to a Javascript file which stores the window handler in an array.

On auto-logoff, the window gets refreshed and accesses the array of child window handlers object and closes each child window present in it and henceforth my module window which was opened gets closed.

But, instead if i click on anyother modules for request processing, my JavaScript loads fresh and so all the values stored in it gets flushed. And so now, if logout happens automatically, the values are not present. How can I overcome this?

Thanks !!!
16 years ago
Hi Ranchers,
I have a complex issue to solve. I am working on vignette portal. Where so many modules will be listed down. Now, I am opening a new window from one of modules's hyperlink. I am passing the window object to a Javascript file which stores the window handler in an array.

On auto-logoff, the window gets refreshed and accesses the array of child window handlers object and closes each child window present in it and henceforth my module window which was opened gets closed.

But, instead if i click on anyother modules for request processing, my JavaScript loads fresh and so all the values stored in it gets flushed. And so now, if logout happens automatically, the values are not present. How can I overcome this?

Thanks !!! M
16 years ago
Hi Ranchers,
I have a complex issue to solve. I am working on vignette portal. Where so many modules will be listed down. Now, I am opening a new window from one of modules's hyperlink. I am passing the window object to a Javascript file which stores the window handler in an array.

On auto-logoff, the window gets refreshed and accesses the array of child window handlers object and closes each child window present in it and henceforth my module window which was opened gets closed.

But, instead if i click on anyother modules for request processing, my JavaScript loads fresh and so all the values stored in it gets flushed. And so now, if logout happens automatically, the values are not present. How can I overcome this?

Thanks !!!
Hi all,
I have a javascript file say :

var str="initially hai";
function store()
{
str = "now, hello";
} //please ignore if i have any syntax problem

function ripoff()
{
alert(str);
}

Now, if i access the "store()" in the java script from a first.jsp file, it would change the value of str to "now, hello". But if i access the ripoff method from a different jsp (second.jsp) file, will it have the value "now, hello". Pls explain this concept.
Thanks !!
Pheeeeew...
Its all done in terms of fetching the XML.
Cooooool !!!
I just put the web.xml file in the previous directory and used a "..\web.xml" to load the XML.. It works!!!

Next job is to read the contents of the XML.

Thank you to all javaranch.com people for helping me solve this one.
Yes. The web.xml file is present inside the same folder as that of the JSP. Now is there anyway I can find the root directory path via javascript?
As per your suggestion, I used this :

var xmlhttp
loadXMLDoc('web.xml')
function loadXMLDoc(url)
{
alert(url);
xmlhttp=null
// code for Mozilla, etc.
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest()
}
// code for IE
else if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
}
if (xmlhttp!=null)
{
xmlhttp.onreadystatechange=state_Change
xmlhttp.open("GET",url,true)
xmlhttp.send(null)
}
else
{
alert("Your browser does not support XMLHTTP.")
}
}

function state_Change()
{
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4)
{
// if "OK"
if (xmlhttp.status==200)
{
alert("XML data OK")
}
else
{
alert(xmlhttp.status);
alert("Problem retrieving XML data:" + xmlhttp.statusText)
}
}
}

I get xmlhttp.status=404. Where is it searching for the XML file? I still have the problem.
In your forum,
.."I have talked about this in the past: http://radio.javaranch.com/pascarello/2005/10/26/113034827699 6.html, but I thought I would put some more information in how to debug this error. .."


The above link does not work..

Can you please get me the sample code for the same.
Please !!!
[ August 02, 2007: Message edited by: karthick ryan ]
Hi,
The following piece of script does not work in jsp. Please let me know what could be the reason.

var xmlObj;
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");

xmlDoc.async = false;
xmlDoc.load("web.xml");//This xml file is present in the folder where the jsp file is present
xmlObj = xmlDoc.documentElement;
alert('obj '+xmlObj);// I get a null here

Thanks!!
Hi,
This is the piece of code which i used. Please go through it. This doesnt seem to work.

<script language="Javascript">
<!--
var xmlObj;
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");

xmlDoc.async = false;
xmlDoc.load("web.xml");
// The xml file is present in the same folder where this jsp file is present

xmlObj = xmlDoc.documentElement;
alert(xmlObj); //i get a "null" here

-->
<script>
16 years ago
JSP
Hi,
This is the piece of code which i used. Please go through it. This doesnt seem to work.

<script language="Javascript">
<!--
var xmlObj;
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");

xmlDoc.async = false;
xmlDoc.load("web.xml");
// The xml file is present in the same folder where this jsp file is present

xmlObj = xmlDoc.documentElement;
alert(xmlObj); //i get a "null" here

-->
<script>
16 years ago
JSP