list archives . users mailing list

Subject: Re: Error running the GDSF Client

Date view Thread view Subject view Author view Attachment view

From: Amrey Krause (amrey@epcc.ed.ac.uk)
Date: Feb 05, 2003 13:04

Hi Arijit,

In the GDSF config file, the following element defines a DataResource:

    <GDSF:DataResource name="marksheet" dbms="MyDBMS">
        <GDSF:QueryLanguageRef name="sql"/>
        <GDSF:DatabaseRef name="test"/>
    </GDSF:DataResource>

You've named your DataResource "marksheet" so the parameter
"DataResource1" in the GridDataServiceConfig has to reference that name.
Change it to the following line:

    <GDS:Parameter name="DataResource1">marksheet</GDS:Parameter>

Also the location of the DBMS must include the port number. Change the
following line to include the port number:

    <GDSF:DatabaseManagementSystem
          name="MyDMBS" type="mysql" location="localhost" version="8.1">

Did you set up the Database roles for this database? There is an example
roles file (ExampleDatabaseRoles.xml) that comes with the
distribution. You'll need to add an element for your database, similar to
the following:

     <Database name="marksheet">
          <User dn="No Certificate Provided" userid="" pass=""/>
     </Database>

Let me know if you're still having problems.

Regards,
             Amy

On Wed, 5 Feb 2003, M.Jackson wrote:

>
> ---------- Forwarded message ----------
> Date: Wed, 5 Feb 2003 12:00:27 -0000
> From: Arijit Mukherjee <Arijit.Mukherjee@newcastle.ac.uk>
> To: M.Jackson <michaelj@epcc.ed.ac.uk>
> Subject: RE: [Bug 130] New: Error running the GDSF Client
>
> Mike
>
> I need some urgent help regarding the GDSF client. I had this running a
> while ago - but now I am getting an exception on the server side,
> saying:
>
> 229750 [Thread-60] INFO uk.org.ogsadai.porttype.gds.engine.Engine -
> Processing script: myexample2
> Ooops...error.. in getElementValue()
> 229750 [Thread-60] ERROR uk.org.ogsadai.service.gds.GridDataServiceP2R1
> - Exception reading in script or writ
> ing out results
> java.lang.ClassCastException: java.lang.ClassCastException
> at
> uk.org.ogsadai.porttype.gds.engine.gdss.GridDataServiceLanguage.instanti
> ateTask(Unknown Source)
> at
> uk.org.ogsadai.porttype.gds.engine.gdss.GridDataServiceScriptLanguage.in
> stantiateTask(Unknown Sourc
> e)
> at uk.org.ogsadai.porttype.gds.engine.Engine.invoke(Unknown
> Source)
> at
> uk.org.ogsadai.service.gds.GridDataServiceP2R1.performScript(Unknown
> Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java
> :385)
> at
> org.globus.ogsa.handlers.RPCURIProvider.invokeMethod(RPCURIProvider.java
> :290)
> at
> org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.ja
> va:293)
> at
> org.globus.ogsa.handlers.RPCURIProvider.processMessage(RPCURIProvider.ja
> va:273)
>
> I think it is an error related to either the
> GridDataServiceFactoryConfigScript or the example script. I have a
> database called "test" and a table called "marksheet" inside it. I am
> attaching the two files named above. Please let me know what is wrong in
> there.
>
> I am stuck now and the DQP work can't proceed without the GDS working.
> Please help me.
>
> Regards
> Arijit
>

--
  ------------------------------------------------------------
 | Dr Amy Krause                      Applications Consultant |
 |                        |epcc|, The University of Edinburgh |
 |     King's Buildings, Mayfield Road, Edinburgh EH9 3JZ, UK |
 | Tel: +44 (0)131 650 6718 --- email: a.krause@epcc.ed.ac.uk |
  ------------------------------------------------------------

Date view Thread view Subject view Author view Attachment view
webperson@nesc.ac.uk