Forum OpenACS Q&A: Re: SOAP Gateway Package ready

Collapse
Posted by Bruno Mattarollo on

Hello William,

First, thanks a lot for contributing this package...

I downloaded this version, installed the APM and mounted the application on a folder called soap. When I try to access the service, I get this error:

06/May/2003:14:46:42][742.45288448][-sched:16-] Notice: Running scheduled proc sg_boot_libraries...
[06/May/2003:14:46:42][742.45288448][-sched:16-] Debug: NO FULLQUERY FOR dbqd.soap-gateway.tcl.soap-gateway-db-procs.sg_library_get_paths. --> using default SQL
[06/May/2003:14:46:42][742.45288448][-sched:16-] Notice: Querying '
                select path
                from sg_libraries;'
[06/May/2003:14:46:42][742.45288448][-sched:16-] Error: Ns_PgExec: result status: 7 message: ERROR:  Relation "sg_libraries" does not exist

[06/May/2003:14:46:42][742.45288448][-sched:16-] Error: dbinit: error(localhost::development,ERROR:  Relation "sg_libraries" does not exist
): '
                select path
                from sg_libraries;
        '
[06/May/2003:14:46:42][742.45288448][-sched:16-] Error: Database operation "select" failed (exception NSDB, "Query was not a statement returning rows.")

ERROR:  Relation "sg_libraries" does not exist

SQL: 
                select path
                from sg_libraries;

Database operation "select" failed (exception NSDB, "Query was not a statement returning rows.")

ERROR:  Relation "sg_libraries" does not exist

SQL: 
                select path
                from sg_libraries;

    while executing
"ns_pg_bind select nsdb0 {
                select path
                from sg_libraries;
        }"
    ("uplevel" body line 1)
    invoked from within
"uplevel $ulevel [list ns_pg_bind $type $db $sql"
    invoked from within
For the record, I am using OpenACS 4.6.2/PostgreSQL on Mac OS X ... all the rest works fine ... Have you released a new version btw?

Thanks.

Collapse
Posted by Bruno Mattarollo on
Ok, posting to my own post ... It looks like when I installed the APM the -create.sql wasn't ran properly ... loaded it manually and this error is gone ... Sorry :)
Collapse
Posted by William Byrne on
Bruno,

  I missed your messages. Sorry for the late reply. I installed the APM a few times and haven't experienced your symptoms; though, the OS was Linux. Any ideas as to why create.sql gave you a problem the first time around?
Collapse
Posted by Bruno Mattarollo on
Hello William,

Thanks for the reply. Unfortunately I don't know why the "-create.sql" file wasn't run properly. I will look into that when I am back in the office (today, monday, is a holiday here in the Netherlands).

The good thing is that it runs perfectly after loading the datamodel. I haven't had time to look more in details into it but I think I will have to as we are having some talks of using SOAP to communicate between some databases and our OpenACS installation... I managed to debug some SOAP messages with XML-SPY so that worked nicely. Generated some simple messages as well with Java (Apache AXIS and JAXP as well).... so this shouldn't be too complicated :)

Thanks again.