hello sir
i am getting above error during the runtime.
i am using xindice(xml db) and it is deployed on tomcat
i am written prgm which is used to access the xindice from tomcat it is
working fine
very well when i run that prgm.

but when that running prgm i make in one package and throgh one button i am
calling
that running prgm but it is giving above excption (this i am trying on sun
one studio)

so i am not able to understand why the running prgm is not working when i
make the package and
call that prgm through other prgm.

the code that i used is

in this fuction it shows the error on this bolded line


public void setDocumentConn(java.lang.String docName) {
try {
System.out.println("In the setDocumentConn method .....");

document = (XMLResource) col.getResource(docName);
System.out.println("After the resource creation .....");
String docstr = (String) document.getContent();
System.out.println("After creating the document .....");
doc = DocumentHelper.parseText(docstr);
System.out.println("After creating the final document .....");
}
catch(ExceptionInInitializerError e)
{
System.out.println("ExceptionInInitializerError error : "+e);
}
catch (XMLDBException e) {
System.err.println("XML:DB Exception occured " + e.errorCode
+ " " +
e.getMessage());
}
catch(Exception e) {
System.out.println("Error : "+e);
}
}



 
 
 
 
 
Vadim Gritsenko <[EMAIL PROTECTED]> wrote:
Imtiyaz wrote:

> what is the meaning of this error ExceptionInInitializerError
>

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ExceptionInInitializerError.html

See stacktrace to learn what paticular initializer failed.

Vadim

Yahoo! India Careers: Over 50,000 jobs online.

Reply via email to