To get more information, specify the DOMFaultListener in your deployment
descriptor, so that the fault will be accompanied by a stack dump.
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultLis
tener>
If you are using any version of Apache SOAP other than a nightly build,
be sure to keep that all in one line of text.
Scott Nichol
----- Original Message -----
From: "Sandro Pedrocchi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 8:43 AM
Subject: Exception from service object: null
> I wrote this services:
>
> package classes.ch.mitlinks.services;
> import classes.ch.mitlinks.dataaccess.*;
> import java.sql.*;
>
> public class NestedTable extends JDBCConnect
> {
> protected String Tabelle = "personal";
> protected String ID_Name = "id";
>
> public NestedTable()
> {
> super();
> this.setDriver( "com.mysql.jdbc.Driver" );
> this.setUrl( "jdbc:mysql://localhost/test" );
> this.setUid( "root" );
> this.setPassword( "" );
> }
>
> public int getRoot()
> {
> setQuery( "SELECT id FROM " + this.Tabelle + " WHERE l = 1" );
> executeQuery();
> int Laenge = m_twoDArray.length;
> return Laenge;
> }
> }
>
> and deploed it:
>
> <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
> id="urn:NestedTable">
> <isd:provider type="java"
> scope="Request"
> methods="getRoot">
> <isd:java class="classes.ch.mitlinks.services.NestedTable"
> static="false"/>
> </isd:provider>
> </isd:service>
>
> if i add a main method and start the class from the command line, the
> result is 10 and that is corrert. if i request the method with my soap
> client (php), i see the folowing error:
>
> soap_fault Object ( [error_message_prefix] =>
> /linktool/servlet/rpcrouter [mode] => 1 [level] => 1024 [code] =>
> SOAP-ENV:Server [message] => Exception from service object: null
> [userinfo] => [callback] => )
>
> what is the problem?
>
> sandro
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>