help-gift
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-GIFT] Exception accessing GIFT-Server


From: rolandschweter.de
Subject: [help-GIFT] Exception accessing GIFT-Server
Date: Sat, 14 Dec 2002 23:15:47 +0100

Hi,

I'm getting an exception

[...]
Deleting mContentdoneCDynamicQueryFactory: inverted_file was not
foundCDynamicQueryFactory.cc:49:throwing AnVEConfigurationError occured:
inverted_file
[...]
CSessionManager.cc:1294:throwing AnVENotFound occured: Could not find
Session
Caught inServer Main:AnGIFTException occured: Could not find Session

as soon as I'm trying to connect to the gift-server, regardless of the type
of client (perl, charmer, php), see whole output below. Compiling and
indexing a test-set of pictures via gift-add-collection.pl worked fine. What
could be wrong?

Thanks for any hint,
Roland




Output of server V. 0.1.9, suse-linux 7.2 with gcc 2.95.3, libc 2.2.2, perl
5.6.0:

Random number generator has been seeded with 14584
gift: CAlgorithmCollection: The following is the config file
located at "/var/lib/wwwrun///gift-config.mrml" as read by this program:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE mrml SYSTEM "file:/usr/local/share/mrml.dtd">
<!-- This file has become quite a free interpretation of MRML
     the above !DOCTYPE is rather for the use of psgml than
     a promise that the following is pure MRML. In fact the
     parser does not validate.

This is a configuration file for the server. It contains
information about collections, algorithms and
property sheets.


THIS FILE NEEDS CLEANING. ABOUT HALF OF THE LINES HERE ARE
LEGACY CODE. HOWEVER, IT IS NOT YET TESTED HOW THINGS BEHAVE
WHEN YOU REMOVE THE LEGACY CODE. SO, FOR A WHILE YOU HAVE
TO LIVE WITH QUITE A NUMBER OF OBSOLETE TAGS.

-->
<mrml>
  <cui-configuration>
    <algorithm-list>
    <!--COMMENT The new definiton of the default algorithm
                The default algorithm performs in fact a meta
                query of several inverted file queries.
                Each sub-query of the meta query is
                specialised on one of the feature groups

                Color histogram
                Color block
                Gabor histogram
                Gabor block

                Each one of them is pruned in adifferent way.
                (this is the goal of the operation)
      -->
      <algorithm algorithm-id="a-perl" algorithm-type="a-perl"
algorithm-name="Perl link" collection-id="__COLLECTION__"
cui-base-type="perl"
cui-perl-script-file="/var/lib/wwwrun/gift-embed-perl-modules.pl"
cui-perl-package="CGIFTLink" cui-perl-query-function="processGIFTQueryCall"
cui-perl-random-function="processGIFTRandomQueryCall"
cui-weighting-function="ClassicalIDF">
        <query-paradigm-list>
           <query-paradigm type="inverted-file"/>
           <query-paradigm type="perl-demo"/>
        </query-paradigm-list>
        <property-sheet property-sheet-id="cui-p-1"
property-sheet-type="subset" send-type="none" minsubsetsize="0"
maxsubsetsize="1">
          <property-sheet property-sheet-id="cui-p0" caption="Modify default
configuration" property-sheet-type="set-element" send-type="none"/>
        </property-sheet>
      </algorithm>
      <algorithm algorithm-id="a-cidf" algorithm-type="a-cidf"
algorithm-name="Classical IDF" collection-id="__COLLECTION__"
cui-block-color-histogram="no" cui-block-color-blocks="no"
cui-block-texture-histogram="no" cui-block-texture-blocks="no"
cui-pr-percentage-of-features="70" cui-base-type="inverted_file"
cui-weighting-function="ClassicalIDF">
        <query-paradigm-list>
           <query-paradigm/><!-- match anything -->
        </query-paradigm-list>
        <property-sheet property-sheet-id="cui-p-1"
property-sheet-type="subset" send-type="none" minsubsetsize="0"
maxsubsetsize="1">
          <property-sheet property-sheet-id="cui-p0" caption="Modify default
configuration" property-sheet-type="set-element" send-type="none">
          <property-sheet property-sheet-id="cui-p15" caption="Prune at % of
features" property-sheet-type="numeric" send-type="attribute"
send-name="cui-pr-percentage-of-features" from="20" to="100" step="5"
send-value="70"/>
          <property-sheet property-sheet-id="cui-p1"
property-sheet-type="subset" send-type="none" minsubsetsize="1"
maxsubsetsize="4">
            <property-sheet property-sheet-id="cui-p12"
send-boolean-inverted="yes" caption="Colour blocks"
property-sheet-type="set-element" send-type="attribute"
send-name="cui-block-color-blocks" send-value="yes"/>
            <property-sheet property-sheet-id="cui-p14"
