Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 13276 invoked from network); 28 Jul 2006 11:52:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2006 11:52:03 -0000 Received: (qmail 9938 invoked by uid 500); 28 Jul 2006 11:52:01 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 9927 invoked by uid 500); 28 Jul 2006 11:52:01 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 9916 invoked by uid 99); 28 Jul 2006 11:52:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2006 04:52:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [141.211.93.161] (HELO tombraider.mr.itd.umich.edu) (141.211.93.161) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2006 04:51:59 -0700 Received: FROM [141.214.41.77] (host-77.subnet-41.med.umich.edu [141.214.41.77]) BY tombraider.mr.itd.umich.edu ID 44C9FA48.9EDE0.23823 ; 28 Jul 2006 07:51:36 -0400 Message-ID: <44C9FA47.5000805@umich.edu> Date: Fri, 28 Jul 2006 07:51:35 -0400 From: Henry Lu User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: error... References: <2E7899FA2A83AB4480078DA88C8F10FB01A6B86E@HYD-MDP-MBX01.wipro.com> In-Reply-To: <2E7899FA2A83AB4480078DA88C8F10FB01A6B86E@HYD-MDP-MBX01.wipro.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I run a Junit testing and got the following errors: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in file [C:\devel\webapps\mtrain\WEB-INF\test\app_beans_test.xml]: Initialization of bean failed; nested exception is com.ibatis.common.exception.NestedRuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: Attribute "namespace" must be declared for element type "sqlMap". Caused by: org.xml.sax.SAXParseException: Attribute "namespace" must be declared for element type "sqlMap". But my web application runs with all mao file and doesn't have any errors. The Error occurs only in the JUnit testing. Any Idea? -Henry rambabu.piridi@wipro.com wrote: > > Hi Aram, > > Still I am getting NullPointerException. I am unable to find the problem. > > The following is the ErrorDescription > -------------------------------------------------------- > > --- The error occurred while applying a result map. > > --- Check the User.userMapForStaticAndDynamicRamBabu. > > --- Check the result mapping for the '*properties*' property. > > --- Cause: java.lang.NullPointerException > > > Thanks n Regards, > ============================= > Rambabu Piridi. > > ------------------------------------------------------------------------ > *From:* Mkhitaryan, Aram [mailto:Aram.Mkhitaryan@lycos-europe.com] > *Sent:* Friday, July 28, 2006 9:50 AM > *To:* user-java@ibatis.apache.org > *Subject:* RE: Need help---Mapping of Complex properties > > > > > > You missed also column attribute. > > Also use USR_ID=#value# instead of USR_ID=#usr_id# > > Add this and try again. > > > > Best, > > Aram > > > > ------------------------------------------------------------------------ > > *From:* rambabu.piridi@wipro.com [mailto:rambabu.piridi@wipro.com] > *Sent:* Friday, July 28, 2006 9:07 AM > *To:* user-java@ibatis.apache.org > *Subject:* RE: Need help---Mapping of Complex properties > > > > > > > > groupBy="userid"> > > > > > > > > > > > > > > class="UserProperty"> > > > > > > > > > > select * from USR_BASIC_INFO > > > > resultMap="userExtensionMapForStaticAndDynamicRamBabu"> > > select * from USR_EXTENSION_INFO where USR_ID=#usr_id# > > > > > > > > Thanks n Regards, > > ============== > > Rambabu Piridi. > > > > > The information contained in this electronic message and any > attachments to this message are intended for the exclusive use of the > addressee(s) and may contain proprietary, confidential or privileged > information. If you are not the intended recipient, you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately and destroy all copies of this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of > viruses. The company accepts no liability for any damage caused by any > virus transmitted by this email. > > www.wipro.com > > > The information contained in this electronic message and any > attachments to this message are intended for the exclusive use of the > addressee(s) and may contain proprietary, confidential or privileged > information. If you are not the intended recipient, you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately and destroy all copies of this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of > viruses. The company accepts no liability for any damage caused by any > virus transmitted by this email. > > www.wipro.com >