Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 15762 invoked from network); 28 Jul 2006 12:01:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2006 12:01:04 -0000 Received: (qmail 22047 invoked by uid 500); 28 Jul 2006 12:00:57 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 22026 invoked by uid 500); 28 Jul 2006 12:00:57 -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 21992 invoked by uid 99); 28 Jul 2006 12:00:56 -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 05:00:56 -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 [193.72.144.2] (HELO srv11630.elca.ch) (193.72.144.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2006 05:00:55 -0700 Received: from MS01.elca.ch (ms01.elca.ch [10.10.90.90]) by srv11630.elca.ch (Hrp) with ESMTP id for ; Fri, 28 Jul 2006 14:00:28 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: error... Date: Fri, 28 Jul 2006 14:00:26 +0200 Message-ID: <165A38FA8C582448BBBD67591413BE6E5514DB@MS01.elca.ch> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: error... Thread-Index: AcayPD5ikdjzvsuoTRa5UpDgRt9xCwAARyGQ From: "Brocard Antoine" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Can you provide us the app_beans_test.xml file? Antoine=20 -----Original Message----- From: Henry Lu [mailto:zhlu@umich.edu]=20 Sent: vendredi, 28. juillet 2006 13:52 To: user-java@ibatis.apache.org Subject: error... I run a Junit testing and got the following errors: org.springframework.beans.factory.BeanCreationException: Error creating=20 bean with name 'sqlMapClient' defined in file=20 [C:\devel\webapps\mtrain\WEB-INF\test\app_beans_test.xml]:=20 Initialization of bean failed; nested exception is=20 com.ibatis.common.exception.NestedRuntimeException: Error occurred. =20 Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. =20 Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause:=20 com.ibatis.common.xml.NodeletException: Error parsing XML. Cause:=20 org.xml.sax.SAXParseException: Attribute "namespace" must be declared=20 for element type "sqlMap". Caused by: org.xml.sax.SAXParseException: Attribute "namespace" must be=20 declared for element type "sqlMap". But my web application runs with all mao file and doesn't have any=20 errors. The Error occurs only in the JUnit testing. Any Idea? -Henry rambabu.piridi@wipro.com wrote: > =20 > Hi Aram, > =20 > Still I am getting NullPointerException. I am unable to find the problem. > =20 > 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 > > =20 > Thanks n Regards, > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > 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 > > > > =20 > > You missed also column attribute. > > Also use USR_ID=3D#value# instead of USR_ID=3D#usr_id# > > Add this and try again. > > =20 > > Best, > > Aram > > =20 > > ------------------------------------------------------------------------ > > *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 > > =20 > > =20 > > =20 > > groupBy=3D"userid"> > > > > > > > > > > > > > > class=3D"UserProperty"> > > > > > > > > > > select * from USR_BASIC_INFO > > > > resultMap=3D"userExtensionMapForStaticAndDynamicRamBabu"> > > select * from USR_EXTENSION_INFO where USR_ID=3D#usr_id# > > > > =20 > > =20 > > Thanks n Regards, > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Rambabu Piridi. > > =20 > > > The information contained in this electronic message and any=20 > attachments to this message are intended for the exclusive use of the=20 > addressee(s) and may contain proprietary, confidential or privileged=20 > information. If you are not the intended recipient, you should not=20 > disseminate, distribute or copy this e-mail. Please notify the sender=20 > immediately and destroy all copies of this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient=20 > should check this email and any attachments for the presence of=20 > 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=20 > attachments to this message are intended for the exclusive use of the=20 > addressee(s) and may contain proprietary, confidential or privileged=20 > information. If you are not the intended recipient, you should not=20 > disseminate, distribute or copy this e-mail. Please notify the sender=20 > immediately and destroy all copies of this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient=20 > should check this email and any attachments for the presence of=20 > viruses. The company accepts no liability for any damage caused by any > virus transmitted by this email. > > www.wipro.com >