send-boolean-inverted="yes" caption="Gabor blocks"
property-sheet-type="set-element" send-type="attribute"
send-name="cui-block-texture-blocks" send-value="yes"/>
            <property-sheet property-sheet-id="cui-p13"
send-boolean-inverted="yes" caption="Gabor histogram"
property-sheet-type="set-element" send-type="attribute"
send-name="cui-block-texture-histogram" send-value="yes"/>
            <property-sheet property-sheet-id="cui-p11"
send-boolean-inverted="yes" caption="Colour histogram"
property-sheet-type="set-element" send-type="attribute"
send-name="cui-block-color-histogram" send-value="yes"/>
            </property-sheet>
          </property-sheet>
        </property-sheet>
     </algorithm><!-- a-cidf -->
      <algorithm algorithm-id="adefault" algorithm-type="adefault"
algorithm-name="Separate Normalisation" collection-id="__COLLECTION__"
cui-block-color-histogram="no" cui-block-color-blocks="no"
cui-block-texture-histogram="no" cui-block-texture-blocks="no"
cui-pr-percentage-of-features="70" cui-base-type="multiple"
cui-weighting-function="ClassicalIDF">
      <algorithm algorithm-id="sub1" algorithm-type="sub1"
algorithm-name="sub1" cui-block-color-blocks="yes"
cui-block-texture-histogram="yes" cui-block-texture-blocks="yes"
cui-pr-percentage-of-features="100" cui-base-type="inverted_file"/>
      <algorithm algorithm-id="sub2" algorithm-type="sub2"
algorithm-name="sub2" cui-block-color-histogram="yes"
cui-block-texture-histogram="yes" cui-block-texture-blocks="yes"
cui-base-type="inverted_file"/>
      <algorithm algorithm-id="sub3" algorithm-type="sub3"
algorithm-name="sub3" cui-block-color-histogram="yes"
cui-block-color-blocks="yes" cui-block-texture-blocks="yes"
cui-pr-percentage-of-features="100" cui-base-type="inverted_file"/>
      <algorithm algorithm-id="sub4" algorithm-type="sub4"
algorithm-name="sub4" cui-block-color-histogram="yes"
cui-block-color-blocks="yes" cui-block-texture-histogram="yes"
cui-base-type="inverted_file"/>
        <query-paradigm-list>
           <query-paradigm/><!-- match anything -->
        </query-paradigm-list>
        <property-sheet property-sheet-id="cui-p-1"
property-sheet-type="subset" send-type="none" minsubsetsize="0"
maxsubsetsize="1">
          <property-sheet property-sheet-id="cui-p0" caption="Modify default
configuration" property-sheet-type="set-element" send-type="none">
          <property-sheet property-sheet-id="cui-p15" caption="Prune at % of
features" property-sheet-type="numeric" send-type="attribute"
send-name="cui-pr-percentage-of-features" from="20" to="100" step="5"
send-value="70"/>
          <property-sheet property-sheet-id="cui-p1"
property-sheet-type="subset" send-type="none" minsubsetsize="1"
maxsubsetsize="4">
            <property-sheet property-sheet-id="cui-p12"
send-boolean-inverted="yes" caption="Colour blocks"
property-sheet-type="set-element" send-type="attribute"
send-name="cui-block-color-blocks" send-value="yes"/>
            <property-sheet property-sheet-id="cui-p14"
send-boolean-inverted="yes" caption="Gabor blocks"
property-sheet-type="set-element" send-type="attribute"
send-name="cui-block-texture-blocks" send-value="yes"/>
            <property-sheet property-sheet-id="cui-p13"
send-boolean-inverted="yes" caption="Gabor histogram"
property-sheet-type="set-element" send-type="attribute"
send-name="cui-block-texture-histogram" send-value="yes"/>
            <property-sheet property-sheet-id="cui-p11"
send-boolean-inverted="yes" caption="Colour histogram"
property-sheet-type="set-element" send-type="attribute"
send-name="cui-block-color-histogram" send-value="yes"/>
            </property-sheet>
          </property-sheet>
        </property-sheet>
     </algorithm><!-- a-cidf  -->
    </algorithm-list>
    <cui-algorithm-id-list-list>
      <cui-algorithm-id-list cui-algorithm-id-list-id="ail-inverted-file">
        <cui-algorithm-id cui-algorithm-id="a-cidf"/>
      </cui-algorithm-id-list>
    </cui-algorithm-id-list-list>
    <collection-list listid="1">

<!-- xxyx gift-add-collection xyxx DEPENDS ON THIS LINE -->

    <collection collection-id="c-15-24-22-14-11-102-6-347-0"
