Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 46649 invoked from network); 6 Feb 2011 13:58:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Feb 2011 13:58:38 -0000 Received: (qmail 31445 invoked by uid 500); 6 Feb 2011 13:58:38 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 31114 invoked by uid 500); 6 Feb 2011 13:58:35 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 31101 invoked by uid 99); 6 Feb 2011 13:58:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Feb 2011 13:58:33 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robbie.gemmell@gmail.com designates 209.85.216.42 as permitted sender) Received: from [209.85.216.42] (HELO mail-qw0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Feb 2011 13:58:26 +0000 Received: by qwe4 with SMTP id 4so3805493qwe.15 for ; Sun, 06 Feb 2011 05:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=IDr1jI/L0SA2g64VGfET22nmTMPFS0N47mKTuiIQdYA=; b=FoRY/9B8IiNpCJpyfel839XdV/tlBXv0kI/7O2YGaHq6cO8DyylLIvxKgDmyTq+pVJ yXch/5fK2ay3cgxKrVOJNe5R264IJ8z3WkIEYH5L/AlRSuDeNeSaxfiTtEyyZvrBK8YR uM4oAN4C9/+SM6hom63zZ3Ay4iciRh88Wsfoc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=GV1cRvnN+o58oSsVJ1A/tzpiLWk7+5EBP/yXHIRCrcxOkHX8g8hjDleKYV0a1WEu2V iSSFo/87d9Mxu5b7cWVPie5dle2WQHk4Hz3e/uMOaslGLqyaD3oc/Ir2iv0dfeYcPVP2 fwGM4ZNf3m1xuH2E3bWBKW6jucJ7C3Ldthu+M= MIME-Version: 1.0 Received: by 10.224.60.74 with SMTP id o10mr11286959qah.317.1297000684112; Sun, 06 Feb 2011 05:58:04 -0800 (PST) Received: by 10.229.141.204 with HTTP; Sun, 6 Feb 2011 05:58:04 -0800 (PST) In-Reply-To: References: Date: Sun, 6 Feb 2011 13:58:04 +0000 Message-ID: Subject: Re: Enabling debug information in qpid client libraries From: Robbie Gemmell To: users@qpid.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Rajika, I have just tested the patch and found it resulted in no difference in the compiled class files, they were 100% binary identical. If I change the new 'debuglevel' definition to be only "lines,source" then my compiled files do differ from normal and become smaller. This would explain why I have never had an issue remote debugging the default output and you have; your compiler obviously has different defaults than mine. Can I ask what JVM/JDK etc you are using? The man page for javac (Sun JDK) and the manual page for the Ant javac task suggest that our existing javac usage should indeed result in inclusion of all debug information if using the Sun JDK, and always has in my case. However there is one area of ambiguity where it is mentioned that using javac -g without arguments will include all debug information, but then goes to says that it only generates lines and source debug info by default. My test clearly shows I am seeing the former behaviour, whereas you would seem to have seen the latter behaviour. I have applied the patch, but will rename the JIRA to better indicate what is actually being changed. Regards, Robbie On 6 February 2011 08:21, Rajika Kumarasiri wrote: > Sorry for the late reply. We need to add "vars" to the debug level in jav= ac > task of the module.xml. I'd suggest we add that to the build file by > default. > https://issues.apache.org/jira/browse/QPID-3039 > > Thanks for your reply. > > Rajika > > On Fri, Jan 28, 2011 at 9:18 PM, Robbie Gemmell wrote: > >> Hi Rajika, >> >> I have never had a problem remote debugging the standard build output. >> Have you tried using a different version of your IDE, or even a >> different IDE? >> >> Robbie >> >> On 28 January 2011 08:41, Rajika Kumarasiri wrote: >> > I still cloud not figure out why this happens. I checked the libraries >> but I >> > can see that the debug info is available in the libs. I guess this is >> > something to do with my IDE. >> > >> > Rajika >> > >> > On Wed, Jan 26, 2011 at 5:20 PM, Rajika Kumarasiri >> wrote: >> > >> >> When I sue qpid client libraries in my application following NPE is >> thrown. >> >> And I want to run a debug session but when I tried debug, the IDE >> complains >> >> about missing debug info. I tried passing -g to common.xml =A0in java >> >> directory ( set the property javac.compiler.args to -g) but still say= s >> >> missing debug info. Do I have set any other place ? Thanks. >> >> >> >> Rajika >> >> >> >> [2011-01-26 17:17:04,639] ERROR - Axis2Sender Unexpected error during >> >> sending message out >> >> java.lang.NullPointerException >> >> =A0 =A0 at >> >> >> org.apache.qpid.client.AMQSession_0_10.isQueueBound(AMQSession_0_10.java= :528) >> >> =A0 =A0 at >> >> >> org.apache.qpid.client.AMQSession_0_10.isQueueBound(AMQSession_0_10.java= :519) >> >> =A0 =A0 at >> >> >> org.apache.qpid.client.BasicMessageProducer_0_10.isBound(BasicMessagePro= ducer_0_10.java:240) >> >> =A0 =A0 at >> >> >> org.apache.qpid.client.QueueSenderAdapter.checkPreConditions(QueueSender= Adapter.java:211) >> >> =A0 =A0 at >> >> >> org.apache.qpid.client.QueueSenderAdapter.checkPreConditions(QueueSender= Adapter.java:173) >> >> =A0 =A0 at >> >> >> org.apache.qpid.client.QueueSenderAdapter.send(QueueSenderAdapter.java:5= 3) >> >> =A0 =A0 at >> >> >> org.apache.axis2.transport.jms.JMSMessageSender.send(JMSMessageSender.ja= va:145) >> >> =A0 =A0 at >> >> org.apache.axis2.transport.jms.JMSSender.sendOverJMS(JMSSender.java:2= 03) >> >> =A0 =A0 at >> >> org.apache.axis2.transport.jms.JMSSender.sendMessage(JMSSender.java:1= 50) >> >> =A0 =A0 at >> >> >> org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractT= ransportSender.java:112) >> >> =A0 =A0 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:44= 3) >> >> =A0 =A0 at >> >> >> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutO= nlyAxisOperation.java:278) >> >> =A0 =A0 at >> >> >> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165= ) >> >> =A0 =A0 at >> >> >> org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleM= EPClient.java:410) >> >> =A0 =A0 at >> >> org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:57) >> >> =A0 =A0 at >> >> >> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseE= nvironment.java:232) >> >> =A0 =A0 at >> >> >> org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java= :256) >> >> =A0 =A0 at >> >> >> org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:5= 9) >> >> =A0 =A0 at >> >> >> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyS= erviceMessageReceiver.java:173) >> >> =A0 =A0 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java= :181) >> >> =A0 =A0 at >> >> >> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques= t(HTTPTransportUtils.java:172) >> >> =A0 =A0 at >> >> >> org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMe= thod(ServerWorker.java:413) >> >> =A0 =A0 at >> >> >> org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:26= 4) >> >> =A0 =A0 at >> >> >> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWor= kerPool.java:173) >> >> =A0 =A0 at >> >> >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecuto= r.java:886) >> >> =A0 =A0 at >> >> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja= va:908) >> >> =A0 =A0 at java.lang.Thread.run(Thread.java:619) >> >> >> >> >> > >> >> --------------------------------------------------------------------- >> Apache Qpid - AMQP Messaging Implementation >> Project: =A0 =A0 =A0http://qpid.apache.org >> Use/Interact: mailto:users-subscribe@qpid.apache.org >> >> > --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org