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 Ross Gardler <rg...@wkwyw.net> on 2002/03/05 22:28:30 UTC

Unable to do anything with the command line tool

I am trying to run the rc2 release of xindice. I can start the server 
and visit http://localhost:4080 no problem.

However when I run the command:

xindiceadmin ac -c /db -n addressbok

There is a considerable delay (around 60 seconds) where nothing seems to 
happen and eventually "ERROR:" is returned. There is no other 
information in this error message, just the word "ERROR".

Any ideas?

Ross



Re: Unable to do anything with the command line tool

Posted by Ross Gardler <rg...@wkwyw.net>.
Kimbro Staken wrote:

> Try running the command with -v to see if you can get a stack trace. 


DEBUG>
org.cmldb.api.base.XMLDBException:
   at org.apache.xindice.core.FaultCodes.createXMLDBException(Unknown 
Source)
   at org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(Unknown 
Source)
   at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:194)
   at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:157)
   at org.apache.xindice.tools.command.ListCollections.execute(Unkown 
Source)
   at org.apache.xindice.tools.XMLTools.execute(Unkown Source)

  at org.apache.xindice.tools.XMLTools.process(Unkown Source)

   at org.apache.xindice.tools.XMLUserTools.main(Unkown Source)


> Also are there any kind of firewall rules or anything on the box that 
> would prevent network connections to localhost? The CORBA ORB will 
> connect on ports other then 4080.


What ports need to be open? I'll check them.

Ross