collection-name="gift-test" cui-algorithm-id-list-id="ail-inverted-file"
cui-number-of-images="0"
cui-base-dir="/var/lib/wwwrun/gift-databases/gift-test/"
cui-inverted-file-location="InvertedFile.db"
cui-offset-file-location="InvertedFileOffset.db"
cui-feature-description-location="InvertedFileFeatureDescription.db"
cui-feature-file-location="url2fts.xml">
                                         <query-paradigm-list>
                                         <query-paradigm
type="inverted-file"/>
                                         <query-paradigm type="perl-demo"/>
                                         </query-paradigm-list>
                                         </collection>
</collection-list>
  </cui-configuration>
</mrml>
<!-- this is for xemacs to make it start up in the right mode.
     it does the right thing, but complains
-->
<!-- ;;; Local Variables: *** -->
<!-- ;;; mode: sgml       *** -->

This config file content will now be parsed by an XML parser
If error messages occur, these are related to the content shown above.
++/+//++//++//+++/++/+/+/+////+/+/+/+/++//+++/++/+/+/+////gift:
CAlgorithmCollection: The config file has
been parsed successfully by CAlgorithmCollection
maybe other parts of the program will also parse
the same config file.
-----
Configuring CAccessorAdminCollection
../usr/local/lib....--
Configuring the CAccessorFactoryContainer:
I am going to scan the following directorys for plugins
/usr/local/lib
FINISHED configuring the CAccessorFactoryContainer.
.--gift::CAccessorAdminCollection : I read the config file
/var/lib/wwwrun///gift-config.mrml
Now we will parse the contents of this file using an XML parser
CAccessorAdminCollection: Adding collection gift-test
under the ID c-15-24-22-14-11-102-6-347-0
The config file has been parsed
successfully maybe other parts
of the program will also parse
the same config file.
FINISHED configuring CAccessorAdminCollection.
FileSize:-1 characters
CI18nTranslator.cc:73: File unreadable.
Internationalization will be disabled in this run of the GIFT
--
Configuring CDynamicQueryFactory
Looking for libGIFTQu*.so in directory
/usr/local/lib
FINISHED Configuring CDynamicQueryFactory
----------------------------------------
The current configuration directory is: /var/lib/wwwrun//
----------------------------------------
Opening port 12789
----------------------------------------
TCP socket successfully initialized:7
TCP socket successfully initialized:8
Waiting for connection...

...select
trying to accept 7 1
Accept and serve: 7
connected: 7->3
Accepted Connection!
Accepted from adress [Peer INET Address: 217.81.227.230]
calling processMessage (no thread)
CCommunicationHandler.cc:636:readAndParse before parse
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE mrml SYSTEM "http://isrpc85.epfl.ch/Charmer/code/mrml.dtd";>
<mrml session-id="dummy_session_identifier">STARTING:mrml

1:--------------------TEXT_
_
<open-session user-name="gift-test" session-name="charmer_default_session"
/>STARTING:open-session
ENDING:open-session
<get-collections/>STARTING:get-collections
ENDING:get-collections
<get-algorithms/>STARTING:get-algorithms
ENDING:get-algorithms

