cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Cayenne using Axis2: Query Exception
Date Wed, 16 Jun 2010 08:44:46 GMT
Try to find the full server-side stack trace to see what caused the  
query exception. That could be the connection error from other message  
or maybe something else?

Andrus

On Jun 15, 2010, at 5:02 PM, Jepse wrote:

>
> Hi,
>
> when i try to deploy the following Test Class as a Service i just  
> get a Axis
> Fault with "Query Exception". The same class works fine as a Java App.
>
> Java-App
> package webServTest;
>
> import org.apache.cayenne.DataObjectUtils;
> import org.apache.cayenne.access.DataContext;
>
>
> import comp.Sources;
>
> public class TestWsInterface {
>
> 	/**
> 	 * @param args
> 	 */
> 	public static void main(String[] args) {
> 		System.out.println(testMethod());
> 	}
> 	public static String testMethod() {
> 	// TODO Auto-generated method stub
> 		SourceConfResponse sourceConfres = new SourceConfResponse();
> 		
> 		DataContext context = DataContext.createDataContext();
> 		
> 		Sources source = (Sources) DataObjectUtils.objectForPK(context,  
> "Sources",
> 580);
> 		return source.getName();
> 	}
>
> }
>
>
> Axis-Response:
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope 
> ">
>   <soapenv:Body>
>      <soapenv:Fault>
>         <soapenv:Code>
>            <soapenv:Value>soapenv:Receiver</soapenv:Value>
>         </soapenv:Code>
>         <soapenv:Reason>
>            <soapenv:Text xml:lang="en-US">[v.3.0 Apr 26 2010 11:58:47]
> Query exception.</soapenv:Text>
>         </soapenv:Reason>
>         <soapenv:Detail/>
>      </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>
>
>
> What is wrong?
> -- 
> View this message in context: http://cayenne.195.n3.nabble.com/Cayenne-using-Axis2-Query-Exception-tp897207p897207.html
> Sent from the Cayenne - User mailing list archive at Nabble.com.
>


Mime
View raw message