> 
> On Wednesday, March 6, 2002, at 09:11 AM, Ross Gardler wrote:
> 
>>
>>
>> Mark J. Stang wrote:
>>
>>> Ross,
>>> For a quick test, in whatever shell you are starting xindiceadmin,
>>>  wipe out the classpath.
>>
>>
>>
>> CLASSPATH is empty as far as the environment is concerned (actually it 
>> doesn't exist in the environment)
>>
>>>   Also, has anyone added any jars to the
>>> jre/lib
>>
>>
>>
>> Not that I am aware of, the only jars present here are:
>>
>> i18n.jar
>> javaplugin.jar
>> rt.jar
>> sunrsasign.jar
>>
>>> and jre/lib/ext?
>>
>>
>>
>> This one is empty
>>
>>>  Also, is JAVA_HOME set?
>>
>>
>>
>> Yes, it points to the same directory as the one indicated by "which java"
>>  (i.e. "which java" returns /usr/java/jdk1.3.1_02/bin/java and 
>> JAVA_HOME is /usr/java/jdk1.3.1_02)
>>
>> Ross
>>
>>
>>> Mark
>>> Ross Gardler wrote:
>>>
>>>>> xindiceadmin lc -c  /db
>>>>>
>>>> Same result (about 1 minute delay then returns "ERROR:" with no further
>>>> message.
>>>>
>>>>
>>>>> java -version
>>>>>
>>>> Java(TM) 2 Runtime Environmet, Standard Edition (build 1.3.1_02-b02)
>>>>
>>>> Java HotSpot(TM) Client VM (build 1.3.1.02-b02, mixed mode)
>>>>
>>>>
>>>>> See which version of java you have.   Also, make sure
>>>>> XINDICE_HOME is set.
>>>>>
>>>> This is set to the installation directory of xindice, typing cd
>>>> $XINDICE_HOME followed by ./start starts the server.
>>>>
>>>> Ross
>>>>
>>>>
>>>>> HTH,
>>>>>
>>>>> Mark
>>>>>
>>>>> Ross Gardler wrote:
>>>>>
>>>>>
>>>>>
>>>>>> I am trying to run the rc2 release of xindice. I can start the server
>>>>>> and visit http://localhost:4080 no problem.
>>>>>>
>>>>>> However when I run the command:
>>>>>>
>>>>>> xindiceadmin ac -c /db -n addressbok
>>>>>>
>>>>>> There is a considerable delay (around 60 seconds) where nothing 
>>>>>> seems to
>>>>>> happen and eventually "ERROR:" is returned. There is no other
>>>>>> information in this error message, just the word "ERROR".
>>>>>>
>>>>>> Any ideas?
>>>>>>
>>>>>> Ross
>>>>>>
>>>>>>
>>
>>
>>
> Kimbro Staken - http://www.kstaken.org - http://www.xmldatabases.org
> Apache Xindice native XML database http://xml.apache.org/xindice
> XML:DB Initiative http://www.xmldb.org
> Senior Technologist (Your company name here)



Re: Unable to do anything with the command line tool

Posted by Kimbro Staken <ks...@xmldatabases.org>.
Try running the command with -v to see if you can get a stack trace. Also 
are there any kind of firewall rules or anything on the box that would 
prevent network connections to localhost? The CORBA ORB will connect on 
ports other then 4080.

On Wednesday, March 6, 2002, at 09:11 AM, Ross Gardler wrote:

>
>
> Mark J. Stang wrote:
>
>> Ross,
>> For a quick test, in whatever shell you are starting xindiceadmin,
>>  wipe out the classpath.
>
>
> CLASSPATH is empty as far as the environment is concerned (actually it 
> doesn't exist in the environment)
>
>>   Also, has anyone added any jars to the
>> jre/lib
>
>
> Not that I am aware of, the only jars present here are:
>
> i18n.jar
> javaplugin.jar
> rt.jar
> sunrsasign.jar
>
>> and jre/lib/ext?
>
>
> This one is empty
>
>>  Also, is JAVA_HOME set?
>
>
> Yes, it points to the same directory as the one indicated by "which java"
>  (i.e. "which java" returns /usr/java/jdk1.3.1_02/bin/java and JAVA_HOME 
> is /usr/java/jdk1.3.1_02)
>
> Ross
>
>
>> Mark
>> Ross Gardler wrote:
>>>> xindiceadmin lc -c  /db
>>>>
>>> Same result (about 1 minute delay then returns "ERROR:" with no further
>>> message.
>>>
>>>
>>>> java -version
>>>>
>>> Java(TM) 2 Runtime Environmet, Standard Edition (build 1.3.1_02-b02)
>>>
>>> Java HotSpot(TM) Client VM (build 1.3.1.02-b02, mixed mode)
>>>
>>>
>>>> See which version of java you have.   Also, make sure
>>>> XINDICE_HOME is set.
>>>>
>>> This is set to the installation directory of xindice, typing cd
>>> $XINDICE_HOME followed by ./start starts the server.
>>>
>>> Ross
>>>
>>>
>>>> HTH,
>>>>
>>>> Mark
>>>>
>>>> Ross Gardler wrote:
>>>>
>>>>
>>>>
>>>>> I am trying to run the rc2 release of xindice. I can start the server
>>>>> and visit http://localhost:4080 no problem.
>>>>>
>>>>> However when I run the command:
>>>>>
>>>>> xindiceadmin ac -c /db -n addressbok
>>>>>
>>>>> There is a considerable delay (around 60 seconds) where nothing 
>>>>> seems to
>>>>> happen and eventually "ERROR:" is returned. There is no other
>>>>> information in this error message, just the word "ERROR".
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> Ross
>>>>>
>>>>>
>
>
>
Kimbro Staken - http://www.kstaken.org - http://www.xmldatabases.org
Apache Xindice native XML database http://xml.apache.org/xindice
XML:DB Initiative http://www.xmldb.org
Senior Technologist (Your company name here)


Re: Unable to do anything with the command line tool

Posted by Ross Gardler <rg...@wkwyw.net>.

Mark J. Stang wrote:

> Ross,
> For a quick test, in whatever shell you are starting xindiceadmin,
>  wipe out the classpath.


CLASSPATH is empty as far as the environment is concerned (actually it 
doesn't exist in the environment)

>   Also, has anyone added any jars to the
> jre/lib 


Not that I am aware of, the only jars present here are:

i18n.jar
javaplugin.jar
rt.jar
sunrsasign.jar

> and jre/lib/ext? 


This one is empty

>  Also, is JAVA_HOME set?


Yes, it points to the same directory as the one indicated by "which 
java" (i.e. "which java" returns /usr/java/jdk1.3.1_02/bin/java and 
JAVA_HOME is /usr/java/jdk1.3.1_02)

Ross


> 
> Mark
> 
> Ross Gardler wrote:
> 
> 
>>>xindiceadmin lc -c  /db
>>>
>>Same result (about 1 minute delay then returns "ERROR:" with no further
>>message.
>>
>>
>>>java -version
>>>
>>Java(TM) 2 Runtime Environmet, Standard Edition (build 1.3.1_02-b02)
>>
>>Java HotSpot(TM) Client VM (build 1.3.1.02-b02, mixed mode)
>>
>>
>>>See which version of java you have.   Also, make sure
>>>XINDICE_HOME is set.
>>>
>>This is set to the installation directory of xindice, typing cd
>>$XINDICE_HOME followed by ./start starts the server.
>>
>>Ross
>>
>>
>>>HTH,
>>>
>>>Mark
>>>
>>>Ross Gardler wrote:
>>>
>>>
>>>
>>>>I am trying to run the rc2 release of xindice. I can start the server
>>>>and visit http://localhost:4080 no problem.
>>>>
>>>>However when I run the command:
>>>>
>>>>xindiceadmin ac -c /db -n addressbok
>>>>
>>>>There is a considerable delay (around 60 seconds) where nothing seems to
>>>>happen and eventually "ERROR:" is returned. There is no other
>>>>information in this error message, just the word "ERROR".
>>>>
>>>>Any ideas?
>>>>
>>>>Ross
>>>>
>>>>



Re: Unable to do anything with the command line tool

Posted by "Mark J. Stang" <ma...@earthlink.net>.
Ross,
For a quick test, in whatever shell you are starting xindiceadmin,
 wipe out the classpath.   Also, has anyone added any jars to the
jre/lib and jre/lib/ext?   Also, is JAVA_HOME set?

Mark

Ross Gardler wrote:

> > xindiceadmin lc -c  /db
>
> Same result (about 1 minute delay then returns "ERROR:" with no further
> message.
>
> > java -version
>
> Java(TM) 2 Runtime Environmet, Standard Edition (build 1.3.1_02-b02)
>
> Java HotSpot(TM) Client VM (build 1.3.1.02-b02, mixed mode)
>
> >
> > See which version of java you have.   Also, make sure
> > XINDICE_HOME is set.
>
> This is set to the installation directory of xindice, typing cd
> $XINDICE_HOME followed by ./start starts the server.
>
> Ross
>
> >
> > HTH,
> >
> > Mark
> >
> > Ross Gardler wrote:
> >
> >
> >>I am trying to run the rc2 release of xindice. I can start the server
> >>and visit http://localhost:4080 no problem.
> >>
> >>However when I run the command:
> >>
> >>xindiceadmin ac -c /db -n addressbok
> >>
> >>There is a considerable delay (around 60 seconds) where nothing seems to
> >>happen and eventually "ERROR:" is returned. There is no other
> >>information in this error message, just the word "ERROR".
> >>
> >>Any ideas?
> >>
> >>Ross
> >>


Re: Unable to do anything with the command line tool

Posted by Ross Gardler <rg...@wkwyw.net>.
> xindiceadmin lc -c  /db


Same result (about 1 minute delay then returns "ERROR:" with no further 
message.

> java -version


Java(TM) 2 Runtime Environmet, Standard Edition (build 1.3.1_02-b02)

Java HotSpot(TM) Client VM (build 1.3.1.02-b02, mixed mode)


> 
> See which version of java you have.   Also, make sure
> XINDICE_HOME is set.


This is set to the installation directory of xindice, typing cd 
$XINDICE_HOME followed by ./start starts the server.

Ross


> 
> HTH,
> 
> Mark
> 
> Ross Gardler wrote:
> 
> 
>>I am trying to run the rc2 release of xindice. I can start the server
>>and visit http://localhost:4080 no problem.
>>
>>However when I run the command:
>>
>>xindiceadmin ac -c /db -n addressbok
>>
>>There is a considerable delay (around 60 seconds) where nothing seems to
>>happen and eventually "ERROR:" is returned. There is no other
>>information in this error message, just the word "ERROR".
>>
>>Any ideas?
>>
>>Ross
>>



Re: Unable to do anything with the command line tool

Posted by "Mark J. Stang" <ma...@earthlink.net>.
Try

xindiceadmin lc -c  /db

to see if that works.   It should list out your collections.

I tried your command and it worked.   Also, do a

java -version

See which version of java you have.   Also, make sure
XINDICE_HOME is set.

HTH,

Mark

Ross Gardler wrote:

> I am trying to run the rc2 release of xindice. I can start the server
> and visit http://localhost:4080 no problem.
>
> However when I run the command:
>
> xindiceadmin ac -c /db -n addressbok
>
> There is a considerable delay (around 60 seconds) where nothing seems to
> happen and eventually "ERROR:" is returned. There is no other
> information in this error message, just the word "ERROR".
>
> Any ideas?
>
> Ross