Javatpoint Logo

Sprint JDBCTemplate Error

By: kamala*** On: Mon Apr 04 15:34:25 IST 2016     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
Greetings,
When I Executed the example program in the below link
http://www.javatpoint.com/spring-JdbcTemplate-tutorial

I got the below error, Kindly do the needful.

Caused by: org.xml.sax.SAXParseException; lineNumber: 27; columnNumber: 84; cvc-complex-type.2.3: Element 'property' cannot have character [children], because the type's content type is element-only.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:437)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:325)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:449)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3228)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType(XMLSchemaValidator.java:3191)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.elementLocallyValidType(XMLSchemaValidator.java:3151)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processElementContent(XMLSchemaValidator.java:3053)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleEndElement(XMLSchemaValidator.java:2131)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:850)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1741)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2898)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:240)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:300)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:428)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
... 14 more
Java Result: 1
BUILD SUCCESSFUL (total time: 9 seconds)
Up0Down
spring  x  58Tags

 
same error im getting pls help me....................Image Created0Down

By: [email protected] On: Tue Apr 12 06:22:36 IST 2016 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No
 
Hi Krishnamoorthy,
I found the solution.
This coding is for Spring V 3.X, But if we run the same in Spring V4.X then we will get this error.
Image Created0Down

By: [email protected] On: Tue Apr 12 10:37:15 IST 2016 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No
 
Hi Krishnamoorthy,

The coding given is for Spring 3.X, If we run the same in Spring 4.X then we will get these problems, Try to run this coding in Spring 3.X then u will get the solution.

Image Created0Down

By: [email protected] On: Tue Apr 12 10:39:41 IST 2016 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No
 
Hi Krishnamoorthy,

The coding given is for Spring 3.X, If we run the same in Spring 4.X then we will get these problems, Try to run this coding in Spring 3.X then u will get the solution.
Image Created0Down

By: [email protected] On: Tue Apr 12 10:40:06 IST 2016 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No
 
Hi Krishnamoorthy,

The coding given is for Spring 3.X, If we run the same in Spring 4.X then we will get these problems, Try to run this coding in Spring 3.X then u will get the solution.
Image Created0Down

By: [email protected] On: Tue Apr 12 10:41:15 IST 2016 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No
 
Hi Krishnamoorthy,

The coding given is for Spring 3.X, If we run the same in Spring 4.X then we will get these problems, Try to run this coding in Spring 3.X then u will get the solution.
Image Created0Down

By: [email protected] On: Tue Apr 12 10:43:48 IST 2016 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No
 
Hi Krishnamoorthy,

The coding given is for Spring 3.X, If we run the same in Spring 4.X then we will get these problems, Try to run this coding in Spring 3.X then u will get the solution.
Image Created0Down

By: [email protected] On: Tue Apr 12 10:45:01 IST 2016 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No