Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21193DDB5 for ; Tue, 9 Oct 2012 18:40:11 +0000 (UTC) Received: (qmail 45730 invoked by uid 500); 9 Oct 2012 18:40:10 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 45268 invoked by uid 500); 9 Oct 2012 18:40:09 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 45247 invoked by uid 99); 9 Oct 2012 18:40:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 18:40:09 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Chiradeep.Vittal@citrix.com designates 66.165.176.89 as permitted sender) Received: from [66.165.176.89] (HELO SMTP.CITRIX.COM) (66.165.176.89) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 18:40:04 +0000 X-IronPort-AV: E=Sophos;i="4.80,561,1344211200"; d="scan'208";a="40639528" Received: from sjcpmailmx01.citrite.net ([10.216.14.74]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 09 Oct 2012 18:39:42 +0000 Received: from SJCPMAILBOX01.citrite.net ([10.216.4.72]) by SJCPMAILMX01.citrite.net ([10.216.14.74]) with mapi; Tue, 9 Oct 2012 11:39:41 -0700 From: Chiradeep Vittal To: CloudStack Users CC: CloudStack DeveloperList Date: Tue, 9 Oct 2012 11:39:38 -0700 Subject: Re: anyway to debug after changing part of code? Thread-Topic: anyway to debug after changing part of code? Thread-Index: Ac2mTXGur8u3gcX5T7WhcmnZngghnw== Message-ID: In-Reply-To: <4AAE7480-996C-4B8A-AB6A-62492F6137AC@citrix.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.13.0.110805 acceptlanguage: en-US Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://cwiki.apache.org/confluence/display/CLOUDSTACK/Using+Eclipse+With+C loudStack On 10/9/12 11:36 AM, "Nitin Mehta" wrote: >You can use the eclipse debugger and set breakpoints. > >> Caused by: java.sql.SQLException: Field 'kddihosttags' doesn't have a >> default value > >seems to be the root cause. Can you shed light how you have introduced >the new column ? > >On 09-Oct-2012, at 8:43 PM, sx chen wrote: > >> Hi,all >> I have a problem with developing with CloudStack,This is my problem: >> even I change a single line of source code,I have to run "run >> clean-all build-all" again to get updated environment,It's awesome. >> a more important thing is I can't debug. every time I have to rubuild >>and >> view management log and mysql general log to get the >> useful information.anyone here can give me some suggestion about develop >> with CloudStack. >>=20 >> also=1B$B!$=1B(Bthere is a log here=1B$B!$=1B(BI have change the sourc= e code list here to >>add >> a colomn to table account >>=20 >> package api=1B$B!'=1B(B >>=20 >> com.cloud.api.commands.CreateAccountCmd >>=20 >> com.cloud.user.Account >>=20 >> com.cloud.user.AccountService >>=20 >> com.cloud.user.UserAccount >>=20 >>=20 >>=20 >> package core=1B$B!'=1B(B >>=20 >> com.cloud.user.AccountVO >>=20 >> com.cloud.user.UserAccountVO >>=20 >>=20 >>=20 >> package server=1B$B!'=1B(B >>=20 >> com.cloud.user.AccountManager >>=20 >> com.cloud.user.AccountManagerImpl >>=20 >> com.cloud.user.MockAccountManagerImpl >>=20 >>=20 >> ui=1B$B!'=1B(B >>=20 >> account.js >>=20 >> the log is here: >>=20 >> Exception while executing CreateAccountCmd: >>=20 >> com.cloud.utils.exception.CloudRuntimeException: DB Exception on: >> org.apache.commons.dbcp.DelegatingPreparedStatement@78c7370b >>=20 >> at >> com.cloud.utils.db.GenericDaoBase.persist(GenericDaoBase.java:1304) >>=20 >> at >> com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:30) >>=20 >> at >>=20 >>com.cloud.user.AccountManagerImpl.createAccount(AccountManagerImpl.java:1 >>560) >>=20 >> at >> com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:30) >>=20 >> at >>=20 >>com.cloud.user.AccountManagerImpl.createUserAccount(AccountManagerImpl.ja >>va:724) >>=20 >> at >>=20 >>com.cloud.utils.component.ComponentLocator$InterceptorDispatcher.intercep >>t(ComponentLocator.java:1185) >>=20 >> at >>=20 >>com.cloud.api.commands.CreateAccountCmd.execute(CreateAccountCmd.java:153 >>) >>=20 >> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132) >>=20 >> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:509) >>=20 >> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:416) >>=20 >> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:300) >>=20 >> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:59) >>=20 >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >>=20 >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>=20 >> at >>=20 >>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat >>ionFilterChain.java:290) >>=20 >> at >>=20 >>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte >>rChain.java:206) >>=20 >> at >>=20 >>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve >>.java:233) >>=20 >> at >>=20 >>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve >>.java:191) >>=20 >> at >>=20 >>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: >>127) >>=20 >> at >>=20 >>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: >>102) >>=20 >> at >>=20 >>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) >>=20 >> at >>=20 >>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j >>ava:109) >>=20 >> at >>=20 >>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:29 >>8) >>=20 >> at >>=20 >>org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.ja >>va:889) >>=20 >> at >>=20 >>org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.proces >>s(Http11NioProtocol.java:721) >>=20 >> at >>=20 >>org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.ja >>va:2260) >>=20 >> at >>=20 >>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java >>:1110) >>=20 >> at >>=20 >>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav >>a:603) >>=20 >> at java.lang.Thread.run(Thread.java:679) >>=20 >> Caused by: java.sql.SQLException: Field 'kddihosttags' doesn't have a >> default value >>=20 >> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) >>=20 >> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) >>=20 >> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3515) >>=20 >> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3447) >>=20 >> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951) >>=20 >> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101) >>=20 >> at=20 >>com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2554) >>=20 >> at >>=20 >>com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1 >>761) >>=20 >> at >>=20 >>com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:204 >>6) >>=20 >> at >>=20 >>com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:196 >>4) >>=20 >> at >>=20 >>com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:194 >>9) >>=20 >> at >>=20 >>org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(Delegat >>ingPreparedStatement.java:106) >>=20 >> at >> com.cloud.utils.db.GenericDaoBase.persist(GenericDaoBase.java:1267) >>=20 >> I really appreciate your help >