Hi Imtiyaz:
document = (XMLResource) col.getResource(docName);
I am wondering if the
"document" is an instance of
"org.xmldb.api.base.Resource" if so where did you
defined it.??
regards
Laxma
--- Imtiyaz <[EMAIL PROTECTED]> wrote:
>
> hello sir
>
> ExceptionInInitaliztionError
>
> 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
> col.getResource(docName) 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);
> }
> }
>
>
> Yahoo! India Careers: Over 65,000 jobsonline.
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/