1:--------------------TEXT_
_
</mrml>ENDING:mrml
CCommunicationHandler.cc:727:readAndParse before visit
++/+/+/+//CCommunicationHandler.cc:730:readAndParse before check
CHECKING: __ROOT__
++/+/+/+//CHECKING SUCCEEDED
VISITING: __ROOT__
CHECKING: mrml
++/+/+/+//CHECKING SUCCEEDED
VISITING: mrml
CHECKING: open-session
+/+/+/+/CHECKING SUCCEEDED
VISITING: open-session
HIER OPEN SESSION
ENTERING OPENSESSION
making a new session II
We have 3 algorithms in the algorithm collection.
CAlgorithmCollection.cc:282:default algorithm found
CAlgorithmCollection.cc:297:going to check default algorithm
+/+/+/+/++//+++/++/+/+/+////CAlgorithmCollection.cc:301:checked, now copying
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
CAlgorithmCollection.cc:303:copied, now checking again
+/+/+/+/++//+++/++/+/+/+////[set
adefault
set]
[build
0x8167d00
1NUMBER OF CHILDREN that are ALGORITHMS 4
23.0x81638d0
1234.0x8162890
1234.0x81629b0
1234.0x8162b00
12344-Algorithm CONFIGURED-: configuration
<algorithm  algorithm-id="adefault" algorithm-name="Separate Normalisation"
algorithm-type="adefault" collection-id="__COLLECTION__"
cui-base-type="multiple" cui-block-color-blocks="no"
cui-block-color-histogram="no" cui-block-texture-blocks="no"
cui-block-texture-histogram="no" cui-pr-percentage-of-features="70"
cui-weighting-function="ClassicalIDF" >
    <algorithm  algorithm-id="sub1" algorithm-name="sub1"
algorithm-type="sub1" collection-id="__COLLECTION__"
cui-base-type="inverted_file" cui-block-color-blocks="yes"
cui-block-color-histogram="no" cui-block-texture-blocks="yes"
cui-block-texture-histogram="yes" cui-pr-percentage-of-features="100"
cui-weighting-function="ClassicalIDF" />
    <algorithm  algorithm-id="sub2" algorithm-name="sub2"
algorithm-type="sub2" collection-id="__COLLECTION__"
cui-base-type="inverted_file" cui-block-color-blocks="no"
cui-block-color-histogram="yes" cui-block-texture-blocks="yes"
cui-block-texture-histogram="yes" cui-pr-percentage-of-features="70"
cui-weighting-function="ClassicalIDF" />
    <algorithm  algorithm-id="sub3" algorithm-name="sub3"
algorithm-type="sub3" collection-id="__COLLECTION__"
cui-base-type="inverted_file" cui-block-color-blocks="yes"
cui-block-color-histogram="yes" cui-block-texture-blocks="yes"
cui-block-texture-histogram="no" cui-pr-percentage-of-features="100"
cui-weighting-function="ClassicalIDF" />
    <algorithm  algorithm-id="sub4" algorithm-name="sub4"
algorithm-type="sub4" collection-id="__COLLECTION__"
cui-base-type="inverted_file" cui-block-color-blocks="yes"
cui-block-color-histogram="yes" cui-block-texture-blocks="no"
cui-block-texture-histogram="yes" cui-pr-percentage-of-features="70"
cui-weighting-function="ClassicalIDF" />
    <query-paradigm-list  >
        <query-paradigm  />
    </query-paradigm-list>
    <property-sheet  maxsubsetsize="1" minsubsetsize="0"
property-sheet-id="cui-p-1" property-sheet-type="subset" send-type="none" >
        <property-sheet  caption="Modify default configuration"
property-sheet-id="cui-p0" property-sheet-type="set-element"
send-type="none" >
            <property-sheet  caption="Prune at % of features" from="20"
property-sheet-id="cui-p15" property-sheet-type="numeric"
send-name="cui-pr-percentage-of-features" send-type="attribute"
send-value="70" step="5" to="100" />
            <property-sheet  maxsubsetsize="4" minsubsetsize="1"
property-sheet-id="cui-p1" property-sheet-type="subset" send-type="none" >
                <property-sheet  caption="Colour blocks"
property-sheet-id="cui-p12" property-sheet-type="set-element"
send-boolean-inverted="yes" send-name="cui-block-color-blocks"
send-type="attribute" send-value="yes" />
                <property-sheet  caption="Gabor blocks"
property-sheet-id="cui-p14" property-sheet-type="set-element"
send-boolean-inverted="yes" send-name="cui-block-texture-blocks"
send-type="attribute" send-value="yes" />
                <property-sheet  caption="Gabor histogram"
property-sheet-id="cui-p13" property-sheet-type="set-element"
send-boolean-inverted="yes" send-name="cui-block-texture-histogram"
send-type="attribute" send-value="yes" />
                <property-sheet  caption="Colour histogram"
property-sheet-id="cui-p11" property-sheet-type="set-element"
send-boolean-inverted="yes" send-name="cui-block-color-histogram"
send-type="attribute" send-value="yes" />
            </property-sheet>
        </property-sheet>
    </property-sheet>
</algorithm>
-Algorithm CONFIGURED-
[mQ:multiple
mQ]
Build subalgorithm0x81638d0 {algorithm}:inverted_file
really doing it
[mQ:inverted_file
mQ]
hier
sub1
checking before making children
making children
Deleting mContentdoneCDynamicQueryFactory: inverted_file was not
foundCDynamicQueryFactory.cc:49:throwing AnVEConfigurationError occured:
inverted_file

CAUGHT
CHECKING: get-collections
+/+/+/+/CHECKING SUCCEEDED
VISITING: get-collections
getcollections
x<collection-list>
<collection collection-id="c-15-24-22-14-11-102-6-347-0"
collection-name="gift-test" cui-algorithm-id-list-id="ail-inverted-file" />
</collection-list>

checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
CHECKING: get-algorithms
+/+/+/+/CHECKING SUCCEEDED
VISITING: get-algorithms
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
checking before making children
making children
CHECKING:
+/+/+/+/CHECKING SUCCEEDED
VISITING:
CSessionManager.cc:1294:throwing AnVENotFound occured: Could not find
Session

Caught inServer Main:AnGIFTException occured: Could not find Session




reply via email to

[Prev in Thread] Current Thread [Next in Thread]