You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Sandeep Dhawan <sa...@intersolutions.stpn.soft.net> on 2004/05/27 11:30:29 UTC

NullPointer Exception:Xindice

hi xindicians,
   
  I have downlaoded the xml-xindice-1.0.zip file for windows platform.
  After installing the XINDICE database i execute the startup script after
  which it displays a message "Server is ruuning"

  Now when i try to add a collection by firing the following 
  command:
	xindiceadmin ac -c /db -n addressbook
  I get a NullPointer Exception from XMLTools.java ..
  I am not able to provide you the compelete stack trace but has 
  someone faced this kind of a problem ....

 thanks,
sandeep

  

   

Re: NullPointer Exception:Xindice

Posted by Jelle Alten <je...@hotmail.com>.
Why don't you run "build.bat" instead of "bin\ant" ?

Also check your classpath variable, make sure it doesn't contains spaces. In
my case it helps when I first reset this variable by typing
    set classpath=
before I run the build or xindice or xindiceadmin commands.

Hope it helps.

Jelle

----- Original Message ----- 
From: "Sandeep Dhawan" <sa...@intersolutions.stpn.soft.net>
To: <xi...@xml.apache.org>
Sent: Thursday, May 27, 2004 11:50 AM
Subject: RE: NullPointer Exception:Xindice


> Okay ,
>   Another problem which i am facing is that when i am trying to
>   build the source file of the database server , a starnge message
> is coming
>
> ================ OUTPUT==============================
> D:\SANDEEP\D\XINDICE\xml-xindice-1.0>bin\ant
> ECHO is off.
> The system cannot find the path specified.
> C:\j2sdk1.4.1_01\bin\java -classpath
>
D:\SANDEEP\D\XINDICE\xml-xindice-1.0\java\lib\ant-1.4.1.jar;\config;\java\li
> b\xerces_1.4.3.jar -Dant.home=  org.apache.tools.ant.Main
> Buildfile: build.xml
>
> init:
>
> idl:
>
> prepare:
>
> clean-jar:
>
> src:
>      [echo] Compiling Source : Sandeep Dhawan
>     [javac] Modern compiler is not available - using classic compiler
>     [javac] Compiling 1 source file to
> D:\SANDEEP\D\XINDICE\xml-xindice-1.0\java\classes
>
> BUILD FAILED
>
> D:\SANDEEP\D\XINDICE\xml-xindice-1.0\build.xml:123: Cannot use classic
> compiler, as it is not available A common solution is to set the
environment
> variable JAVA_HOME to your jdk directory.
>
> Total time: 0 seconds
> ========================OUTPUT==================================
>
> I have already set the path of JAVA_HOME to the java installation
directory
> Can someone atleast tell me how can i atleast build the source files......
>
>
>
>
>
> -----Original Message-----
> From: Jelle Alten [mailto:jelle_Xindice@hotmail.com]
> Sent: Thursday, May 27, 2004 3:12 PM
> To: xindice-users@xml.apache.org
> Subject: Re: NullPointer Exception:Xindice
>
>
> Hi Sandeep,
>
> Strange problem, I never got that problem, not even with 1.0. But why
don't
> you switch to 1.1b4? It is better, newer and even shines a little. Try it.
>
> Jelle
>
> ----- Original Message -----
> From: "Sandeep Dhawan" <sa...@intersolutions.stpn.soft.net>
> To: <xi...@xml.apache.org>
> Sent: Thursday, May 27, 2004 11:30 AM
> Subject: NullPointer Exception:Xindice
>
>
> > hi xindicians,
> >
> >   I have downlaoded the xml-xindice-1.0.zip file for windows platform.
> >   After installing the XINDICE database i execute the startup script
after
> >   which it displays a message "Server is ruuning"
> >
> >   Now when i try to add a collection by firing the following
> >   command:
> > xindiceadmin ac -c /db -n addressbook
> >   I get a NullPointer Exception from XMLTools.java ..
> >   I am not able to provide you the compelete stack trace but has
> >   someone faced this kind of a problem ....
> >
> >  thanks,
> > sandeep
> >
> >
> >
> >
> >
>
>

