Sagarika Seetaraman

Greenhorn
+ Follow
since Jan 05, 2006
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 Sagarika Seetaraman

Joel,

I feel that in the case that u mentioned, the stack trace would have been different... and would have pointed out the error location...
17 years ago
Thanks for ur reply...

Actually I am testing with the right url... The url is of a standard form.. So the case that u cited may not occur.
17 years ago
Hi,

I am facing a small problem while using the substring method.

I am using a simple statement as
if(url.substring(url.lastIndexOf("/")+1,url.indexOf(".")).equals("Some Value"))
{
// do something
}

I tested this statement by assigning different values for url. It works fine. But when i tested it on Prod, it gave me this exception.


Exception in thread "main" java.lang.StringIndexOutOfBoundsException
at 0x00362c70: java.lang.Throwable.Throwable() (/usr/lib/./libgcj.so.3)
at 0x00355b3f: java.lang.Exception.Exception() (/usr/lib/./libgcj.so.3)
at 0x003593f7: java.lang.RuntimeException.RuntimeException() (/usr/lib/./libgcj.so.3)
at 0x0035665b: java.lang.IndexOutOfBoundsException.IndexOutOfBoundsException() (/usr/lib/./libgcj.so.3)
at 0x0036018b: java.lang.StringIndexOutOfBoundsException.StringIndexOutOfBoundsException() (/usr/lib/./libgcj.so.3)
at 0x0034766f: java.lang.String.substring(int, int) (/usr/lib/./libgcj.so.3)
at 0x0047cff7: ffi_call_SYSV (/usr/lib/./libgcj.so.3)
at 0x0047cfb7: ffi_raw_call (/usr/lib/./libgcj.so.3)
at 0x0032a658: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation) (/usr/lib/./libgcj.so.3)
at 0x0032af64: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/./libgcj.so.3)
at 0x00328474: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw, void) (/usr/lib/./libgcj.so.3)
at 0x0047ce6c: ?? (??:0)
at 0x0033cd68: gnu.gcj.runtime.FirstThread.call_main() (/usr/lib/./libgcj.so.3)
at 0x003a6e99: gnu.gcj.runtime.FirstThread.run() (/usr/lib/./libgcj.so.3)
at 0x00349aec: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3)
at 0x0031682c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/./libgcj.so.3)
at 0x08048930: ?? (??:0)
at 0x006fa79d: __libc_start_main (/lib/tls/libc.so.6)
at 0x080486e1: ?? (??:0)



Has anybody faced a similar problem?? Would appreciate quick response on this matter.

Thanks
17 years ago
Hi,

Why does a trigger need to be called from Java?? It occurs when some event(insert, update or delete) is fired on the database.
18 years ago

Originally posted by Bear Bibeault:
P.S. This probably doesn't really belong in the advanced forum.




Thanks a lot.....
18 years ago
Hi All,

I am trying to create an instance where the class is known only at runtime.

package org.tt;
// class1
public class CheckedClass
{
public CheckedClass()
{
System.out.println("Inside constructor");
}

public void display()
{
System.out.println("Inside the display method of CheckedClass");
}
}

// class2
import org.tt.CheckedClass;
public class Check
{
public static void main(String arg[])
{
String str = "org.tt.CheckedClass";
Object obj = (CheckedClass)(Class.forName("org.tt.CheckedClass").newInstance());
obj.display();
}
}



When i try to compile the Check class... it gives me an error... "Cannot resolve display"... Why does this happen?

Thanks in advance
Antony
18 years ago