Subject: Re: Exception during initial tests
- Next message: Guy Rixon: "Re: Exception during initial tests"
- Previous message: Mario Antonioletti: "Re: GSDF documentation"
- Maybe in reply to: Guy Rixon: "Exception during initial tests"
- Next in thread: Guy Rixon: "Re: Exception during initial tests"
- Reply: Guy Rixon: "Re: Exception during initial tests"
From: George Hicken1 (HICKENG@uk.ibm.com)
Date: Mar 20, 2003 10:53
Guy,
Please could you run the test again with
log4j.rootCategory=DEBUG, CONSOLE
replacing
log4j.rootCategory=INFO, CONSOLE
in <webapp>/WEB-INF/etc/ogsadai.properties
and copy me the output.
Thanks
--
George Hicken
hickeng@uk.ibm.com
Guy Rixon
<gtr@ast.cam.ac.u To: users@ogsadai.org.uk
k> cc:
Sent by: Subject: Re: Exception during initial tests
owner-users@nesc.
ac.uk
19/03/2003 15:05
Further to my original report, below, the log-file catalina.out shows that
the
original exception is an InvocationTargetException which is caught and
rethrown as a SystemException at line 436 of
uk.org.ogsadai.porttype.gds.engine.Task
Here's the try block from which the exception was chucked:
try
{
Class[] args = {Class.forName("org.w3c.dom.Element"),
Class.forName("uk.org.ogsadai.common.Context")};
Constructor activityConstructor =
mActivityClass.getConstructor(args);
Context context = (Context)mContext.clone();
context.newView(mName);
context.putAll(mContext.getView(Engine.CONFIGURATION_VIEW));
context.putAll(mContext.getView(Engine.INVOCATION_CONTEXT_VIEW));
mActivity = (Activity)activityConstructor.newInstance(new
Object[] {element, context});
}
catch (InvocationTargetException e)
Any ideas?
On Wed, 19 Mar 2003, Guy Rixon wrote:
> Hi,
>
> I'm trying to run uk.org.ogsadai.client.Client in the -demo mode but with
a
> GDS script matched to a database I have here at Cambridge instead of the
> default database in the example script. Everything works (rather slowly)
up
> to the point where it says
>
>
-------------------------------------------------------------------------------
> About to send the new GDS the script:
> src/java/uk/org/ogsadai/service/gdsf/test/Example1.xml
> for execution and then display the results.
>
-------------------------------------------------------------------------------
>
> after which I get this exception:
>
> Error:
> AxisFault
> faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
> faultSubcode:
> faultString:
> faultActor: null
> faultNode: null
> faultDetail:
> uk.org.ogsadai.wsdl.GridDataServiceSystemException:
> <description>SystemException whilst running script:
> java.lang.ClassCastException</description>
>
> exceptionName:
uk.org.ogsadai.wsdl.GridDataServiceSystemException
> stackTrace: AxisFault
> faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
> faultSubcode:
> faultString:
> faultActor: null
> faultNode: null
> faultDetail:
> exceptionName:
uk.org.ogsadai.wsdl.GridDataServiceSystemException
>
>
> at
>
uk.org.ogsadai.service.gds.GridDataServiceP2R1.performScript(GridDataServiceP2R1.java:146)
>
> ...plus many lines of stack-trace.
>
> This is not a helpful error-message. Does anybody recognize this as a
known
> problem? Is it possible to say whether the error comes from a bug in the
> OGSA-DAI code or from a mis-configuration? The GDS script follows.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- (c) International Business Machines Corporation, 2002, 2003. (c)
>
University of Edinburgh 2002, 2003.-->
> <!-- See OGSA-DAI-Licence.txt for licencing information.-->
> <GridDataServiceScript>
> <Header>
> <ScriptName>Example 1</ScriptName>
> <Version>
> <Config>config</Config>
> <ScriptEnvironment>environment</ScriptEnvironment>
> </Version>
> <Originator>GSR of Originator</Originator>
> </Header>
> <Body>
> <Documentation>Select with data delivered with the
> response</Documentation>
> <DefineParameter name="table">catalogue</DefineParameter>
> <DefineParameter name="dec">POS_EQ_DEC > 60</DefineParameter>
> <Statement name="xyz" dataResource="MyDataResource">
> SELECT * FROM <UseParameter reference="table"/>
WHERE
> <UseParameter reference="dec"/>
> </Statement>
> <Delivery name="delivery">
> <Mechanism type="bulk"/>
> <Mode type="full"/>
> <From>xyz</From>
> <To>response</To>
> </Delivery>
> <Execute name="execute">xyz</Execute>
> </Body>
> </GridDataServiceScript>
>
> Guy Rixon
gtr@ast.cam.ac.uk
> Institute of Astronomy Tel: +44-1223-337542
> Madingley Road, Cambridge, UK, CB3 0HA Fax:
+44-1223-337523
>
Guy Rixon
gtr@ast.cam.ac.uk
Institute of Astronomy Tel: +44-1223-337542
Madingley Road, Cambridge, UK, CB3 0HA Fax:
+44-1223-337523
- Next message: Guy Rixon: "Re: Exception during initial tests"
- Previous message: Mario Antonioletti: "Re: GSDF documentation"
- Maybe in reply to: Guy Rixon: "Exception during initial tests"
- Next in thread: Guy Rixon: "Re: Exception during initial tests"
- Reply: Guy Rixon: "Re: Exception during initial tests"