RE: NullPointer Exception:Xindice

Posted by Sandeep Dhawan <sa...@intersolutions.stpn.soft.net>.
Okay ,
  Another problem which i am facing is that when i am trying to
  build the source file of the database server , a starnge message
is coming

================ OUTPUT==============================
D:\SANDEEP\D\XINDICE\xml-xindice-1.0>bin\ant
ECHO is off.
The system cannot find the path specified.
C:\j2sdk1.4.1_01\bin\java -classpath
D:\SANDEEP\D\XINDICE\xml-xindice-1.0\java\lib\ant-1.4.1.jar;\config;\java\li
b\xerces_1.4.3.jar -Dant.home=  org.apache.tools.ant.Main
Buildfile: build.xml

init:

idl:

prepare:

clean-jar:

src:
     [echo] Compiling Source : Sandeep Dhawan
    [javac] Modern compiler is not available - using classic compiler
    [javac] Compiling 1 source file to
D:\SANDEEP\D\XINDICE\xml-xindice-1.0\java\classes

BUILD FAILED

D:\SANDEEP\D\XINDICE\xml-xindice-1.0\build.xml:123: Cannot use classic
compiler, as it is not available A common solution is to set the environment
variable JAVA_HOME to your jdk directory.

Total time: 0 seconds
========================OUTPUT==================================

I have already set the path of JAVA_HOME to the java installation directory
Can someone atleast tell me how can i atleast build the source files......





-----Original Message-----
From: Jelle Alten [mailto:jelle_Xindice@hotmail.com]
Sent: Thursday, May 27, 2004 3:12 PM
To: xindice-users@xml.apache.org
Subject: Re: NullPointer Exception:Xindice


Hi Sandeep,

Strange problem, I never got that problem, not even with 1.0. But why don't
you switch to 1.1b4? It is better, newer and even shines a little. Try it.

Jelle

----- Original Message -----
From: "Sandeep Dhawan" <sa...@intersolutions.stpn.soft.net>
To: <xi...@xml.apache.org>
Sent: Thursday, May 27, 2004 11:30 AM
Subject: NullPointer Exception:Xindice


> hi xindicians,
>
>   I have downlaoded the xml-xindice-1.0.zip file for windows platform.
>   After installing the XINDICE database i execute the startup script after
>   which it displays a message "Server is ruuning"
>
>   Now when i try to add a collection by firing the following
>   command:
> xindiceadmin ac -c /db -n addressbook
>   I get a NullPointer Exception from XMLTools.java ..
>   I am not able to provide you the compelete stack trace but has
>   someone faced this kind of a problem ....
>
>  thanks,
> sandeep
>
>
>
>
>


Re: NullPointer Exception:Xindice

Posted by Jelle Alten <je...@hotmail.com>.
Hi Sandeep,

Strange problem, I never got that problem, not even with 1.0. But why don't
you switch to 1.1b4? It is better, newer and even shines a little. Try it.

Jelle

----- Original Message ----- 
From: "Sandeep Dhawan" <sa...@intersolutions.stpn.soft.net>
To: <xi...@xml.apache.org>
Sent: Thursday, May 27, 2004 11:30 AM
Subject: NullPointer Exception:Xindice


> hi xindicians,
>
>   I have downlaoded the xml-xindice-1.0.zip file for windows platform.
>   After installing the XINDICE database i execute the startup script after
>   which it displays a message "Server is ruuning"
>
>   Now when i try to add a collection by firing the following
>   command:
> xindiceadmin ac -c /db -n addressbook
>   I get a NullPointer Exception from XMLTools.java ..
>   I am not able to provide you the compelete stack trace but has
>   someone faced this kind of a problem ....
>
>  thanks,
> sandeep
>
>
>
>
>