Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1473; XML document structures mus

During the development process, the code was submitted, and the following error was reported after restarting the service. The initial judgment was wrong with the mybatis xml file 2023-08-11 09:56:38.149][WARN][org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext:591][main]: Exception encountered during context initialization – canceling refresh attempt: org. springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘reviewHomeworkReportController’: Unsatisfied dependency expressed through field ‘reportService’; nested exception […]

Android uses network technology, usage of WebView, usage of OkHttp, parsing XML format data (Pull, SAX), parsing JSON format data (JSONObject, GSON)

1. Usage of WebView <WebView android:id=”@ + id/Web_view” android:layout_width=”wrap_content” android:layout_height=”wrap_content” tools:layout_editor_absoluteX=”165dp” tools:layout_editor_absoluteY=”58dp” /> public class MainActivity extends AppCompatActivity {<!– –> @Override protected void onCreate(Bundle savedInstanceState) {<!– –> super.onCreate(savedInstanceState); setContentView(R. layout. activity_main); WebView webView = findViewById(R.id.Web_view); Button button = findViewById(R.id.button); //Let WebView support js script webView.getSettings().setJavaScriptEnabled(true); //When it is necessary to jump from one webpage to […]

Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content not allowed in preamble.

Article directory `Screenshot of the problem:` `error content` `Solution:` `The problem has other causes` `mybatis interview questions` Screenshot of the problem: Error content Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content not allowed in preamble. ## Error building SqlSession. ## The error may exist in com/iflytek/mapper ## Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: […]

[Enhanced version] SAX parses XML and returns a Map object in the corresponding format (resolves recursive nesting of elements)

SAX parses XML and returns the Map object in the corresponding format Foreword The previous article realized the parsing of xml element nodes and returned the Map object of the corresponding format, but left a problem, that is, when there is recursive nesting of elements in xml, it cannot be parsed, because the qname attribute […]

org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Found element starting with ‘{” http://www.hibernate.org/xsd/orm/hb

org.hibernate.boot.InvalidMappingException: Unable to parse mapping document: null(INPUT_STREAM) at org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind(InputStreamXmlSource.java:46) at org.hibernate.boot.jaxb.internal. InputStreamXmlSource.doBind(InputStreamXmlSource.java:38) at org.hibernate.boot.spi.XmlMappingBinderAccess.bind(XmlMappingBinderAccess.java:94) at org.hibernate.boot.MetadataSources.addInputStream(MetadataSources.java:430) at org.jeecg.modules.online.config.dda(DbTableProcess.java:142) at org.jeecg.modules.online.cgform.service.addoDbSynch(OnlCgformHeadServiceImpl.java:503) at org.jeecg.modules.online.cgform.service.ad $$FastClassBySpringCGLIB$$76271ae2.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218 ) $000 (CglibAopProxy.java:85) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704) at org.jeecg.modules.online.cgform.service.ad$$EnhancerBySpringCGLIB$$567c030c. org.jeecg.modules.online.cgform.cai (OnlCgformApiController.java:587) in org.jeecg.modules.online.cgform.ca$$FastClassBySpringCGLIB$$b70991a.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy $CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) at org.jeecg.modules.online.cgform.ca$$EnhancerBySpringCGLIB$$fb07bea9.i() at […]

Sax parsing XML in Java

SAX is based on event parsing. The parser generates corresponding events according to the read data in one reading of XML files, and the application program implements the corresponding event processing logic, that is, it is a “push” parsing method;This parsing method is fast and takes up less memory, but it requires the application to […]