Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 6207 invoked from network); 16 Jun 2010 08:45:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Jun 2010 08:45:17 -0000 Received: (qmail 76730 invoked by uid 500); 16 Jun 2010 08:45:17 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 76327 invoked by uid 500); 16 Jun 2010 08:45:15 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 76312 invoked by uid 99); 16 Jun 2010 08:45:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 08:45:14 +0000 X-ASF-Spam-Status: No, hits=-0.8 required=10.0 tests=AWL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 16 Jun 2010 08:45:08 +0000 Received: (qmail 30790 invoked from network); 16 Jun 2010 08:44:47 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 16 Jun 2010 08:44:47 -0000 Message-Id: <6952377D-97DB-4732-A630-112B350F7406@objectstyle.org> From: Andrus Adamchik To: user@cayenne.apache.org In-Reply-To: <1276610570891-897207.post@n3.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Cayenne using Axis2: Query Exception Date: Wed, 16 Jun 2010 11:44:46 +0300 References: <1276610570891-897207.post@n3.nabble.com> X-Mailer: Apple Mail (2.936) 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:Receiver > > > [v.3.0 Apr 26 2010 11:58:47] > Query exception. > > > > > > > > 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. >